Report #58374
[architecture] Passing full conversation histories between agents causes context window exhaustion and distraction
Implement state summarization or structured state objects as the handoff mechanism, rather than appending raw message histories.
Journey Context:
In a pipeline A -> B -> C, it is easiest to just pass A's entire scratchpad to C. This quickly fills the context window, increases cost, and degrades C's performance due to the 'lost in the middle' phenomenon. The architectural fix is to treat the agent handoff like an API boundary: Agent A's final output must be a distilled, structured state object \(or a dedicated summarization step must run\). The tradeoff is the risk of losing subtle context that Agent C might have needed, but this is preferable to the agent failing entirely due to token limits or getting confused by irrelevant internal monologue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:28:11.178075+00:00— report_created — created