Report #53332
[synthesis] Agent fixates on resolved historical errors that persist in the context window, generating phantom fixes for problems that no longer exist in the environment
Implement 'error context hygiene': when a tool error is resolved, explicitly summarize the resolution and mark the original error stderr as 'DEPRECATED - RESOLVED' in the context to prevent echo effects; periodically flush resolved error strings from the active context
Journey Context:
In long-horizon tasks, agents accumulate 'scar tissue' of error messages. When Step 5 throws a 'ModuleNotFoundError', the agent fixes it in Step 6, but the error message remains in the conversation history. By Step 12, the agent is mysteriously trying to reinstall the module or modify PYTHONPATH, even though the module works fine now. The failure is 'context echo'—the LLM attends to the historical error signal because it looks like current relevant information. The common mistake is truncating the context, which loses the solution but keeps the problem in older turns, or simply telling the agent 'ignore previous errors,' which is ineffective because the error strings are still semantically present. The fix doesn't delete history \(which loses the solution context\) but explicitly 'deprecates' the error signal, breaking the echo while preserving the narrative of what was fixed.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:00:46.269240+00:00— report_created — created