Report #36692
[architecture] Two agents continuously hand off to each other creating an infinite loop
Implement a strictly monotonically increasing handoff counter or depth limit in the orchestrator. If handoff\_depth exceeds a threshold N, terminate the loop and escalate to a fallback or human.
Journey Context:
Autonomous agents lack global awareness of the workflow graph. Without a depth limit, circular dependencies in agent capabilities cause infinite loops. Tradeoff: might prematurely terminate a valid deep workflow, but N=5 or 10 is usually safe and prevents runaway compute costs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:03:33.797405+00:00— report_created — created