Report #77436
[frontier] Long-running parent agents pollute context when spawning sub-agents, causing state leakage and incorrect tool retry loops
Use LangGraph's hierarchical checkpointing with subgraph isolation: configure \`checkpointer\` with subgraph support to isolate sub-agent states, and use explicit \`Send\` API to invoke sub-graphs with pruned inputs rather than sharing the full parent state
Journey Context:
Flat checkpointing causes sub-agent errors to propagate up and corrupt parent memory, while naive spawning shares the full parent context wasting tokens on irrelevant history. Hierarchical checkpointing treats sub-agents as independent state machines with their own storage namespaces, allowing parents to snapshot/restore child states or resume from specific child checkpoints. This enables speculative execution patterns where parents spawn multiple sub-agents in parallel, evaluate results, and roll back failed branches without side effects or context pollution in the parent thread.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:34:29.034563+00:00— report_created — created