arXiv:2610.36570cs.AIOct 2026

Manuscript Offprint

arXiv:2610.36570

CASEL: Consequence-Aware Selective Execution for Reliable Long-Horizon Tool-Using Agents

Yanyan Zhang, Fei Shen, Ting Yan, Hao Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

1 st^{st} Yanyan Zhang

Carnegie Mellon University

Pittsburgh, PA 15213, USA

zhangyanyanusa@gmail.com

2 nd^{nd} Fei Shen

Feinity LLC

Sacramento, CA 95816, USA

shenfei2031@hotmail.com

3 rd^{rd} Ting Yan

Computer Science Department

Dartmouth College

Hanover, NH 03755, USA

ting.yan.gr@dartmouth.edu

4th4^{th} Hao Zhang ∗^{*}

Independent Researcher

Los Angeles, CA 90095, USA

∗^{*}Corresponding author: alex1995101099@gmail.com

Abstract—Tool-using language agents increasingly modify external systems, yet most runtime safeguards allocate scrutiny by generic uncertainty scores or coarse mutation heuristics. We introduce CASEL (Consequence-Aware Selective Execution Layer), a model-agnostic runtime allocation policy that combines calibrated failure probability, state-dependent consequence, reversibility, ambiguity, and evidence freshness to choose, for each proposed tool call, among direct execution, verification, sandboxing, clarification, approval, and abstention by minimizing a per-mode cost. We formalize direct execution as selective prediction and state and test the validity conditions of a finite-sample threshold and a trajectory risk ledger. In a controlled simulation over 20 seeds with 120,000 test actions each, in which every method has the same intervention menu and the same compute cost, CASEL reduces harmful-side-effect trajectories from 14.75 percent for an uncertainty-ranked gate to 7.02 percent and mean normalized harm from 0.184 to 0.123. A gate ranked by the product of failure probability and consequence reaches similar harm (5.82 percent, 0.120) but sends 45 percent more actions to human approval, and removing reversibility-aware routing raises the rate to 15.53 percent. A trajectory-level risk budget, in contrast, increases harm at equal cost (11.82 percent). Intervention effectiveness is assumed, not measured: the results rank allocation rules under the simulator's assumptions and do not establish deployment effectiveness.

Index Terms—LLM agents, tool use, reliability, selective prediction, uncertainty calibration, runtime verification, risk-aware execution.

I. INTRODUCTION

Language-model agents increasingly act on external systems over long trajectories, and as models grow more capable they become autonomous domain-specific agents, e.g., SP-Mind runs complete spatial-proteomics analyses with specialized tools. [1]^{[1]} They now also generate device configurations for multi-vendor optical transport networks, [2]^{[2]} where an erroneous change can affect live services. Benchmarks such as WebArena, τ\tau-Bench/ τ2\tau^{2}-Bench, and AgentDojo expose failures from stale state, planning errors, unsafe tool use, and adversarial observations. [3]−[6]^{[3]-[6]} Reflection and self-critique improve reasoning, [7]^{[7]}, [8][8] and recent work studies clarification, abstention, mutating-action verification, least privilege, and transactional containment. [9]−[13]^{[9]-[13]} These mechanisms address different failure sources but leave a common allocation question: how much scrutiny should be spent before a particular action is allowed to change the world?

Uncertainty alone does not answer it. Two actions may share a 20% probability of error, yet a read-only search is cheap to retry while an irreversible transfer is costly; an uncertainty-only gate treats them alike, and a mutation-only gate still conflates a reversible edit with an irreversible commitment.

We propose CASEL, a runtime layer between an arbitrary base agent and its tool executor (Figure 1). At each step the controller estimates failure probability p^t\hat{p}_t, consequence c^t\hat{c}_t, reversibility ρt\rho_t, ambiguity gtg_t, and evidence staleness dtd_t, and selects a graded intervention. Scrutiny should scale with consequence-weighted risk rather than generic confidence, the intervention should match the action's reversibility, and direct execution should be calibrated as selective prediction. [14]−[16]^{[14]-[16]} CASEL is therefore not another uncertainty gate but a runtime allocation policy that decides where scrutiny is worth its cost and calls existing safety mechanisms as its intervention branches.

Our contributions are: (i) a consequence-aware execution objective with six intervention modes, five of which are exercised (abstain and the staleness signal dtd_{t} are not); (ii) explicit validity conditions for a finite-sample direct-execution threshold, shown to bind and hold over a sweep of ϵ\epsilon, and an analysis of a trajectory risk ledger whose premise fails in practice; and (iii) a reproducible controlled evaluation in which all comparators share the intervention menu and cost, with ablations, paired significance tests, stress tests, and a negative result for trajectory budgeting, plus a deployment path.

References (32)