| name | orch-fix-defect |
| description | 通过把每个阶段委派给匹配的 ECC 智能体来编排 bug 修复——用失败的回归测试复现,修到绿色,审查并门控提交。用于已有行为损坏或错误的场景。 |
| metadata | {"origin":"ECC"} |
orch-fix-defect
Actor · action · target:orch · fix · defect。这是共享引擎 orch-pipeline 上的一层薄包装。
何时使用
- 某些东西坏了:错误输出、报错、崩溃、回归。
- 与同系列技能区分:
- 行为正确但你想让它不同 →
orch-change-feature。
- 能力还不存在 →
orch-add-feature。
运行设置
- 默认规模下限: small(通常可能是 trivial)。
- 阶段掩码: 0 →(只有根因不明显或 standard+ 时才 light 2)→ 4 → 5 → 6。Research (1) 通常跳过。
- 第一步(phase 4): 把 bug 复现为一个新的失败测试(回归测试),然后修到绿色。先证明 bug 存在,才把 fix 和 tweak 区分开。
工作方式
- 使用上述设置运行
orch-pipeline 引擎。
- 如果根因不清楚,在红色测试前用
code-explorer 界定范围;构建失败升级给 build-error-resolver / /build-fix。
- 在 Gate 1(仅当生成了计划)和 Gate 2(提交前)停止。
- 如果缺陷位于安全敏感路径,加入
security-reviewer。
示例
orch-fix-defect: poller crashes on empty NWS response
→ write failing test reproducing the crash → fix to green
→ code-review → commit [GATE 2: confirm] (commit: fix:)