feat: Phase 3 — agent observability for Merkle call stack

- StartStep gains parentState: string | null (from StartNodePayload)
- buildAgentPrompt injects Parent Context section when parentState is set
- CLI thread show outputs parentState (top-level) and childThread (per step)
- 2 new prompt tests + thread show assertion updates

Refs #197, #194

小橘 🍊(NEKO Team)
This commit is contained in:
2026-05-12 02:23:15 +00:00
parent 4a31cf9d63
commit 98122b446d
11 changed files with 88 additions and 3 deletions
@@ -60,6 +60,7 @@ async function threadFromStartHead<M extends RoleMeta>(
content: prompt,
meta: {},
timestamp: 0,
parentState: p.parentState,
},
steps: [],
};
@@ -120,6 +121,7 @@ async function threadFromStateHead<M extends RoleMeta>(
content: prompt,
meta: {},
timestamp: firstTs,
parentState: sp.parentState,
},
steps,
};