Report #49736
[architecture] Agents keep handing the task back and forth with no progress burning through tokens
Enforce a hard maximum handoff limit per task and implement state-hash checking to detect if the exact same state or tool call is repeated consecutively.
Journey Context:
LLMs lack an intrinsic sense of progress. If an agent cannot complete a task, it often defaults to handing it back to the previous agent or retrying the same failed tool call. Without a hard limit on handoffs \(e.g., max 5 handoffs per workflow\) and a check for repeated state, the system will loop infinitely. When the limit is hit, the system must fallback to a human or a high-level summarizer to break the cycle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:57:38.785561+00:00— report_created — created