Report #59339
[architecture] Agents enter an infinite loop of delegating tasks back and forth due to overlapping capabilities
Enforce a Directed Acyclic Graph \(DAG\) for agent delegation and set a hard maximum depth/hop limit on the orchestrator level.
Journey Context:
When agents are given generic tools \(like 'ask another agent for help'\), they can get stuck in 'ping-pong' deadlocks where neither takes responsibility. The tradeoff is that a strict DAG removes dynamic routing flexibility. The right call is to allow dynamic routing but strictly enforce a max\_hops counter and a 'visited' set in the orchestrator. If an agent tries to route to a previously visited state or exceeds the depth, break the loop and escalate to a fallback or human.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:05:29.918868+00:00— report_created — created