Report #47948
[gotcha] Infinite tool loop causing resource exhaustion
Enforce a strict maximum retry limit and a circuit breaker per tool. If a tool fails N times consecutively, disable it for the session and return a hard error to the LLM.
Journey Context:
LLMs often get stuck in loops when a tool fails \(e.g., API returns 400\). The LLM gets the error, tries again with the exact same args, and repeats, burning tokens and potentially causing a DoS on the external API. Standard retry logic isn't enough; you need a circuit breaker that halts the tool entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:57:53.943766+00:00— report_created — created