From cd7926b5ad510a2856f19557e0bc1f1cd4ef110e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 28 Oct 2026 18:10:57 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=201:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=207=20=F0=9F=9F=A1=20(0=20misread);=20fix=20the=20CAP=20commen?= =?UTF-8?q?t,=20help,=20decision=20and=20AGENTS.md=20wording?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 2 +- CLAUDE.md | 2 +- bin/larv_review/main.py | 10 +++++----- bin/round_titles.py | 2 +- docs/decisions.md | 10 +++++----- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6ae33d15..fc83c32b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -23,7 +23,7 @@ Decisions live in `docs/decisions.md`: - reading cost: a rise is the last 5 chunks' median above the 5 before them, and files or refreshes one plan item - reading cost: larv-review measures each finished chunk from loop-claude's archive and appends the figure to `docs/reading-cost.md` in the next chunk's PR - review: `/security-review` is the security pass of record, except where the full scan runs on the same change and replaces it -- review: a fix for a ๐Ÿ”ด or ๐ŸŸก reruns the pass that found it and each pass whose row in `larv-review` ยง3's re-entry table the fix meets; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a ๐ŸŸข, a โ“ or a prose finding reruns none +- review: a fix for a ๐Ÿ”ด or ๐ŸŸก reruns the pass that found it, unless that pass is at its cap, and each pass whose row in `larv-review` ยง3's re-entry table the fix meets; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a ๐ŸŸข, a โ“ or a prose finding reruns none - review: a pass gets at most two rounds per chunk, with no third and no ask for one; the fixes answering round 2 merge once the gate passes - 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 - review: a project decision may opt every chunk out of the architect, the product-owner pass or the comprehension check, and a project opting out of the comprehension check voids code health diff --git a/CLAUDE.md b/CLAUDE.md index 4c6871a4..09ebe3e3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -75,7 +75,7 @@ The rules only reviewers apply, for quality, comments, READMEs and prose, live i - Escalate a task that proves too hard for your rung. Four escalation triggers say so: 1. A re-score of the item's L, made on the project's rung or above, picks a rung above yours. 2. The same failing test or finding survives two fix attempts. - 3. A pass reports a ๐Ÿ”ด in round 2 or later. + 3. A pass reports a ๐Ÿ”ด in round 2. 4. A review rules the work below standard: systems-architect's BLOCK, a finding against larv-review's `standards/quality.md`, or a vote `record-ruling` counts as worse, in the report that stands after any relaunch one rung up (`larv-review` ยง3 โ†’ "Rung up"). When one fires, hand the hard part, edits included, to a subagent on the rung loop-claude's prompt names, one above yours. Open the subagent's prompt with the marker loop-claude's prompt gives, then the trigger's evidence. Each later subagent on that task runs on that rung or higher, and each further escalation trigger moves the task one rung higher, up to the highest rung loop-claude's prompt names. Ask the human before going higher. Where loop-claude's prompt names no escalation, as on the ladder's top rung or off it, keep the task in your own thread. diff --git a/bin/larv_review/main.py b/bin/larv_review/main.py index e74738fb..50c2216d 100644 --- a/bin/larv_review/main.py +++ b/bin/larv_review/main.py @@ -22,11 +22,11 @@ measured commit is the default branch's newest merged change that adds a paired run to the history; a merge commit counts as one change against its first parent. With none, it is the merge base of HEAD and the default branch. -round-count prints each pass's round count among the branch's commits since the default branch, -following first parents as rule-hook's round-cap does, whose titles open `Answer round :`, -ignoring case. The count is the highest , or the number of such commits when that is more. At or -past the cap of {cap} rounds, it says the pass takes no more rounds. It also lists each name in such -a title that is not a pass. +round-count prints each pass's round count among the branch's commits since the default branch +whose titles open `Answer round :`, ignoring case. It follows first parents, as +rule-hook's round-cap does. The count is the highest , or the number of such commits when that +is more. At or past the cap of {cap} rounds, it says the pass takes no more rounds. It also lists +each name in such a title that is not a pass. needs-scoring-run takes the IDs of the todo.md items the chunk ships, none when it ships none, and prints why the chunk is due a scoring run, or `No scoring run due.` It is due when the chunk ships diff --git a/bin/round_titles.py b/bin/round_titles.py index 64b3a8b3..3da11d40 100644 --- a/bin/round_titles.py +++ b/bin/round_titles.py @@ -4,7 +4,7 @@ import re from review_passes import PASSES -# The most rounds a pass takes per chunk, per `docs/decisions.md` โ†’ `review: a pass gets at most two rounds per chunk; โ€ฆ`: the fixes answering the last one merge unreviewed. rule-hook's `round-cap` enforces it, refusing a round commit past_cap finds, and `larv-review round-count` marks a pass that reached it. +# The most rounds a pass takes per chunk, per `docs/decisions.md` โ†’ `review: a pass gets at most two rounds per chunk, โ€ฆ`. rule-hook's `round-cap` refuses a round commit that `past_cap` finds takes its pass past it, and `larv-review round-count` marks a pass that reached it. CAP = 2 ROUND = re.compile(r"^Answer (.+?) round ([0-9]+):", re.IGNORECASE) # What follows a round title's colon: the round's ๐Ÿ”ด and ๐ŸŸก counts, then how many of them a reviewer marked `[misread]`, a count that titles from before it lack, then `;` and its summary, if any. diff --git a/docs/decisions.md b/docs/decisions.md index 230e5473..999c0d4f 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -145,7 +145,7 @@ Valid while no published standard sets either number, the reading-cost window st 2026-10-08, lilleman. Serves goal 1.4: run beside the full scan, `/security-review` started seconds apart from it each round and returned a near-identical report. Valid while the full scan covers what `/security-review` reports. -## review: a fix for a ๐Ÿ”ด or ๐ŸŸก reruns the pass that found it and each pass whose row in `larv-review` ยง3's re-entry table the fix meets; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a ๐ŸŸข, a โ“ or a prose finding reruns none +## review: a fix for a ๐Ÿ”ด or ๐ŸŸก reruns the pass that found it, unless that pass is at its cap, and each pass whose row in `larv-review` ยง3's re-entry table the fix meets; from round 2 a pass reviews only the answers to its last round's findings and any other pass's fix that re-entered it; a fix for a ๐ŸŸข, a โ“ or a prose finding reruns none 2026-10-08, lilleman. Serves goal 1.4. An audit of the four costliest archived chunks found nearly every finding that mattered in a pass's first round; when every fix, a nit's included, re-entered review, later rounds mostly re-checked the last fix, reworded what an earlier round wrote, or contradicted another round on the same line. A round 2 caught real bugs only where a fix changed behaviour, so stability still reruns on every fix that does, and security on every fix that opens an untrusted-input boundary or touches authn/authz, secrets or crypto. Valid while round-2 reviews of nit and prose fixes keep changing nothing a user would notice. @@ -153,11 +153,11 @@ Valid while no published standard sets either number, the reading-cost window st ## review: a pass gets at most two rounds per chunk, with no third and no ask for one; the fixes answering round 2 merge once the gate passes -2026-10-28, lilleman through todo item 246. Serves goals 1 and 1.4. One counter per pass per chunk, so no fix bounces between two passes without end. lilleman measured every repo's round titles since 2026-10-21. Round 1 ran 357 times and found 59 ๐Ÿ”ด. Round 2 ran about 200 times and found 12 ๐Ÿ”ด, mostly in round 1's fixes. Rounds 3 and later ran about 110 times and found no ๐Ÿ”ด, at about $125 of review at list prices, and asks for a fourth or fifth round were 24 of the 59 interrupts. The cap had stood at three because a lower cap would ask the human more often; once nothing asks, that reason is gone. A rerun one rung up belongs to the round it reruns, so it counts toward no cap: `review: a reviewer or comprehension seat that rules the work below standard`. +2026-10-28, lilleman through todo item 246. Serves goals 1 and 1.4. One counter per pass per chunk, so no fix bounces between two passes without end. lilleman measured every repo's round titles since 2026-10-21. Round 1 ran 357 times and found 59 ๐Ÿ”ด. Round 2 ran about 200 times and found 12 ๐Ÿ”ด, mostly in round 1's fixes. Rounds 3 and later ran about 110 times and found no ๐Ÿ”ด, at about $125 of review at list prices, and asks for a fourth or fifth round were 24 of the 59 interrupts. The cap had stood at three because a lower cap would ask the human more often; once nothing asks, that reason is gone. A rerun one rung up belongs to the round it reruns, so it doesn't count toward the cap: `review: a reviewer or comprehension seat that rules the work below standard`. -rule-hook's `round-cap` refuses a round commit that would take its pass past round 2, and no override waives it. It counts the pass's round commits on the branch as `larv-review round-count` does, so a third commit titled round 2 is refused too. The hook must not fetch, so it reads the branch from the default branch as last fetched, following first parents: a stale default branch then cannot count another chunk's rounds merged in from it. It leaves out the commit an `--amend` replaces. Where git cannot list the branch's commits within 5 seconds, it counts the title's own number alone, so a slow lookup doesn't block the commit. +rule-hook's `round-cap` refuses a round commit that would take its pass past round 2, and no override waives it. It counts the pass's round commits on the branch as `larv-review round-count` does, so a third commit titled round 2 is refused too. The hook must not fetch, so it lists the branch's commits since the default branch as last fetched. It follows first parents, so the round commits that a merge of a newer default branch brought in don't count as this chunk's. It leaves out the commit an `--amend` replaces. Where git cannot list the branch's commits, within 5 seconds or because origin records no default branch, it counts the title's own number alone, so a slow or unset lookup doesn't block the commit. -Valid while findings that a later change fixes, per finished chunk, don't rise. +Valid while the defects that later commits fix in a finished chunk's code, which `todo.md` item 247 counts, don't rise per 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 @@ -353,7 +353,7 @@ Valid while a model switch inside a session discards its prompt cache. ## rule-hook: a PreToolUse hook enforces each rule a program can check, a `# rule-override : ` marker overrides one, and larv-review's overrides pass rules on each override before merge -2026-10-12, lilleman. Serves goals 1.2 and 1.3. Anthropic's best-practices page calls `CLAUDE.md` advisory and hooks deterministic, so a rule that must hold every time moves into `bin/rule-hook`, and `CLAUDE.md` keeps it only where the hook cannot check it. A Claude Code hook ties the check to one vendor ("Prefer the vendor-neutral option", `principles/technical-principles.md`), which is the target itself here: this repo configures Claude Code. What the tie buys: the hook blocks before a write lands, Edit and Write calls included, in every project with no per-repo install; a git `commit-msg` hook sees only commits, and CI sees them only after the push. The hook checks each write, so the agent fixes the line it just wrote; checking the staged diff at commit time would also cover files a Bash command writes, at the cost of later feedback. The marker's spelling was picked by a panel of three fresh readers, two to one. Each override is logged in the checkout's git directory, which is never pushed (goal 4). The plan had loop-claude's judge to rule on overrides inside a loop; lilleman approved larv-review's overrides pass in every run, because it rules before merge and an outrageous override still reaches the human through its ask. 2026-10-16, lilleman, answering plan item 166: `reviewer-rung` is the one rule no marker overrides; the comment above it in `bin/rule_hook/rules.py` says why. Valid while a PreToolUse hook that exits 2 blocks the call and hands its stderr to the model, and while an agent commits through Claude Code's Bash tool. +2026-10-12, lilleman. Serves goals 1.2 and 1.3. Anthropic's best-practices page calls `CLAUDE.md` advisory and hooks deterministic, so a rule that must hold every time moves into `bin/rule-hook`, and `CLAUDE.md` keeps it only where the hook cannot check it. A Claude Code hook ties the check to one vendor ("Prefer the vendor-neutral option", `principles/technical-principles.md`), which is the target itself here: this repo configures Claude Code. What the tie buys: the hook blocks before a write lands, Edit and Write calls included, in every project with no per-repo install; a git `commit-msg` hook sees only commits, and CI sees them only after the push. The hook checks each write, so the agent fixes the line it just wrote; checking the staged diff at commit time would also cover files a Bash command writes, at the cost of later feedback. The marker's spelling was picked by a panel of three fresh readers, two to one. Each override is logged in the checkout's git directory, which is never pushed (goal 4). The plan had loop-claude's judge to rule on overrides inside a loop; lilleman approved larv-review's overrides pass in every run, because it rules before merge and an outrageous override still reaches the human through its ask. 2026-10-16, lilleman, answering plan item 166: no marker overrides `reviewer-rung`; the comment above it in `bin/rule_hook/rules.py` says why. Valid while a PreToolUse hook that exits 2 blocks the call and hands its stderr to the model, and while an agent commits through Claude Code's Bash tool. ## rules/: `CLAUDE.md` holds the worker's rules that no file path can scope, and each topic's rules for the worker live in a `rules/` file that Claude Code loads by its `paths:` frontmatter