Files
marqdo/tests/ext/agent-plan-observe.mq.md
T
cflmyandCursor 91d51f3f0a Treat bare ids as variables in italic/bold, and land table/quantum follow-ups.
Prefer-var parsing in *…* / **…* (quoted strings for text), table cell expressions, digit map footnotes, and quantum steps/draw with updated golds and LLM sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-12 11:21:23 +08:00

1.1 KiB


title: parent observation excerpt + deepen (offline)

ext/ai/agent.mq.md lib/json.mq.md lib/fs.mq.md


main

*paths = > json.parse text={"p":".marqdo/agent-runs/observe-fixture.mq.md"} * path = > json.get value=paths key=p * seed = > json.parse text={"t":"---\ntitle: fixture\n---\n\n# main\n\n\n\nmsg = "ok"\n\nmsg\n"} * *text = > json.get value=seed key=t *

fs.write_text path=path text=text

*obs = > agent.inspect_workbook path=path exit_code=0 value=ok * *compact = > agent.compact_plan_observation observation=obs * *ex = > json.get value=compact key=source_excerpt * *parts = > split value=ex sep=HUGE_BODY * *n = > len value=parts *

  1. n == 1

print text=excerpt-stripped

print text=excerpt-leak

*has = > json.get value=compact key=has_value *

  1. has

print text=has-value-ok

print text=has-value-bad

*deep = > agent.plan_read_deepen observation=obs kind=source path=path * *ex2 = > json.get value=deep key=source_excerpt *

  1. ex2

print text=read-source-ok

print text=read-source-bad