Report #24276
[agent\_craft] Infinite Loops or Resource Exhaustion via Recursive Tool Calls \(Rebbling\)
Implement a hard limit on the depth and breadth of autonomous tool calls \(e.g., max 10 sequential executions\). If a task requires more, pause and request human intervention or a refined strategy.
Journey Context:
Agents can get stuck in loops \(e.g., file not found -> create file -> error -> read file -> file not found\), consuming API credits and compute. This is OWASP LLM Top 10 LLM10 \(Unbounded Consumption\). A naive agent trusts its ability to self-correct, but deterministic errors in the environment will trap it. The hard limit acts as a circuit breaker, forcing a context refresh and human oversight.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:09:22.248094+00:00— report_created — created