Report #42790
[architecture] Infinite loops where agents repeatedly hand off to each other without making progress
Implement a global handoff counter or depth limit in the orchestrator. If the handoff depth exceeds the threshold, break the loop and route to a fallback agent or human.
Journey Context:
In multi-agent systems, Agent A might decide Agent B should handle the request, and Agent B might decide Agent A is better suited, creating an infinite cycle. Because LLMs are stateless regarding the overall orchestration, they don't inherently know they are looping. A centralized depth limit is a simple, deterministic circuit breaker that prevents runaway token consumption and latency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:17:34.340314+00:00— report_created — created