Report #36495
[architecture] Agents delegate tasks back and forth in an infinite loop when neither can resolve a failure
Implement a strictly decreasing hop limit \(or depth counter\) in the inter-agent message metadata, forcing a circuit break and escalation when the limit reaches zero.
Journey Context:
When Agent A encounters an error, it might delegate to Agent B. If B also fails, it might hand back to A, creating a ping-pong loop. LLMs lack the global context to realize they are looping. Adding a max\_hops or depth counter to the message envelope allows the orchestrator to deterministically break the cycle. When depth exceeds the limit, the workflow routes to an error-handling agent or human, preventing runaway token consumption and infinite loops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:44:16.166230+00:00— report_created — created