File item 104: the worker implements the simplest change and loads no technical principle; the reviewers refactor it to the bar #244

Merged
lilleman merged 2 commits from item-101 into main 2026-10-13 01:02:15 +02:00
+14 -6
View File
@@ -6,7 +6,7 @@
`Bar = 9`
`Next ID = 104`
`Next ID = 105`
| Goal | W |
|---|---|
@@ -24,11 +24,11 @@
| ID | Release | Exempt | Item | R | S | A | G | Goals | Score |
|---|---|---|---|---|---|---|---|---|---|
| 104 | 0.1.0 | | **Have a chunk's worker implement the simplest change that solves its item, loading no technical principle, and have the reviewers refactor it until it meets them.** | 6 | 5 | 8 | 8 | 1.4, 1.5 | 24.1 |
| 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 |
| 97 | 0.1.0 | | **Narrow each review pass to the findings worth a fix, so a pass converges in its second round.** | 5 | 4 | 7 | 7 | 1.1, 1.4, 1.5 | 21.9 |
| 103 | 0.1.0 | question | **Decide whether item 95's saving must reach loop-claude workers, and if so cut the rules a worker loads below `main`'s 254 sentences.** | 3 | 4 | 6 | 6 | 1.1, 1.4 | 19.9 |
| 93 | 0.2.0 | | **Let a chunk's worker start below the project's model, once the archive shows chunks on a lower rung took no more review rounds than chunks on the project's model.** | 3 | 2 | 6 | 7 | 1.1, 1.4 | 22.4 |
| 94 | 0.2.0 | | **Every 20th cycle, have loop-claude measure token spend and routing outcomes, file them here, and interrupt the human only when they call for a routing change.** | 3 | 5 | 6 | 7 | 1.1, 1.4 | 21.6 |
| 88 | 0.2.0 | | **Define one routing ladder of (model, effort) rungs ordered by a published ranking of their competence, and map a task's R + C to a rung relative to the project's model.** | 3 | 4 | 6 | 7 | 1.4 | 21.4 |
@@ -65,6 +65,18 @@
## Details
### 104. Have a chunk's worker implement the simplest change that solves its item, loading no technical principle, and have the reviewers refactor it until it meets them.
Like red, green, refactor: the worker makes the item work, and the review passes raise it to the bar. Today `CLAUDE.md` → "Technical principles" tells every session to read `technical-principles.md` before writing code, and a loop-claude worker loads every file under `rules/`: 263 sentences (4,246 words), above the 254 that `CLAUDE.md` held before item 95, which cut it to 181.
- Replace "Read it before writing, designing or reviewing code" with: implement the simplest change that solves the item; the reviewers apply the principles. No worker reads a file under `~/.claude/principles/`. Point every other reference to them in `CLAUDE.md` at the reviewer that applies it, or drop it.
- Move "Quality" to `larv-review`, and the comment, README and doc rules to files the prose and stability reviewers read, loaded by no path. Keep the rules for writing Goals and Audience and `rules/todo-items.md` loading with their files: writing them is the worker's job.
- Keep frontloaded each project's decision titles in its `AGENTS.md`, since a worker that misses a decision builds the wrong behaviour, and a core of about five lines of "Prose", since no reviewer reads the worker's chat. The human chose both on 2026-10-13.
- Keep `rule-hook`: it blocks what a program can check, at no context cost.
- Have loop-claude's judge read each rule where it now lives.
- Record the split in `docs/decisions.md`, serving goals 1.4 and 1.5, valid while review rounds per pass do not rise. A principle such as functional core, found late, can cost a rewrite within a pass's three rounds: compare rounds per pass and reading cost in loop-claude's archive for the five chunks before and after, and file an item if they rise. The PR states the sentences a worker loads before and after.
- Cut too what Claude follows unasked, the working loop's per-topic pointers that repeat "Topic rules", and "Maintaining this file".
### 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.
@@ -87,10 +99,6 @@ Stability and product-owner report a defect, a broken requirement from the plan
From its second round on, a pass reviews only how the chunk answered the round before. Each finding should be fixed correctly or dismissed with a good reason, and the reviewer reports only a fix or a dismissal that is plainly wrong or worse than the change it answered. The pass then converges in its second round. This revises the decisions on reruns and the round cap in `docs/decisions.md`. A fix that opens an untrusted-input boundary still triggers the security pass.
### 103. Decide whether item 95's saving must reach loop-claude workers, and if so cut the rules a worker loads below `main`'s 254 sentences.
Item 95 shortened `CLAUDE.md` from 254 sentences (4,204 words) to 181 (2,597) and moved each topic's rules to `rules/`, where they load with a matching file. A session that opens no file loads 181 sentences, one that reads only code 220, and a loop-claude worker or the judge, which load every rule file, 263 (4,246 words). The topic rules arrive at the moment of use, later in context; whether that raises adherence is unmeasured. Candidates to cut: rules Claude follows unasked, the working loop's per-topic pointers that repeat "Topic rules", and "Maintaining this file".
### 93. Let a chunk's worker start below the project's model, once the archive shows chunks on a lower rung took no more review rounds than chunks on the project's model.
Goal 1.1 asks for proven quality, so stepping down waits on the archive's evidence.