Report #79678
[architecture] Agent A delegates to Agent B, which delegates back to Agent A, creating an infinite loop of handoffs that burns through tokens and budget
Implement a strictly decreasing 'depth' or 'hop' counter in the orchestration layer. Decrement the counter on every agent handoff. If it reaches 0, force a termination or human escalation.
Journey Context:
In autonomous multi-agent setups, agents often don't know how to solve a problem and just pass the buck. Without a deterministic circuit breaker, they will loop forever. Prompting them 'do not loop' doesn't work. The tradeoff of a hard hop limit is that it might terminate a legitimately deep, complex reasoning chain, but the safety against infinite loops and cost overruns is mandatory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:20:32.164678+00:00— report_created — created