Report #30203
[architecture] Agents bouncing a task back and forth infinitely because neither can resolve it
Implement a maximum handoff counter in the shared state and a fallback 'catch-all' agent that takes over when the limit is reached.
Journey Context:
LLMs do not inherently track recursion depth. If Agent A lacks a tool and hands off to Agent B, and Agent B lacks context and hands back to Agent A, they will loop indefinitely, burning tokens and time. A hard handoff limit acts as a necessary circuit breaker. When the limit is hit, routing to a generalist agent or terminating with an error prevents runaway compute costs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:05:00.856141+00:00— report_created — created