package file→ .shtukbase/packages/code-refactoring/judges/two-hats.md
judges/two-hats.md
15 lines, 642 B.
- # Judge: rework is separate from a change of behavior
- Norm RF-R08. Refactoring (rework without a change of behavior) and a change of behavior go in different commits; refactoring does not change tests, except renames.
- **Who judges.** The reviewer of the change.
- **When.** On a change that has both rework and new behavior.
- **What the judge looks at.**
- 1. A commit marked refactor does not change behavior: the tests are the same and pass; only names in the tests changed.
- 2. New behavior came in its own commit, with a test.
- 3. No single commit has both mixed together.
- **Result.** "holds" or "violated: which commit to split and how".