Report #1620
[architecture] Multi-agent systems stuck in infinite handoff loops \(Agent A routes to B, B routes back to A\)
Implement a global handoff counter or depth limit in the orchestrator state. If an agent pair exceeds the threshold, force a termination or escalate to a fallback agent.
Journey Context:
When agents use confidence-aware routing or conditional handoffs, they often encounter oscillation: Agent A thinks Agent B should handle it, Agent B disagrees and hands it back. Without a circuit breaker, this loops infinitely, burning tokens. A simple monotonically increasing handoff counter in the shared state, checked by the orchestrator before each routing decision, is the most robust architectural safeguard against this failure mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T05:30:35.464300+00:00— report_created — created