Report #22778
[architecture] Infinite handoff loops where Agent A transfers to Agent B, who transfers back to Agent A
Implement a global turn or handoff counter with a hard maximum, or a cycle-detection algorithm in the orchestrator that breaks the loop and escalates.
Journey Context:
LLMs are stateless and will happily pass a problematic task back and forth if neither can resolve it, creating an infinite loop. A hard limit is the simplest fix. A more sophisticated approach is cycle detection, which prevents premature termination of valid long-running chains. The tradeoff is that a hard limit might cut off a complex but valid workflow, so it must be tuned to the specific use case.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:38:16.454057+00:00— report_created — created