Formally verifying agent-written full-stack web apps with PDD Kit
Alex Lavaee, Matthai Philipose · 2026年11月5日
AI 摘要 AI 生成,可能有误
PDD Kit 是 GitHub Next 推出的一款工具包,它将形式化方法引入日常软件开发:先把开发者的意图转化为正式的 Verus 规范,再用数学方法证明智能体编写的代码对每一个输入都满足该规范;在证明无法覆盖之处,则退回到带标签的测试。该工具在 Pet Store(一个全栈 Rust Web 应用)上进行了演示:它通过澄清提问、意图图谱和证明生成来验证登录逻辑,捕捉到了智能体原本会悄然定夺的歧义之处,而开发者无需逐行阅读生成的代码。随着编程智能体生成的代码量日益庞大,该方法旨在通过用证明和明确签署认可的可信计算基来取代逐行检查,从而实现代码审查的规模化。
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 asAIagents 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.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要Researchers from Microsoft and UMass Amherst evaluated six machine unlearning methods on Llama-3.2-3B-Instruct using a standardized framework and found that models scoring near-perfectly on standard forgetting benchmarks still leaked targeted information in 72.8% to 84.3% of adversarial prompting attempts, close to the 87.5% leak rate of a model that never unlearned anything. Authority claims and prompt-injection attacks were the most effective at recovering 'forgotten' facts, while asking the same questions in seven other languages leaked far less (about 3%). The authors recommend complementing clean-query benchmarks with adversarial stress testing, measured through their proposed Attack Success Rate metric, since high forgetting scores alone do not guarantee information is truly unrecoverable.
AI 摘要This article describes an episode of Microsoft Research's podcast 'The Shape of Things to Come,' in which host Doug Burger discusses the future of AI in medicine and biology with Microsoft Chief Scientific Officer Eric Horvitz, physician-scientist Eric Topol of Scripps Research, and principal research manager Ava Amini. The conversation covers AI-assisted medical diagnosis, the unrealized potential of AI in medical imaging, whole-patient models, and AI's role in drug discovery and scientific research. The experts also examine why promising AI research, despite strong results such as diagnostic systems that outperform physicians at lower cost, has been slow to reach actual patient care due to implementation challenges.
AI 摘要TokenEconomizer is an open-source plugin developed by UC Berkeley, Microsoft Research, and Microsoft Security that learns from an AI coding agent's past sessions in a repository to reduce token waste in future sessions, using three mechanisms: micro-skills (learned repository facts), tool pruning, and failure-loop intervention. In evaluations across 277 real bug-fixing tasks on SWE-Bench with five agent-model combinations, it cut costs by 18.4-30.9% without degrading task success rates, with savings growing as experience accumulates. The plugin works alongside existing agents without modifying their underlying models and keeps what it learns on the developer's machine.
AI 摘要This edition of Microsoft Research Focus, hosted by Anson Ho, highlights recent developments including a research intern's journey at the Microsoft Research lab in Tokyo and AI advances toward universal speech translation. It also covers a breakthrough resolving the 31-year-old KLS conjecture in high-dimensional geometry, the introduction of CompactionBench and APEC to make AI coding agents faster and more cost-efficient, and the Latent Core Tokenizer, which improves AI tokenization across 104 languages.
AI 摘要Microsoft researchers discovered 'Lazarus,' a backdoor technique that reprograms fewer than 10 dormant neurons in an LLM without any retraining, causing an AI agent to behave normally and pass standard evaluations until a hidden trigger (such as a date change) makes it execute attacker-controlled commands with whatever access it has. Since the attack only requires write access to a model's weights, reliable detection depends on verifying provenance by comparing against original unmodified weights, and Microsoft Foundry mitigates this risk by tying models to trusted publishers, scanning the surrounding software environment, and developing defenses like AI-powered weight scanning, red-teaming tools, and cryptographic model signing. The findings underscore that models should be treated as potential insider risks—audited like code, limited in what they can do, and monitored—rather than trusted implicitly.