Microsoft Research's PDD Kit proves agent-written Rust code matches a reviewed spec
PDD Kit turns a developer's intent into a Verus spec, has agents write code and proofs, and tests what proofs can't reach. It is a Rust-only research prototype.

TL;DR
- PDD Kit turns plain-language intent into a formal spec in Verus, proves agent-written code meets it for every input, and uses tests elsewhere [1].
- In a demo, it verified the login logic of Pet Store, a Rust web app of about 5,000 lines, inside GitHub Next's Chopin [1].
- It is a research prototype that only verifies Rust today [1].
Microsoft Research introduced PDD Kit on 5 November 2026, a toolkit for what it calls Proof-Driven Development [1]. It works with a developer to turn their intent into a formal specification in Verus, a proof language for Rust, then proves the agent’s code meets that spec for every input [1]. Where a proof cannot reach, it falls back to tests [1].
Why it matters
Coding agents can now ship features spanning tens or hundreds of thousands of lines, so reading every line of a pull request no longer scales [1]. Teams review a plan instead, but nothing forces the agent to follow it, and the tests an agent writes tend to check what it built rather than what was asked [1]. The authors argue that a mathematical proof answers “is this right?” for every input, while tests only cover the inputs they try [1]. Their view is that coding agents now make it practical to generate proofs, a job that used to need specialists [1].
How it works
PDD Kit runs inside Chopin, GitHub Next’s real-time, multiplayer planning environment [1]. Its pdd-plan workflow reads the code and asks questions before writing anything, then records the answers in an intent document the team reviews [1]. Two reviewer agents check that the formal spec matches the request and does not promise more than a proof can show [1].
After sign-off, pdd-prove has a coding agent write the implementation and the proof, and Verus checks them [1]. To catch weak specs, it plants one bug per spec clause in a scratch copy, and Verus must reject each one [1]. The Verus check itself is deterministic, using the Z3 solver with no model involved [1]. pdd-ship adds the check to CI so a broken proof fails the build [1].
The demo
The team used it on Pet Store, a full-stack Rust app of about 5,000 lines built with Axum, SQLite and a Leptos front end compiled to WebAssembly [1]. The developer’s request was two sentences: only the right password gets a token, and only admin accounts get admin tokens [1]. That became eight ensures clauses on a new login_flow function [1]. The post says Verus hardened the code and found existing bugs, and the developer merged without reading the generated code line by line [1].
Limits
PDD Kit is a research prototype and only verifies Rust, since Verus works on Rust [1]. The guarantees are only as strong as the six trusted pieces outside the proof, such as the bcrypt password check and the database lookups, which are tested but not proved [1]. A proof shows code matches the spec, not that the spec is what the developer meant, so a wrong spec is still possible [1].
Sources
Written and checked by AI from the sources below
Fact-checked by gpt-6.1-sol on · Editorial policy



