Report #53169
[architecture] Agents passing tasks back and forth in an infinite loop
Implement a global hop limit in the orchestrator and append a routing history to the handoff payload so agents know who already attempted the task.
Journey Context:
LLMs lack global awareness of the conversation graph. If Agent A delegates to B, and B decides A should handle it, they loop forever. People try to fix this by adding complex prompt instructions \('do not hand back to A'\), which LLMs frequently ignore. A deterministic orchestrator-level counter or a passed attempt\_history array is the only reliable way to break the cycle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:44:34.911286+00:00— report_created — created