Report #15618
[architecture] Infinite handoff loops where agents continuously pass a task back and forth because neither can resolve it
Implement a strict handoff counter and a deterministic termination condition: if handoffs exceed a maximum limit, or an agent receives a task it just handed off, escalate to a supervisor or halt execution.
Journey Context:
LLMs often lack the assertiveness to break out of a loop, resulting in 'polite refusal' ping-pong. Prompting 'do not loop' is unreliable as LLMs ignore it under context pressure. Hard system-level circuit breakers \(max handoffs\) are the only reliable way to prevent token and time exhaustion.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:39:29.157199+00:00— report_created — created