TRANSMISSION // 2611.31318v1
What Should an AI Agent Do After a Tool Times Out?
Source published
A study finds that judging only whether a task’s goal exists can miss harmful recovery actions. Its results also show how instructions and tool-provider guarantees shape safe recovery.

When an AI agent’s tool call times out, the change it requested may be absent, completed, or still underway. A new measurement study examines what agents propose next, what simulated tools actually commit, and why those records can tell different stories.
A timeout does not tell an AI agent whether its attempted action took effect. A payment might have gone through even though the reply was lost; alternatively, the payment may never have happened. Retrying could finish the task—or create a duplicate. And if an error message recommends changing the recipient or resource, following it could turn recovery into an unauthorized action.
That uncertainty raises a basic evaluation question: should an agent be judged by whether the requested goal exists at the end, or by how it tried to achieve it and what effects it actually caused? Paul Deepakraj Retinraj’s preprint, Scoring Recovery-Time Agent Security: Proposals, Effects, and Retry Instructions, argues that goal-presence scores alone can overlook harmful actions.
Separate the suggestion, the decision and the effect
The study builds an executable test environment around three possible states of an initial write: it never happened, it committed but its acknowledgment was lost, or it is still pending. Simulated invoice, ticket and payment tools let researchers compare what an agent proposes with what a runtime permits and what the tool records as a committed effect. An independent scorer checks the resulting ledger against the task’s authorized details.
This distinction matters because a proposal is not the same as an effect. A changed recipient or operation key can be proposed and then denied; a retry may use the correct key but still be unsafe if the original action is underway. The paper also tests whether a tool’s key-handling and status reports meet particular guarantees. Those guarantees are part of the experiment, not incidental details.
The researchers first audited 12 supplied traces; they did not rerun the model that produced them. Two records counted as complete under a goal-presence measure despite including an unauthorized invoice send. Scoring the ledger instead changed apparent completion from 10 of 12 traces to 8 of 12. The small audit illustrates a measurement problem, not an estimate of how often agents behave this way generally.
Clearer instructions improved completion in these tests
In the larger API experiments, the original task wording produced 39 valid recoveries among 576 absent-state episodes across two model aliases. “Absent-state” means the initial write had not taken effect, so a successful recovery needed to create the authorized effect. A combined clarification—explaining that “exactly one” means one committed effect and giving a step-by-step recovery recipe—produced 576 valid recoveries out of 576.
A follow-up separated those two additions, using three rollouts for each absent-state condition. The definition alone yielded 276 valid recoveries out of 288; the recipe alone yielded 288 out of 288. These results show a marked difference between the tested wordings. They do not establish that either sentence, by itself, would have the same effect in other tasks or deployments: the combined wording followed inspection of earlier traces, and the later wording comparisons were exploratory.
The researchers also found a possible availability concern. In the repeated wording test, one model alias, Luna, had eight fewer valid recoveries out of 72 under malicious than neutral messages, both with the original wording and with the definition-only wording. That is an 11.1 percentage-point difference in these particular episodes. The authors caution that repeated tasks and shared templates make the observations dependent; the result is a descriptive signal, not proof that malicious messages generally cause recovery failures.
Attacks did not demonstrate a live break
Stronger, researcher-authored attack messages did not produce unauthorized or changed-key proposals, unauthorized effects, or duplicates in the tested API episodes. Separate Claude Code experiments likewise recorded no such deviations, including a 432-episode calibration across Opus, Sonnet and Haiku 5.5. This is not evidence that the systems are broadly immune: the attacks did not establish a live positive control, the tasks stated authority explicitly, and the Claude setup differed from the API setup. With no harmful model proposal in these tests, the study cannot show that its runtime controls successfully stopped one.
A trajectory audit did uncover six cases in which Luna proposed the authorized original-key write after seeing a pending status. Five proposals were denied for lack of evidence; one was deduplicated. That detail shows why proposal logs, runtime decisions and final effects answer different questions. The study’s bounded checks also found that a non-atomic provider can allow a delayed original write and a retry to both commit. A stale status reading that incorrectly says “absent” can undermine an evidence-based gate. These are constructed contract tests and bounded checks, not measured failure rates for real providers or proofs of safety in unrestricted systems.
The authors’ main contribution is therefore a way to measure recovery more carefully, plus a diagnosis of how wording and provider contracts affect the result—not a demonstration of a general-purpose defense. The experiments use simulated business tools, authored scenarios, limited model configurations and mutable hosted model aliases. The work is an arXiv preprint, and its claims should be read with those limitations in mind.
- AI agents
- tool-use security
- agent recovery
- timeouts
- idempotency
- AI evaluation
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
When an AI tool call times out, did it still happen?
Supporting evidence: Both studies show why a timeout alone cannot establish whether an effect occurred: Retinraj et al. examine agent recovery proposals and simulated provider states, while Waghmare and Sufi find that retry-all duplicates effects in their tested lost-reply-after-commit cases and that conservative handling avoids cross-supplier duplication in selected scenarios. These are compatible results from different controlled setups, not evidence of real-provider reliability or a general defense.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.31318v1 — Original paper
Excerpt reference:
static/papers/2611.31318v1.md:28-66
Basis: Paper text
Source SHA-256:6212399e99e081f5de4b1c0e8b943c46ba28c1798a2ac56148bad5075bf089af2611.31318v1 — Original paper
Excerpt reference:
static/papers/2611.31318v1.md:220-268
Basis: Paper text
Source SHA-256:6212399e99e081f5de4b1c0e8b943c46ba28c1798a2ac56148bad5075bf089af2611.26966v1 — Original paper
Excerpt reference:
static/papers/2611.26966v1.md:221-293
Basis: Paper text
Source SHA-256:ca5db5a13ded0816efc18359a00cb8f9b366fe7433b5c2a7f4bb1145e70296b32611.26966v1 — Original paper
Excerpt reference:
static/papers/2611.26966v1.md:513-610
Basis: Paper text
Source SHA-256:ca5db5a13ded0816efc18359a00cb8f9b366fe7433b5c2a7f4bb1145e70296b3
When an AI tool call fails, did it still work?
Supporting evidence: Both papers distinguish task completion or acknowledgement from what actually happened at the target: Retinraj et al. report that goal-presence scoring can hide harmful recovery actions, while Xu reports that some runtime configurations can leave effects orphaned or outcomes ambiguous despite duplicate suppression. The former audits agent recovery traces; the latter injects faults into one controlled runtime, so their results support the measurement distinction rather than a shared performance claim.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.31318v1 — Original paper
Excerpt reference:
static/papers/2611.31318v1.md:28-66
Basis: Paper text
Source SHA-256:6212399e99e081f5de4b1c0e8b943c46ba28c1798a2ac56148bad5075bf089af2611.31318v1 — Original paper
Excerpt reference:
static/papers/2611.31318v1.md:1069-1077
Basis: Paper text
Source SHA-256:6212399e99e081f5de4b1c0e8b943c46ba28c1798a2ac56148bad5075bf089af2611.23353v2 — Original paper
Excerpt reference:
static/papers/2611.23353v2.md:16-79
Basis: Paper text
Source SHA-256:78f8224a1e3a4a65fe507f46562f8cf3617f36095e8a9788d9a437060dc604772611.23353v2 — Original paper
Excerpt reference:
static/papers/2611.23353v2.md:962-1048
Basis: Paper text
Source SHA-256:78f8224a1e3a4a65fe507f46562f8cf3617f36095e8a9788d9a437060dc60477
How an AI agent receives an error can change what it does next
Supporting evidence: Both studies find that recovery behavior depends on how recovery information is presented: Retinraj et al. report substantial changes in valid recovery across task wording, and Woo et al. find that delivery form changes agents’ next actions in controlled error studies. The populations, interventions, and outcomes differ; Woo et al. also caution that retry guidance for side-effecting tools requires safeguards, so these findings do not establish that guidance makes retries safe.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.31318v1 — Original paper
Excerpt reference:
static/papers/2611.31318v1.md:28-66
Basis: Paper text
Source SHA-256:6212399e99e081f5de4b1c0e8b943c46ba28c1798a2ac56148bad5075bf089af2611.31318v1 — Original paper
Excerpt reference:
static/papers/2611.31318v1.md:1029-1068
Basis: Paper text
Source SHA-256:6212399e99e081f5de4b1c0e8b943c46ba28c1798a2ac56148bad5075bf089af2611.11581v1 — Original paper
Excerpt reference:
static/papers/2611.11581v1.md:13-59
Basis: Paper text
Source SHA-256:605264d17404b0dd9d47fb3ea6b31812563307c215129ade15ea34b60b33f6282611.11581v1 — Original paper
Excerpt reference:
static/papers/2611.11581v1.md:952-1012
Basis: Paper text
Source SHA-256:605264d17404b0dd9d47fb3ea6b31812563307c215129ade15ea34b60b33f628
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
When AI Agents Retry, Harm May Go Beyond Duplicates
Source published
Shared keywords: ai agents
When an AI tool call fails, did it still work?
Source published
Shared keywords: ai agents
When an AI tool call times out, did it still happen?
Source published
Shared keywords: ai agents
AI agents can resume after failure—but often don’t recover
Source published
Shared keywords: agent recovery, ai agents
Failed AI agents often had evidence of their mistakes, a trace study finds
Source published
Shared keywords: agent recovery