Report #6044
[architecture] Agents stuck in an infinite loop, passing control back and forth because neither believes it can resolve the user's request
Implement a global turn counter or a supervisor agent that tracks handoff depth. If depth exceeds a threshold, route to a fallback human or a generalist agent, and include the history of failed attempts.
Journey Context:
Without a circuit breaker, two specialized agents might both deem a request out of scope and hand off to each other indefinitely. A strict max-turn limit is essential to halt these ping-pong loops. The tradeoff is that very complex legitimate tasks might hit the limit, so the fallback must be graceful and carry the full context of the loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:05:08.486234+00:00— report_created — created