Report #83591
[synthesis] Agent retries after a rate limit error but makes illogical tool calls on the second attempt
Ensure retry logic resets the agent's scratchpad or trajectory to the state before the failed step, rather than appending the error message and continuing, which skews the agent's perceived history.
Journey Context:
Standard software engineering uses exponential backoff to retry failed API calls. In LLM agents, appending 'Error: Rate limit exceeded' to the context and retrying changes the prompt distribution. The agent might interpret the error as a failure of the tool rather than the network, pivoting to a worse strategy. It looks like a successful recovery, but the strategy is compromised. This synthesizes standard retry patterns with LLM prompt sensitivity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:53:33.775537+00:00— report_created — created