AI
Formal Verification Brings AI Safety Guarantees to Framework Level, Not Alignment
Researchers propose a new approach to AI safety that verifies the software layer controlling agent actions, independent of whether the model itself is aligned.
A team of researchers has introduced a novel safety framework that shifts where AI safety guarantees are anchored—from the unpredictable internals of AI models to the concrete boundaries of the software system that controls them.
The Shift to Containment Verification#
Most existing safety approaches try to intervene in the model itself, but this strategy has a fundamental problem: the properties you're relying on can't be fully verified. The new containment verification paradigm takes a different route. Instead of trusting learned behavior, it embeds safety guarantees directly into the agentic framework—the software layer through which AI agents interact with the world. This makes safety enforceable by design rather than dependent on uncertain alignment properties.
How It Works#
The approach treats an AI system as an unconstrained oracle that can emit any value within a typed action space. The framework's containment layer must then enforce boundaries for every possible action the AI generates. Researchers formalize this under "havoc oracle semantics," proving that safety properties—defined over boundary events, action arguments, and system state—hold universally through a mathematical technique called forward-simulation refinement.
The team mechanized their proofs in Dafny, a formal verification tool, and demonstrated the concept by verifying PocketFlow, a minimal agentic LLM framework designed for this purpose. They also developed an agentic synthesis pipeline to automatically generate the specification, operational model, and refinement proof while maintaining an information barrier against circular reasoning.
Why This Matters#
By grounding safety in the framework boundary rather than model behavior, the guarantee becomes independent of alignment—a property that either holds for all possible model outputs or it doesn't. This represents what the authors claim is the first deductive formal verification of an agentic framework, offering a more trustworthy foundation for deploying AI systems in high-stakes environments.

