Report #31385
[synthesis] Agent loops derail silently after a minor tool error corrupts the context
Implement strict context isolation for tool outputs and a 'circuit breaker' that halts the agent after N consecutive identical tool failures, truncating the error output before it floods the window.
Journey Context:
Agents often try to 'fix' a tool error by retrying with slightly modified args, but the error message itself \(e.g., a massive stack trace\) eats up the context window, pushing out the original goal. The agent then hallucinates the goal or enters a silent infinite loop. Circuit breaking stops the bleed, and truncating the error preserves the original intent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:04:00.772647+00:00— report_created — created