AI
New Benchmark Tests How AI Models Decide Whether to Retry Failed Tool Calls
Researchers introduce RetryBench to evaluate how well language models handle the tricky problem of retrying tool operations without causing unwanted side effects.
When an AI agent using external tools encounters a timeout, it faces a genuine dilemma: attempting the operation again might duplicate work that already completed, but skipping the retry could leave the task unfinished. RetryBench, a new evaluation framework, aims to measure how well large language models navigate this critical decision.
The Problem with Timeouts#
Tool-using AI agents regularly interact with external services—databases, APIs, payment systems—where the stakes of miscalculation are high. A retry without confirmation risks executing the same operation twice, corrupting data or charging users multiple times. Yet refusing to retry when the original attempt actually failed leaves work incomplete. The challenge is that from the agent's perspective, a timeout is ambiguous: it could mean the operation never started, it completed but the response was lost, or it's still processing.
How RetryBench Works#
The new benchmark evaluates decisions across three dimensions: whether the retry is justified by proof of idempotency (a guarantee that repeating the operation produces the same result), whether it avoids both duplicate effects and missing outcomes, and whether it ultimately achieves task completion. Rather than settling for a single execution scenario, RetryBench replays decisions across all possible hidden worlds consistent with what the model observes, capturing the full range of consequences.
Key Findings from Testing#
Researchers ran two controlled studies using four synthetic software-engineering tasks, analyzing 1,728 total model decisions. The first study examined how phrasing affects whether GPT models recognize and reuse idempotency keys—a built-in mechanism to prevent duplicates. Remarkably, GPT-5.6 Luna's behavior shifted dramatically based on terminology: it reused a valid idempotency key in just 10 out of 40 trials when labeled a "Candidate recovery key," but in 39 out of 40 when relabeled an "Alternative key string." Other model versions showed less sensitivity to wording. The second study revealed that when retry options were listed first, some models chose to retry 17 to 27 percentage points more frequently, suggesting susceptibility to option-order bias—a well-known cognitive pattern in human decision-making.
What the Findings Mean#
The results highlight how fragile tool-use safety can be. Small changes in how information is presented shift model behavior substantially, even when the underlying guarantee remains identical. This sensitivity matters because production systems may phrase instructions differently across teams or update documentation without realizing the impact. The researchers note their work is constrained to specific phrasings, a handful of tasks, and particular model versions, leaving room for further investigation into whether these patterns generalize.

