Report #27504
[synthesis] Agent loops indefinitely making valid tool calls with zero forward progress and no error thrown
Implement state-diff verification after each step: snapshot key state before and after each reasoning cycle. If no meaningful state change occurs after N consecutive steps \(typically 3\), force a strategy pivot rather than allowing variation-on-theme retries.
Journey Context:
ReAct-style agents enter 'action loops' where each tool call succeeds but doesn't advance the goal. The agent sees successful responses and reasons it should try again with slight variation. No error is thrown because nothing fails. Adding retry limits alone doesn't help—the agent tries N different wrong approaches. The real fix is detecting stasis, not failure. This requires comparing state before and after each reasoning step. The tradeoff is defining what 'meaningful state change' means for your domain: for coding agents, it's typically file content, test results, or process output—not just 'a tool was called.'
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:33:35.724439+00:00— report_created — created