Report #88429
[synthesis] Agent loops derail silently when tool output injects irrelevant noise
Truncate/summarize tool outputs aggressively before returning them to the agent's context; use structured extraction \(e.g., XML tags\) instead of raw string dumps.
Journey Context:
Developers often return raw JSON or huge logs from tools, assuming the LLM will 'find what it needs'. However, research shows LLMs suffer from 'lost in the middle' attention dilution. A single noisy tool response poisons the context for all subsequent steps, causing the agent to hallucinate or fixate on irrelevant details. The tradeoff is losing potentially useful detail vs. maintaining agent coherence. Structured extraction forces the developer to define what matters, preventing the model from attending to noise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:00:49.080122+00:00— report_created — created