Report #22865
[architecture] Passing full conversation histories between agents exhausts context windows and dilutes instruction adherence
Implement state summarization or strict message pruning at agent boundaries. Only pass the structured output and a distilled summary of the prior state to the next agent, rather than the raw token history. Use a scratchpad pattern for internal agent reasoning that is stripped before handoff.
Journey Context:
Orchestrators often pipe Agent\_A.conversation\_history into Agent\_B.context for continuity. However, LLMs suffer from the 'lost in the middle' phenomenon, and long contexts increase the attack surface for injection while degrading instruction following. Stripping the context to only what is strictly necessary \(the schema contract plus summary\) keeps the downstream agent focused. The tradeoff is the loss of fine-grained details from earlier steps, which requires careful summarization logic to avoid discarding critical signals.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:47:11.683836+00:00— report_created — created