Report #96699
[synthesis] Agent retries the exact same failing tool call indefinitely without changing arguments
Implement a 'state diff' check in the orchestration loop: if the agent's proposed tool call and arguments are identical to the previous failed attempt, inject a forced prompt variation or abort.
Journey Context:
Single sources discuss LLM recency bias and retry loops. The synthesis reveals that if an error message doesn't provide enough new information to shift the LLM's weights, the agent will repeat the exact same logic and loop indefinitely. Simply increasing max\_retries doesn't work. The orchestrator must detect stagnation \(identical consecutive actions\) and forcibly perturb the agent's context, a pattern only visible when analyzing step-by-step action diffs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:53:44.039555+00:00— report_created — created