Anvil verifier
Experimental framework for building Kubernetes controllers in Rust and formally verifying their liveness properties with machine-checkable proofs.
At a Glance
Anvil framework for building and formally verifying Kubernetes controllers, released under the MIT license (OSI-approved).
Engagement
Available On
Alternatives
Listed Dec 2026
About Anvil verifier
Anvil is an experimental framework from the anvil-verifier organization for building practical, formally verified Kubernetes cluster management controllers. Developers implement controllers in Rust, specify correctness properties in a formal language, and prove the implementation satisfies them. It is built on Verus, with specifications and proofs written in verus-tla.
What It Is
Anvil is a verification framework for Kubernetes controllers and operators. Controllers are written in Rust and use the kube client to talk to the Kubernetes API server, so they can be deployed in real clusters. The core property it verifies is Eventually Stable Reconciliation (ESR): a controller should eventually make the cluster state match the desired state and keep it there stably, despite failures and network issues. The README notes that verification still requires some expertise in SMT-based theorem proving.
Implementing controllers as state machines
Implementing a controller mostly means writing a reconcile() function for a custom resource type, structured as a state machine. Anvil's Reconciler trait defines an initial state, a state-transition function that returns a new state and one request to the API server (such as Get, List, Create, Update or Delete), and ending states for success or error. A shim layer issues the requests and feeds responses into the next transition. Example controllers include exec/ implementations and proof/ folders.
Welder: compositional verification
Welder extends Anvil to verify several controllers together. Each controller supplies a ControllerSpec with its ESR goal, liveness dependency, safety guarantee, environment and partial rely conditions, fairness assumptions and membership requirements. Developers then prove the COmpositional REconciliation (CORE) property for a set of controllers, starting with singleton sets and combining them with compose for independent sets or compose_dep when one depends on another's progress. Welder is only required for multi-controller verification.
Verified examples and research
The repository includes verified controllers for the builtin ReplicaSet, Deployment and StatefulSet workloads and a custom RabbitMQ controller, built with the upstream Kubernetes controllers and the official RabbitMQ operator as references. The work is described in papers at OSDI'24 and SOSP'26, with artifact branches for reproducing the results.
Collections
Popular collections
- Frameworks
Collection by @joemseifi
- Let Your Agents Talk to Each Other
Collection by @leftchannel
- See What Your Agent Is Doing remix
Collection by @joemseifi
- Let Your AI Read the Document, Not Just the Words
Collection by @priyashah
Add Anvil verifier to one of your collections.
Community Discussions
Be the first to start a conversation about Anvil verifier
Share your experience with Anvil verifier, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Anvil framework for building and formally verifying Kubernetes controllers, released under the MIT license (OSI-approved).
- MIT License applies to all parts of the Verifiable Controllers project
- Source code available on GitHub
- Rust framework built on Verus for verifying Kubernetes controllers
- Welder compositional verification merged into main branch
Capabilities
Key Features
- Build Kubernetes controllers in Rust
- Formal verification of controller liveness using Verus
- Eventually Stable Reconciliation (ESR) property
- Reconciler trait for state-machine style reconcile()
- Welder compositional verification of multiple controllers (CORE property)
- Compositional proof rules compose and compose_dep
- Uses kube client for deployment in real clusters
- Verified example controllers for ReplicaSet, Deployment, StatefulSet and RabbitMQ
