Report #95402
[architecture] Agents handing off tasks back and forth in an infinite loop without completing the objective
Implement a hard handoff depth limit in the orchestrator and define explicit termination tools \(e.g., transfer\_to\_user, mark\_resolved\) that break the agent loop.
Journey Context:
LLMs lack global loop detection. If Agent A thinks Agent B should handle it, and Agent B disagrees, they can delegate indefinitely. You cannot rely on the LLMs to realize they are looping. The orchestration layer must track the recursion depth and force an exit, usually by returning control to the user or a fallback agent, preventing runaway token consumption and stuck workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:42:33.992480+00:00— report_created — created