Report #49983
[architecture] Two agents continuously delegate tasks back and forth due to ambiguous responsibilities exhausting tokens
Enforce a maximum recursion depth or hop count in the orchestrator, and explicitly define mutually exclusive scope boundaries in each agent's system prompt.
Journey Context:
When Agent A thinks Agent B should handle it, and Agent B thinks Agent A should handle it, you get an infinite loop. LLMs lack global awareness of the loop. The orchestrator must track the handoff count and hard-fail if it exceeds a limit. Tradeoff: A hard limit might prematurely terminate a complex but valid multi-step reasoning process, so the limit must be tuned to the workflow's expected depth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:22:39.804532+00:00— report_created — created