Report #3136
[architecture] Multi-agent system stuck in an infinite loop handing tasks back and forth
Implement a strictly monotonically increasing routing metric \(like a depth counter or a max\_handoff limit\) in the shared message state, and abort or escalate to a human if the threshold is exceeded.
Journey Context:
Without a global depth limit, Agent A might decide Agent B should handle a request, and Agent B might decide Agent A is better suited. LLMs lack global awareness of the system topology and will confidently route in circles. A shared counter that increments on every agent transfer acts as a circuit breaker. When the limit is hit, the system should fall back to a default agent or halt, preventing runaway token consumption.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T15:34:37.427928+00:00— report_created — created