From 410ae7695c95dd488a8b558bef397f87401a33b3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 17 Oct 2026 21:28:53 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=201:=201=20=F0=9F=94=B4,?= =?UTF-8?q?=206=20=F0=9F=9F=A1;=20fix=20the=20help's=20fetch=20claim,=20th?= =?UTF-8?q?e=20doubled-run=20scope,=20the=20decision=20title=20and=20the?= =?UTF-8?q?=20docstrings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 2 +- CHANGELOG.md | 2 +- README.md | 2 +- bin/comprehension_history.py | 10 +++++----- bin/larv_review/agreement.py | 8 ++++---- bin/larv_review/main.py | 15 +++++++-------- bin/larv_review/test_larv_review.py | 25 ++++++++++++++++++++++++- docs/decisions.md | 4 ++-- skills/larv-review/SKILL.md | 8 ++++++-- 9 files changed, 51 insertions(+), 25 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 940b1ee1..7946865d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -13,7 +13,7 @@ Decisions live in `docs/decisions.md`: - review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human - review: a reviewer or comprehension seat that rules the work below standard may ask to rerun once, one rung up, in the same round; the ruling that stands is an escalation trigger for the worker, never for the judge - review: a fix for a 🔴 or 🟡 reruns the pass that found it and each pass whose trigger names fixes like it; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a 🟢, a ❓ or a prose finding reruns none -- review: the comprehension check records how hard a project is to read and blocks no merge: a paired ruling against the last measured commit where the architecture pass ran, and the four-seat scoring run when a release's items run out or an item names the floor +- review: the comprehension check records how hard a project is to read and blocks no merge: a paired ruling against the last measured commit where the architecture pass ran, and the four-seat scoring run, done twice on one head, when a release's items run out or an item names the floor - review: a project decision may suspend the comprehension check for the plan items it names - review: a project decision may opt every chunk out of the architect, the product-owner pass or the comprehension check - review: the principles audit runs on every chunk that changes code, config or tests, and on no other chunk diff --git a/CHANGELOG.md b/CHANGELOG.md index 4889821d..1c6513b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- Each release's scoring run is done twice on the same head, and `larv-review agreement` checks the assumption behind the paired ruling from the pairs: it counts how often Mid A and the inherited architect vote alike in a paired ruling and how often their overall scores move alike between two runs on one commit. It gives a verdict after 10 pairs, and a scoring run asks the user when it says the assumption fails. +- A scoring run due because a release's items ran out costs four more seats: it is done twice on one head. `larv-review agreement` compares how often Mid A and the inherited architect vote alike in paired rulings with how often their overall scores move the same way between the two runs. After 10 such pairs it gives a verdict, and on `Assumption fails:` larv-review asks you whether to keep the paired ruling. - `workflow-bench/bench.py` gives each run a fixed list of allowed tools. Before, it skipped every permission check. A run may launch agents, run `/security-review`, edit its clone (not the clone's `.git/` or `.claude/`) and its report, and read its clone and the copy of `~/.claude` it benches. For git it gets one command, `workflow-bench/review_git.py`, and no bare `git`. The wrapper runs `log`, `diff`, `show`, `status`, `ls-files`, `add` and `commit -m` on the run's clone, whatever the working directory. It allows only the options it lists for each, and refuses an argument that names a path outside the clone. git runs with no global or system config, hook, pager or editor. A run loads no settings or MCP servers from `~/.claude` or from the case's clone, so their hooks and extra directories do not apply to it. Every other call is denied. Expect a benched review that needs another git command, or to run a project's code or tests, to say in its report that it could not. - Every goal in `README.md` → Goals is marked `**Maintain:**`, a state to hold, or `**Achieve:**`, a direction to pursue. Each achieve goal has a signal, a counter-signal and a one-line reason under it. A change that breaks a maintain goal is redesigned or dropped, whatever it scores: `rules/todo-items.md` says so, and larv-review's goal alignment step no longer merges such a PR. `rules/goals-and-audience.md` states the form for every project's README. Expect larv-review to stop a PR on a maintain goal where it asked you before. - Reshape every project's `todo.md` to the new shape below: until it is reshaped, that is the project's only work, as it is while README.md lacks Goals and Audience, and `rank_todo.py` says so. First move every machine to this release: an older release rejects the new formula, so it fails on every reshaped `todo.md`. Then mark the README's goals `**Maintain:**` or `**Achieve:**`, score each item's L, E and I, and set a bar on the new scale below the score of every item to keep, since the old bar would drop most items. Until then, an old-shape `todo.md` still ranks by its own formula and weights. diff --git a/README.md b/README.md index 8ab2929d..09c872b4 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Install puts only `loop-claude` on `PATH`; call the others by their path, such a - `chunk-preflight` finds the mechanical facts a chunk starts from and makes its worktree; `loop-claude` runs it before it routes each chunk, and `chunk-preflight --help` lists the facts. - `judge-replay ` replays loop-claude's judge on archived verdicts of the projects run on the model, and prints the lowest rung that, like each rung above it, returns them; `judge-replay --help` states the replay. -- `larv-review ` holds larv-review's mechanical rules: the paired ruling's base and vote count, each pass's round count, the scoring run's trigger, and the comprehension history's format, latest places and seat agreement; `larv-review --help` states them. +- `larv-review ` holds larv-review's mechanical rules: the paired ruling's base and vote count, each pass's round count, the scoring run's trigger, and the comprehension history's format and latest places, and its count of how often seats agree; `larv-review --help` states them. - `loop-claude ` runs a project's next chunk cycle after cycle; `loop-claude --help` states its contract. - `metric-bench [history]` benches cheap static metrics of a project's Python against the places its comprehension history names as hardest; `metric-bench --help` states the metrics and the scores. - `rank_todo.py [--check] [todo.md]` scores and ranks a project's `todo.md`; `rank_todo.py --help` states the format. diff --git a/bin/comprehension_history.py b/bin/comprehension_history.py index f46913a9..dd492161 100644 --- a/bin/comprehension_history.py +++ b/bin/comprehension_history.py @@ -43,7 +43,6 @@ class Entry: """One paired ruling, which names the commit it was against and its ruling, or one scoring run, which names neither. The places under a scoring seat's label are scored_places; a ruling recorded before PR #255 may hold them too.""" heading: str time: str - label: str commit: str against: str | None ruling: str | None @@ -100,14 +99,15 @@ def entries(history: str) -> list[Entry]: if named := HEADING.match(heading): body = "\n".join(bodies) ruling = RULING.search(body) - found.append(Entry(heading, named.group(1), named.group(2), named.group(3), named.group(4), ruling.group(1) if ruling else None, seat_places(body, RULED_PLACES), seat_places(body, SCORED_PLACES), body)) + found.append(Entry(heading, named.group(1), named.group(3), named.group(4), ruling.group(1) if ruling else None, seat_places(body, RULED_PLACES), seat_places(body, SCORED_PLACES), body)) return found def latest_places(history: str) -> str | None: - """The places seats found hard from the newest entry, by time, that is a scoring run or holds scoring seats' places: in it and each later entry, each ruled place opening with a dimension its seat's vote counted as worse, and every scoring seat's place. Each entry's places come under its heading, oldest first; with no such entry, it starts at the oldest entry. None when no place counts.""" + """The places seats found hard from the oldest entry on the commit of the newest entry, by time, that is a scoring run or holds scoring seats' places: in it and each later entry, each ruled place opening with a dimension its seat's vote counted as worse, and every scoring seat's place. Each entry's places come under its heading, oldest first; with no such entry, it starts at the oldest entry. None when no place counts.""" found = sorted(entries(history), key=lambda entry: entry.time) - newest = max((index for index, entry in enumerate(found) if not entry.paired or entry.scored_places), default=0) + scored = [index for index, entry in enumerate(found) if not entry.paired or entry.scored_places] + newest = next((index for index in scored if found[index].commit == found[scored[-1]].commit), 0) parts = [placed(entry, worse_places(entry) + labelled_bullets(entry.body, SCORED_PLACES)) for entry in found[newest:]] return "\n".join(part for part in parts if part) or None @@ -130,7 +130,7 @@ def worse_votes(body: str) -> dict[str, set[str]]: def table_rows(body: str) -> dict[str, list[str]]: - """The cells after the first cell of each table row, by that cell, from the first row that has it; a table's header and its Mean row come with the seats'.""" + """Each table row's cells after its first, keyed by that first cell; where rows share a first cell, the first row wins. Header and Mean rows are included.""" found: dict[str, list[str]] = {} for line in body.splitlines(): if line.startswith("| "): diff --git a/bin/larv_review/agreement.py b/bin/larv_review/agreement.py index c80535bd..636d32ca 100644 --- a/bin/larv_review/agreement.py +++ b/bin/larv_review/agreement.py @@ -3,12 +3,12 @@ import decimal from comprehension_history import counted_vote, entries, Entry, table_rows from larv_review.seats import FIRST_SEATS -# As score-outcomes waits for 10 finished chunks before it shows a median. +# Matches score-outcomes, which waits for 10 finished chunks before it shows a median. MIN_PAIRS = 10 def overall_cells(entry: Entry) -> dict[str, str]: - """Each seat's last cell: its overall vote in a ruling, its overall score in a scoring run.""" + """Each table row's last non-empty cell, by its first cell: a seat's overall vote in a ruling, its overall score in a scoring run.""" return {name: cells[-1] for name, cells in table_rows(entry.body).items() if cells and cells[-1]} @@ -36,11 +36,11 @@ def direction(before: decimal.Decimal, after: decimal.Decimal) -> int: def agreement_report(history: str) -> str: - """Whether the first two seats agree more often in a paired ruling than across two scoring runs on one commit, as the comprehension check's decision assumes. It opens `Assumption holds:`, `Assumption fails:`, or `Unchecked:` until the history holds MIN_PAIRS pairs of runs and a ruling.""" + """Whether the first two seats agree more often in a paired ruling than across two scoring runs on one commit, as the comprehension check's decision assumes. It opens `Unchecked:` until the history holds MIN_PAIRS pairs of runs and one paired ruling, then `Assumption holds:` or `Assumption fails:`; equal rates fail.""" found = entries(history) ruled, scored = ruling_agreement(found), run_agreement(found) counts = f"{' and '.join(FIRST_SEATS)} voted alike overall in {sum(ruled)} of {len(ruled)} paired rulings, and their overall scores moved alike between two scoring runs on one commit in {sum(scored)} of {len(scored)} pairs." if len(scored) < MIN_PAIRS or not ruled: - return f"Unchecked: {counts} A verdict needs {MIN_PAIRS} pairs of scoring runs on one commit and one paired ruling." + return f"Unchecked: {counts} A verdict needs {MIN_PAIRS} commits each scored twice and one paired ruling." holds = sum(ruled) / len(ruled) > sum(scored) / len(scored) return f"Assumption {'holds' if holds else 'fails'}: {counts}" diff --git a/bin/larv_review/main.py b/bin/larv_review/main.py index 46685571..fcb82094 100644 --- a/bin/larv_review/main.py +++ b/bin/larv_review/main.py @@ -1,4 +1,4 @@ -"""Hold larv-review's mechanical rules: the paired ruling's base and vote count, each pass's rounds, the scoring run's trigger, and the comprehension history's format, latest places and seat agreement. +"""Hold larv-review's mechanical rules: the paired ruling's base and vote count, each pass's rounds, the scoring run's trigger, and the comprehension history's format and latest places, and its count of how often seats agree. usage: larv-review ruling-base | round-count | needs-scoring-run [...] | record-ruling | record-scoring [...] | places | agreement @@ -7,7 +7,7 @@ paired ruling, simulated readers, the seats, read the branch's head beside a bas same or worse, overall and on each dimension. In a scoring run, four seats score the project from 1 to 10. Each seat names the places it found hard. -Run it inside a project checkout or one of its worktrees. Each command but record-ruling and places +Run it inside a project checkout or one of its worktrees. Each command but record-ruling, places and agreement first fetches origin, when the checkout has that remote, and takes origin's default branch, or else the local main or master, as the default branch. When the fetch fails, round-count reads origin as last fetched and says so on stderr; the other three exit 1. The history is @@ -71,12 +71,11 @@ in each later ruling, each place opening with a dimension, or Overall, that its A ruling recorded with scoring seats' places counts as a scoring run. Each entry's places come under its heading, oldest first. With no scoring run, it reads every ruling. -agreement checks the assumption behind the paired ruling: that Mid A and the inherited architect -vote alike overall in a paired ruling more often than they move alike between two scoring runs on -one commit. A seat moves up, down or none from the first run to the second in its overall score. A -release's scoring run is done twice on its head, the second recorded as ` rerun at `. -It prints both counts and opens `Unchecked:` until the history holds 10 such pairs of runs and one -ruling, then `Assumption holds:` or `Assumption fails:`. It exits 0 for each. +agreement pairs the first two scoring runs recorded on one commit. In each pair, a seat's overall +score goes up, goes down or stays the same. It checks the assumption behind the paired ruling: Mid A +and the inherited architect vote alike overall in a paired ruling more often than their scores go the +same way in a pair. It prints both counts. It opens `Unchecked:` until the history holds 10 such +pairs and one paired ruling, then `Assumption holds:` or `Assumption fails:`, and exits 0 each time. Each record is appended to the history, created when missing, under a heading of the current UTC time and the seats file's first line. Each commit that line names must be in the checkout. It exits 1 diff --git a/bin/larv_review/test_larv_review.py b/bin/larv_review/test_larv_review.py index c1c6f2d2..c18b6732 100644 --- a/bin/larv_review/test_larv_review.py +++ b/bin/larv_review/test_larv_review.py @@ -156,6 +156,12 @@ class History(unittest.TestCase): fell = ruled.replace("2026-10-10T12:00:00Z", "2026-10-09T12:00:00Z") + "\n| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |\n|---|---|---|---|---|---|\n| Mid A | 7 | 6 | 7 | 7 | 7 |\n| Mean | 7 | 6 | 7 | 7 | 7 |\n\nJunior A, hardest first:\n\n- `bin/j.py:5` `s`: wide\n" self.assertEqual(latest_places(appended(appended("", scored), fell)), hard_since.replace("2026-10-10T12:00:00Z", "2026-10-09T12:00:00Z") + "\nJunior A, hardest first:\n\n- `bin/j.py:5` `s`: wide\n") + def test_names_the_places_of_every_run_on_the_newest_scored_commit(self): + run = "## {time}, {pr} at {commit}\n\nJunior A, hardest first:\n\n- `bin/b.py:{line}` `h`: long\n" + first, rerun, other = (run.format(time=time, pr=pr, commit=commit, line=line) for time, pr, commit, line in (("2026-10-08T12:00:00Z", "PR #1", "aaaaaaa", 1), ("2026-10-08T13:00:00Z", "PR #1 rerun", "aaaaaaa", 2), ("2026-10-09T12:00:00Z", "PR #2", "bbbbbbb", 3))) + self.assertEqual(latest_places(appended(appended("", first), rerun)), first + "\n" + rerun) + self.assertEqual(latest_places(appended(appended(appended("", first), rerun), other)), other) + def scored(time: str, pr: str, commit: str, mid: str, architect: str) -> str: """A scoring run's entry as the history writes it, with the two seats' overall scores.""" @@ -186,6 +192,12 @@ class Agreement(unittest.TestCase): one_up = [scored("2026-10-03T00:00:00Z", "PR #2", "bbbbbbb", "7", "7"), scored("2026-10-04T00:00:00Z", "PR #2 rerun", "bbbbbbb", "7.5", "7")] self.assertEqual(run_agreement(entries("\n".join([*both_up, *one_up]))), [True, False]) + def test_counts_opposite_moves_and_a_move_against_none_as_different(self): + opposite = [scored("2026-10-01T00:00:00Z", "PR #1", "aaaaaaa", "7", "7"), scored("2026-10-02T00:00:00Z", "PR #1 rerun", "aaaaaaa", "7.5", "6.5")] + down_and_none = [scored("2026-10-03T00:00:00Z", "PR #2", "bbbbbbb", "7", "7"), scored("2026-10-04T00:00:00Z", "PR #2 rerun", "bbbbbbb", "6.5", "7")] + both_down = [scored("2026-10-05T00:00:00Z", "PR #3", "ccccccc", "7", "7"), scored("2026-10-06T00:00:00Z", "PR #3 rerun", "ccccccc", "6.5", "6.5")] + self.assertEqual(run_agreement(entries("\n".join([*opposite, *down_and_none, *both_down]))), [False, False, True]) + def test_leaves_out_commits_scored_once_and_runs_of_one_pr_on_different_commits(self): history = "\n".join([scored("2026-10-01T00:00:00Z", "PR #1", "aaaaaaa", "7", "7"), scored("2026-10-02T00:00:00Z", "PR #1", "bbbbbbb", "7.5", "7.5")]) self.assertEqual(run_agreement(entries(history)), []) @@ -199,6 +211,13 @@ class Agreement(unittest.TestCase): history = "\n".join([mean_only, scored("2026-10-01T00:00:00Z", "PR #1 rerun", "aaaaaaa", "7", "7"), scored("2026-10-02T00:00:00Z", "PR #1 again", "aaaaaaa", "7.5", "7.5")]) self.assertEqual(run_agreement(entries(history)), [True]) + def test_skips_an_entry_listing_one_seat_or_an_empty_overall(self): + one_seat = "## 2026-10-01T00:00:00Z, PR #1 at aaaaaaa, against bbbbbbb\n\nRuling: same\n\n| Seat | Overall |\n|---|---|\n| Mid A | same |\n" + empty = "## 2026-10-02T00:00:00Z, PR #2 at ccccccc, against bbbbbbb\n\nRuling: same\n\n| Seat | Overall |\n|---|---|\n| Mid A | same |\n| Inherited architect | |\n" + self.assertEqual(ruling_agreement(entries("\n".join([one_seat, empty]))), []) + half = "## 2026-10-03T00:00:00Z, PR #3 at ddddddd\n\n| Seat | Overall |\n|---|---|\n| Mid A | 7 |\n" + self.assertEqual(run_agreement(entries("\n".join([half, half.replace("PR #3", "PR #3 rerun").replace("T00:00:00Z", "T01:00:00Z")]))), []) + def test_records_a_rerun_beside_the_run_it_repeats(self): history = appended("", scored("2026-10-01T00:00:00Z", "PR #1", "aaaaaaa", "7", "7")) self.assertTrue(recorded(history, "PR #1 at aaaaaaa")) @@ -216,6 +235,10 @@ class Agreement(unittest.TestCase): self.assertIn("3 of 3 paired rulings", report) self.assertIn("5 of 10 pairs", report) + def test_fails_when_the_two_shares_are_equal(self): + rulings = [ruled("2026-10-20T00:00:00Z", "PR #2", "same", "same"), ruled("2026-10-20T00:00:01Z", "PR #3", "worse", "same")] + self.assertEqual(agreement_report("\n".join([*pairs_of_runs(5, 5), *rulings])).split(":")[0], "Assumption fails") + def test_fails_when_the_seats_agree_in_a_lower_share_of_rulings_than_of_pairs_of_runs(self): rulings = [ruled("2026-10-20T00:00:00Z", "PR #2", "same", "same"), ruled("2026-10-20T00:00:01Z", "PR #3", "same", "same"), ruled("2026-10-20T00:00:02Z", "PR #4", "worse", "same")] self.assertEqual(agreement_report("\n".join([*pairs_of_runs(8, 2), *rulings])).split(":")[0], "Assumption fails") @@ -406,7 +429,7 @@ class LarvReviewTool(unittest.TestCase): history = "\n".join([scored("2026-10-01T00:00:00Z", "PR #1", "aaaaaaa", "7", "7"), scored("2026-10-02T00:00:00Z", "PR #1 rerun", "aaaaaaa", "7.5", "7"), ruled("2026-10-03T00:00:00Z", "PR #2", "same", "same")]) self.commit("Record the checks", {"docs/comprehension-history.md": appended("", history)}) ran = self.run_tool("agreement") - self.assertEqual((ran.returncode, ran.stdout), (0, "Unchecked: Mid A and Inherited architect voted alike overall in 1 of 1 paired rulings, and their overall scores moved alike between two scoring runs on one commit in 0 of 1 pairs. A verdict needs 10 pairs of scoring runs on one commit and one paired ruling.\n"), ran.stderr) + self.assertEqual((ran.returncode, ran.stdout), (0, "Unchecked: Mid A and Inherited architect voted alike overall in 1 of 1 paired rulings, and their overall scores moved alike between two scoring runs on one commit in 0 of 1 pairs. A verdict needs 10 commits each scored twice and one paired ruling.\n"), ran.stderr) self.assertIn("unknown arguments", self.run_tool("agreement", "x").stderr) def test_refuses_a_ruling_file_that_names_no_base_or_a_commit_the_checkout_lacks(self): diff --git a/docs/decisions.md b/docs/decisions.md index 3540a729..26fc1182 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -74,13 +74,13 @@ Valid while the ladder orders its rungs by competence. 2026-10-13, lilleman through todo item 97, implemented by claude: from round 2 a pass reviews only how the chunk answered its previous round, each fix and each dismissal with its reason, and reports only one that is plainly wrong or worse than the change it answered. A fix from another pass that re-enters it is still reviewed as a first round would review it, limited to its lines. Reviewing all that changed had a reviewer find new gaps in each round's fixes, so a pass ran to its cap. Serves goals 1.4 and 1.5. Valid while round-2 findings outside a round's answers keep changing nothing a user would notice. -## review: the comprehension check records how hard a project is to read and blocks no merge: a paired ruling against the last measured commit where the architecture pass ran, and the four-seat scoring run when a release's items run out or an item names the floor +## review: the comprehension check records how hard a project is to read and blocks no merge: a paired ruling against the last measured commit where the architecture pass ran, and the four-seat scoring run, done twice on one head, when a release's items run out or an item names the floor 2026-10-08, lilleman. Serves goals 1.1 and 1.4. Two independent four-seat runs moved up to 0.4 on near-identical code, so a fall within that noise forced rounds that changed nothing (PR #224). A seat reading both versions judges the difference on the same material, so the noise the versions share cancels. No conventional significance level lets a sign test settle with four votes, so the human chose a lead of two votes over every other ruling, same included. Two seats that agree settle it, so a PR that leaves the reading as it was costs two seats. A third seat alone can never settle it, so the third and fourth launch together. The human chose the last measured commit on the architect's finding that with a merge base as the base, chunks without an architecture pass, and a suspended restructure's steps, could each lower comprehension unseen. Reading the default branch one merged change at a time keeps the rule working for merge commits and squash merges alike. The scoring run also runs on a chunk shipping an item that names the floor, so the chunk that lifts a project to the floor can prove it. A chunk that removes a release's last item without shipping it runs it too, so no release ends unmeasured. Valid while seats reading both versions agree more often than two absolute runs do. 2026-10-13, lilleman. No published study validates simulated reader panels as a measure of how easy code is to understand, and no test of whether the panel's signal beats its noise has run. So no ruling, score or floor blocks a merge. The runs go on, so the history keeps the scores and the places the seats found hard, for later measurement. The architect, the stability reviewer and a session filing an item read the newest places, since those places are what a chunk can improve. With nothing to block, the check runs once per chunk, on the branch as review left it, in place of a run in each architecture round and a rescore after later commits. A fallen dimension no longer calls the four scoring seats either: their scores only decided the block. The base is now the newest merged change that adds any ruling or scoring run: with worse rulings merging, a base left behind them would charge one chunk's ruling with earlier chunks' falls. The newest places are the newest scoring run's and each later ruling's places a seat voted worse, so they change with each ruling. A chunk that leaves a touched place as hard says why in its PR summary, not in a decline's record, which would outlive the place. -2026-10-17, lilleman. Serves goal 1.1. Nothing checked that validity condition. The history's successive scoring runs of one PR read changed code, not near-identical code, so they cannot stand for two absolute runs. So each release's scoring run is done twice on the same head, the second recorded under ` rerun at `, and `larv-review agreement` compares two rates: how often Mid A and the inherited architect vote alike overall in paired rulings, and how often their overall scores move alike between two scoring runs on one commit. It gives no verdict until the history holds 10 such pairs of runs, as `score-outcomes` waits for 10 chunks before it shows a median. The human chose the second run's cost, four more seats per release (goal 1.4), over a weaker check on the old pairs. +2026-10-17, lilleman. Serves goal 1.1. Nothing checked the 2026-10-08 validity condition. The history's successive scoring runs of one PR read changed code, not near-identical code, so they cannot stand for two absolute runs. So each release's scoring run is done twice on the same head, the second recorded under ` rerun at `, and `larv-review agreement` compares two rates: how often Mid A and the inherited architect vote alike overall in paired rulings, and how often their overall scores move alike between two scoring runs on one commit. It gives no verdict until the history holds 10 such pairs of runs, as `score-outcomes` waits for 10 chunks before it shows a median. The human chose the second run's cost, four more seats per release (goal 1.4), over a weaker check on the old pairs. ## review: a project decision may suspend the comprehension check for the plan items it names diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index ce8c94a1..5b67dcc5 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -45,7 +45,7 @@ A comment is prose, not code. Passes run in this order: line-level polish on cod Give a reviewer without Bash the branch diff and `git ls-files`'s output in its prompt: some harnesses grant it Read alone. -`~/.claude/bin/larv-review` holds this section's mechanical rules: the round count, the paired ruling's base and vote count, the scoring run's trigger, and the history's format, latest places and seat agreement. Run it in the chunk's worktree; `~/.claude/bin/larv-review --help` states each rule. On exit 1, repair what its message names and run it again; when you cannot, ask the user. +`~/.claude/bin/larv-review` holds this section's mechanical rules: the round count, the paired ruling's base and vote count, the scoring run's trigger, and the history's format and latest places, and its count of how often seats agree. Run it in the chunk's worktree; `~/.claude/bin/larv-review --help` states each rule. On exit 1, repair what its message names and run it again; when you cannot, ask the user. **Precedent, then ask** — for the architecture pass and the full scan: @@ -112,7 +112,11 @@ The comprehension check records how hard the project is to read, and blocks no m - **Head.** The head holds `origin/`, merged in at §4 step 1, so it differs from the default branch only by this branch's change. - **Seats.** Mid A and the inherited architect. Write what they read and their replies into a votes file in your scratchpad, in the shape `~/.claude/bin/larv-review --help` shows, and run `~/.claude/bin/larv-review record-ruling `. On `Split:`, launch the maintainability senior and Junior A together, add their lines, and run it again. -**Scoring run**, when `~/.claude/bin/larv-review needs-scoring-run ` prints `Scoring run due:`. Run `needs-scoring-run` before removing the chunk's items from `todo.md`. 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. 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. Then record the same head's second run, with the same four seats scoring it afresh and the first line of its scores file ` rerun at `, by the same `record-scoring` command. Then run `~/.claude/bin/larv-review agreement`. On `Assumption fails:`, ask the user whether to keep the paired ruling or change `~/.claude/docs/decisions.md` → `review: the comprehension check records …`, and record the answer there, with the counts it answered; a later run asks again only when the counts are worse than the recorded ones. Put its counts in the summary. +**Scoring run**, when `~/.claude/bin/larv-review needs-scoring-run ` prints `Scoring run due:`. Run `needs-scoring-run` before removing the chunk's items from `todo.md`. + +- **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. 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. +- **Second run.** Where `needs-scoring-run` printed that the chunk `leaves release … with no plan item`, 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. +- **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; never edit one. Commit what it appends in one commit titled `Record the comprehension check: …`, push it, and wait for the forge's checks (§4 step 4), not for an auto-review; it re-enters no pass. 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.