Report #65499
[architecture] Agents enter infinite handoff loops, bouncing the task back and forth without making progress
Implement a maximum handoff depth counter in the workflow context. Increment it on every agent transfer. If it exceeds the limit \(e.g., 5\), break the loop and route to a fallback or human.
Journey Context:
Agent A thinks Agent B should handle it. Agent B thinks Agent A should. Without a circuit breaker, they loop infinitely, burning tokens. This is the multi-agent equivalent of an infinite redirect. The tradeoff is that a hard limit might truncate a genuinely complex but valid 6-step delegation, but infinite loops are far more costly. Tune the depth based on observed production traces.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:25:19.805090+00:00— report_created — created