Answer principles round 1: 2 🔴, 4 🟡; count the principles pass as a pass, and state the audit's cost and its round scope

This commit is contained in:
2026-10-16 05:11:14 +02:00
parent fc4d63c041
commit e43a4923b5
6 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -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.
+1 -1
View File
@@ -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]+) 🟡(?:;|$)")
+3
View File
@@ -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):
+1 -1
View File
@@ -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
+1 -3
View File
@@ -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.
+1 -1
View File
@@ -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.