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
Owner

What

Change adapter stdout from plain stepHash string to JSON format with full metadata.

Why

Issue #566

Changes

  • New AdapterOutput type with stepHash, detailHash, role, frontmatter, body, startedAtMs, completedAtMs
  • spawnAgent parses JSON instead of plain hash
  • 14 new tests (A/B/C groups)

Ref

Fixes #566

## What Change adapter stdout from plain `stepHash` string to JSON format with full metadata. ## Why Issue #566 ## Changes - New `AdapterOutput` type with stepHash, detailHash, role, frontmatter, body, startedAtMs, completedAtMs - `spawnAgent` parses JSON instead of plain hash - 14 new tests (A/B/C groups) ## Ref Fixes #566
xiaoju added 2 commits 2026-05-28 00:16:32 +00:00
- 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)
- 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>
xiaoju merged commit 080b37c2be into main 2026-05-28 00:18:57 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#569