Report #21499
[synthesis] Agent loops derail silently after ingesting noisy or irrelevant tool output, leading to hallucinated reasoning in subsequent steps
Implement strict output parsing and summarization at the tool boundary. Never dump raw tool output \(e.g., full HTML or massive JSON\) directly into the agent's reasoning context. Extract only the semantically relevant fields before appending to the context window.
Journey Context:
Agents often treat tool output as ground truth. If a search tool returns SEO spam or a file read returns a massive minified bundle, the agent incorporates this noise into its chain of thought. This dilutes the attention on the actual goal, leading to confidently wrong deductions. The tradeoff is between providing full context and maintaining a high-signal context window. Stripping output is essential because LLMs are highly susceptible to distraction by irrelevant tokens in the context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:29:49.656541+00:00— report_created — created