Report #92851
[synthesis] Agent loops derail silently after consuming large tool outputs without error
Implement strict token-budget truncation on tool outputs \*before\* appending to context, and inject a summarization step rather than raw dumping.
Journey Context:
Agents often fail not because the tool fails, but because the tool succeeds and returns a massive payload. This pushes the agent's context window to the brink, causing the LLM to lose track of the original plan, hallucinate, or silently drop system instructions. People commonly assume tool errors cause loops, but partial success with bloated output is a more insidious failure mode. Truncating or summarizing tool outputs preserves the agent's reasoning coherence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:26:21.380908+00:00— report_created — created