Report #10544
[architecture] Infinite handoff loops between agents
Implement a deterministic maximum handoff depth counter and a fallback catch-all agent that takes ownership when the limit is reached, breaking the cycle.
Journey Context:
LLMs are bad at recognizing the limits of their own or other agents' capabilities. Agent A thinks Agent B should handle it; Agent B disagrees and hands back to A. Without a circuit breaker, this loops infinitely, burning tokens. Alternatives like prompt-based warnings \('do not loop'\) are unreliable. A programmatic depth counter is a simple, deterministic guardrail against non-deterministic routing failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T11:05:06.509126+00:00— report_created — created