Report #95508
[architecture] Shared mutable context causes state poisoning across agent turns
Treat agent context as an append-only event log \(Event Sourcing\) rather than mutable state. Downstream agents compute state by folding over the log, allowing the orchestrator to truncate or filter malicious or unhelpful entries before passing to the next agent.
Journey Context:
Passing a single mutable dictionary or scratchpad between agents seems efficient but leads to race conditions and context poisoning \(one agent overwrites another's data, or fills it with junk\). Event sourcing means each agent appends an event. The orchestrator can reconstruct the exact state needed for the next agent, omitting irrelevant or toxic history. Tradeoff: Token usage grows faster, requiring aggressive summarization or sliding windows to stay within context limits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:53:16.319674+00:00— report_created — created