surgical-patch
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSurgical patch
精准补丁
Reproduce failure first when economical; otherwise capture strongest available evidence.
- Trace symptom to responsible mechanism.
- Change narrowest layer that owns incorrect behavior.
- Preserve unrelated behavior and user changes.
- Avoid cleanup, renaming, and abstraction outside fix.
- Add only regression proof relevant to task.
Run focused proof plus nearest affected gate. Stop when failure is fixed and regression proof passes.
在成本可控的情况下,首先复现故障;否则收集最有力的可用证据。
- 将问题症状追溯至对应的机制。
- 在存在错误行为的最小层级进行修改。
- 保留无关行为和用户变更。
- 避免在修复之外进行清理、重命名和抽象操作。
- 仅添加与任务相关的回归验证内容。
运行针对性验证及最接近的关联检查。当故障修复且回归验证通过时停止操作。