Files
marqdo/tests/ext/eng-preflight.mq.md
T
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

35 lines
851 B
Markdown

---
title: eng preflight offline
import:
plugin: lib/plugin.mq.md
agent: ext/ai/agent.mq.md
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*