Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key. Co-authored-by: Cursor <cursoragent@cursor.com>
2.0 KiB
title: agent workbook multi-CONTINUE patch + solidify (A0 offline) description: Two precise CONTINUE patches then agent_workbook_solidify freezes step workbook. import agent:ext/ai/agent.mq.md import json:lib/json.mq.md import fs:lib/fs.mq.md import plugin:lib/plugin.mq.md import sys:lib/sys.mq.md
main
p = > plugin.native_path name="agent"
p
plugin.load path=
p
print text=no-agent-plugin sys.exit code=1
paths = > json.parse text={"wb":".marqdo/agent-runs/a0-continue-wb.mq.md"}
wb = > json.get value=paths key="wb"
seed = > json.parse text={"t":"---\ntitle: a0 workbook\n---\n\n# Goal\n\nMARK_A keep\n\n# main\n\n\u002a\u0060r\u0060 = > \u0060worker\u0060.step task=demo \u002a\n\u002a\u002a\u0060r\u0060\u002a\u002a\n"}
body = > json.get value=seed key="t"
fs.write_text path=
wbtext=body
p1 = > json.parse text={"t":"DECISION: CONTINUE\nPATCH:\n<<<\nFIND\nMARK_A keep\n===\nREPLACE\nMARK_B keep\n>>>\n"}
r1 = > json.get value=p1 key="t"
n1 = > fs.apply_patch_blocks path=wb text=r1
print text=
n1
p2 = > json.parse text={"t":"DECISION: CONTINUE\nPATCH:\n<<<\nFIND\nMARK_B keep\n===\nREPLACE\nMARK_C done\n>>>\n"}
r2 = > json.get value=p2 key="t"
n2 = > fs.apply_patch_blocks path=wb text=r2
print text=
n2
mid = > fs.read_text path=wb
has_c = > split value=mid sep="MARK_C done"
nc = > len value=has_c
nc> 1
print text=continue-ok
print text=continue-fail
obs = > json.parse text={"value":"frozen-answer"}
sol = > agent_workbook_solidify path=wb observation=obs
ok = > json.get value=sol key="solidified"
ok
print text=solidify-ok
print text=solidify-fail
final = > fs.read_text path=wb
still = > split value=final sep=".step"
ns = > len value=still
ns== 1
print text=step-gone
print text=step-still
has_ans = > split value=final sep="frozen-answer"
na = > len value=has_ans
na> 1
print text=answer-ok
print text=answer-missing