Answer principles round 1: 1 🔴, 1 🟡 (0 misread); count a fixed finding at the cap as done, and keep the Stage 0 rerun in its round

This commit is contained in:
2026-10-28 17:54:03 +01:00
parent 865f5b0306
commit 4f831316d2
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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()
+3 -1
View File
@@ -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]:
+1 -1
View File
@@ -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.
+2 -2
View File
@@ -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 <pass> 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 <pass> round <n>: <k> 🔴, <m> 🟡 (<j> misread); …`: `<pass>` is the pass's name in lower case, such as `full scan`, `<k>` and `<m>` are the 🔴 and 🟡 findings all the round's reviewers reported, and `<j>` 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").