feat(agent): adapter stdout JSON with full metadata (#566) #569

Merged
xiaoju merged 2 commits from fix/566-adapter-json-stdout into main 2026-05-28 00:18:57 +00:00

2 Commits

Author SHA1 Message Date
xiaoju 96ab097198 test(#566): add A4 retry loop and C1 integration round-trip tests
CI / test (pull_request) Successful in 1m42s
- A4: verify frontmatter retry loop produces correct AdapterOutput JSON
- C1: full round-trip test with mock agent → CLI JSON parsing → CAS verification

小橘 <xiaoju@shazhou.work>
2026-05-28 00:10:05 +00:00
xiaoju b95bbae5fc feat(agent): change adapter stdout from plain stepHash to JSON with full metadata (#566)
- Add AdapterOutput type (stepHash, detailHash, role, frontmatter, body, startedAtMs, completedAtMs)
- Update FrontmatterFastPathResult to include frontmatter record
- Change createAgent to output JSON line instead of plain hash
- Update spawnAgent in cli-workflow to parse JSON
- Add adapter-stdout tests (A-group) and spawn-agent-json tests (B-group)
2026-05-27 23:55:40 +00:00