Report #82220
[architecture] Multi-agent infinite delegation loop \(Agent A hands off to Agent B, who hands back to A\)
Implement a strictly decreasing 'depth' or 'hop' counter in the handoff payload. Reject handoffs back to the immediate caller unless a specific 'retry' flag is set, or enforce a Directed Acyclic Graph \(DAG\) for agent transitions.
Journey Context:
Agents often lack global awareness of the conversation trajectory. When Agent A encounters a sub-problem and delegates to Agent B, but Agent B lacks the context to solve it and delegates back, an infinite loop occurs. People try to fix this with complex prompt instructions \('do not delegate back'\), but LLMs ignore this under pressure. A deterministic, programmatic depth counter or DAG constraint in the orchestration layer is the only reliable fix.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:36:08.760708+00:00— report_created — created