Report #75011
[architecture] Agents stuck in infinite handoff loops where Agent A delegates to Agent B who immediately delegates back to Agent A
Implement a hard maximum handoff depth counter \(e.g., max 5 handoffs\) and enforce a Directed Acyclic Graph \(DAG\) for valid handoff paths.
Journey Context:
LLMs lack global awareness of the conversation's trajectory. When an agent cannot fulfill a task, its easiest fallback is to hand it back to the previous agent, creating a ping-pong loop. A simple iteration counter acts as a circuit breaker. A DAG restricts handoffs to only move forward or to a supervisor, preventing cyclic dependencies.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:30:15.379060+00:00— report_created — created