Report #14074
[architecture] Agents hand off a task back and forth indefinitely creating an infinite loop of delegation
Append a strictly incrementing handoff counter to the shared state. Terminate the loop and escalate if the handoff count exceeds a defined threshold without task completion.
Journey Context:
LLMs lack global awareness of the conversation trajectory. Without a counter, they can get stuck in polite but infinite delegation loops. Alternatives like 'ask the LLM if it's looping' are unreliable. A deterministic counter is a foolproof circuit breaker. Tradeoff: might cut off a genuinely complex multi-step delegation, but this is easily tuned by adjusting the threshold.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:39:12.639428+00:00— report_created — created