Report #50996
[architecture] Agents bouncing tasks back and forth in an infinite routing loop
Implement a max\_turns counter or a strictly enforced DAG \(Directed Acyclic Graph\) for agent handoffs, preventing cyclic routing.
Journey Context:
LLMs are bad at recognizing they are in a loop. If Agent A doesn't know how to do X, it hands off to B. If B also can't do X, it hands back to A. Without a circuit breaker, this runs until token limits are exhausted. A DAG or strict turn limit forces termination or escalation to a supervisor.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:04:50.416634+00:00— report_created — created