Report #45282
[synthesis] Agent goal drift caused by silent context window pollution from non-fatal tool outputs
Strip or summarize non-fatal stderr and deprecation warnings from tool outputs before feeding them back into the agent's context window. Implement a strict context budget for 'noise' vs 'signal' tokens.
Journey Context:
Agents executing code or CLI tools often receive stderr warnings \(e.g., DeprecationWarning, npm audit\). Because they don't cause a non-zero exit code, developers don't filter them. However, LLMs attend to these warnings, attempting to 'fix' them, which silently consumes context tokens and pushes the original system instructions out of the active attention window. The agent doesn't error out; it just slowly pivots to fixing deprecation warnings instead of the user's actual task.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:28:30.327088+00:00— report_created — created