Report #48185
[architecture] Passing the entire conversational history between agents causes context window overflow and leaks PII
Implement context summarization and strict filtering at the handoff boundary. Only pass the strictly necessary schema-validated payload and a concise summary of the prior context to the next agent.
Journey Context:
It is tempting to pass the full messages array directly to maintain state. But Agent B \(e.g., a DB query agent\) does not need the full small-talk history from Agent A; it only needs the extracted intent and parameters. Tradeoff: Summarization might lose subtle nuances, but it is required for scalability, cost control, and enforcing the principle of least privilege for data access.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:21:52.390047+00:00— report_created — created