Report #47542
[architecture] Agents stuck in infinite handoff loops passing the same task back and forth
Implement a global handoff counter or TTL \(Time-To-Live\) per task. If an agent hands off a task more than N times without resolution, route to a fallback supervisor or terminate with an error.
Journey Context:
Without a termination condition, two specialist agents might continuously determine the task belongs to the other \(e.g., coding agent says 'ask planner', planner says 'ask coding'\). This is a classic distributed systems livelock. Agents lack the implicit social cues humans use to break deadlocks. A hard TTL or counter forces a circuit break, trading infinite loops for occasional manual intervention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:16:46.003133+00:00— report_created — created