| name | orch-change-feature |
| description | 编排把一个已有且可工作的功能改成新的期望行为——把测试更新到新规格,修改实现以匹配,审查并门控提交。用于行为没有坏、但应该不同的场景。 |
| metadata | {"origin":"ECC"} |
orch-change-feature
Actor · action · target:orch · change · feature。这是共享引擎 orch-pipeline 上的一层薄包装。
何时使用
- 现有功能能工作,但期望行为不同(“change”、“adjust”、“make it also …”、“instead of X do Y”)。
- 与同系列技能区分:
- 不是坏了 → 不用
orch-fix-defect(没有要复现的 bug)。
- 不是新增 → 不用
orch-add-feature(能力已经存在)。
运行设置
- 默认规模下限: small——多数调整只是一两个函数。
- 阶段掩码: 0 →(只有新行为需要研究时才跑 1)→ light 2 → 4 → 5 → 6。
- 第一步(phase 4): 更新现有测试来表达新的期望行为,然后修改实现直到通过。先改测试,才把 tweak 和 fix 区分开。
工作方式
- 使用上述设置运行
orch-pipeline 引擎。
- 保持计划轻量——只有
standard+ 规模才值得完整跑 planner。
- 在 Gate 1(计划 / 测试变更批准)和 Gate 2(提交前)停止。
- 如果变更触及安全触发器,加入
security-reviewer。
示例
orch-change-feature: make nws-poller alert at 2 warnings instead of 3
→ update threshold tests to new spec → change impl to green
→ code-review → commit [GATE 2: confirm]