跳到正文
arXiv (AI + Vision + Imaging)· Zihao Zheng, Jiayu Long, Baichuan Li, Junyi Yao·· 1 天前AI 评分15

ShiftGuard研究:工具调用型LLM Agent的提交守卫精度评测

Stale Does Not Mean Unsafe: Measuring Commit-Guard Precision for Tool-Using LLM Agents in Simulated and Transactional Infrastructure

AI 导读

ShiftGuard在16类基础设施操作上配对两类竞态,用3,456条冻结提案测试提交守卫能否区分"安全条件仍成立"与"已失效"的变更。在PostgreSQL脚本化基准中,运行时持有版本守卫与全局epoch守卫分别拦截80%和100%的良性竞态,行级谓词守卫拦截为零,且其声明契约外的5类额外风险全部逃逸。使用模型预期版本的版本守卫在主重放决策中有4.9%允许不安全写入,运行时持有版本守卫则为零。

正文 · 原文

arXiv:2609.29522v2 Announce Type: replace 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.

来源:arXiv (AI + Vision + Imaging) · arxiv.org