# AI 修复了 Bug，却改了什么？

Original title: AI agent fixed the bug, but what else did it change?

> Hacker News story 50183253 · language: zh · submitted 2026-10-21
> Web version: https://zeli.app/zh/story/50183253
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 53 · by [tob_scott_a](<https://news.ycombinator.com/user?id=tob_scott_a>) · 💬 6
[original](<https://blog.trailofbits.com/2026/10/21/your-ai-agent-fixed-the-bug-but-what-else-did-it-change/>) · [HN discussion](<https://news.ycombinator.com/item?id=50183253>)

## Summary

Trail of Bits 发布了 patching-bugs 和 regression-hunt 两个插件，旨在让 AI agent 接管漏洞修复与回归测试。在 Patch the Planet 计划中，我们发现 AI 补丁虽能修复漏洞，却常引入新的回归问题。为此，我们提炼出四大原则：极简的指令引导、模块化步骤、严格的输入输出 Schema，以及每一步都必须有实时运行的 PoC 验证。regression-hunt 通过定义回归标准和引入威胁模型，将误报率降低了 25%。patching-bugs 则强调“三臂证明”和不变量引导的修复策略。要让这些工具真正发挥作用，项目方需提供 THREAT_MODEL.md 和 PATCHING_GUIDELINES.md，让 AI 在理解项目上下文的前提下工作。

## Key quote

> 当复现漏洞、证明修复和确认回归时，如果某一步无法生成实时运行的 PoC，其结果就是不可靠的。

## HN discussion (6 comments)

### [polyterative](<https://news.ycombinator.com/item?id=50185742>)

> 光靠指令想让 AI 按你的意愿行事，对我行不通。在我正在设计的新系统中，我实现了一套算法检查机制，确保每个待办事项只影响其必要的区域，不会产生非预期的变更（delta）。出于性能考虑，我还开发了一套代码指纹系统，避免每次都重复执行这些检查。目前效果非常棒，我正在构建更多层的算法检查，模型配合这套机制运行得极其出色。现在，我只要填入一份有限的待办清单，就能绝对确信只有我想改的部分被修改了，没有任何东西被破坏。这对你们大多数人来说可能不算新鲜事，但这套新系统给我的结果带来了前所未有的信心——它将百分之百由 AI 生成。过去那种仅依赖循环和指令集的老方法让我精疲力竭，从未给我带来像现在这套新系统这样的信心。如果有人感兴趣，我可以详细聊聊。

### [dguido](<https://news.ycombinator.com/item?id=50183475>)

> 我们正直面今年早些时候预言的“漏洞末日”（vulnpocalypse）。现在的关键在于你应对它的速度有多快。Trail of Bits 开发了这些能力，旨在大幅提升补丁发布的速度。
>
> 协调披露（Coordinated disclosure）如今已意义寥寥。过去，从漏洞到利用需要付出大量努力，而现在，借助 AI，我们几乎拥有了无限且强大的专家资源。作为产品负责人，你必须提升开发速度，以便在外部报告出现后瞬间发布补丁。
>
> 请利用我们的“修复漏洞”和“回归排查”技能，加速发布修复方案！

---

## Cite

- Page: https://zeli.app/zh/story/50183253
- Date: 2026-10-21
- Source: blog.trailofbits.com (https://blog.trailofbits.com/2026/10/21/your-ai-agent-fixed-the-bug-but-what-else-did-it-change/)
- Hacker News: https://news.ycombinator.com/item?id=50183253

## Other languages

- en: https://zeli.app/story/50183253 · markdown: https://zeli.app/story/50183253.md
- ja: https://zeli.app/ja/story/50183253 · markdown: https://zeli.app/ja/story/50183253.md
- ko: https://zeli.app/ko/story/50183253 · markdown: https://zeli.app/ko/story/50183253.md
- de: https://zeli.app/de/story/50183253 · markdown: https://zeli.app/de/story/50183253.md
- es: https://zeli.app/es/story/50183253 · markdown: https://zeli.app/es/story/50183253.md
- ru: https://zeli.app/ru/story/50183253 · markdown: https://zeli.app/ru/story/50183253.md
