feat(knowledge): land Engineering Knowledge Compiler (EKC) from 008
Give agents Engineering First Information before codegen: L0–L4 catalog, reuse/preflight (REUSE→ADAPT→CREATE), graph, and CLI surfaces so large repos stop reinventing existing capabilities. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
2e425c3010
commit
56ab52356f
43 files changed
+8434
-19
No files matched your search
@@ -0,0 +1,33 @@
|
||||
---
|
||||
title: eng preflight offline
|
||||
import plugin:lib/plugin.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
---
|
||||
|
||||
Offline Engineering Knowledge gate against `tests/engineering/.marqdo`
|
||||
(seed with `marqdo knowledge tests/engineering -o tests/engineering/.marqdo`).
|
||||
|
||||
# main
|
||||
|
||||
**p = > plugin.native_path name="agent"**
|
||||
1. `p`
|
||||
> plugin.load path=`p`
|
||||
2. *
|
||||
**out = "skip"**
|
||||
*out*
|
||||
|
||||
**pf = > agent_eng_preflight task="resolve configuration" marqdo_dir="tests/engineering/.marqdo"**
|
||||
**status = > json.get value=`pf` key="status"**
|
||||
**dec = > json.get value=`pf` key="decision"**
|
||||
**out = "eng-preflight-unexpected"**
|
||||
1. `status` == "missing_knowledge"
|
||||
**out = "eng-preflight-skip-no-graph"**
|
||||
2. `dec` == "REUSE"
|
||||
**out = "eng-preflight-ok"**
|
||||
3. `dec` == "ADAPT"
|
||||
**out = "eng-preflight-ok"**
|
||||
4. *
|
||||
**out = "eng-preflight-unexpected"**
|
||||
|
||||
*out*
|
||||
Reference in new issue
Block a user