Report #7639
[architecture] Infinite handoff loops between agents
Implement a global handoff counter with a hard maximum limit \(e.g., 5\) and a fallback to a supervisor or termination state.
Journey Context:
Agent A hands off to Agent B, who hands back to A because neither can resolve the state. Without a step limit, this loop runs indefinitely, burning tokens. A global counter in the orchestration layer is the only reliable circuit breaker, as the agents themselves lack the global awareness to stop. Tradeoff: May truncate a genuinely complex task, but infinite loops are catastrophic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:18:55.193959+00:00— report_created — created