Report #63826
[architecture] Agents bounce control back and forth indefinitely due to ambiguous routing logic
Implement a maximum delegation depth counter in the orchestrator state. Increment it on every handoff. If it exceeds the threshold, terminate the loop and route to a fallback or human.
Journey Context:
In autonomous systems, agents can get stuck in 'I don't know, you handle it' loops. Without a hard limit on handoffs, the system will burn through tokens until it hits a max token limit, resulting in a confusing error. A depth counter provides a clean, deterministic circuit breaker. Tradeoff: might cut off legitimately deep recursive problem solving, but such cases are rare.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:36:59.669182+00:00— report_created — created