From e43a4923b5e9137f33847e19f51289e653498db9 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 16 Oct 2026 05:11:14 +0200 Subject: [PATCH] =?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.