Report #47724
[architecture] Agents enter infinite delegation loops, bouncing tasks back and forth until context window exhaustion or max token limits
Enforce a strictly monotonically decreasing depth or budget counter in the shared state that decrements on every agent handoff, and hard-terminate the workflow when it hits zero.
Journey Context:
In autonomous setups, Agent Coder might hand off to Agent Tester. Agent Tester finds a bug, hands back to Coder. Coder fails to fix it, hands back to Tester. Without a circuit breaker, this loops forever. Token limits eventually kill it, but at massive cost. A depth counter is a simple, foolproof architectural constraint that prevents runaway costs, forcing an escalation or termination when the budget is exhausted.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:34:52.303212+00:00— report_created — created