← News

AI agents

Microsoft Research's PDD Kit Formally Verifies Agent-Written Full-Stack Apps

Microsoft Research introduces PDD Kit, which turns developer intent into Verus specs, proves agent-written code satisfies them for every input, and uses tests where proofs stop.

Published: 2026-11-18 13:06 UTCUpdated: 2026-11-18 13:06 UTCSource date: 2026-11-05

Microsoft Research has released PDD Kit, a toolkit for holding AI-written code to a formal contract. Built around an approach the team calls Proof-Driven Development (PDD), it turns a developer's plain-language intent into a formal specification in Verus, a proof language for Rust, then generates a proof that the agent's code satisfies that specification for every possible input. Where a proof cannot reach, it falls back to tests. The work is described in a Microsoft Research blog post.

According to the team, the problem is one of scale. Coding agents now deliver whole features in a single sitting, sometimes spanning tens or hundreds of thousands of lines, so reading every line of a pull request no longer scales. Most teams instead invest in the plan and in tests: they describe what they want, iterate until the plan and proposed tests look right, then hand implementation to the agent. But nothing actually constrains the agent to follow the plan. It can drift slightly, then write tests that pass for what it built rather than what was asked for, and the gap stays hidden until a bug report or an edge case surfaces. The post argues that tests alone cannot close this gap because they exercise only a small slice of a program's possible behavior, while a proof covers all inputs.

PDD Kit runs inside Chopin, GitHub Next's real-time, multiplayer planning environment. In the first half of the workflow, team members review intent in plain language; the tool asks the questions a careful reviewer would ask, explains the relevant code as it goes, and records answers in an "intent" artifact that bridges user intent with formal specs or tests. Formalizable intent becomes Verus specifications, and the remainder, which must be taken on trust, becomes informal specifications for tests. PDD Kit generates proofs for the formal specs and tests for the informal ones, with no formal-methods background required.

Every result is labeled by verification type. Formal verification is a mathematical proof, checked by Verus, that code meets its spec for every input. Empirical verification covers what a proof cannot reach, such as third-party cryptography libraries or user interfaces, using unit and end-to-end tests, terminal automation, browser agents and computer-use agents; a passing test is labeled evidence rather than proof. The line between them is the Trusted Computing Base, the code a proof assumes behaves as described, and PDD Kit makes that line explicit and asks the developer to sign off on each piece.

As a demonstration, the team built Pet Store, a full-stack Rust application of about 5,000 lines: an Axum and SQLite backend handling inventory, promotions, orders and checkout, plus a Leptos storefront compiled to WebAssembly. The developer's entire request was two sentences: only the right password yields a token, and only admin accounts get admin tokens. Before writing code, PDD Kit asked a decision question pointing out that the first requirement is also satisfied by a login that refuses everyone, so the converse had to be added for an "if and only if." It then produced an intent map tying each requirement to the developer's own words, linked to the corresponding spec section and tests.

The developer also chose to give the login handler its own async specification so the proof would cover the glue code where lookups are awaited and tokens signed, rather than trusting it. Six pieces remained trusted and were accepted individually: the two database lookups, a password-check wrapper around bcrypt, token signing, clock-based expiry, and the error conversion, plus the handler shell. Each assumed clause gets a test written into the plan as a Given/When/Then scenario, labeled planned until it runs and then recording its result and commit.

The implications are notable for teams scaling agent-generated code: review shifts from reading every line to reviewing a short, readable specification, which the team says can be learned in minutes. The limits are equally explicit. A proof covers only its specification and says nothing about unwritten requirements; whether the login future ever completes, whether an out-of-range clock panics, and anything about attempt timing or rate are outside the guarantee. The blog notes the proof is written by the coding agent and checked step by step by Verus, so no one needs to read the proof itself.


Related articles