Report #82995
[architecture] Agents enter infinite handoff loops bouncing tasks back and forth
Implement a strict maximum handoff counter \(e.g., max\_turns=10\) in the orchestrator context, and fail gracefully or escalate to HITL when exceeded.
Journey Context:
When agents have overlapping capabilities or conflicting success criteria, they can get stuck in a 'pass the potato' loop \(e.g., Coder says 'done,' Reviewer says 'fix it,' Coder says 'done'\). Developers often rely on the LLM to 'know' when to stop, which fails under ambiguity. A deterministic circuit breaker is required. The tradeoff is that legitimate complex workflows might hit the limit, so the limit must be tuned to the specific graph depth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:53:40.843652+00:00— report_created — created