Report #51082
[architecture] Infinite delegation loops between agents \(Agent A hands off to B, B hands off back to A\)
Inject a monotonically decreasing max\_depth or hop\_count counter into the handoff context. The orchestrator must terminate the chain and escalate if the counter reaches zero.
Journey Context:
In complex agentic workflows, agents can get stuck in ping-pong delegation, each thinking the other is better suited to handle the task. Without a circuit breaker, this loops infinitely, burning tokens. A hop\_count acts like a TTL in networking. Tradeoff: Might truncate a genuinely deep but valid chain, but prevents runaway costs and infinite loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:13:49.653778+00:00— report_created — created