"Shall We Approve?" Consequence-Aware Approval for Autonomous Coding Agents

Weiheng Wu, Junkai Chen, Zhensu Sun, Jieke Shi, Yunbo Lyu +1 more
10/29/2026
cs.CRcs.AI

No official code found. Best implementation: wudaoz/Caper (5 stars).

Abstract

Coding agents increasingly rely on automated approvers to decide whether a proposed shell command may run. Existing approvers, from rule-based checkers to guardrail models and deployed permission classifiers, base their decisions on the text of the request and command.

Show full abstract

Yet a command's behavior depends on the code it invokes and the state of the workspace, and systems that observe file changes leave the assessment to the agent or a human after execution. We present Caper, a consequence-aware approval mechanism that pre-executes each command in a snapshotted sandbox, provides an independent approver with a bounded report of its observed effects, commits allowed commands, and rolls back blocked ones with a reason the agent can act on. Compared with six existing systems, Caper achieves the lowest harmful-outcome rate on SABER (6.7% versus at least 14.8%) and YoloFS-Ext, a benchmark we build in which harmful behavior is hidden inside invoked tools (7.8% versus at least 35.3%), while blocking 1.0% of the safe twins of the dangerous tasks in YoloFS-Ext.

View on arXivView PDF

Code Implementations(1)

wudaoz/CaperCommunity25%

“Shall We Approve?” Consequence-Aware Approval for Autonomous Coding Agents

50

Similar Papers

Cite this paper

@article{wu2026shall,
  title  = {"Shall We Approve?" Consequence-Aware Approval for Autonomous Coding Agents},
  author = {Weiheng Wu and Junkai Chen and Zhensu Sun and Jieke Shi and Yunbo Lyu and David Lo},
  year   = {2026},
  eprint = {2610.40753},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.40753v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.40753.svg)](https://codeofpaper.com/paper/2610.40753)

Discussion