--- title: "Bugs First Policy" type: concept tags: [software-engineering, autonomous-agent, workflow] date: 2026-04-16 --- ## Definition Agent 工作流中的强制优先级策略:任何新任务开始前,必须先检查并修复 bugs/ 目录下的第一个文件(按字母顺序),在修复完成前不允许处理任何新功能。 ## Why It Works - 阻止 Agent 的"快速实现冲动",强制回归稳定性 - 每次修复后自然触发新一轮审查循环 - 与人类开发中的"消防员模式"相同:最紧急的先处理 ## Contrast | 模式 | 行为 | |------|------| | Bugs First | 停下所有新功能,只修 bugs/ 下第一个文件 | | Feature First | 优先实现新功能,bug 在 backlog 中积累 | ## Connections - [[Autonomous-Educational-Game-Development-Pipeline]]:强制使用此策略的项目 - [[Self-Healing-Systems]]:类似自愈逻辑,但 Self-Healing 更广(不限 bug 修复)