From e2033abbafbba031297921e3097fb83af4a2d867 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:25:37 +0200 Subject: [PATCH 01/11] Record the reading cost of the previous chunk --- docs/reading-cost.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 0c6a4d2a..87619da7 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -778,3 +778,12 @@ Read most (opens and searches): ## Reading cost, chunk 796f17403d2e, finished 2026-10-22T17:58:21Z 122986 new input tokens before the first commit. + +## Reading cost, chunk a91c10247935, finished 2026-10-22T18:13:46Z + +183925 new input tokens before the first commit. + +Read most (opens and searches): + +- `skills/larv-review/SKILL.md` 3 +- `rules/todo-items.md` 2 From 6cff688951d8b67f90b437133586d5208d5f8b2f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:25:37 +0200 Subject: [PATCH 02/11] List larv-review's passes in one place that round_titles and the ladder derive from, and check the pass table against it --- bin/larv_review/main.py | 3 ++- bin/model_routing/ladder.py | 7 +++++-- bin/repo_checks/test_reviewer_launches.py | 20 ++++++++++++-------- bin/round_titles.py | 3 ++- todo.md | 5 ----- 5 files changed, 21 insertions(+), 17 deletions(-) diff --git a/bin/larv_review/main.py b/bin/larv_review/main.py index bb7c017e..396bd866 100644 --- a/bin/larv_review/main.py +++ b/bin/larv_review/main.py @@ -101,13 +101,14 @@ import re import sys import typing -from round_titles import CAP, PASSES, round_counts +from round_titles import CAP, round_counts from git_repo import default_branch, git, top from failure import Failure from comprehension_history import FLOOR from larv_review.git import history_changes from larv_review.ruling_base import measured_commit from larv_review.agreement import MIN_PAIRS +from model_routing.ladder import PASSES from larv_review.plan import plan_reasons from larv_review.record import record_ruling, record_scoring, show_agreement, show_places from review_folder import REPORTS, review_folder diff --git a/bin/model_routing/ladder.py b/bin/model_routing/ladder.py index f3cf683a..215cb277 100644 --- a/bin/model_routing/ladder.py +++ b/bin/model_routing/ladder.py @@ -65,8 +65,11 @@ LADDER = ( WORKER_STEPS = {1: -1, 2: -1, 3: 0, 4: 1} # The rungs a task's E + I steps a review up from the project's rung; an E + I under 5 steps none. REVIEW_STEPS = {5: 1, 6: 2, 7: 3, 8: 4} -# Each pass an agent under agents/ reviews, in the order of SKILL.md's pass table, and that agent. -REVIEWERS: dict[ReviewedPass, str] = {"architecture": "systems-architect", "principles": "principles-auditor", "overrides": "override-reviewer", "stability": "stability-reviewer", "product-owner": "product-owner-reviewer", "prose": "prose-reviewer"} +# Each pass of skills/larv-review/SKILL.md β†’ "Passes", in the order of its table, and the agent under agents/ that reviews it; empty where a skill or plugin does. The auto-reviewer is no pass here: it posts no round commit. +PASS_AGENTS: dict[str, str] = {"architecture": "systems-architect", "principles": "principles-auditor", "full scan": "", "security": "", "overrides": "override-reviewer", "stability": "stability-reviewer", "product-owner": "product-owner-reviewer", "prose": "prose-reviewer"} +PASSES = tuple(PASS_AGENTS) +# The passes that have an agent, which `ReviewedPass` names for the type checker; test_ladder holds the two together. +REVIEWERS = typing.cast(dict[ReviewedPass, str], {name: agent for name, agent in PASS_AGENTS.items() if agent}) # The rung a pass's replay chose for the projects on a model: docs/decisions.md β†’ `routing: a review pass runs below the project's rung only on a rung that a replay of its rounds shows finding every πŸ”΄ and 🟑 the project's rung finds`. REPLAYED: dict[tuple[ReviewedPass, str], Rung] = {} diff --git a/bin/repo_checks/test_reviewer_launches.py b/bin/repo_checks/test_reviewer_launches.py index 76e5c60b..43457318 100644 --- a/bin/repo_checks/test_reviewer_launches.py +++ b/bin/repo_checks/test_reviewer_launches.py @@ -5,27 +5,31 @@ import unittest sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) -from round_titles import PASSES -from model_routing.ladder import REVIEWERS +from model_routing.ladder import PASS_AGENTS, PASSES, REVIEWERS from repo_checks.test_python_floor import ROOT from rule_hook.reviewer_rung import SEAT, SECURITY_OPENER OPENING = re.compile(r"^## Opening\n+```\n([^\n]+?\.)(?: |\n)", re.MULTILINE) +# A row of the pass table: its pass. +PASS_ROW = re.compile(r"^\| (?!Pass \|)([A-Z][a-z-]+(?: [a-z]+)?) \|", re.MULTILINE) # A row of the pass table whose reviewer is an agent: its pass and that agent. REVIEWED_ROW = re.compile(r"^\| ([A-Z][a-z-]+) \| ([a-z]+(?:-[a-z]+)*-(?:reviewer|architect|auditor)) \|", re.MULTILINE) LARV_REVIEW = (ROOT / "skills" / "larv-review" / "SKILL.md").read_text(encoding="utf-8") +PASS_TABLE = LARV_REVIEW.split("## 3. Passes", 1)[1].split("A comment is prose", 1)[0] class ReviewerLaunches(unittest.TestCase): """rule-hook holds a review launch to its rung by recognising it; these fail when what it recognises drifts from what the skills launch.""" - def test_the_reviewers_are_the_passes_and_agents_larv_review_s_pass_table_names_in_its_order(self): - passes = LARV_REVIEW.split("## 3. Passes", 1)[1].split("A comment is prose", 1)[0] - self.assertEqual({name.lower(): agent for name, agent in REVIEWED_ROW.findall(passes)}, REVIEWERS) - self.assertEqual([name.lower() for name, _ in REVIEWED_ROW.findall(passes)], list(REVIEWERS)) + def test_the_passes_are_the_ones_larv_review_s_pass_table_names_in_its_order(self): + self.assertEqual([name.lower() for name in PASS_ROW.findall(PASS_TABLE)], list(PASSES)) - def test_each_reviewed_pass_is_a_pass_the_round_titles_count(self): - self.assertEqual([name for name in PASSES if name in REVIEWERS], list(REVIEWERS)) + def test_the_reviewers_are_the_passes_and_agents_larv_review_s_pass_table_names_in_its_order(self): + self.assertEqual({name.lower(): agent for name, agent in REVIEWED_ROW.findall(PASS_TABLE)}, REVIEWERS) + self.assertEqual([name.lower() for name, _ in REVIEWED_ROW.findall(PASS_TABLE)], list(REVIEWERS)) + + def test_the_reviewers_are_the_passes_that_have_an_agent(self): + self.assertEqual(REVIEWERS, {name: agent for name, agent in PASS_AGENTS.items() if agent}) def test_the_seat_opening_is_the_sentence_that_opens_every_seat_prompt(self): opening = OPENING.search((ROOT / "skills" / "comprehension-panel" / "seat-prompts.md").read_text(encoding="utf-8")) diff --git a/bin/round_titles.py b/bin/round_titles.py index d4d436bd..027196fa 100644 --- a/bin/round_titles.py +++ b/bin/round_titles.py @@ -1,8 +1,9 @@ """The titles of larv-review's round commits, `Answer round : πŸ”΄, 🟑; `: each pass's round count, and the findings the rounds reported.""" import re +from model_routing.ladder import PASSES + CAP = 3 -PASSES = ("architecture", "principles", "full scan", "security", "overrides", "stability", "product-owner", "prose") ROUND = re.compile(r"^Answer (.+?) round ([0-9]+):", re.IGNORECASE) # What follows a round title's colon: the round's πŸ”΄ and 🟑 counts, then `;` and its summary, if any. FINDINGS = re.compile(r" ([0-9]+) πŸ”΄, ([0-9]+) 🟑(?:;|$)") diff --git a/todo.md b/todo.md index a3e7a81b..5c851038 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,6 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 121 | 0.4.0 | | | **List larv-review's passes in one place that `round_titles.PASSES`, `ladder.ReviewedPass` and `ladder.REVIEWERS` derive from, and check larv-review Β§3's table against it.** | 2 | 1 | 3 | 4 | 3 | code health by 9 | 40.4 | | 213 | 0.4.0 | | | **Compute the next release, and whether work has landed towards it, in one function that both `chunk_pick.standing` and `larv_review/plan.py`'s `scoring_run_due` call.** | 3 | 2 | 3 | 6 | 3 | code health by 9 | 40.4 | | 137 | 0.4.0 | | | **Archive a chunk's route as a record loop-claude reads back field by field, in place of the `Worker:` prose `ROUTED` parses, and name `stepped` and the judge's `bundled` by what they do.** | 4 | 2 | 3 | 7 | 4 | code health by 9, 1.4 by 9 | 32.9 | | 211 | 0.4.0 | | | **State each routing rule once, in the docstring of the code that enforces it, and cut `loop-claude --help`'s routing paragraph to what the human running the loop needs.** | 2 | 2 | 1 | 3 | 4 | code health by 9, 1.4 by 9 | 32.9 | @@ -77,10 +76,6 @@ ## Details -### 121. List larv-review's passes in one place that `round_titles.PASSES`, `ladder.ReviewedPass` and `ladder.REVIEWERS` derive from, and check larv-review Β§3's table against it. - -Release 0.3.0's inherited architect (PR #324 rerun at c713910) named `bin/round_titles.py:5` `PASSES`: "the pass list lives in four places, PASSES, ladder.ReviewedPass, REVIEWERS and SKILL.md's table, kept in sync by hand". That lowers Locality: adding a pass means editing four places. PR #257's run found that `PASSES` repeats the pass list in `skills/larv-review/SKILL.md:33`, with no check tying the two. It leaves out the auto-reviewer, whose rounds `SKILL.md:68` counts by hand. A test under `bin/repo_checks/` can hold the table to the list. Make `PASSES` easier to read. - ### 213. Compute the next release, and whether work has landed towards it, in one function that both `chunk_pick.standing` and `larv_review/plan.py`'s `scoring_run_due` call. Release 0.3.0's scoring runs named `bin/chunk_pick.py:97` `standing` at three seats (first run: PR #324 at c713910; rerun: PR #324 rerun at c713910). Inherited architect, first run: "'next release' is computed two ways, here and in larv_review/plan.py's scoring_run_due, which may diverge after a rename". Junior A, rerun: "two separate notions of the next release and of work having landed". This lowers Locality: changing what the next release is means changing both places, which may diverge. The seats also found `standing` itself hard: "five inputs, three of which may be Failure, produce five outcomes, the order of the Failure checks carrying meaning" (Maintainability senior, rerun), and `chunk_pick.Finished` "shares its name with judge.Finished" (Junior A, first run). Rename `chunk_pick.Finished`. Make `standing` and `scoring_run_due` easier to read. From 1f9536d6642a3dbb94a1b78fe6a6fc6de9cf5991 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:41:12 +0200 Subject: [PATCH 03/11] =?UTF-8?q?Answer=20architecture=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1;=20move=20the=20pass=20list=20?= =?UTF-8?q?to=20review=5Fpasses,=20check=20the=20pass=20table=20by=20one?= =?UTF-8?q?=20pattern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + bin/larv_review/main.py | 2 +- bin/model_routing/ladder.py | 9 ++------- bin/repo_checks/test_reviewer_launches.py | 8 +++----- bin/repo_checks/test_types.py | 2 +- bin/review_passes.py | 16 ++++++++++++++++ bin/round_titles.py | 2 +- 7 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 bin/review_passes.py diff --git a/.gitignore b/.gitignore index ea57c2a8..e44d9417 100644 --- a/.gitignore +++ b/.gitignore @@ -54,6 +54,7 @@ !bin/repo_checks/*.py !bin/review-replay !bin/review_folder.py +!bin/review_passes.py !bin/review_replay/ !bin/review_replay/*.py !bin/round_titles.py diff --git a/bin/larv_review/main.py b/bin/larv_review/main.py index 396bd866..5e456cc6 100644 --- a/bin/larv_review/main.py +++ b/bin/larv_review/main.py @@ -108,7 +108,7 @@ from comprehension_history import FLOOR from larv_review.git import history_changes from larv_review.ruling_base import measured_commit from larv_review.agreement import MIN_PAIRS -from model_routing.ladder import PASSES +from review_passes import PASSES from larv_review.plan import plan_reasons from larv_review.record import record_ruling, record_scoring, show_agreement, show_places from review_folder import REPORTS, review_folder diff --git a/bin/model_routing/ladder.py b/bin/model_routing/ladder.py index 215cb277..34e46e3c 100644 --- a/bin/model_routing/ladder.py +++ b/bin/model_routing/ladder.py @@ -3,10 +3,10 @@ import dataclasses import re import typing +from review_passes import ReviewedPass, REVIEWERS + # How Rung.__str__ spells a rung that names an effort, and Rung.parse reads it back. WORDING = re.compile(r"(?P\S+) at (?P\S+) effort") -# A pass an agent under agents/ reviews, named as skills/larv-review/SKILL.md β†’ "Passes" names it in lower case. -ReviewedPass = typing.Literal["architecture", "principles", "overrides", "stability", "product-owner", "prose"] # What a review launch reviews: such a pass, a comprehension seat or the security pass. ReviewKind = ReviewedPass | typing.Literal["seat", "security"] @@ -65,11 +65,6 @@ LADDER = ( WORKER_STEPS = {1: -1, 2: -1, 3: 0, 4: 1} # The rungs a task's E + I steps a review up from the project's rung; an E + I under 5 steps none. REVIEW_STEPS = {5: 1, 6: 2, 7: 3, 8: 4} -# Each pass of skills/larv-review/SKILL.md β†’ "Passes", in the order of its table, and the agent under agents/ that reviews it; empty where a skill or plugin does. The auto-reviewer is no pass here: it posts no round commit. -PASS_AGENTS: dict[str, str] = {"architecture": "systems-architect", "principles": "principles-auditor", "full scan": "", "security": "", "overrides": "override-reviewer", "stability": "stability-reviewer", "product-owner": "product-owner-reviewer", "prose": "prose-reviewer"} -PASSES = tuple(PASS_AGENTS) -# The passes that have an agent, which `ReviewedPass` names for the type checker; test_ladder holds the two together. -REVIEWERS = typing.cast(dict[ReviewedPass, str], {name: agent for name, agent in PASS_AGENTS.items() if agent}) # The rung a pass's replay chose for the projects on a model: docs/decisions.md β†’ `routing: a review pass runs below the project's rung only on a rung that a replay of its rounds shows finding every πŸ”΄ and 🟑 the project's rung finds`. REPLAYED: dict[tuple[ReviewedPass, str], Rung] = {} diff --git a/bin/repo_checks/test_reviewer_launches.py b/bin/repo_checks/test_reviewer_launches.py index 43457318..5e53652a 100644 --- a/bin/repo_checks/test_reviewer_launches.py +++ b/bin/repo_checks/test_reviewer_launches.py @@ -5,7 +5,8 @@ import unittest sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) -from model_routing.ladder import PASS_AGENTS, PASSES, REVIEWERS +from review_passes import PASSES +from model_routing.ladder import REVIEWERS from repo_checks.test_python_floor import ROOT from rule_hook.reviewer_rung import SEAT, SECURITY_OPENER @@ -19,7 +20,7 @@ PASS_TABLE = LARV_REVIEW.split("## 3. Passes", 1)[1].split("A comment is prose", class ReviewerLaunches(unittest.TestCase): - """rule-hook holds a review launch to its rung by recognising it; these fail when what it recognises drifts from what the skills launch.""" + """rule-hook holds a review launch to its rung by recognising it, and `larv-review round-count` counts the passes by name; these fail when what they recognise drifts from what the skills launch.""" def test_the_passes_are_the_ones_larv_review_s_pass_table_names_in_its_order(self): self.assertEqual([name.lower() for name in PASS_ROW.findall(PASS_TABLE)], list(PASSES)) @@ -28,9 +29,6 @@ class ReviewerLaunches(unittest.TestCase): self.assertEqual({name.lower(): agent for name, agent in REVIEWED_ROW.findall(PASS_TABLE)}, REVIEWERS) self.assertEqual([name.lower() for name, _ in REVIEWED_ROW.findall(PASS_TABLE)], list(REVIEWERS)) - def test_the_reviewers_are_the_passes_that_have_an_agent(self): - self.assertEqual(REVIEWERS, {name: agent for name, agent in PASS_AGENTS.items() if agent}) - def test_the_seat_opening_is_the_sentence_that_opens_every_seat_prompt(self): opening = OPENING.search((ROOT / "skills" / "comprehension-panel" / "seat-prompts.md").read_text(encoding="utf-8")) self.assertIsNotNone(opening, "seat-prompts.md has a `## Opening` section whose code block opens with a sentence") diff --git a/bin/repo_checks/test_types.py b/bin/repo_checks/test_types.py index cd8bd7a4..2640677e 100644 --- a/bin/repo_checks/test_types.py +++ b/bin/repo_checks/test_types.py @@ -15,5 +15,5 @@ class Types(unittest.TestCase): self.assertIsNotNone(floor, "README.md's Install names `Python 3.N or newer`") if shutil.which("uv") is None: self.fail("uv on PATH fetches mypy; see README.md's Test line") - ran = subprocess.run(["uv", "tool", "run", "--python", "%d.%d" % floor, "mypy==2.3.1", "--cache-dir=/dev/null", "--check-untyped-defs", "--disallow-untyped-defs", "--exclude", "/test_", "-p", "chunk_preflight", "-p", "claude_code", "-m", "comprehension_history", "-m", "git_repo", "-p", "judge_replay", "-p", "larv_review", "-p", "loop_claude", "-m", "markdown_text", "-p", "metric_bench", "-m", "project_key", "-m", "rank_todo", "-p", "reading_cost", "-p", "review_replay", "-m", "round_titles", "-p", "rule_hook", "-p", "rung_replay", "-p", "score_outcomes", "-m", "settings_filter", "-m", "shell_command", "-m", "statusline", "-p", "subagent_rung", "-m", "todo_table", "-p", "transcript_archive", "-m", "utc_stamp"], capture_output=True, cwd=ROOT / "bin", text=True) + ran = subprocess.run(["uv", "tool", "run", "--python", "%d.%d" % floor, "mypy==2.3.1", "--cache-dir=/dev/null", "--check-untyped-defs", "--disallow-untyped-defs", "--exclude", "/test_", "-p", "chunk_preflight", "-p", "claude_code", "-m", "comprehension_history", "-m", "git_repo", "-p", "judge_replay", "-p", "larv_review", "-p", "loop_claude", "-m", "markdown_text", "-p", "metric_bench", "-m", "project_key", "-m", "rank_todo", "-p", "reading_cost", "-m", "review_passes", "-p", "review_replay", "-m", "round_titles", "-p", "rule_hook", "-p", "rung_replay", "-p", "score_outcomes", "-m", "settings_filter", "-m", "shell_command", "-m", "statusline", "-p", "subagent_rung", "-m", "todo_table", "-p", "transcript_archive", "-m", "utc_stamp"], capture_output=True, cwd=ROOT / "bin", text=True) self.assertEqual(ran.returncode, 0, ran.stdout + ran.stderr) diff --git a/bin/review_passes.py b/bin/review_passes.py new file mode 100644 index 00000000..3c2f8a28 --- /dev/null +++ b/bin/review_passes.py @@ -0,0 +1,16 @@ +"""The passes of larv-review, as skills/larv-review/SKILL.md β†’ "Passes" lists them.""" +import typing + +# A pass an agent under agents/ reviews, in lower case. A Literal cannot be built from `PASS_AGENTS`, so test_ladder holds the two together. +ReviewedPass = typing.Literal["architecture", "principles", "overrides", "stability", "product-owner", "prose"] +# Each pass in the order of SKILL.md's pass table, and the agent under agents/ that reviews it; None where a skill or plugin does. The auto-reviewer is left out: larv-review counts its rounds from its reviews on the PR, not from commit titles. +PASS_AGENTS: dict[str, str | None] = {"architecture": "systems-architect", "principles": "principles-auditor", "full scan": None, "security": None, "overrides": "override-reviewer", "stability": "stability-reviewer", "product-owner": "product-owner-reviewer", "prose": "prose-reviewer"} +PASSES = tuple(PASS_AGENTS) + + +def _reviewed(name: str) -> typing.TypeGuard[ReviewedPass]: + return name in typing.get_args(ReviewedPass) + + +# The passes that have an agent. A pass missing from `ReviewedPass` drops out of it, which test_ladder fails on. +REVIEWERS: dict[ReviewedPass, str] = {name: agent for name, agent in PASS_AGENTS.items() if agent and _reviewed(name)} diff --git a/bin/round_titles.py b/bin/round_titles.py index 027196fa..83795168 100644 --- a/bin/round_titles.py +++ b/bin/round_titles.py @@ -1,7 +1,7 @@ """The titles of larv-review's round commits, `Answer round : πŸ”΄, 🟑; `: each pass's round count, and the findings the rounds reported.""" import re -from model_routing.ladder import PASSES +from review_passes import PASSES CAP = 3 ROUND = re.compile(r"^Answer (.+?) round ([0-9]+):", re.IGNORECASE) From e7dc6a995696b6a3a578adea9e288341df0b2476 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:44:29 +0200 Subject: [PATCH 04/11] =?UTF-8?q?Answer=20principles=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=206=20=F0=9F=9F=A1;=20fixed=20in=20the=20architec?= =?UTF-8?q?ture=20round's=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From c5e458c3deafab9615239100742fcb17795fd6d9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:44:29 +0200 Subject: [PATCH 05/11] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=203=20=F0=9F=9F=A1;=20fixed=20in=20the=20architec?= =?UTF-8?q?ture=20round's=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 6de74f0f63ff5e167f08ce408bd4dd1cec420c6d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:44:29 +0200 Subject: [PATCH 06/11] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=204=20=F0=9F=9F=A1;=20reworded=20the=20pass=20lis?= =?UTF-8?q?t=20comments=20and=20the=20test=20docstring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From cf80a9d925df0c63c47f11fd31cc10922880e845 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:50:29 +0200 Subject: [PATCH 07/11] =?UTF-8?q?Answer=20architecture=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1;=20move=20the=20pass-list=20te?= =?UTF-8?q?st=20beside=20review=5Fpasses=20and=20read=20the=20pass=20table?= =?UTF-8?q?=20by=20one=20pattern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/loop_claude/cycle/prompts.py | 3 ++- bin/model_routing/test_ladder.py | 9 ++------- bin/repo_checks/test_reviewer_launches.py | 21 +++++++++------------ bin/review_passes.py | 4 ++-- bin/review_replay/main.py | 3 ++- bin/review_replay/test_review_replay.py | 3 ++- bin/rule_hook/reviewer_rung.py | 3 ++- bin/test_review_passes.py | 18 ++++++++++++++++++ todo.md | 7 ++++++- 9 files changed, 45 insertions(+), 26 deletions(-) create mode 100644 bin/test_review_passes.py diff --git a/bin/loop_claude/cycle/prompts.py b/bin/loop_claude/cycle/prompts.py index 259dd9d5..f9650627 100644 --- a/bin/loop_claude/cycle/prompts.py +++ b/bin/loop_claude/cycle/prompts.py @@ -1,8 +1,9 @@ -from model_routing.ladder import climbed, LADDER, position, review_rungs, REVIEWERS, reviewers_rung, ReviewKind, Rung +from model_routing.ladder import climbed, LADDER, position, review_rungs, reviewers_rung, ReviewKind, Rung from model_routing.route import ESCALATION_MARKER, HIGHEST_ESCAPE_AND_IMPACT, Route from loop_claude.routing import escalation_rungs from loop_claude.project.records import HUMAN_RULE_NAMES, RECORD_FILES from markdown_text import listed, quoted +from review_passes import REVIEWERS from claude_code.transcript import Typed # Where the judge may quote an answer from, named as the human and the worker see them; of README.md the judge sees only the premises. diff --git a/bin/model_routing/test_ladder.py b/bin/model_routing/test_ladder.py index cc5cbf34..e4382cf7 100644 --- a/bin/model_routing/test_ladder.py +++ b/bin/model_routing/test_ladder.py @@ -1,14 +1,14 @@ import pathlib import sys -import typing import unittest import unittest.mock sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) -from model_routing.ladder import highest, LADDER, lowest_worker_rung, planning_rung, position, project_rung, review_floor, review_rungs, ReviewedPass, REVIEWERS, Rung, stepped_up, worker_rung, WORKER_STEPS +from model_routing.ladder import highest, LADDER, lowest_worker_rung, planning_rung, position, project_rung, review_floor, review_rungs, Rung, stepped_up, worker_rung, WORKER_STEPS from model_routing import ladder from todo_table import LEVELS +from review_passes import REVIEWERS OPUS = Rung("claude-opus-5-5", "medium") @@ -105,11 +105,6 @@ class Ladder(unittest.TestCase): def test_keeps_the_seats_and_the_security_pass_on_the_projects_rung_whatever_the_worker_or_e_plus_i(self): self.assertEqual(review_rungs(OPUS, LADDER[-1], 8), {**dict.fromkeys(REVIEWERS, LADDER[-1]), "seat": OPUS, "security": OPUS}) - def test_names_every_kind_of_review_once_each_pass_with_its_agent_under_agents(self): - self.assertEqual(list(REVIEWERS), list(typing.get_args(ReviewedPass))) - agents = pathlib.Path(__file__).resolve().parents[2] / "agents" - self.assertEqual(sorted(REVIEWERS.values()), sorted(path.stem for path in agents.glob("*.md"))) - def test_runs_a_replayed_pass_on_its_replays_rung_below_the_workers_where_the_e_plus_i_steps_no_review_up_and_the_worker_runs_no_higher_than_the_project(self): sonnet, haiku, opus_high = Rung("claude-sonnet-5-5", "high"), LADDER[0], Rung("claude-opus-5-5", "high") with unittest.mock.patch.dict(ladder.REPLAYED, {("prose", "claude-opus-5-5"): haiku, ("stability", "claude-sonnet-5-5"): haiku}): diff --git a/bin/repo_checks/test_reviewer_launches.py b/bin/repo_checks/test_reviewer_launches.py index 5e53652a..ae94e804 100644 --- a/bin/repo_checks/test_reviewer_launches.py +++ b/bin/repo_checks/test_reviewer_launches.py @@ -5,16 +5,13 @@ import unittest sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) -from review_passes import PASSES -from model_routing.ladder import REVIEWERS +from review_passes import PASS_AGENTS, PASSES from repo_checks.test_python_floor import ROOT from rule_hook.reviewer_rung import SEAT, SECURITY_OPENER OPENING = re.compile(r"^## Opening\n+```\n([^\n]+?\.)(?: |\n)", re.MULTILINE) -# A row of the pass table: its pass. -PASS_ROW = re.compile(r"^\| (?!Pass \|)([A-Z][a-z-]+(?: [a-z]+)?) \|", re.MULTILINE) -# A row of the pass table whose reviewer is an agent: its pass and that agent. -REVIEWED_ROW = re.compile(r"^\| ([A-Z][a-z-]+) \| ([a-z]+(?:-[a-z]+)*-(?:reviewer|architect|auditor)) \|", re.MULTILINE) +# A row of the pass table: its pass and its reviewer cell. +PASS_ROW = re.compile(r"^\| (?!Pass \|)([A-Z][a-z -]+?) \| ([^|]+?) \|", re.MULTILINE) LARV_REVIEW = (ROOT / "skills" / "larv-review" / "SKILL.md").read_text(encoding="utf-8") PASS_TABLE = LARV_REVIEW.split("## 3. Passes", 1)[1].split("A comment is prose", 1)[0] @@ -22,12 +19,12 @@ PASS_TABLE = LARV_REVIEW.split("## 3. Passes", 1)[1].split("A comment is prose", class ReviewerLaunches(unittest.TestCase): """rule-hook holds a review launch to its rung by recognising it, and `larv-review round-count` counts the passes by name; these fail when what they recognise drifts from what the skills launch.""" - def test_the_passes_are_the_ones_larv_review_s_pass_table_names_in_its_order(self): - self.assertEqual([name.lower() for name in PASS_ROW.findall(PASS_TABLE)], list(PASSES)) - - def test_the_reviewers_are_the_passes_and_agents_larv_review_s_pass_table_names_in_its_order(self): - self.assertEqual({name.lower(): agent for name, agent in REVIEWED_ROW.findall(PASS_TABLE)}, REVIEWERS) - self.assertEqual([name.lower() for name, _ in REVIEWED_ROW.findall(PASS_TABLE)], list(REVIEWERS)) + def test_the_passes_and_their_agents_are_the_ones_larv_review_s_pass_table_names_in_its_order(self): + rows = [(name.lower(), reviewer) for name, reviewer in PASS_ROW.findall(PASS_TABLE)] + self.assertEqual([name for name, _ in rows], list(PASSES)) + for name, reviewer in rows: + with self.subTest(name=name): + self.assertEqual(reviewer == PASS_AGENTS[name], PASS_AGENTS[name] is not None) def test_the_seat_opening_is_the_sentence_that_opens_every_seat_prompt(self): opening = OPENING.search((ROOT / "skills" / "comprehension-panel" / "seat-prompts.md").read_text(encoding="utf-8")) diff --git a/bin/review_passes.py b/bin/review_passes.py index 3c2f8a28..0bb4ce29 100644 --- a/bin/review_passes.py +++ b/bin/review_passes.py @@ -1,7 +1,7 @@ """The passes of larv-review, as skills/larv-review/SKILL.md β†’ "Passes" lists them.""" import typing -# A pass an agent under agents/ reviews, in lower case. A Literal cannot be built from `PASS_AGENTS`, so test_ladder holds the two together. +# A pass an agent under agents/ reviews, in lower case. A Literal cannot be built from `PASS_AGENTS`, so test_review_passes holds the two together. ReviewedPass = typing.Literal["architecture", "principles", "overrides", "stability", "product-owner", "prose"] # Each pass in the order of SKILL.md's pass table, and the agent under agents/ that reviews it; None where a skill or plugin does. The auto-reviewer is left out: larv-review counts its rounds from its reviews on the PR, not from commit titles. PASS_AGENTS: dict[str, str | None] = {"architecture": "systems-architect", "principles": "principles-auditor", "full scan": None, "security": None, "overrides": "override-reviewer", "stability": "stability-reviewer", "product-owner": "product-owner-reviewer", "prose": "prose-reviewer"} @@ -12,5 +12,5 @@ def _reviewed(name: str) -> typing.TypeGuard[ReviewedPass]: return name in typing.get_args(ReviewedPass) -# The passes that have an agent. A pass missing from `ReviewedPass` drops out of it, which test_ladder fails on. +# The passes that have an agent. A pass missing from `ReviewedPass` drops out of it, which test_review_passes fails on. REVIEWERS: dict[ReviewedPass, str] = {name: agent for name, agent in PASS_AGENTS.items() if agent and _reviewed(name)} diff --git a/bin/review_replay/main.py b/bin/review_replay/main.py index 961c3cf6..eb6ccd22 100644 --- a/bin/review_replay/main.py +++ b/bin/review_replay/main.py @@ -47,9 +47,10 @@ from loop_claude.effects import Effects from failure import Failure from rung_replay.search import first_reply, replayed from claude_code.transcript import first_timestamped_line, read_transcript -from model_routing.ladder import LADDER, project_rung, ReviewedPass, REVIEWERS, Rung +from model_routing.ladder import LADDER, project_rung, Rung from claude_code.entries import parse_entry, structured_output from review_folder import REPORTS, review_folder +from review_passes import ReviewedPass, REVIEWERS TOOL = "review-replay" USAGE = f"{TOOL} , one of {', '.join(REVIEWERS)} and a model on the routing ladder" diff --git a/bin/review_replay/test_review_replay.py b/bin/review_replay/test_review_replay.py index 3bc26f96..d73b85b8 100644 --- a/bin/review_replay/test_review_replay.py +++ b/bin/review_replay/test_review_replay.py @@ -19,7 +19,8 @@ from loop_claude.effects import Effects, system_effects from failure import Failure from review_replay import main from rung_replay.search import Miss, Replay, Tried -from model_routing.ladder import REVIEWERS, Rung +from review_passes import REVIEWERS +from model_routing.ladder import Rung TOOL = pathlib.Path(__file__).resolve().parents[1] / "review-replay" REFERENCE = Rung("claude-opus-5-5", "medium") diff --git a/bin/rule_hook/reviewer_rung.py b/bin/rule_hook/reviewer_rung.py index 7d0f9a48..49c4023a 100644 --- a/bin/rule_hook/reviewer_rung.py +++ b/bin/rule_hook/reviewer_rung.py @@ -4,7 +4,8 @@ import typing from rule_hook.rules import Breach from rule_hook.call import Call, text from model_routing.worker_rungs import handed -from model_routing.ladder import position, review_rungs, REVIEWERS, ReviewKind, Rung +from model_routing.ladder import position, review_rungs, ReviewKind, Rung +from review_passes import REVIEWERS # The pass each agent under agents/ reviews. PASS_OF = {agent: kind for kind, agent in REVIEWERS.items()} diff --git a/bin/test_review_passes.py b/bin/test_review_passes.py new file mode 100644 index 00000000..f6ecac93 --- /dev/null +++ b/bin/test_review_passes.py @@ -0,0 +1,18 @@ +import pathlib +import sys +import typing +import unittest + +sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent)) + +from review_passes import PASS_AGENTS, PASSES, ReviewedPass, REVIEWERS + + +class ReviewPasses(unittest.TestCase): + def test_names_each_pass_that_has_an_agent_once_in_the_literal_and_in_the_list(self): + self.assertEqual(list(REVIEWERS), list(typing.get_args(ReviewedPass))) + self.assertEqual(list(REVIEWERS), [name for name in PASSES if PASS_AGENTS[name]]) + + def test_names_each_agent_under_agents(self): + agents = pathlib.Path(__file__).resolve().parents[1] / "agents" + self.assertEqual(sorted(REVIEWERS.values()), sorted(path.stem for path in agents.glob("*.md"))) diff --git a/todo.md b/todo.md index 5c851038..e6635dc9 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 0.1` -`Next ID = 216` +`Next ID = 217` ## Items @@ -21,6 +21,7 @@ | 210 | 0.4.0 | | | **Hold the escalation mark in one module that states that one trigger buys one step, so a reader changes it without opening four files.** | 3 | 2 | 3 | 6 | 5 | code health by 9 | 16.2 | | 190 | 0.4.0 | | | **Rewrite the `docs/decisions.md` entries `todo.md: one table …`, `loop-claude: a judge decides …` and `loop-claude: before it opens claude …` as the current state, so a reader no longer replays superseded paragraphs to learn what holds.** | 2 | 2 | 1 | 3 | 3 | code health by 3, 1.4 by 2 | 15.5 | | 82 | 0.4.0 | | principle | **Sort `AGENTS.md`'s decision titles and `docs/decisions.md`'s entries by title.** | 2 | 2 | 1 | 3 | 4 | code health by 4, 1.4 by 4 | 14.6 | +| 216 | 0.4.0 | | | **Make larv-review's round count agree with itself on the auto-reviewer: either title its round commits so `round-count` counts them as a pass, or have SKILL.md say they carry no `Answer round` title.** | 1 | 2 | 3 | 4 | 2 | code health by 2 | 12.0 | | 170 | 0.4.0 | | decision | **Re-tune `WORKER_STEPS` and `REVIEW_STEPS` once 10 chunks have shipped under them, from how well L, E and I order their review rounds and πŸ”΄ findings.** | 2 | 2 | 3 | 5 | 2 | 1.1 by 3, 1.4 by 5 | 10.9 | | 125 | 0.4.0 | | decision | **Give "record", "outcome" and "places" one meaning each across `bin/`, and rename `bin/larv_review/git.py` by what it holds.** | 3 | 1 | 3 | 5 | 5 | code health by 5, 1.4 by 3 | 10.2 | | 198 | 0.4.0 | | decision | **Count, per finished chunk, the findings that arose from misreading code that had already shipped, so code health's counter-signal shows.** | 3 | 2 | 2 | 5 | 5 | code health by 3, 1.1 by 2 | 6.2 | @@ -112,6 +113,10 @@ Found by the prose review of PR #312, which judged both entries to read as amend "Deterministic order", in `principles/technical-principles.md`, raised by the principles audit of PR #224: their order carries no meaning, so two chunks adding a decision conflict at the end, and a reader cannot find a title by scanning. +### 216. Make larv-review's round count agree with itself on the auto-reviewer: either title its round commits so `round-count` counts them as a pass, or have SKILL.md say they carry no `Answer round` title. + +`skills/larv-review/SKILL.md` Β§3 "Round cap" makes the external auto-reviewer a pass of its own and each review it posts a round, and says each round closes with a commit titled `Answer round : πŸ”΄, 🟑; …`. It also says the auto-reviewer's count is the number of its reviews on the PR. `larv-review round-count` (`bin/larv_review/main.py` `round_count`) answers an `Answer auto-reviewer round :` commit with "auto-reviewer: , not a pass: check the commit title", because `bin/review_passes.py` `PASSES`, the list `bin/test_reviewer_launches` holds SKILL.md's table to, leaves it out on purpose. A worker who follows the skill therefore gets a warning. Found by round 2 of PR #354's principles pass (item 121). The comprehension seats named `PASSES` hard to read: the pass list lives in four places kept in sync by hand. Make `PASSES` easier to read where the change touches it. + ### 170. Re-tune `WORKER_STEPS` and `REVIEW_STEPS` once 10 chunks have shipped under them, from how well L, E and I order their review rounds and πŸ”΄ findings. `docs/decisions.md` β†’ `routing: one ladder…` calls the steps lilleman approved on 2026-10-16 a first guess. Once 10 chunks that each shipped one item scored with L, E and I have merged, read `score-outcomes`' rank correlations for L, E and I and the routed-chunks table of `routing-figures.md`, and propose new steps to lilleman, whose call they are. Only chunks merged since PR #339 set today's steps count: 7 so far, those of items 117, 126, 131, 122, 207, 130 and 154. Start this item when there are 10. From 0acb1286a060779cb2f7924fd96991afd7851246 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:50:29 +0200 Subject: [PATCH 08/11] =?UTF-8?q?Answer=20principles=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20import=20the=20pass=20list?= =?UTF-8?q?=20from=20review=5Fpasses=20everywhere=20and=20file=20item=2021?= =?UTF-8?q?6=20for=20the=20auto-reviewer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From b8ab075663feef1ff11d8b1260a4a5a55532c335 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:50:29 +0200 Subject: [PATCH 09/11] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20approved?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 7042a75266bca97ceb8d613a0bea2d99553f6af0 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:51:53 +0200 Subject: [PATCH 10/11] Hold the pass table's reviewer column to the agents and tidy item 216's detail --- bin/repo_checks/test_reviewer_launches.py | 9 ++++----- todo.md | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/repo_checks/test_reviewer_launches.py b/bin/repo_checks/test_reviewer_launches.py index ae94e804..aca0062f 100644 --- a/bin/repo_checks/test_reviewer_launches.py +++ b/bin/repo_checks/test_reviewer_launches.py @@ -10,6 +10,8 @@ from repo_checks.test_python_floor import ROOT from rule_hook.reviewer_rung import SEAT, SECURITY_OPENER OPENING = re.compile(r"^## Opening\n+```\n([^\n]+?\.)(?: |\n)", re.MULTILINE) +# An agent's name, as opposed to the skill or plugin that reviews a pass. +AGENT_NAME = re.compile(r"[a-z]+(?:-[a-z]+)*") # A row of the pass table: its pass and its reviewer cell. PASS_ROW = re.compile(r"^\| (?!Pass \|)([A-Z][a-z -]+?) \| ([^|]+?) \|", re.MULTILINE) LARV_REVIEW = (ROOT / "skills" / "larv-review" / "SKILL.md").read_text(encoding="utf-8") @@ -20,11 +22,8 @@ class ReviewerLaunches(unittest.TestCase): """rule-hook holds a review launch to its rung by recognising it, and `larv-review round-count` counts the passes by name; these fail when what they recognise drifts from what the skills launch.""" def test_the_passes_and_their_agents_are_the_ones_larv_review_s_pass_table_names_in_its_order(self): - rows = [(name.lower(), reviewer) for name, reviewer in PASS_ROW.findall(PASS_TABLE)] - self.assertEqual([name for name, _ in rows], list(PASSES)) - for name, reviewer in rows: - with self.subTest(name=name): - self.assertEqual(reviewer == PASS_AGENTS[name], PASS_AGENTS[name] is not None) + rows = [(name.lower(), reviewer if AGENT_NAME.fullmatch(reviewer) else None) for name, reviewer in PASS_ROW.findall(PASS_TABLE)] + self.assertEqual(rows, list(PASS_AGENTS.items())) def test_the_seat_opening_is_the_sentence_that_opens_every_seat_prompt(self): opening = OPENING.search((ROOT / "skills" / "comprehension-panel" / "seat-prompts.md").read_text(encoding="utf-8")) diff --git a/todo.md b/todo.md index e6635dc9..bd71a082 100644 --- a/todo.md +++ b/todo.md @@ -115,7 +115,7 @@ Found by the prose review of PR #312, which judged both entries to read as amend ### 216. Make larv-review's round count agree with itself on the auto-reviewer: either title its round commits so `round-count` counts them as a pass, or have SKILL.md say they carry no `Answer round` title. -`skills/larv-review/SKILL.md` Β§3 "Round cap" makes the external auto-reviewer a pass of its own and each review it posts a round, and says each round closes with a commit titled `Answer round : πŸ”΄, 🟑; …`. It also says the auto-reviewer's count is the number of its reviews on the PR. `larv-review round-count` (`bin/larv_review/main.py` `round_count`) answers an `Answer auto-reviewer round :` commit with "auto-reviewer: , not a pass: check the commit title", because `bin/review_passes.py` `PASSES`, the list `bin/test_reviewer_launches` holds SKILL.md's table to, leaves it out on purpose. A worker who follows the skill therefore gets a warning. Found by round 2 of PR #354's principles pass (item 121). The comprehension seats named `PASSES` hard to read: the pass list lives in four places kept in sync by hand. Make `PASSES` easier to read where the change touches it. +`skills/larv-review/SKILL.md` Β§3 "Round cap" makes the external auto-reviewer a pass of its own and each review it posts a round, and says each round closes with a commit titled `Answer round : πŸ”΄, 🟑; …`. It also says the auto-reviewer's count is the number of its reviews on the PR. `larv-review round-count` (`bin/larv_review/main.py` `round_count`) answers an `Answer auto-reviewer round :` commit with "auto-reviewer: , not a pass: check the commit title", because `bin/review_passes.py` `PASSES`, the list `bin/repo_checks/test_reviewer_launches.py` holds SKILL.md's table to, leaves it out on purpose. A worker who follows the skill therefore gets a warning. Found by round 2 of PR #354's principles pass (item 121). ### 170. Re-tune `WORKER_STEPS` and `REVIEW_STEPS` once 10 chunks have shipped under them, from how well L, E and I order their review rounds and πŸ”΄ findings. From 71d5e82d3ae514da9f8d3d56d2adacb9ed4cec6c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 22 Oct 2026 20:56:22 +0200 Subject: [PATCH 11/11] Record the comprehension check: paired ruling for PR #354, better --- docs/comprehension-history.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index c1eaf682..de52b1c4 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -2486,3 +2486,33 @@ Inherited architect, decided by: - Navigation: `skills/larv-review/SKILL.md:86` "What a round reviews": a named paragraph beside Re-entry, where a reader asking what round 2 looked at searches - Locality: `.gitattributes:1` the settings filter: committed behaviour depends on an untracked per-machine git setting, and README's Install and Update steps work only in order - Self-sufficiency: `bin/settings_filter.py:2` module docstring: the script stands alone, but cannot say it is inert unless Install's git config line ran + +## 2026-10-22T18:56:17Z, PR #354 at 7042a75, against 6f58a0e5c25f37026c50b1dde77612464be26803 + +Ruling: better + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Mid A | better | better | same | better | better | +| Inherited architect | better | better | same | better | better | + +Mid A, decided by: + +- Navigation, Locality: `bin/review_passes.py:7` `PASS_AGENTS`: the pass names lived in two files, one of them the routing ladder where nobody would look; one module named for its contents holds both now +- Navigation, Self-sufficiency: `bin/loop_claude/loop/main.py:53` `Routing: the worker's rung`: the 70-line routing paragraph is now headed parts a reader jumps to +- Navigation, Self-sufficiency: `bin/transcript_archive/__init__.py:1` "transcript_archive": the archive's file layout sits with the code that writes it, in place of loop-claude's help +- Locality: `bin/larv_review/plan.py:32` `landed_towards`: the next release is asked of `chunk_pick`, so the rule is written once +- Self-sufficiency: `bin/shell_command.py:33` `segments`: the new docstring lists each shell form it does not parse +- Self-sufficiency: `bin/git_repo.py:3` "git_repo": the module docstring says every tool starts git through it + +Inherited architect, decided by: + +- Navigation, Locality: `bin/review_passes.py:7` `PASS_AGENTS`: two unlinked pass lists became one table in a module named for it, so adding a pass is a single edit +- Locality: `bin/larv_review/plan.py:32` `landed_towards`: it reuses `chunk_pick`'s rule in place of its own, so the scoring-run trigger and chunk-preflight cannot disagree about the next release +- Locality: `bin/larv_review/ruling.py:38` `surplus`: the surplus-seat check is a named predicate called where the ruling is recorded, not hidden in `votes` +- Navigation: `bin/loop_claude/loop/main.py:53` `Routing: the worker's rung`: seven headed sections replace one 50-line routing paragraph +- Self-sufficiency: `bin/shell_command.py:33` `segments`: the docstring answers why rule-hook missed a git call +- Self-sufficiency: `bin/rule_hook/override_log.py:36` `this_chunks`: the case list maps each commit shape to its one-line return +- Self-sufficiency: `bin/larv_review/main.py:34` "larv-review --help": the help no longer states when work has landed, and points to `plan.py` instead +- Locality: `bin/score_outcomes/main.py:134` `read_outcomes`: whether a commit joins the chunk above depends on the previous iteration's state, with a positional `Chunk` tuple +- Locality: `bin/todo_table.py:137` `NoItemsTable`: every caller must test it before `Failure`, and swapping the checks silently changes the message