何时使用 Hotfix
仅当满足以下所有条件时,才使用/comet-hotfix:
- fix 面向现有 functionality,不引入 new capability
- change scope 可预测:通常影响 少于 3 个文件
- 不需要 interface changes 或 architecture adjustments
- fix 不引入 new public API
- fix scope 限定在 single function or module 内
- 不涉及 database schema changes
Hotfix workflow
| Phase | 会发生什么 |
|---|---|
| Open | 精简 artifact creation:proposal.md、design.md、tasks.md(无 multi-solution comparison;除非影响现有 acceptance scenarios,否则无 delta spec) |
| Build | Direct build(build_mode: direct):tasks 逐个执行,每个 task 运行 formatter 和 tests,commits 使用 fix: prefix |
| Verify | Root cause elimination check,然后进行 comet-verify scale assessment(小型 hotfix 通常符合 lightweight verification:≤ 3 tasks、≤ 2 files) |
| Archive | 确认 verify_result: pass 后复用 /comet-archive |
启动 Hotfix
在你的 AI 编程工具中,描述你想修复的 bug。Comet 会自动评估你的描述:- 如果满足 hotfix conditions,
/comet会 auto-route 到/comet-hotfix,无需你直接调用。 - 你也可以直接调用
/comet-hotfix,明确使用该 preset。
Build mode
Hotfix 默认使用direct build mode。这意味着单个 agent 会顺序执行所有 tasks,不启动 sub-agents,也不生成完整 implementation plan。如果 task count 超过 3,agent 会转入 /comet-build 的 plan 和 execution method selection。
升级条件
升级到 Full Workflow
当确认 hotfix 需要升级时,Comet 会遵循以下路径:- 将
.comet.yaml中的workflow字段更新为full - 加载
comet-designskill,在现有 hotfix artifacts 基础上补充完整 Design Doc - 从 design phase 起正常进入 full workflow
proposal.md、design.md 和 tasks.md 会被保留并继续扩展,你不需要从头开始。
Phase guards
Hotfix 会强制执行与 full workflow 相同的 phase guard transitions:isolation 和 build_mode 时,hotfix 不能进入 verify;没有 verify_result: pass 时,不能 archive。