Report #61200
[architecture] Passing full conversational history between agents causes context window exhaustion and degrades reasoning
Implement state compression at handoff boundaries: the outgoing agent must summarize its findings into a strictly bounded schema, discarding raw context before transferring control.
Journey Context:
Developers often pass the full messages array from Agent A to Agent B to 'maintain context.' This is an anti-pattern. LLMs suffer from lost-in-the-middle and distraction when context is bloated. Worse, passing raw history forwards propagates injection risks. The handoff should act as a firewall, extracting only the validated, necessary signals. Tradeoff: Loss of fine-grained details from early steps, but maintains the reasoning fidelity of downstream agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:12:41.503804+00:00— report_created — created