From fc4d63c041ada18c74dd40cc63aac0a7d7b38c07 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 05:06:43 +0200 Subject: [PATCH 1/6] Run the principles audit on every chunk that changes code, config or tests --- AGENTS.md | 1 + CHANGELOG.md | 1 + agents/principles-auditor.md | 2 +- docs/decisions.md | 6 +++++- skills/larv-review/SKILL.md | 15 +++++++++------ todo.md | 5 ----- 6 files changed, 17 insertions(+), 13 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index e468d31c..602c6385 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -16,6 +16,7 @@ Decisions live in `docs/decisions.md`: - 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: 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 prose or planning-only chunk - review: a pass skips only on a precedent: a decision, or a plan item crediting the pass, that the repo held before the chunk began - loop-claude: the archive keeps the raw transcript, and a failed archive stops the loop - loop-claude: a `claude` that cannot start is a failed worker run, retried diff --git a/CHANGELOG.md b/CHANGELOG.md index ede2fa11..02a5832c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - `todo.md` ranks items by value per cost: this setup's own plan uses `Score = 100 * V / (2**S + 8)`, where 8 is a chunk's fixed cost, about one size-3 change, and `rank_todo.py --help` shows it. A Moves column replaces A, G and Goals, naming each achieve goal an item moves and how far, such as `1.1 by 8, 1.2 by 5`. V sums each named goal's weight times its move. `rank_todo.py` weighs each achieve goal by its position in README.md, the first heaviest, so the goal weights table goes. An item names the most specific goal it moves, never a goal beside its own sub-goal. `rules/todo-items.md` and `rank_todo.py --help` show the new shape. - An item that restores a maintain goal the project breaks today is exempt as `defect`, and its Moves may name that maintain goal, weighed as the heaviest achieve goal. A defect ranks by its score like any item. Only two kinds rank ahead of the rest of their release: questions first, since an answer may change other items, then security items. - The stability reviewer applies `principles/technical-principles.md` as written, in place of its own copies of it. Its test-data check now asks for UUID v7, where it asked for randomised UUIDs. +- larv-review's principles audit is a pass of its own, and runs on every chunk that changes code, config or tests, not only on one with an architectural decision. A chunk of prose or planning alone skips it. ## 0.1.0 diff --git a/agents/principles-auditor.md b/agents/principles-auditor.md index 1fc96d1f..02c92f7a 100644 --- a/agents/principles-auditor.md +++ b/agents/principles-auditor.md @@ -1,6 +1,6 @@ --- name: principles-auditor -description: "Use this agent for larv-review's architecture pass: one yardstick checked against the whole project." +description: "Use this agent for larv-review's principles pass, on every chunk that changes code, config or tests: one yardstick checked against the whole project." tools: Read, Grep, Glob --- diff --git a/docs/decisions.md b/docs/decisions.md index ff54526f..db32d031 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -86,7 +86,11 @@ Valid while the ladder orders its rungs by competence. ## review: a project decision may opt every chunk out of the architect, the product-owner pass or the comprehension check -2026-10-11, lilleman. Serves goal 1.4. A research repo's PR, in a repo with no consumer for the product-owner pass and no product for the architect, spent rounds of both, and of the comprehension check, on a probe. The opt-out is the project's to make, and only an entry titled `review opt-out:` makes it, so a project without one is reviewed as before (goal 1.3). No opted-out reviewer works against a goal or a technical principle: the principles audit, which has no opt-out, still judges KISS and every other principle, so the entry names no plan item that ends it. 2026-10-13, lilleman: an opt-out of the comprehension check no longer ends with a chunk that ships an item naming the floor, since the floor blocks nothing. Valid while the principles audit judges every chunk, and while the architect's and the product-owner's findings matter only to a product with consumers. +2026-10-11, lilleman. Serves goal 1.4. A research repo's PR, in a repo with no consumer for the product-owner pass and no product for the architect, spent rounds of both, and of the comprehension check, on a probe. The opt-out is the project's to make, and only an entry titled `review opt-out:` makes it, so a project without one is reviewed as before (goal 1.3). No opted-out reviewer works against a goal or a technical principle: the principles audit, which has no opt-out, still judges KISS and every other principle, so the entry names no plan item that ends it. 2026-10-13, lilleman: an opt-out of the comprehension check no longer ends with a chunk that ships an item naming the floor, since the floor blocks nothing. Valid while the principles audit judges every chunk that changes code, config or tests, and while the architect's and the product-owner's findings matter only to a product with consumers. + +## review: the principles audit runs on every chunk that changes code, config or tests, and on no prose or planning-only chunk + +2026-10-16, lilleman, answering the open question on the audit's trigger. Serves goal 1.1: a principle that no chunk checks drifts, as the stability reviewer's copy of one did before its UUID line went stale. The audit's trigger is the stability pass's, so a chunk that changes code, config or tests always gets it, and prose or the plan never does. Valid while the audit's findings on a chunk are drift that chunk would otherwise merge, not the same whole-project findings repeated chunk after chunk: a repeat is a question on the audit's scope for the human. ## review: a pass skips only on a precedent: a decision, or a plan item crediting the pass, that the repo held before the chunk began diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index b548efa4..e693047d 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -32,7 +32,8 @@ A pass is one kind of review, a row of the table, named by its first column. Its | Pass | Reviewer | Trigger | |------|----------|----------------------------------------| -| Architecture | systems-architect, then principles-auditor | carries an architectural decision: a new, restructured or moved component, module, service or boundary; a new dependency or first use of an infrastructure pattern (queue, cron, cache, websocket, …); a new or changed external contract (routes, request/response shapes, events, webhooks, published file formats, CLI flags and exit codes); a schema change beyond an additive column; a fix, only where it carries an architectural decision | +| Architecture | systems-architect | carries an architectural decision: a new, restructured or moved component, module, service or boundary; a new dependency or first use of an infrastructure pattern (queue, cron, cache, websocket, …); a new or changed external contract (routes, request/response shapes, events, webhooks, published file formats, CLI flags and exit codes); a schema change beyond an additive column; a fix, only where it carries an architectural decision | +| Principles | principles-auditor | changes code, config or tests; a fix, only where it changes code, config or tests | | Full scan | the `claude-security` plugin at high effort: `/claude-security scan this branch's changes at high` | touches authn/authz, secrets or crypto, opens an untrusted-input boundary, or adds an external surface | | Security | `/security-review` | changes code or config, unless the full scan runs on the same change; a fix, only where it opens an untrusted-input boundary or touches authn/authz, secrets or crypto, and the full scan does not rerun on it | | Overrides | override-reviewer | `~/.claude/bin/rule-hook overrides`, run in the chunk's worktree, prints a line no round of this pass has ruled on; a fix, only where the hook logged an override for it | @@ -51,19 +52,19 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Skip.** A precedent is a `docs/decisions.md` entry, or a plan item crediting the pass, that the repo held before the chunk began. Where one holds the decision this change executes, skip the pass and cite that entry or item. - **Departure.** A change that departs from the precedent is unreviewed, however thorough the precedent is. - **Ask.** Fired and not skipped → ask the user whether to run it, with the evidence and your recommendation; no user reachable → run it. For the full scan, give the evidence and your recommendation, then launch it: the plugin asks the user to confirm its cost, and that prompt is the ask. -- **Audit.** A precedent or the user's no skips only the architect, never the principles audit: no precedent checked the code this chunk writes. +- **Audit.** A precedent or the user's no skips only the architect, never the principles pass: no precedent checked the code this chunk writes. **Opt-out** — for the architect, the product-owner pass and the comprehension check: - **Entry.** A project opts out only through a `docs/decisions.md` entry, held before the chunk began, whose title opens `review opt-out:` and names one or more of the three. The entry names the project goal that skipping them serves. - **Skip.** Every chunk skips each reviewer the entry names, even where its trigger, a 🔀 or a due scoring run calls for it, and the chunk's summary cites the entry. Unlike a suspension, an opt-out needs no plan item to end it. -- **Audit.** An architecture pass left without the architect still runs the principles audit. +- **Audit.** The principles pass has no opt-out: it runs on every chunk its trigger fires on. - **Malformed.** A title naming another reviewer, or an entry naming no goal, is a finding of the pass the chunk runs, and the chunk runs every pass its trigger fires. **Round cap.** - **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. -- **Architecture round.** The architecture pass's first round is the architect (unless skipped) and the principles audit. A later round relaunches each reviewer whose 🔴 or 🟡 the previous round's fixes answer. Where those fixes carry an architectural decision, the architect and the principles audit run again. +- **Architecture round.** The architecture pass's first round is the architect, unless skipped. A later round relaunches each reviewer whose 🔴 or 🟡 the previous round's fixes answer. Where those fixes carry an architectural decision, the architect runs again. - **Auto-reviewer.** The external auto-reviewer (§4) is a pass of its own, each review it posts a round. - **Count.** Close each round with one commit that holds the round's fixes. Title it `Answer round : 🔴, 🟡; …`: `` is the pass's name in lower case, such as `full scan`, and `` and `` are the 🔴 and 🟡 findings all the round's reviewers reported. Example: `Answer stability round 1: 1 🔴, 2 🟡; 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. The auto-reviewer's count is the number of its reviews on the PR, less its reviews of a `Record the comprehension check:` commit. - **Later rounds.** From round 2, an agent under `~/.claude/agents/` reviews only the answers to its last round's findings, and each fix from another pass that re-entered its pass. Prompt it with its last round's findings verbatim, each with its answer: the fix's diff, or the reason it was dismissed. Give it each other pass's fix as `git diff `, since the fixes may be unpushed, with the finding it answered. It reports only an answer that is plainly wrong or worse than the change it answered, so its pass converges in its second round. Other reviewers review the branch as their tool does. @@ -100,11 +101,13 @@ Launch systems-architect: review the system as a whole entered through this chan - **Stage 0 questions returned**: relay them to the user, record the answers in the README, re-run once. - **BLOCK** standing after any relaunch ("Rung up"): confirm with the user first when the restructure materially reshapes their PR; until confirmed, no later pass runs. -Then the principles audit: one principles-auditor for the README's goals, and one per file in `~/.claude/principles/` whose `Applies to` line the project meets, judged from the README, `git ls-files` and the branch diff. A file without the line applies to every project. Unsure → launch it. +### Principles + +Launch principles-auditor on the trigger in §3: one for the README's goals, and one per file in `~/.claude/principles/` whose `Applies to` line the project meets, judged from the README, `git ls-files` and the branch diff. A file without the line applies to every project. Unsure → launch it. ### Comprehension check -The comprehension check records how hard the project is to read, and blocks no merge. Simulated readers, the seats, launched per `~/.claude/skills/comprehension-panel/SKILL.md`, each read the whole project, not the diff. It reports no findings and is no pass: it runs once, in §5, after every pass is done, the auto-reviewer included, so it reads the branch as review left it. It runs a paired ruling when the architecture pass ran, even when only its principles audit did, and a scoring run where one is due. It skips only as "Opt-out" or "Suspended" below says. +The comprehension check records how hard the project is to read, and blocks no merge. Simulated readers, the seats, launched per `~/.claude/skills/comprehension-panel/SKILL.md`, each read the whole project, not the diff. It reports no findings and is no pass: it runs once, in §5, after every pass is done, the auto-reviewer included, so it reads the branch as review left it. It runs a paired ruling when the architecture pass ran, even with its architect skipped on a precedent, and a scoring run where one is due. It skips only as "Opt-out" or "Suspended" below says. **Paired ruling.** Each seat votes whether the project reads better, the same or worse at this branch's head than at the base. diff --git a/todo.md b/todo.md index 95b4980d..37c41deb 100644 --- a/todo.md +++ b/todo.md @@ -12,7 +12,6 @@ | ID | Release | Blocked by | Exempt | Item | R | S | C | Moves | Score | |---|---|---|---|---|---|---|---|---|---| -| 160 | 0.2.0 | | question | **Decide whether the principles audit runs on every chunk or only with the architecture pass, then make larv-review and its decisions say so.** | 2 | 2 | 2 | 1.1 by 4, 1.4 by 4 | 10.9 | | 146 | 0.2.0 | | decision | **Score R as L + E + I − 2 from anchored levels, at least 7 at I5 and 5 at I4, with L, E and I in their own columns and `rank_todo.py` computing R, drop C, and route a task's model and effort on its R alone.** | 6 | 7 | 7 | 1.1 by 8, 1.2 by 8, 1.4 by 8 | 2.8 | | 152 | 0.2.0 | 146 | decision | **Anchor each score level in `rules/todo-items.md` with words, and each project's with two or three items it shipped, and have a scorer compare a new item against them.** | 2 | 4 | 3 | 1.1 by 7 | 6.4 | | 50 | 0.2.0 | | principle | **Grant the bench's runs only the tools a review needs, in place of skipping every permission.** | 2 | 2 | 3 | 1.1 by 3 | 5.5 | @@ -77,10 +76,6 @@ ## Details -### 160. Decide whether the principles audit runs on every chunk or only with the architecture pass, then make larv-review and its decisions say so. - -`skills/larv-review/SKILL.md` §3 runs the principles audit only inside the architecture pass, which fires on an architectural decision, and the Audit bullets in §3 say the same. `docs/decisions.md`'s entry titled "review: a project decision may opt every chunk out of the architect, the product-owner pass or the comprehension check" says the audit judges every chunk, and so does CHANGELOG 0.1.0: "The principles audit always runs." Running the audit on every chunk adds a principles-auditor for the README's goals and one per principle file that applies, even to a chunk that changes no structure (goal 1.4). Running it only with the architect leaves a principle breach in a plain change unjudged (goal 1.1). The human picks one. Then whichever of `skills/larv-review/SKILL.md` §3 and that decision disagrees changes to match. If the audit stops running on every chunk, a bullet under `## Unreleased` corrects CHANGELOG 0.1.0's line. - ### 146. Score R as L + E + I − 2 from anchored levels, at least 7 at I5 and 5 at I4, with L, E and I in their own columns and `rank_todo.py` computing R, drop C, and route a task's model and effort on its R alone. Each level is about ×10 of a real quantity; `docs/decisions.md` → `todo.md: …` says why. The anchors, for `rules/todo-items.md`: From e43a4923b5e9137f33847e19f51289e653498db9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 05:11:14 +0200 Subject: [PATCH 2/6] =?UTF-8?q?Answer=20principles=20round=201:=202=20?= =?UTF-8?q?=F0=9F=94=B4,=204=20=F0=9F=9F=A1;=20count=20the=20principles=20?= =?UTF-8?q?pass=20as=20a=20pass,=20and=20state=20the=20audit's=20cost=20an?= =?UTF-8?q?d=20its=20round=20scope?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/principles-auditor.md | 4 ++-- bin/round_titles.py | 2 +- bin/test_round_titles.py | 3 +++ docs/decisions.md | 2 +- skills/larv-review/SKILL.md | 4 +--- skills/larv-review/standards/quality.md | 2 +- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/agents/principles-auditor.md b/agents/principles-auditor.md index 02c92f7a..5f4f532b 100644 --- a/agents/principles-auditor.md +++ b/agents/principles-auditor.md @@ -1,10 +1,10 @@ --- name: principles-auditor -description: "Use this agent for larv-review's principles pass, on every chunk that changes code, config or tests: one yardstick checked against the whole project." +description: "Use this agent for larv-review's principles pass: one yardstick checked against the whole project." tools: Read, Grep, Glob --- -You check one yardstick against the whole project, never a diff, in every round: every principle in the file you are handed, or every goal under the project's `README.md` → `## Goals`. +You check one yardstick against the whole project: every principle in the file you are handed, or every goal under the project's `README.md` → `## Goals`. In round 1 that is the whole project; from round 2, review only the answers to your last round's findings, as larv-review's later rounds say. Verdict, severities and rounds: ~/.claude/skills/larv-review/review-findings.md. Read the yardstick, `README.md`, `docs/decisions.md` and `todo.md` first, then all of the project's code, config, tests and CI. diff --git a/bin/round_titles.py b/bin/round_titles.py index ec7a452c..d4d436bd 100644 --- a/bin/round_titles.py +++ b/bin/round_titles.py @@ -2,7 +2,7 @@ import re CAP = 3 -PASSES = ("architecture", "full scan", "security", "overrides", "stability", "product-owner", "prose") +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/bin/test_round_titles.py b/bin/test_round_titles.py index 0911ee33..3fc6bf4f 100644 --- a/bin/test_round_titles.py +++ b/bin/test_round_titles.py @@ -18,6 +18,9 @@ class Rounds(unittest.TestCase): def test_counts_a_repeated_round_number_as_a_round_of_its_own(self): self.assertEqual(round_counts(["Answer stability round 3: x", "Answer stability round 3: y", "Answer stability round 2: z", "Answer stability round 1: w"])["stability"], 4) + def test_lists_the_principles_pass_before_its_first_round(self): + self.assertIn("principles", round_counts([])) + class RoundFindings(unittest.TestCase): def test_sums_the_counts_each_round_title_opens_with(self): diff --git a/docs/decisions.md b/docs/decisions.md index db32d031..f687d3d7 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -90,7 +90,7 @@ Valid while the ladder orders its rungs by competence. ## review: the principles audit runs on every chunk that changes code, config or tests, and on no prose or planning-only chunk -2026-10-16, lilleman, answering the open question on the audit's trigger. Serves goal 1.1: a principle that no chunk checks drifts, as the stability reviewer's copy of one did before its UUID line went stale. The audit's trigger is the stability pass's, so a chunk that changes code, config or tests always gets it, and prose or the plan never does. Valid while the audit's findings on a chunk are drift that chunk would otherwise merge, not the same whole-project findings repeated chunk after chunk: a repeat is a question on the audit's scope for the human. +2026-10-16, lilleman, answering the question on the audit's trigger that the plan held. Serves goal 1.1: a principle that no chunk checks drifts, as the stability reviewer's copy of one did before item 67. It costs goal 1.4: a chunk that changes code, config or tests launches one auditor for the goals and one per applicable principles file, and a code fix re-enters them. The human accepted that cost. Its signals are tokens per finished chunk and review rounds per chunk. The trigger is the stability pass's, except that a fix re-enters the audit wherever it changes code, config or tests. Valid while the audit's findings are drift a chunk would otherwise merge, not the same whole-project findings repeated chunk after chunk: a repeat is a question on the audit's scope for the human. ## review: a pass skips only on a precedent: a decision, or a plan item crediting the pass, that the repo held before the chunk began diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index e693047d..05e43bf2 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -52,8 +52,6 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Skip.** A precedent is a `docs/decisions.md` entry, or a plan item crediting the pass, that the repo held before the chunk began. Where one holds the decision this change executes, skip the pass and cite that entry or item. - **Departure.** A change that departs from the precedent is unreviewed, however thorough the precedent is. - **Ask.** Fired and not skipped → ask the user whether to run it, with the evidence and your recommendation; no user reachable → run it. For the full scan, give the evidence and your recommendation, then launch it: the plugin asks the user to confirm its cost, and that prompt is the ask. -- **Audit.** A precedent or the user's no skips only the architect, never the principles pass: no precedent checked the code this chunk writes. - **Opt-out** — for the architect, the product-owner pass and the comprehension check: - **Entry.** A project opts out only through a `docs/decisions.md` entry, held before the chunk began, whose title opens `review opt-out:` and names one or more of the three. The entry names the project goal that skipping them serves. @@ -107,7 +105,7 @@ Launch principles-auditor on the trigger in §3: one for the README's goals, and ### Comprehension check -The comprehension check records how hard the project is to read, and blocks no merge. Simulated readers, the seats, launched per `~/.claude/skills/comprehension-panel/SKILL.md`, each read the whole project, not the diff. It reports no findings and is no pass: it runs once, in §5, after every pass is done, the auto-reviewer included, so it reads the branch as review left it. It runs a paired ruling when the architecture pass ran, even with its architect skipped on a precedent, and a scoring run where one is due. It skips only as "Opt-out" or "Suspended" below says. +The comprehension check records how hard the project is to read, and blocks no merge. Simulated readers, the seats, launched per `~/.claude/skills/comprehension-panel/SKILL.md`, each read the whole project, not the diff. It reports no findings and is no pass: it runs once, in §5, after every pass is done, the auto-reviewer included, so it reads the branch as review left it. It runs a paired ruling when the architecture pass ran, whether or not its architect was skipped, and a scoring run where one is due. It skips only as "Opt-out" or "Suspended" below says. **Paired ruling.** Each seat votes whether the project reads better, the same or worse at this branch's head than at the base. diff --git a/skills/larv-review/standards/quality.md b/skills/larv-review/standards/quality.md index 481b7f44..7fd5b470 100644 --- a/skills/larv-review/standards/quality.md +++ b/skills/larv-review/standards/quality.md @@ -1,6 +1,6 @@ # Quality -Quality is proven by review. Every change is reviewed as a diff. The whole project is measured when a change carries an architectural decision, and before each release, because a project can drift from the principles one clean diff at a time. `SKILL.md` §3 says which review runs when. Quality has three parts. When two pull against each other, the earlier one wins. +Quality is proven by review. Every change is reviewed as a diff. The whole project is measured by the passes `SKILL.md` §3 names for a change, and before each release, because a project can drift from the principles one clean diff at a time. Quality has three parts. When two pull against each other, the earlier one wins. 1. **Correct.** The work does what the goals and the plan say, and tests prove it. 2. **True to the technical principles** (`~/.claude/principles/technical-principles.md`). The comprehension check (`SKILL.md` §3 → "Comprehension check") measures KISS. From 127439bb48c200b86fa46d6ddf5025f616bcc475 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 05:11:30 +0200 Subject: [PATCH 3/6] Restore the blank line before larv-review's Opt-out heading --- skills/larv-review/SKILL.md | 1 + 1 file changed, 1 insertion(+) diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 05e43bf2..1589226e 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -52,6 +52,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Skip.** A precedent is a `docs/decisions.md` entry, or a plan item crediting the pass, that the repo held before the chunk began. Where one holds the decision this change executes, skip the pass and cite that entry or item. - **Departure.** A change that departs from the precedent is unreviewed, however thorough the precedent is. - **Ask.** Fired and not skipped → ask the user whether to run it, with the evidence and your recommendation; no user reachable → run it. For the full scan, give the evidence and your recommendation, then launch it: the plugin asks the user to confirm its cost, and that prompt is the ask. + **Opt-out** — for the architect, the product-owner pass and the comprehension check: - **Entry.** A project opts out only through a `docs/decisions.md` entry, held before the chunk began, whose title opens `review opt-out:` and names one or more of the three. The entry names the project goal that skipping them serves. From 40bb67639986ec17508bd70c29662223159f4309 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 05:13:01 +0200 Subject: [PATCH 4/6] =?UTF-8?q?Answer=20principles=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20make=20the=20paired=20rulin?= =?UTF-8?q?g=20and=20the=20prose=20sweep=20follow=20the=20architecture=20p?= =?UTF-8?q?ass's=20trigger,=20not=20a=20precedent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/prose-reviewer.md | 2 +- skills/larv-review/SKILL.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agents/prose-reviewer.md b/agents/prose-reviewer.md index e1f1a6b3..b8c6f304 100644 --- a/agents/prose-reviewer.md +++ b/agents/prose-reviewer.md @@ -35,4 +35,4 @@ The prompt hands you these. Beyond them, read only what a finding needs checking 1. **What the diff touched**: every markdown line, comment and printed text, such as help or an error, that the diff adds or changes. 2. **What the review cited**: each section the prompt names, with the code it governs. -3. **Every prose file the repo owns**, when the prompt says the architecture pass ran. This sweep catches files that grew a paragraph per chunk, which no single diff shows. +3. **Every prose file the repo owns**, when the prompt says the architecture pass's trigger fired. This sweep catches files that grew a paragraph per chunk, which no single diff shows. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 1589226e..147a909d 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -106,7 +106,7 @@ Launch principles-auditor on the trigger in §3: one for the README's goals, and ### Comprehension check -The comprehension check records how hard the project is to read, and blocks no merge. Simulated readers, the seats, launched per `~/.claude/skills/comprehension-panel/SKILL.md`, each read the whole project, not the diff. It reports no findings and is no pass: it runs once, in §5, after every pass is done, the auto-reviewer included, so it reads the branch as review left it. It runs a paired ruling when the architecture pass ran, whether or not its architect was skipped, and a scoring run where one is due. It skips only as "Opt-out" or "Suspended" below says. +The comprehension check records how hard the project is to read, and blocks no merge. Simulated readers, the seats, launched per `~/.claude/skills/comprehension-panel/SKILL.md`, each read the whole project, not the diff. It reports no findings and is no pass: it runs once, in §5, after every pass is done, the auto-reviewer included, so it reads the branch as review left it. It runs a paired ruling when the architecture pass's trigger fired, whether or not a precedent, the user's no or an opt-out skipped its architect, and a scoring run where one is due. It skips only as "Opt-out" or "Suspended" below says. **Paired ruling.** Each seat votes whether the project reads better, the same or worse at this branch's head than at the base. @@ -142,7 +142,7 @@ Launch the reviewer with the change — stability-reviewer also with the places ### Prose -Launch prose-reviewer with what the diff touched and every section this review cited — a reviewer's finding, your decline or the implementer's decision quoted it — each with the code it governs, and say whether the architecture pass ran. Fix what the chunk touched. A finding on a cited section the chunk did not touch, or on any other prose file, is outside the chunk. A split or index bigger than the chunk is filed as a `todo.md` item naming the section and how long a reader searches it. +Launch prose-reviewer with what the diff touched and every section this review cited — a reviewer's finding, your decline or the implementer's decision quoted it — each with the code it governs, and say whether the architecture pass's trigger fired. Fix what the chunk touched. A finding on a cited section the chunk did not touch, or on any other prose file, is outside the chunk. A split or index bigger than the chunk is filed as a `todo.md` item naming the section and how long a reader searches it. ## 4. Gate From a4de9ff1144400cffc14f10822568e8fb2f0a6b8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 05:21:06 +0200 Subject: [PATCH 5/6] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1;=20delete=20the=20Architecture?= =?UTF-8?q?=20round=20bullet,=20which=20repeated=20the=20table=20and=20the?= =?UTF-8?q?=20later-rounds=20rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/larv-review/SKILL.md | 1 - 1 file changed, 1 deletion(-) diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 147a909d..be3fbad1 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -63,7 +63,6 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its **Round cap.** - **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. -- **Architecture round.** The architecture pass's first round is the architect, unless skipped. A later round relaunches each reviewer whose 🔴 or 🟡 the previous round's fixes answer. Where those fixes carry an architectural decision, the architect runs again. - **Auto-reviewer.** The external auto-reviewer (§4) is a pass of its own, each review it posts a round. - **Count.** Close each round with one commit that holds the round's fixes. Title it `Answer round : 🔴, 🟡; …`: `` is the pass's name in lower case, such as `full scan`, and `` and `` are the 🔴 and 🟡 findings all the round's reviewers reported. Example: `Answer stability round 1: 1 🔴, 2 🟡; 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. The auto-reviewer's count is the number of its reviews on the PR, less its reviews of a `Record the comprehension check:` commit. - **Later rounds.** From round 2, an agent under `~/.claude/agents/` reviews only the answers to its last round's findings, and each fix from another pass that re-entered its pass. Prompt it with its last round's findings verbatim, each with its answer: the fix's diff, or the reason it was dismissed. Give it each other pass's fix as `git diff `, since the fixes may be unpushed, with the finding it answered. It reports only an answer that is plainly wrong or worse than the change it answered, so its pass converges in its second round. Other reviewers review the branch as their tool does. From 5cc4346081995feb174a6c9bda2f8f9b8af4a61d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 05:28:26 +0200 Subject: [PATCH 6/6] Cite CLAUDE.md's Working loop heading before its bold lead, so the citation test passes --- todo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 67c20ab6..b16678f8 100644 --- a/todo.md +++ b/todo.md @@ -119,7 +119,7 @@ In item 140's chunk, the worker spent 5 min 46 s of 30 min, 16 of its 68 message - the open PR and worktree for the chunk, the last tag and how many changes are unreleased; - the next release, the first plan item that does not wait, its R + C and its detail, after `rank_todo.py --check`; -- the items that may bundle with it under `CLAUDE.md` → "Work one chunk at a time"; +- the items that may bundle with it under `CLAUDE.md` → "Working loop", "Work one chunk at a time, and make it as large as one purpose allows"; - what `larv-review needs-scoring-run`, `reading-cost` and `larv-review places` print; - a worktree off a freshly fetched `origin/main`.