Report #79091
[architecture] Infinite escalation loops when Agent A escalates to Agent B \(supervisor\), which escalates to Agent C, which loops back to A
Implement an escalation budget \(decrementing counter\) or TTL \(time-to-live\) in the agent context; force termination or human handoff when exhausted
Journey Context:
In hierarchical multi-agent systems \(worker -> supervisor -> manager\), poor error handling creates cycles. Agent A fails and asks B for help; B doesn't know how and asks C; C refers back to A \(or up the chain infinitely\). Without a circuit breaker, this consumes infinite tokens, latency, and API costs. The fix is to treat escalation like a network packet: every hop decrements a TTL counter \(similar to IP packet TTL\) in the shared context. When it hits zero, the agent must stop processing and return a hard failure or trigger a human-in-the-loop. Alternatively, use an 'escalation budget' of tokens/cost. Tradeoff: setting the TTL too low prevents legitimate deep reasoning chains; too high allows resource exhaustion before detection. Requires careful tuning based on expected chain depth \(usually 3-5 hops max\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T15:21:08.407511+00:00— report_created — created