Compare commits

...

5 Commits

2 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ Valid while Claude Code loads `~/.claude/rules/*.md` in every project, a path-sc
The worker keeps what it needs to write its own work. Each project's decision titles stay in its `AGENTS.md`, since a worker that misses a decision builds the wrong behaviour. A core of "Prose" stays in `CLAUDE.md`, since no reviewer reads the worker's chat. lilleman chose both on 2026-10-13. The rules for writing Goals and Audience, `todo.md` items and decisions stay in `rules/`, since writing those is the worker's job. `bin/rule-hook` stays: it blocks what a program can check, at no context cost. "Quality", the rules for comments and READMEs, and the examples behind "Prose" moved to `skills/larv-review/standards/`, which no path loads. The prose and stability reviewers read them, and so does loop-claude's judge. They sit beside larv-review, whose passes apply them; `principles/` stays where it is, since the principles auditor reads it per file.
A finding against a principle names it, so the worker reads only that one when it fixes or declines the finding. The worker still writes a failing test first wherever a test can check the change, since no reviewer can make a test come first; lilleman widened it from changes to code on 2026-10-13. A chunk that changes no code, config or test, such as one that only plans, meets no principles review; the chunk that implements its items does. The prose reviewer checks that a doc sorts a list whose order carries no meaning.
A finding against a principle names it, so the worker reads only that one when it fixes or declines the finding. The worker still writes a failing test first wherever a test can check the change, since no reviewer can make a test come first. On 2026-10-13 lilleman widened it from code changes to anything there is to test. A chunk that changes no code, config or test, such as one that only plans, meets no principles review; the chunk that implements its items does. The prose reviewer checks that a doc sorts a list whose order carries no meaning.
The item also cut the rule that a session proposes new rules for `CLAUDE.md` and `rules/` and restructures them after each change: changes to these rules go through this repo's chunks and their reviews, like any other change.
+13 -1
View File
@@ -6,7 +6,7 @@
`Bar = 9`
`Next ID = 108`
`Next ID = 109`
| Goal | W |
|---|---|
@@ -25,6 +25,7 @@
| ID | Release | Exempt | Item | R | S | A | G | Goals | Score |
|---|---|---|---|---|---|---|---|---|---|
| 107 | 0.1.0 | | **Have loop-claude put the README's Goals and Audience into every fresh worker prompt, under a line that the item sets the scope and the goals choose within it.** | 3 | 3 | 8 | 8 | 1.1, 1.2 | 28.1 |
| 108 | 0.1.0 | | **Mutation-test the lines each chunk changes, and make each mutant no test catches a finding of the stability pass.** | 2 | 4 | 7 | 8 | 1.1 | 26.8 |
| 98 | 0.1.0 | | **Score R and S from a measurement wherever one exists, and calibrate each guessed score against the finished chunk's measured outcome.** | 2 | 5 | 6 | 7 | 1.1, 1.4 | 22.6 |
| 99 | 0.1.0 | | **Drop the comprehension panel as a merge gate, and keep recording its scores and the places in the code its seats found hard, for later measurement and for other reviewers and agents to improve.** | 4 | 5 | 7 | 7 | 1.1, 1.4, 1.5 | 22.6 |
| 87 | 0.1.0 | | **Score every `todo.md` item's complexity C from 1 to 10, and have `rank_todo.py` fail on an item without one.** | 3 | 4 | 6 | 7 | 1.1, 1.4 | 21.9 |
@@ -75,6 +76,17 @@ Today loop-claude hands the premises only to the judge (`bin/loop_claude/cycle/j
- Above them, one line: the item sets the scope, and the goals choose between ways to meet it. A worker then extends no item towards a goal.
- For a session outside the loop, add one line to `CLAUDE.md`'s working loop: read the README's Goals and Audience before starting a chunk.
### 108. Mutation-test the lines each chunk changes, and make each mutant no test catches a finding of the stability pass.
lilleman, 2026-10-13: tests should be as valuable as possible, never written to tick a box. Today the technical principles ask that most code has tests, written first, and that coverage not decline, which item 69 would measure. The stability reviewer asks, by reading, whether each test would fail if the behaviour broke. Coverage counts the lines a test runs, so a test with no meaningful assertion still raises it.
Mutation testing measures what coverage cannot: it makes small changes to the code, called mutants, such as flipping a comparison, and counts the mutants no test notices. A mutant that survives usually marks a bug the tests would miss; one that leaves behaviour unchanged is not.
- Run it only on the lines a chunk changes, so its cost grows with the chunk (goal 1.4). Use a widely deployed tool for each language, such as mutmut for Python and Stryker for TypeScript.
- Make a surviving mutant in the changed code a finding of the stability pass, which names the test to add or strengthen. The reviewer drops a mutant that leaves behaviour unchanged.
- Say in the principle "Most, if not all, code should have automated tests" what a valuable test is: it checks behaviour through the unit's interface, and fails when that behaviour breaks.
- Decide whether this replaces item 69's coverage measure.
### 98. Score R and S from a measurement wherever one exists, and calibrate each guessed score against the finished chunk's measured outcome.
A score that can be computed from the code it touches, such as the files an item names, comes from that computation. Otherwise size and risk are estimated from finished work, the way reference-class forecasting estimates a project from earlier projects like it. When a chunk merges, record its measured outcome beside the item's guessed R and S: lines and files changed, review rounds, 🔴 and 🟡 findings, and fixes the code needed later. Show the scorer, when it files an item, the finished items whose guessed scores sat nearest and what they measured. Once enough chunks are recorded, report how far each guess was from its outcome, so a scorer whose S runs high can be corrected. Item 87's C is scored and calibrated the same way.