创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

微软研究院推出 PDD Kit 验证智能体代码

AI 总结

微软研究院推出 PDD Kit,将开发者意图转换为形式化规范,并使用 Verus 机械证明智能体编写的代码在模型覆盖的所有输入下符合规范。无法进行形式证明的部分仍可使用测试。团队在 GitHub Next 的 Chopin 中用它验证 Rust 商店 Pet Store 的登录逻辑,报告称发现了既有漏洞,并将验证接入构建和 CI。

深度见解

面对智能体生成大量代码后逐行审查困难、测试可能只验证既有实现的问题,PDD Kit 提供了一层形式化代码保证。

PDDKit decision flowchart on green gradient background

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

原文约 29 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。