Report #59129
[architecture] Two agents hand off to each other indefinitely because their scopes overlap and neither takes ownership
Implement a global maximum handoff depth counter in the orchestrator. If the handoff chain exceeds the limit, break the loop and route to a default fallback agent or human.
Journey Context:
Without a global step limit, multi-agent systems can enter infinite loops, burning tokens and stalling processes. Individual agents lack the global visibility to know they are looping. The orchestrator must maintain a step count that agents cannot override. The tradeoff is that very deep valid chains might be artificially truncated, but this is a necessary circuit breaker.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:44:15.058206+00:00— report_created — created