diff --git a/docs/decisions.md b/docs/decisions.md index 9dcef27a..b08c2960 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -144,7 +144,7 @@ Valid while the ladder orders its rungs by competence. ## review: a reviewer under `agents/` marks a ๐Ÿ”ด or ๐ŸŸก `[misread]` where the implementer misread code that had already shipped, each round title counts the marked findings, and `score-outcomes` lists them per chunk -2026-10-23, claude. Serves code health (`CLAUDE.md` โ†’ "Shared goal"): its counter-signal, reviewers raising blockers because the implementer misunderstood the current system, had no count, since no tool recorded why a finding arose. The reviewer is the one that knows, so it marks the finding (`skills/larv-review/review-findings.md` โ†’ "Misread"). The worker counts the marked ๐Ÿ”ด and ๐ŸŸก findings in the round's commit title, `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก (1 misread); โ€ฆ`, which `score-outcomes` already reads for the ๐Ÿ”ด and ๐ŸŸก counts, so the count needs no record of its own. rule-hook's `round-title-counts` refuses a round title without it, so a missing count never reads as zero. Titles from before the count read as unknown. A bench of three readers seated as the audience picked both spellings, two of three each: a prefix stays at a fixed place on a skimmed line, and the parenthesis reads as a share of the ๐Ÿ”ด and ๐ŸŸก counts, not a third kind of finding. Only the reviewers under `agents/` mark findings; `/security-review` and a forge's auto-reviewer don't. Item 110's later fixes stand for the other half of the counter-signal, the defects that keep reappearing. Valid while round titles are where `score-outcomes` reads a chunk's findings. +2026-10-23, claude. Serves code health (`CLAUDE.md` โ†’ "Shared goal"): its counter-signal, reviewers raising blockers because the implementer misunderstood the current system, had no count, since no tool recorded why a finding arose. The reviewer is the one that knows, so it marks the finding (`skills/larv-review/review-findings.md` โ†’ "Misread"). The worker counts the marked ๐Ÿ”ด and ๐ŸŸก findings in the round's commit title, `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก (1 misread); โ€ฆ`, which `score-outcomes` already reads for the ๐Ÿ”ด and ๐ŸŸก counts, so the count needs no record of its own. rule-hook's `round-title-counts` refuses a round title without the count, or with more misread findings than findings, so a title that leaves the count out never reads as zero; titles from before the count read as unknown. Only the reviewers under `agents/` mark findings. `/security-review` marks none, so its round titles count 0 misread, and the count is a floor. A bench of three readers seated as the audience chose `[misread]` right after the severity mark, which stays at a fixed place on a skimmed line, and the parenthesis `(1 misread)`, which reads as a share of the ๐Ÿ”ด and ๐ŸŸก counts rather than a third kind of finding, each two to one. The other half of the counter-signal, defects that keep reappearing, waits for the later fixes that `todo.md` item 110 counts. Valid while round titles are where `score-outcomes` reads a chunk's findings. ## review: an ask no user answers leaves the PR unmerged diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 40d466ef..efb530f9 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -65,7 +65,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Round.** A round is one review by a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). A relaunch one rung up ("Rung up" below) stays in its round. - **Auto-reviewer.** The external auto-reviewer (ยง4) is a pass of its own, each review it posts a round. Its count is the number of its reviews on the PR, less its reviews of a `Record the comprehension check:` commit, and `round-count` doesn't list it. A commit that answers one of its rounds takes an ordinary title, not an `Answer round` one, and a round that changed nothing gets no commit. -- **Count.** Close each round of a pass other than the auto-reviewer with one commit that holds the round's fixes. Title it `Answer round : ๐Ÿ”ด, ๐ŸŸก ( misread); โ€ฆ`: `` is the pass's name in lower case, such as `full scan`, `` and `` are the ๐Ÿ”ด and ๐ŸŸก findings all the round's reviewers reported, and `` is how many of those they marked `[misread]` (review-findings.md โ†’ "Misread"). Example: `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก (1 misread); flag a deleted test`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when ยง4 runs next, where there is a remote. `~/.claude/bin/larv-review round-count` prints each pass's count and marks a pass at the cap. +- **Count.** Close each round of a pass other than the auto-reviewer with one commit that holds the round's fixes. Title it `Answer round : ๐Ÿ”ด, ๐ŸŸก ( misread); โ€ฆ`: `` is the pass's name in lower case, such as `full scan`, `` and `` are the ๐Ÿ”ด and ๐ŸŸก findings all the round's reviewers reported, and `` is how many of those they marked `[misread]` (review-findings.md โ†’ "Misread"); a reviewer that marks none, such as `/security-review`, adds 0. Example: `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก (1 misread); flag a deleted test`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when ยง4 runs next, where there is a remote. `~/.claude/bin/larv-review round-count` prints each pass's count and marks a pass at the cap. - **Done.** A pass is done when its latest round leaves no ๐Ÿ”ด or ๐ŸŸก standing: none was reported, or each was shown factually wrong, declined, filed, or named under the bar per "Findings", or settled in the PR summary per "Comprehension check" โ†’ "Places", or, for the prose pass, fixed. Resolve that round's ๐ŸŸขs and โ“s per "Findings" too. - **Cap.** A pass takes at most three rounds per chunk. Instead of a fourth, list what is open and ask the user. For the auto-reviewer, ask before the push that would summon its fourth, and hold the fixes unpushed until the answer. - **Answer.** A yes grants that pass one more round, after which the ask repeats; a no leaves the PR unmerged. rule-hook refuses a round commit titled past round 3 unless its `round-cap` override quotes the yes. diff --git a/skills/larv-review/review-findings.md b/skills/larv-review/review-findings.md index 8116287e..dbda6e38 100644 --- a/skills/larv-review/review-findings.md +++ b/skills/larv-review/review-findings.md @@ -16,7 +16,7 @@ A finding against a technical principle names it and the file under `~/.claude/p ## Misread -Mark a ๐Ÿ”ด or ๐ŸŸก `[misread]`, right after its severity mark, where it arose because the implementer misread code that had already shipped before this change: a wrong belief about what that code does, what a name means or what a contract promises. A defect in the change's own new code is not misread. `score-outcomes` counts the marked findings per chunk, as code health's counter-signal (`~/.claude/CLAUDE.md` โ†’ "Shared goal"). +Mark a ๐Ÿ”ด or ๐ŸŸก `[misread]`, right after its severity mark, where it arose because the implementer misread code that shipped before this change: a wrong belief about what that code does, what a name means or what a contract promises. Don't mark a finding about a defect in the change's own new code. `score-outcomes` counts the marked findings per chunk, as code health's counter-signal (`~/.claude/CLAUDE.md` โ†’ "Shared goal"). ## Verdict @@ -35,7 +35,7 @@ Where your report holds a finding against `~/.claude/skills/larv-review/standard Write your full report with the Write tool to the file your prompt names. The file is the worker's input, which it searches for each finding's entry, so write it even where your harness says to return findings directly. It holds the verdict, then every finding with its place, its evidence and its fix, as your agent file shapes them. Then return only: - the verdict line -- one line per finding, in this order: its severity mark, `[misread]` where it holds, its place, and what is wrong, in one sentence. Where the finding breaks `standards/quality.md` or a file under `~/.claude/principles/`, end the line with that file's name. For a ๐Ÿ”€, end it with the reviewer it names. Example: ``๐ŸŸก `bin/example.py:42` `parse`: an empty line raises IndexError (technical-principles.md)`` +- one line per finding, in this order: its severity mark, `[misread]` where you marked the finding so, its place, and what is wrong, in one sentence. Where the finding breaks `standards/quality.md` or a file under `~/.claude/principles/`, end the line with that file's name. For a ๐Ÿ”€, end it with the reviewer it names. Example: ``๐ŸŸก `bin/example.py:42` `parse`: an empty line raises IndexError (technical-principles.md)`` - for stability-reviewer, whether the tests passed, and at which commit - `Rerun one rung up`, where your report ends with it - the report's path diff --git a/todo.md b/todo.md index d4fbc2bf..36e94f97 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 222` +`Next ID = 223` ## Items @@ -17,6 +17,7 @@ | 6 | 0.4.0 | | decision | **Move what `loop-claude` writes out of `~/.claude.json`, and ask the human about each write that must stay.** | 3 | 3 | 3 | 7 | 3 | 1.1 by 5 | 5.3 | | 1 | 0.5.0 | | question | **Say in README โ†’ Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 1 | 2 | 1 | 2 | 1 | | 0.0 | | 219 | 0.5.0 | | | **Name the project's rung `project` in `bin/judge_replay/main.py`, `bin/subagent_rung/main.py` and `bin/review_replay/main.py`, in place of `anchor`, as `bin/model_routing/ladder.py` and `bin/loop_claude` name it.** | 1 | 1 | 3 | 3 | 2 | code health by 2 | 12.0 | +| 222 | 0.5.0 | | | **Split `docs/decisions.md` โ†’ `todo.md: one table of items, โ€ฆ`'s 420-word scoring paragraph into one paragraph per choice, and drop the sentences that tell how the goal weights changed.** | 1 | 1 | 1 | 1 | 2 | code health by 2 | 12.0 | | 123 | 0.5.0 | | | **Have `bin/comprehension_history.py` parse each history entry once into seats, votes and places, so `latest_places`, `worse_places` and `worse_votes` neither depend on table order nor split a label to find a seat.** | 2 | 1 | 2 | 3 | 5 | code health by 5, 1.4 by 5 | 11.0 | | 139 | 0.5.0 | | | **Split `bin/routing_figures/measure.py` by concern, and keep the figures' measured cycle and each raised call as fields loop-claude reads back, not as the prose it renders.** | 3 | 1 | 2 | 4 | 5 | code health by 5, 1.4 by 5 | 11.0 | | 158 | 0.5.0 | | decision | **Measure the fixed cost of a chunk from loop-claude's archive, in tokens and hours against its items' S, and set F in `Score = 100 * V / (2**S + F)` to it.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 5, 1.4 by 5 | 10.3 | @@ -36,7 +37,7 @@ | 102 | 0.5.0 | | | **Give loop-claude's retry delay an environment override, so the black-box test stops replacing `time.sleep` through `sitecustomize`.** | 1 | 1 | 2 | 2 | 2 | 1.1 by 4 | 5.6 | | 173 | 0.5.0 | | | **Have rule-hook's `todo-rank-check` run a worktree's own `bin/rank_todo.py` when the worktree is of this repo, so a branch that changes `todo.md`'s shape commits without an override.** | 2 | 1 | 3 | 4 | 2 | 1.1 by 2, 1.4 by 2 | 5.5 | | 101 | 0.5.0 | | principle | **Have `larv_review/history_commands.py`'s `read_seats` take the time, the commit check and the history as inputs, so it parses and decides without effects.** | 2 | 1 | 2 | 3 | 3 | 1.1 by 5 | 5.3 | -| 110 | 0.5.0 | | | **Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed E.** | 3 | 2 | 2 | 5 | 5 | 1.1 by 6, 1.4 by 6 | 4.9 | +| 110 | 0.5.0 | | decision | **Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed E.** | 3 | 2 | 2 | 5 | 5 | 1.1 by 6, 1.4 by 6 | 4.9 | | 12 | 0.5.0 | | | **Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough.** | 3 | 2 | 1 | 4 | 4 | 1.1 by 6 | 4.2 | | 135 | 0.5.0 | | | **Fingerprint only the modules loop-claude imports, so editing another tool's code no longer reloads a running loop.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 4 | 4.2 | | 171 | 0.5.0 | | decision | **Group the routing figures' review rounds by the reviewers' rung as well as the worker's, so a call blames a rung only for rounds its own reviews raised.** | 3 | 2 | 2 | 5 | 4 | 1.2 by 3, 1.4 by 3 | 4.0 | @@ -92,6 +93,10 @@ The README line covers the bench's transcripts in `workflow-bench/logs/` too (go Item 172 renamed `anchor` to `project` across `bin/loop_claude`, after release 0.3.0's inherited architect named `bin/loop_claude/cycle/judge.py:68` `Reply.bundled`: "the project's rung is also called anchor". Three tools outside it still call the same rung `anchor`: `bin/judge_replay/main.py:54` (`anchor = arguments_or_exit(...)`, a `Rung` parsed from the model argument), `bin/subagent_rung/main.py:26` (`anchor = project_rung(model)`), and `bin/review_replay/main.py:74`, `:100` and `:180`, with `findings_found`'s docstring. While the name differs between tools, a reader works out each time that the two are one rung. The rename keeps behaviour. `bin/score_outcomes/anchors.py` uses `anchor` for score anchors, a different thing, and keeps the name. +### 222. Split `docs/decisions.md` โ†’ `todo.md: one table of items, โ€ฆ`'s 420-word scoring paragraph into one paragraph per choice, and drop the sentences that tell how the goal weights changed. + +Found by the prose review of PR #368. The paragraph that opens `2026-10-16, PR #283: items rank by` covers the formula, F, the goal weights, the panels' spelling picks, the column order and the old shape, and grew a sentence per chunk. A reader looking for what F is, or why `2**S`, searches all of it. Its sentences on how the goal weights changed over time, such as the one on PR #319, describe past states, not what holds; git history keeps them. + ### 123. Have `bin/comprehension_history.py` parse each history entry once into seats, votes and places, so `latest_places`, `worse_places` and `worse_votes` neither depend on table order nor split a label to find a seat. Three seats of PR #257's scoring run named `bin/comprehension_history.py:106` `latest_places`; the logic it rests on is `:114` `worse_places` and `:126` `worse_votes`. They regex the markdown the module writes. `worse_votes` keeps a seat's first row through `setdefault`, because the votes table comes first. `worse_places` recovers the seat with `label.split(",")[0]`. `Entry` still holds scoring seats' places for rulings recorded before PR #255. Release 0.3.0's seats named near-synonyms left from before PR #255: `:150` `scoring_runs`, "near-synonyms scored and scoring_runs differ only on a ruling from before PR #255" (Maintainability senior), `:130` `newest_scored`, "four near-identical names over two concepts", and `:159` `scored`. Make these functions easier to read.