Report #49793
[architecture] Context window exhaustion and data leakage from passing full history between agents
Implement context distillation at handoff. The outgoing agent must summarize its findings into a strictly scoped payload defined by the schema contract, discarding raw history before passing to the next agent.
Journey Context:
It is tempting to pass the full state to give the next agent context, but this causes context overflow, increases latency/cost, and violates least-privilege \(Agent A shouldn't see Agent B's raw DB queries\). Distilling to the schema contract enforces modularity. Tradeoff: Loss of subtle nuance from the original history, but necessary for scalability and security.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:03:33.220315+00:00— report_created — created