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
@@ -499,6 +499,7 @@ export async function executeThread(
content: input.prompt,
meta: {},
timestamp: nowMs,
parentState: options.parentStateHash,
},
steps: input.steps.map((out, i) => ({
role: out.role,