ShtukbaseStandard
package file→ .shtukbase/packages/code-refactoring/judges/two-hats.md

judges/two-hats.md

15 lines, 642 B.

  1. # Judge: rework is separate from a change of behavior
  2. 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.
  3. **Who judges.** The reviewer of the change.
  4. **When.** On a change that has both rework and new behavior.
  5. **What the judge looks at.**
  6. 1. A commit marked refactor does not change behavior: the tests are the same and pass; only names in the tests changed.
  7. 2. New behavior came in its own commit, with a test.
  8. 3. No single commit has both mixed together.
  9. **Result.** "holds" or "violated: which commit to split and how".