Checking Retry Transparency in Agent Tools
Jiapeng Li (Microsoft)
Key points
From the paper's conclusion- We study how to test the recovery guarantee behind an agent tool's local idempotence claim.
Abstract
A successful retry does not necessarily put the earlier attempt behind it. An old write may still overwrite a later acknowledged update; a partially executed file write may even empty a file after the retry has returned successfully. We study how to test the recovery guarantee behind an agent tool's local idempotence claim. Our prototype takes manually constructed, source-backed effect contracts and checks them at two levels: atomic retry-absorption obligations and bounded interleavings of successful-attempt microsteps. It emits model witnesses, conditional admission decisions, and explicit uncertainty when a completion boundary cannot be justified. The evaluation preserves a locally frozen purposive frame of 6 MCP components from 4 repositories; selected paths in 5 execute on the study machine and one backend remains unavailable. Real tests include file, graph, Git-index, document-update and browser bindings, together with a native Qdrant development matrix. In 27 missing-reply checks, the selective rule completes six justified workflows without an acknowledged goal violation, whereas strict coalescing completes none and blind retry completes nine with three violations. An intent-aware Porcupine specification independently agrees with all 156 complete-history oracles. These are mechanism-selected tests, not defect-prevalence estimates or a new linearizability algorithm. The contribution is an executable recovery-contract workflow that makes effect granularity, logical identity and completion assumptions testable rather than inheriting them from a tool annotation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Permission to Retry: A Study of Authorization and Recovery in AI Agent WorkflowsarXiv · 2026
- RetryBench: Separating Retry Permission from Recovery Outcomes in GPT Tool UsearXiv · 2026
- Idempotency Is Not Recovery: A Fault-Injection Study of Language-Model Agent Tool ActionsarXiv · 2026
- Agent Recovery Gone Wrong: Measuring Harm Beyond Duplicate CallsarXiv · 2026
- Scoring Recovery-Time Agent Security: Proposals, Effects, and Retry InstructionsarXiv · 2026
- Authority at Commit Time: Reject-and-Rerun Semantics for Governed Agentic SystemsarXiv · 2026