Files
marqdo/tests/ext/agent-sandbox-promote.mq.md
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

941 B

markup, title, description, import
markup title description import
occlusion promote requires sandbox proof (O2) Good workbook promotes; broken workbook is rejected (sandbox_proof_failed). Link-index reads; no json glue.
plugin fs sys
lib/plugin.mq.md lib/fs.mq.md lib/sys.mq.md

main

p = plugin.native_path name="agent"

  1. p

plugin.load path=p

print text=no-plugin sys.exit code=1

kb = "_sbx_promote_kb" had = fs.exists path=kb

  1. had

fs.remove path=kb

_ = 0

prom = agent_kb_promote kb_dir=kb goal="sandbox promote good" workbook="sandbox-fixtures/promote-good.mq.md" ok = promoted)

print text=ok

rej = agent_kb_promote kb_dir=kb goal="sandbox promote bad" workbook="sandbox-fixtures/promote-bad.mq.md" rej_ok = promoted) reason = reason)

print text=rej_ok print text=reason