orch-fix-defect 是做什麼的?
參與者 · 動作 · 目標:orch · fix · defect。共享引擎 orch-pipeline 的輕量包裝。
使用時機
- 某些東西壞了:輸出錯誤、發生異常、崩潰、回歸。
- 與同類技能區分:
- 行為正確但您想要不同 →
orch-change-feature。 - 該功能尚不存在 →
orch-add-feature。
- 行為正確但您想要不同 →
操作設定
- 預設規模下限: 小(通常微不足道)。
- 階段遮罩: 0 → (僅在根本原因不明顯或標準以上時使用輕量階段 2) → 4 → 5 → 6。研究階段(1)通常會跳過。
- 第一步(階段 4): 將錯誤重現為一個新的失敗測試(回歸測試),然後修復直到測試變為綠燈。先證明錯誤的存在是將修復與微調區分開來的關鍵。
運作方式
- 使用上述設定執行
orch-pipeline引擎。 - 如果根本原因不明確,請在紅燈測試之前使用
code-explorer界定範圍;將建置錯誤升級至build-error-resolver//build-fix。 - 在閘門 1(僅在產出計劃時)和閘門 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:)