"Shall We Approve?" Consequence-Aware Approval for Autonomous Coding Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance also fits: Software engineering coding agents
Abstract (arXiv)
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. 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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 32 of its 56 references that are in the map. Submitted 29 Oct 2026.
Builds on
32 of 56 references.
Closest ancestors · 15
Same direction, newest first
- 2026ToolGuardian: Declarative Security for AI Agent-Tool Interactions23 Jul
- 2026CARE: Pre-Execution Command Verification for Shell-Executing LLM Agents21 Jul
- 2026One Goal, Many Commands: Characterizing Denylist Fragility in AI Agents14 Jun
- 2026SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces31 May
- 2026Overeager Coding Agents: Measuring Out-of-Scope Actions on Benign Tasks18 May
- 2026Do Coding Agents Understand Least-Privilege Authorization?14 May
- 2026Measuring the Permission Gate: A Stress-Test Evaluation of Claude Code's Auto Mode4 Apr
- 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editors26 Sep
- 2025Progent: Securing AI Agents with Privilege Control16 Apr
- 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning26 Mar
- 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
3 more
Other references · 17
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,469
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,155
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 566
- 2025Qwen3Guard Technical Reportcited by 184
- 2025Contextual Agent Security: A Policy for Every Purposecited by 72
- 2020Backstabber's Knife Collection: A Review of Open Source Software Supply Chain Attackscited by 67
- 2026SWE-chat: Coding Agent Interactions From Real Users in the Wildcited by 64
5 more
- 2024GoEX: Perspectives and Designs Towards a Runtime for Autonomous LLM Applicationscited by 31
- 2026How Coding Agents Fail Their Users: A Large-Scale Analysis of Developer-Agent Misalignment in 20,574 Real-World Sessionscited by 19
- 2026Coding Agents Are Guessing: Measuring Action-Boundary Violations in Underspecified DevOps Instructionscited by 17
- 2026Coding Agents Don't Know When to Actcited by 10
- 2026Permission Denied: Policy-Graded Evaluation of Coding Agents in Hardened Environmentscited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026SpecGuard: Proving a Task Is Broken Before the Agent Cheats
- 2026Look Before You Leap: Pre-Action Verification for LLM Agents
- 2026When a Permitted Action Completes a Forbidden Workflow: Designing Consequence-Oriented Approval for LLM Agents
- 2026The Balkanization of Execution-Security Research for AI Coding Agents: Isolation, Access Control, and Time-of-Check-to-Time-of-Use Vulnerabilities
- 2026V3AST-Bench: Verifiable, Valid, and Versatile Safety Evaluation for Coding Agents
- 2026Beyond Prompts: Runtime Contracts for Coding Agents
- 2026From Approval to Abuse: Privilege Escalation Attacks on Harness-Protected Coding Agents
- 2026Learning When and How to Intervene: A Hindsight-Distilled Sentinel for Coding Agents