All news

Microsoft's PDD Kit mathematically verifies that agent-written code matches an approved specification

Prepared by Sintelligent with the help of SI. Published in SI: . Updated: .

Coding agents can receive a stronger check than conventional tests: a machine proves that recorded requirements are met, while a person focuses on whether the task was formulated correctly.

The research prototype turns a developer's intent into a formal Verus specification and then proves properties of agent-written Rust code for all inputs covered by the model. Where a proof cannot reach external libraries, the interface or the environment, PDD Kit explicitly marks the trusted boundary and creates tests. A person reviews and approves the meaning of the requirements instead of reading every line of generated implementation. In a demonstration on the roughly 5,000-line Rust Pet Store application, the system verified the login logic and uncovered existing bugs. To rule out empty or overly weak conditions, PDD Kit introduces one defect for each requirement being proved and checks that Verus rejects that variant. The prototype supports only Rust, and its guarantees are limited by the specification, accepted assumptions and the Verus, Rust and Z3 toolchain.