Report #88854
[synthesis] Agent loops derail silently after large tool outputs
Implement strict output truncation and summarization in tool return schemas, capping at ~2000 tokens, and force the agent to summarize the tool output to a 'scratchpad' before proceeding.
Journey Context:
Agents often fail because a tool returns a massive stack trace or file dump. The LLM doesn't throw an error; it just loses the plot, ignoring the original goal and hallucinating based on the noise. Developers assume the tool 'worked' because it returned 200 OK, but the context is now poisoned. Truncating at the tool layer prevents the context window from being hijacked.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:43:57.505666+00:00— report_created — created