AI
New Framework Improves Safety of AI Agents That Control External Systems
Researchers propose CASEL, a runtime decision system that prioritizes which tool calls by AI agents need verification, approval, or sandboxing based on potential consequences and reversibility.
As language-based AI agents take on increasingly complex tasks that modify external systems, ensuring their reliability has become critical. A new research paper introduces CASEL (Consequence-Aware Selective Execution Layer), a framework designed to intelligently route each proposed action by an AI agent to one of six possible execution modes—balancing speed with safety.
How CASEL Works#
Rather than applying a uniform safeguard to all actions, CASEL evaluates each tool call individually by considering multiple factors:
- Failure probability — how likely is the action to fail
- Consequence severity — what harm could result if something goes wrong
- Reversibility — whether the action can be undone
- Ambiguity — clarity of the agent's intent
- Evidence freshness — recency of relevant information
Based on these inputs, the system assigns each action to one of six modes: direct execution, verification, sandboxing, clarification, human approval, or abstention. The goal is to minimize cost—both in terms of harmful outcomes and resource consumption—by routing high-risk actions to intensive oversight while allowing low-risk ones to proceed immediately.
Simulation Results#
Researchers tested CASEL in a controlled simulation with 120,000 test actions across 20 random seeds. When every method had access to the same intervention tools and compute budget, CASEL significantly outperformed simpler baseline approaches:
- CASEL reduced harmful-side-effect trajectories to 7.02 percent, compared to 14.75 percent for a simple uncertainty-ranked gate
- Mean normalized harm dropped from 0.184 to 0.123
- A consequence-aware baseline (failure probability × consequence) achieved similar harm reduction but required sending 45 percent more actions to human review
- When reversibility-aware routing was removed, harmful trajectories increased to 15.53 percent
Limitations and Next Steps#
The researchers emphasize that their evaluation occurs entirely within a simulator where intervention effectiveness is assumed rather than measured. The results rank different allocation strategies under the simulator's specific assumptions and do not yet establish whether CASEL would perform effectively in real-world deployment scenarios. Real-world testing would need to account for variability in intervention success, adversarial scenarios, and actual system consequences.

