Stale Does Not Mean Unsafe: Measuring Commit-Guard Precision for Tool-Using LLM Agents in Simulated and Transactional Infrastructure
Abstract
Tool-using language models act on state that can change while they plan. A version check detects that change, but an audit update and a revoked approval have different consequences for a pending action. We study how commit guards distinguish changes that preserve an action's safety conditions from changes that invalidate them. ShiftGuard pairs both types of race across sixteen infrastructure operations and replays identical proposals under alternative guards. The primary simulator grid contains 3,456 frozen proposals from three models, with a separate 1,152-proposal replication on a fourth. We implement the same operations on PostgreSQL and score persisted effects with a requirements-based checker. Among benign races in the scripted PostgreSQL benchmark, the runtime-held version and global-epoch guards block 80% and 100%, respectively, while the row-local predicate guard blocks none. The predicate guard records zero unsafe writes on the declared benchmark conditions, and all five additional hazards outside its declared contract escape it. A version guard using the model's expected version permits unsafe writes on 4.9% of primary replay decisions. The runtime-held version guard records zero in the same replay. These results identify two design choices for agent tools: bind freshness tokens to runtime observations, and represent safety conditions explicitly at the point where the effect is applied.
Create a lesson
Metadata
- Comments
- Expanded revision with a PostgreSQL testbed, a comparison of version-token provenance, cross-table concurrency experiments, and additional results and reproduction details
Related papers
EATS: Scaling Tool-Use Experience for Medical Reasoning Agents
Shared title terminologycs.AIMingyuan Li, Tong Jia, Haoran Wang et al.
ExpGuard: Guarding Long-Horizon LLM Agents against Corrupted Experience
Shared title terminologycs.AIYuzhou Chen, Licheng Pan, Zhixuan Chu et al.
CAPE: Coordinating Calibration and Search for Tool-Use Policies
Shared title terminologycs.AIJiahao Wang, Xiaoxuan Chen, Aijun Yang et al.
PartHackBench: Certified Equal-Progress Stress Tests for Partial-Credit Tool-Agent Evaluation
Shared title terminologycs.AIHongye Yang, Zhihao Xie, Shengjun Xiong
If Agents Were Angels, No Governance Would Be Necessary: Out-of-Band Policy Enforcement at a Trusted Tool Boundary
Shared title terminologycs.AIMarc Millstone, Tyler Akidau, Johannes Brüderl et al.
Calibrated Enough to Know, Not Calibrated to Act: Fabricated Evidence Makes LLM Agents Commit to the Unknowable
Shared title terminologycs.AIPranav Aggarwal