Report #70240
[architecture] Agents hand off tasks back and forth in an infinite loop without making progress
Implement a hard recursion limit on handoffs and ensure state strictly mutates on every step; add a supervisor agent to break loops.
Journey Context:
Because LLM outputs are non-deterministic, Agent A might decide Agent B should handle a task, while Agent B immediately decides Agent A is better suited. Without a strict halting condition or a mechanism to detect lack of state mutation, the system loops infinitely, burning tokens and stalling the user.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:29:07.496644+00:00— report_created — created