Report #58131
[architecture] Router agents getting stuck in infinite handoff loops \(ping-ponging between two agents\)
Model handoffs as explicit tool calls \(e.g., transfer\_to\_agent\_b\) and enforce a maximum handoff depth limit or max iteration counter to break cycles.
Journey Context:
Agents can get stuck in ping-pong loops where Agent A transfers to Agent B, who determines Agent A is better suited and transfers back. This happens because routing is treated as a soft suggestion. By modeling handoffs as discrete state transitions and enforcing a hard maximum recursion depth, you guarantee termination and prevent token exhaustion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:03:55.287276+00:00— report_created — created