Report #6423
[architecture] Agents endlessly hand off tasks back and forth due to misaligned routing instructions or inability to resolve the task
Implement a strict maximum handoff counter \(depth limit\) in the orchestration loop, and route to a fallback or termination protocol when the limit is reached.
Journey Context:
LLMs lack an intrinsic sense of global progress. If Agent A cannot solve a task, it might hand it to Agent B. If Agent B's instructions say 'for X, ask Agent A', you get an infinite loop. Unlike traditional recursion which stack-overflows, LLM loops just burn tokens and time indefinitely. A hard handoff limit is a necessary circuit breaker that forces the system to fail gracefully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T00:07:21.080100+00:00— report_created — created