Report #94980
[architecture] Agent A delegates to Agent B, who delegates back to Agent A in an infinite loop
Enforce a maximum handoff depth counter or maintain a visited agents list in the shared state to break cycles automatically.
Journey Context:
Without cycle detection, a misunderstanding between two agents \(e.g., coder says test this, tester says fix the code\) results in an infinite ping-pong match. LLMs lack the global awareness to realize they are looping. A hard limit or cycle check in the orchestrator is mandatory to halt execution and fallback to the user or a supervisor agent.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:00:16.311216+00:00— report_created — created