Microsoft Research, working with GitHub Next, has introduced PDD Kit, a research prototype for what it calls Proof-Driven Development. The problem it targets is that AI coding agents now produce pull requests of tens or hundreds of thousands of lines, which no one can review line by line. A written plan is supposed to be the contract with the agent, but nothing forces the agent to follow it. The tests it writes also tend to confirm what it built, not what the developer asked for.
PDD Kit first interviews the developer about intent and flags ambiguities instead of letting the agent settle them silently. It records the answers in a plain-language intent artifact and converts the parts that can be formalized into specifications in Verus, a proof tool for Rust. A coding agent then writes the implementation and the proof, and Verus checks that the code meets the spec for every possible input. Parts a proof cannot reach, such as the bcrypt library, database contents and the system clock, are listed as an explicit trusted boundary. Each of those is accepted by the developer and covered by tests.
The team demonstrated this on the login logic of Pet Store, a roughly 5,000-line Rust web app. The developer's request was two sentences: a token only comes with the right password, and only admin accounts get admin tokens. These became eight formal clauses. The developer settled an ambiguity about whether the right password must always work, and chose to extend the proof to the async handler glue. The developer reviewed intent and did not read the generated code line by line.
To guard against specs that verify but constrain nothing, which the authors call vibe verification, the tool plants one bug per clause and requires Verus to reject each. The authors admit limits. It supports only Rust today, proofs still take real effort, and a wrong spec is still possible. The guarantees are only as strong as the trusted pieces, mainly the password check and the database lookups.
Why it matters
For the many Chinese and Asian engineers working in software, this points to a likely shift in code review, from reading code to reviewing intent and specs. Skills in Rust, formal methods and specification writing may become more valuable as AI generates more code. It also shows one practical way to keep AI-written security-critical code like authentication trustworthy.
Source: Microsoft Research
Original title: Formally verifying agent-written full-stack web apps with PDD Kit – Microsoft Research
Original link: https://www.microsoft.com/en-us/research/blog/formally-verifying-agent-written-full-stack-web-apps-with-pdd-kit/
Published: 2026-11-05
This summary was generated with AI assistance and is not the full original text. Copyright remains with the original author and publisher; see the original link for the full article.
Disclaimer: The views and opinions expressed in this article are solely those of the original author(s) and do not necessarily reflect the views or positions of Overseas Chinese (overseaschinese.org). We republish, translate or summarize it for informational purposes only.
