CASEL: Consequence-Aware Selective Execution for Reliable Long-Horizon Tool-Using Agents
Organizations: Carnegie Mellon University Pittsburgh, PA 15213, USA · Feinity LLC Sacramento, CA 95816, USA · Computer Science Department Dartmouth College Hanover, NH 03755, USA · Independent Researcher Los Angeles, CA 90095, USA
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.
Figures & tables
| Approach | Problem focus | Granularity | Risk signal | Intervention space | Relation to CASEL |
|---|---|---|---|---|---|
| SAGE-Agent [ 9 ] | Underspecified intent | Question | Spec. vs. model unc. | Clarify | Implements clarify ; triggered by |
| REFLEX [ 22 ] | Compute-efficient decisions | Decision | Model confidence | Call strong LLM | Orthogonal: chooses the decision maker |
| CA2I [ 23 ] | Pre-execution outcomes | Action sequence | Predicted return, risk | Select a plan | Orthogonal: admits whole plans |
| CASEL | Scrutiny before commit | Step | Six modes, cost-aware | — |
| Method (ranking) | Menu | Task Success | HSR | MNH | Direct Cov. | Cost | Approvals |
| Base | — | 0.428 | 100.0% | 0.000 | 0.0% | ||
| Always-Verify | verify | 0.180 | 0.0% | 1.000 | 0.0% | ||
| Mutation-Gated | verify | 0.196 | 58.0% | 0.420 | 0.0% | ||
| Uncertainty gate ( ) | verify | 0.233 | 51.4% | 0.486 | 0.0% | ||
| Consequence gate ( ) | verify | 0.195 | 51.4% | 0.486 | 0.0% | ||
| Uncertainty-Menu ( ) | full | 0.184 | 66.9% | 0.486 | 6.9% |
Runtime Enforcement for AI Agents
Runtime enforcement for AI agents checks and constrains actions as they execute, helping prevent unsafe or unauthorized effects.
See all 276 papers