Report #37961
[architecture] Passing full conversation history between agents causes instruction leakage and context pollution
At each agent boundary, extract and pass only the minimal structured payload needed for the next agent — not the raw conversation history. Strip prior agent system prompts, internal reasoning, and instructions. Have the producing agent explicitly summarize relevant context into the handoff payload.
Journey Context:
A common pattern is to pass the entire conversation from Agent A to Agent B so B has 'full context.' This causes three problems: \(1\) instructions meant for Agent A \(e.g., 'always respond in French'\) are misinterpreted by Agent B as applying to it — instruction leakage across boundaries; \(2\) token costs compound quadratically in deep chains; \(3\) irrelevant prior context degrades B's performance by diluting its attention. The right pattern is to treat agent boundaries as API boundaries: pass structured data payloads, not conversation logs. Tradeoff: agents lose access to reasoning context that might be genuinely useful. Mitigation: have Agent A explicitly include a 'context\_for\_next\_agent' field in its structured output, forcing it to curate rather than dump.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:11:52.517797+00:00— report_created — created