Papers
arxiv:2611.40161

RevGuard: Transactional, Version-Bound Contracts for LLM Document Editing

Published on Nov 29
· Submitted by
Jinkun Chen
on Dec 1
Authors:
,
,
,

Abstract

RevGuard, a transactional layer for large language model agents, prevents injected faults in localized LaTeX edits but leaves semantic correctness and task-utility benefits unproven.

Large language model (LLM) agents increasingly modify persistent shared artifacts, but natural-language instructions do not define safe write authority when a workspace changes between read and commit. We present RevGuard, a transactional layer that compiles instructions into immutable, version-bound edit contracts and commits only the exact previewed state. Across 144 episodes on licensed, compilable LaTeX repositories, every episode terminated and no injected fault committed. An LLM compiler proposes contracts, an independent LLM verifier reviews them, and deterministic projection installs least privilege. Evaluation separates setup reliability, commit safety, and task utility. Verification improved normalized authorization in 7/48 paired contracts without observed protection loss, but did not establish a task-utility benefit: verified and compiler-only contracts succeeded in 46/48 episodes, and strict non-inferiority remained unresolved. In a descriptive 900-cell cross-model stress test, contract protocols committed zero faults, unmanaged patching baselines committed over one hundred each, and safe whole-file replacement succeeded in under five percent of tasks. One fail-closed setup left the stress test inconclusive; a versioned repair passed targeted compatibility tests. A Git three-way baseline produced 176 clean merges across 180 episodes, yet committed 123 controlled faults. These results support containment of tested faults in localized LaTeX edits, not semantic or factual correctness.

Community

Paper submitter

Accepted to Findings of EACL 2027

Sign up or log in to comment

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2611.40161 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2611.40161 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2611.40161 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.