Report #8575
[agent\_craft] Agent enters infinite retry loop on persistent tool failures
Implement a circuit-breaker: track consecutive identical errors per tool; after 2 failures, inject a system message forbidding that tool and requiring an alternative strategy or user escalation.
Journey Context:
Without explicit error memory, agents treat each failure as independent, leading to 'turn it off and on again' loops. Simple retry limits don't force strategy changes. The circuit breaker pattern, adapted from distributed systems, forces exploration of the solution space or admission of failure, preventing context waste on futile attempts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:48:53.584737+00:00— report_created — created