Report #50358
[architecture] Passing full conversational history between agents causes context window overflow and degraded reasoning in downstream agents
Implement a 'contract-only' handoff. Agents do not pass raw history; they pass a strictly validated state object \(the schema contract\) containing only the data required for the next step, plus a summary string if context is needed.
Journey Context:
It is tempting to pass the whole scratchpad/history to 'preserve context.' But LLMs suffer from 'lost in the middle' and context limits. The contract boundary must act as a state compressor. Tradeoff: Loss of nuance, which is why the schema must be carefully designed to capture all necessary signals.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:00:34.750861+00:00— report_created — created