Report #87127
[synthesis] Agent silently loops on idempotent tool failures without escalating or changing strategy
Inject a deterministic state tracker that hashes the tool name and arguments; if the exact same call is made consecutively with a non-zero exit code, break the loop and inject a forced context shift prompt.
Journey Context:
LLMs struggle with stop conditions. If a tool fails due to a permissions issue, the LLM often reasons it was a transient failure and retries the exact same command. Because the state hasn't changed, the tool fails again. Standard retry mechanisms like exponential backoff make this worse by giving the agent time to repeat the mistake. The synthesis here is that LLM retry logic must be state-aware, not just time-aware. Detecting identical consecutive arguments is the only reliable circuit breaker against an agent confidently derailing into an infinite, silent loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:49:55.192325+00:00— report_created — created