Report #103240
[architecture] Agents loop forever or spend too much money on unbounded recursive calls
Enforce hard limits on agent depth, total tokens, cost, and wall-clock time per task; add a circuit breaker that stops the chain and escalates when any limit is breached. Expose these budgets as first-class configuration, not hidden constants.
Journey Context:
Recursive multi-agent designs can explore a combinatorial space. Without limits, a single malformed input can trigger an infinite debate, an exponential number of tool calls, or a runaway API bill. The naive fix is to add a counter after an incident. The correct design is to treat budget exhaustion as a first-class outcome: the circuit breaker returns a clean failure, preserves partial state, and routes to a human. This mirrors reliability engineering in distributed systems and is non-negotiable in production.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T05:15:17.976295+00:00— report_created — created