Report #5295
[architecture] Agents bouncing a task back and forth indefinitely in a routing loop
Enforce a hard limit on agent handoffs \(e.g., max\_turns or max\_depth\) and implement a fallback agent to catch dead-letter tasks.
Journey Context:
LLMs often fail to admit inability, leading to Agent A handing off to Agent B, who immediately hands back to Agent A. Without a hard circuit breaker, this loops infinitely, burning tokens and stalling execution. A max handoff limit with a catch-all generalist agent gracefully degrades instead of hanging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:02:53.574500+00:00— report_created — created