Microsoft Research introduces PDD Kit for verifying agent-written Rust code
Microsoft Research introduced PDD Kit, a workflow that converts developer intent into a formal specification and uses Verus to mechanically prove that agent-written code meets the specification for every covered input. Testing remains available where formal proofs cannot reach. In GitHub Next’s Chopin, the team used PDD Kit to verify login logic in the Rust-based Pet Store storefront; the report says the process uncovered existing bugs and was added to the build and CI workflow.
PDD Kit offers a formal-assurance layer for code generated by coding agents, where exhaustive review can be difficult and agent-written tests may reflect the implementation rather than the requested behavior.

At a glance
- Formal methods for everyday software. PDD Kit helps you turn your intent into a formal spec, then proves the code your agent writes for every input and uses tests where a proof can’t reach. It takes formal methods beyond niche, specialist work to engineers without a formal methods background and to everyday applications, like the full-stack web app shown here.
- Exhaustive line-by-line human review can become difficult to scale as AI agents generate increasingly large amounts of code. The plan is supposed to be the contract between you and a coding agent, but nothing actually forces the agent to follow it. The tests it writes usually check what it built, rather than what you asked for.
- PDD Kit makes the agent keep the plan. It works with you to turn your intent into a formal specification in Verus (opens in new tab), proves the agent’s code meets that spec for every input, and falls back to tests where a proof can’t reach.
- We tried it on a full-stack web app. Inside GitHub Next’s Chopin (opens in new tab), we used PDD Kit to formally verify the login logic of Pet Store, a Rust (opens in new tab) storefront. Verus hardened the code and uncovered existing bugs, proving the absence of login bugs with respect to the specification. The developer reviewed the intent and never read the generated code line-by-line.
#Microsoft Research#PDD Kit#Verus#Z3#GitHub Next#Chopin#Pet Store#Rust