Answer stability round 2: 0 🔴, 1 🟡; pin render for an item shipped alone

This commit is contained in:
2026-10-13 11:53:35 +02:00
parent 4e07db755b
commit 3fd33a83b3
6 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
## Unreleased
- Every `todo.md` item scores C, how hard the change is to get right, from 1 to 10, in a column after S. C stays out of the score. `rank_todo.py` fails on an items table without the column, and the rule hook then blocks committing that `todo.md`. Add the column to each project's `todo.md` and score every item's C, as `rank_todo.py --help` shows.
- Every `todo.md` item scores C, how hard the change is to get right, from 1 to 10, in a column after S. C stays out of the score. `rank_todo.py` fails on an items table without the column, and the rule hook then blocks committing that `todo.md`. Before a project's next loop run, add the column to its `todo.md` and score every item's C, as `rank_todo.py --help` shows.
- The new `bin/score-outcomes` shows what finished chunks measured beside the R, S and C their items were guessed at: lines and files changed, review rounds, and 🔴 and 🟡 findings. It reads them from the default branch's merge commits, so a project that merges by squash or fast-forward shows none. Given a guess, it lists the 5 finished items guessed nearest, and for each score the median outcome at each guessed value, once 10 chunks of one item hold it: R against 🔴 findings, S against lines changed, C against review rounds past each pass's first. A session filing or editing an item runs it and scores R, S and C from what it shows. larv-review titles each round's commit with the round's 🔴 and 🟡 counts, `Answer stability round 1: 1 🔴, 2 🟡; …`, and the rule hook's new `round-title-counts` rule blocks a round title without them, so the findings count from now on.
- The stability reviewer mutation-tests the lines each change adds or modifies: it makes small changes to that code, such as flipping a comparison. For each test to add or strengthen, it reports one 🟡 naming the changes that test would catch. It uses the project's documented mutation command, or else cargo-mutants, Infection, mutmut or Stryker. The technical principles replace "Test coverage should not decline" with "Every mutant of a changed line fails a test, unless the mutant leaves behaviour unchanged", and say what a valuable test is: it checks behaviour through the unit's interface, and fails when that behaviour breaks. README → "Tools" gives the mutmut command for `bin/`. Expect longer stability passes and more 🟡s about tests. In a project whose README documents no mutation command, the reviewer picks and installs a tool on each run; document one there to make the runs consistent.
- Each new `loop-claude` worker session's prompt now quotes the README's Goals and Audience. A line above them says that the chunk's `todo.md` items, or else the task, set its scope, and that the goals only choose how to deliver it. A session outside the loop reads Goals and Audience before starting a chunk, as `CLAUDE.md` now says.