Files
marqdo/tests/ext/agent-plan-observe.mq.md
T
cflmyandCursor bd5555afaa Unify bare-identifier semantics in *…* / **…** (Python namespace)
Inside italic/bold code segments every bare word is a variable — including
call arguments and method-call receivers — so text literals must be quoted
and receivers no longer need backticks. A bare dotted callee `a.b` resolves
as a method call when `a` is a local variable, otherwise as a library path
(Python-style unified namespace), in both the tree-walk and bytecode backends.

Migrate ~70 tests plus ext/web, ext/quantum, ext/ai and the example projects
to the new idiom; update SKILL.md and the design docs; fix the web/quantum
example data model (db/index.mq.md). Unit and gold suites pass; only the 3
network-live tests fail offline.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-18 11:20:46 +08:00

38 lines
1.1 KiB
Markdown

---
title: parent observation excerpt + deepen (offline)
import agent:ext/ai/agent.mq.md
import json:lib/json.mq.md
import fs: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<!-- marqdo-out ok\nHUGE_BODY_SHOULD_BE_STRIPPED\n-->\n\n*msg = \"ok\"*\n\n**msg**\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
2. *
> print text=excerpt-leak
*has = > json.get value=`compact` key="has_value"*
1. `has`
> print text=has-value-ok
2. *
> 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
2. *
> print text=read-source-bad