From 4f831316d201fa008ee7de31173c8f1c52daf41c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 28 Oct 2026 17:54:03 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20principles=20round=201:=201=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20count=20a?= =?UTF-8?q?=20fixed=20finding=20at=20the=20cap=20as=20done,=20and=20keep?= =?UTF-8?q?=20the=20Stage=200=20rerun=20in=20its=20round?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/git_repo.py | 2 +- bin/rule_hook/round_cap.py | 4 +++- docs/decisions.md | 2 +- skills/larv-review/SKILL.md | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/git_repo.py b/bin/git_repo.py index 8cad4fa8..882aef17 100644 --- a/bin/git_repo.py +++ b/bin/git_repo.py @@ -81,7 +81,7 @@ def default_ref(cwd: str | None = None, timeout: float | None = None, guarded: b def branch_titles(default: str, cwd: str | None = None, timeout: float | None = None, guarded: bool = False) -> list[str] | Failure: """The titles of the branch's own commits since default, newest first, read in cwd, else in the current directory. - --first-parent leaves out the commits a merge brought in, such as another chunk's rounds merged in from a default branch the checkout last fetched before them.""" + --first-parent leaves out the commits a merge brought in, such as those of a default branch newer than the one the checkout last fetched.""" titles = git("log", "--first-parent", "--format=%s", f"{default}..HEAD", cwd=cwd, timeout=timeout, guarded=guarded) return titles if isinstance(titles, Failure) else titles.splitlines() diff --git a/bin/rule_hook/round_cap.py b/bin/rule_hook/round_cap.py index 81223c4b..7c5b55f4 100644 --- a/bin/rule_hook/round_cap.py +++ b/bin/rule_hook/round_cap.py @@ -10,7 +10,9 @@ def round_cap_breaches(commit: Commit) -> list[Breach]: if not any(ROUND.match(message) for message in commit.messages): return [] earlier = earlier_titles(commit.directory, commit.amends) - return [Breach("round-cap", f"the pass has had its {CAP} rounds; merge once the gate passes, with no round after them", commit.directory)] if any(past_cap(message, earlier) for message in commit.messages) else [] + if not any(past_cap(message, earlier) for message in commit.messages): + return [] + return [Breach("round-cap", f"the pass has had its {CAP} rounds; merge once the gate passes, with no round after them", commit.directory)] def earlier_titles(directory: str, amends: bool) -> list[str]: diff --git a/docs/decisions.md b/docs/decisions.md index 8ef3685d..230e5473 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -155,7 +155,7 @@ Valid while no published standard sets either number, the reading-cost window st 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`. -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 tell 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 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. Valid while findings that a later change fixes, per finished chunk, don't rise. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index d7d057cd..8f75e610 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -71,10 +71,10 @@ 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. +- **Round.** A round is one review by a pass's reviewer: the first and each re-entry. The rerun after the architect returns Stage 0 questions ("Architecture" below) and a relaunch one rung up ("Rung up" below) stay in their round. - **Auto-reviewer.** The external auto-reviewer (ยง4) is a pass of its own, each review it posts a round. Its count is the number of its reviews on the PR, less its reviews of a `Record the comprehension check:` commit, and `round-count` doesn't list it. A commit that answers one of its rounds takes an ordinary title, not an `Answer round` one, and a round that changed nothing gets no commit. - **Count.** Close each round of a pass other than the auto-reviewer with one commit that holds the round's fixes. Title it `Answer round : ๐Ÿ”ด, ๐ŸŸก ( misread); โ€ฆ`: `` is the pass's name in lower case, such as `full scan`, `` and `` are the ๐Ÿ”ด and ๐ŸŸก findings all the round's reviewers reported, and `` is how many of those they marked `[misread]` (review-findings.md โ†’ "Misread"); a reviewer that marks none, such as `/security-review`, adds 0. Example: `Answer stability round 1: 1 ๐Ÿ”ด, 2 ๐ŸŸก (1 misread); 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. -- **Done.** A pass is done when its latest round leaves no ๐Ÿ”ด or ๐ŸŸก standing: none was reported, or each was shown factually wrong, declined, filed, or named under the bar per "Findings", or settled in the PR summary per "Comprehension check" โ†’ "Places", or, for the prose pass, fixed. Resolve that round's ๐ŸŸขs and โ“s per "Findings" too. +- **Done.** A pass is done when its latest round leaves no ๐Ÿ”ด or ๐ŸŸก standing: none was reported, or each was shown factually wrong, declined, filed, or named under the bar per "Findings", or settled in the PR summary per "Comprehension check" โ†’ "Places", or, for the prose pass and a pass at its cap, fixed. Resolve that round's ๐ŸŸขs and โ“s per "Findings" too. - **Cap.** A pass takes at most two rounds per chunk, and nothing asks the user for a third. Fix what its second round found: those fixes merge once the gate passes, unreviewed by that pass. rule-hook's `round-cap` refuses a round commit that would take a pass past two, and no override waives it. A review the auto-reviewer posts after its second is no round: answer none of it. **Re-entry.** A fix is a change no pass has seen. A fix for a ๐ŸŸข, a โ“ or a prose finding reruns no pass, whatever it changes. A round's fixes for ๐Ÿ”ด and ๐ŸŸก findings re-enter together: run every pass that a row below names for any of them, a done pass included, in the waves of "Waves", then ยง4. A pass at its cap doesn't run again ("Round cap" โ†’ "Cap").