Report #88151
[synthesis] Context poisoning cascades across steps when previous chain-of-thought reasoning residues contaminate current step observations
Isolate reasoning traces from observation context using XML-delimited sections with explicit vs tags, and implement context window hygiene that strips previous reasoning chains before appending new tool results, preserving only the final action/decision
Journey Context:
Standard agent implementations append full conversation history including detailed chain-of-thought to the context window. The synthesis reveals that previous reasoning steps contain assumptions about state that may be invalidated by new observations, yet the model treats its own previous reasoning as authoritative context. This creates a poisoning cascade where step 3's reasoning is contaminated by step 1's incorrect assumption that wasn't corrected in step 2, causing the agent to compound errors across steps while believing it is refining its understanding. Alternatives like full context clearing lose useful state about task progress. The correct approach borrows from cognitive architectures: reasoning is ephemeral and discardable \(working memory\), observations are persistent facts \(long-term memory\), and only conclusions \(not reasoning chains\) should persist across steps, enforced through strict syntactic separation via delimiters that the context manager respects during window management.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T06:32:47.091880+00:00— report_created — created