diff --git a/docs/decisions.md b/docs/decisions.md index 6b69de62..3f697bfe 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -45,7 +45,7 @@ Each project principle states one rule that the decisions below apply; their ent - routing: loop-claude reads the items a chunk takes from the worker's latest `Chunk items:` line and scores them by `todo.md` as the default branch held it when the cycle started; the judge reports the escalation and whether a release is ready to cut - routing: the worker changes rung only as a chunk starts, after every second unfinished verdict, when it names a chunk item that picks a higher rung, or when it cites an escalation trigger the judge finds - task-bench: a bench takes 5 bugs and 5 runs per side, after a 2 × 2 pilot on a new setup, and at no affordable count does a chunk-sized change rise above the noise -- task-bench: where a project's README documents a bench command, a scoring run runs it beside the seats and `task-bench record-figures` records its figures in the comprehension history, as a report that doesn't block a merge or file an item until the human rules on about 10 recorded benches +- task-bench: where a project's README documents a bench command, a scoring run runs it beside the seats with `--record-figures`, which records its figures in the comprehension history, as a report that doesn't block a merge or file an item until the human rules on about 10 recorded benches - tests: each test earns its keep as the technical principles' test bullet says, and the worker takes a test's expected values from its item, never from the code - the repo may name bender, bender-infra and ai-sandbox - todo.md: an item of the next release predicts the files and parts it will touch under `Touches:` in its detail; chunk-preflight takes, in the plan's order, the items that overlap none taken before them as the chunks that may run at once, and the optional `touch-predictions` record keeps each chunk's prediction beside what it touched @@ -862,14 +862,16 @@ Measured on `fejkdata` (Go, 5 bugs planted in the files `larv-review places` nam - **One finished chunk**: `fejkdata`'s PR #490, base `33b7fa80`, head `5b9c2a14`, which the comprehension panel ruled better on Navigation, Locality and Shape and the same on Self-sufficiency. The bench planted 5 bugs and ran 38 of 50 runs before the machine restarted. The first 3 runs per bug and side, 30 runs, are the ones counted, and all passed. The mean of the bugs' changes was +4.6% in output tokens, +8.9% in cache-read tokens and +3.8% in turns, with the bugs' own changes in cache-read tokens from -41% to +47%. The two token figures sit inside the spread at 5 × 3, 17% and 22%. The turns' +3.8% sits inside their spread at 5 × 5, 14%, and the spread at 5 × 3 can only be wider. The mean of the wall times' changes, +105%, lies above the 86% of that row, from one bug whose head runs took 6.8 times as long at the median. Nobody read its streams to find out why. The head cost slightly more tokens where the panel finds it easier to read, and the wall time can't be judged, so the bench neither confirmed nor contradicted the panel. - **Cost**: 5 bugs × 6 runs took 3.9 hours and 34M cache-read, 1.2M cache-write and 0.3M output tokens; a run takes about 3.5 minutes, and planting 16 to 25 minutes. A 5 × 5 bench is about 3.3 hours and 28M cache-read tokens. Gremlins ran out of 8 GB at the base of PR #490, so the help's example takes 16 GB. -## task-bench: where a project's README documents a bench command, a scoring run runs it beside the seats and `task-bench record-figures` records its figures in the comprehension history, as a report that doesn't block a merge or file an item until the human rules on about 10 recorded benches +## task-bench: where a project's README documents a bench command, a scoring run runs it beside the seats with `--record-figures`, which records its figures in the comprehension history, as a report that doesn't block a merge or file an item until the human rules on about 10 recorded benches -2026-11-23, lilleman, through todo item 509. Serves code health, whose signal is the panel's overall score, since a signal only simulated readers give stays unchecked until a measurement stands beside it; and goal 1.4, since the bench runs only where a scoring run already does. +2026-11-23, lilleman, through todo item 509. Serves code health. Its signal is the panel's overall score, which simulated readers give, and nothing checks that score until a measurement stands beside it. Serves goal 1.4 too, since the bench runs only where a scoring run already does. -**A report, not a gate.** The bench's entry sits in the history beside the scoring run's, under a heading no command reads as a ruling or a run. A bench that fails, or a project whose README documents no bench command, doesn't hold up the merge. Once about 10 chunks have recorded both, the human rules whether the bench's figures agree with the panel's scores, and whether the bench then replaces the scoring run or gates a merge. +**A report, not a gate.** The bench's entry sits in the history beside the scoring run's, under a heading no command reads as a ruling or a run. A bench that fails, or a project whose README documents no bench command, doesn't hold up the merge. A bench that finishes does: the chunk waits for it, since its entry is committed with the scoring run's. Once about 10 chunks have recorded both, the human rules whether the bench's figures agree with the panel's scores, and whether the bench then replaces the scoring run or gates a merge. **The README names the command**, as it names the project's mutation command: a bench needs the project's image, test command and Gremlins prefix, and a README already says how the project's tools run. +**The bench records its own figures**, under the lock it holds on its folder and only once every run has finished. A separate command would record a bench that stopped part-way as if it were whole, and another checkout's bench could remove the folder first. The option keeps the name a panel of three readers, seated as the README's audience, picked 3 to 0 for that command on 2026-11-23. + **The entry keeps the three rows over every bug.** The rows per bug stay in the bench's digest, which `task-bench gather` reads: a bug is planted anew each bench, so its row doesn't compare with a later entry's. Valid while task-bench's figures are unproven against the panel's scores. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index da3a2885..eeb5477e 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -172,10 +172,10 @@ The comprehension check records how hard the project is for its contributor to r - **Seats.** Junior A, Mid A, the maintainability senior and the inherited architect each score the project at the head from 1 to 10 overall and on four dimensions: Navigation, Locality, Shape and Self-sufficiency. Run `~/.claude/bin/larv-review prepare-scoring`. It makes the worktree the seats read and prints each seat's prompt file; launch each seat with its file's text as its prompt. Write their lines into a scores file and run `~/.claude/bin/larv-review record-scoring `, which appends the run to the history and prints the four seats' means. - **Floor item.** Where `record-scoring` prints `Floor:`, a `Next:` line follows: file one floor item, or refresh the open one. A floor item is a plan item meant to bring every mean to the project's readability floor, which `record-scoring`'s `Floor:` line names. File it as one ambitious refactor, not touch-ups. It restructures the area behind the places `larv-review places` prints for this run, chosen where they bear on the lowest dimension, sized to bring every mean to that floor, and quotes those places. Its tagline opens with `Reach the comprehension floor:`, so its own chunk runs a scoring run; while a mean stays under the floor, that run's `Next:` line asks for the next floor item. Mark it `owner`, since the human asked that such a project always hold one, so no score deletes it. Put it in the earliest release the plan names after the one the chunk ships into, or else in the next version after that one that `~/.claude/rules/todo-items.md` allows, so the floor doesn't hold up any release. While one is open, refresh its places and aim from the newest run instead of filing another; the item the chunk ships doesn't count as open. Commit it with the run, as "Record" says. - **Second run.** Where `needs-scoring-run` printed that the chunk `leaves release … with no plan item`, run `prepare-scoring` again and launch the same four seats afresh on the same head. Their scores file's first line is ` rerun at `. Record it with the same `record-scoring` command. -- **Bench.** Where the project's README documents a `task-bench` command, start it when the seats launch, on the same head, in the background under `~/.claude/bin/run-heavy`. Once it ends, run `~/.claude/bin/task-bench record-figures`, which appends the bench's figures to the history, and put its `All` `change` row in the summary. A second run takes no second bench. The bench is a report beside the panel's scores: none of its figures blocks a merge or files an item. Where it fails, say why in the summary and merge without it. A project whose README documents no such command skips it. +- **Bench.** Where the project's README documents a `task-bench` command, start that command with `--record-figures` when the seats launch, on the same head, in the background under `~/.claude/bin/run-heavy`. A bench that finishes appends its figures to the history. Wait for the bench before the commit "Record" below asks for, though it takes hours, and put the `All` `change` row it prints in the summary. A second run takes no second bench. The bench is a report beside the panel's scores: none of its figures blocks a merge or files an item, so don't run `task-bench gather` on it. Where it fails, say why in the summary and merge without it. - **Agreement.** After the second run, run `~/.claude/bin/larv-review agreement` and put its counts in the summary. On `Assumption fails:`, ask the user whether to keep the paired ruling or change the decision `review: the comprehension check records …`. Record the answer as a decision in the repo whose history was counted, with the counts that led to the ask. A later run asks again only when the rulings' rate falls, or the runs' rate rises, against the recorded counts. -**Record.** `docs/comprehension-history.md` keeps every paired ruling and scoring run, which `larv-review` appends, and every bench, which `task-bench record-figures` appends; never edit one. Commit what it appends, with the `todo.md` that `record-scoring` re-ranks in one commit titled `Record the comprehension check: …`, and push it; it re-enters no pass, and `chunk-pr merge` waits for the forge's checks it starts. Resolve a merge conflict in the file by putting the default branch's entries first. Put each ruling with its base and votes, and each run's five scores, in the summary. +**Record.** `docs/comprehension-history.md` keeps every paired ruling and scoring run, which `larv-review` appends, and every bench, which `task-bench --record-figures` appends; never edit one. Commit what the two append, with the `todo.md` that `record-scoring` re-ranks in one commit titled `Record the comprehension check: …`, and push it; it re-enters no pass, and `chunk-pr merge` waits for the forge's checks it starts. Resolve a merge conflict in the file by putting the default branch's entries first. Put each ruling with its base and votes, and each run's five scores, in the summary. **Places.** The header of systems-architect and stability-reviewer names `places.md`, which holds what `~/.claude/bin/larv-review places` prints: the places seats found hard since the newest scored commit. Ask each to report, as a 🟡, each of those places the change touches without making it easier to read, matching a place by its path and the function or section it names, since its line may have moved. Fix such a 🟡, or say in the PR summary why not; that reason settles it in place of a decline's record.