Write larv-review §3's record, round and re-entry rules as numbered rules, and exempt a chunk into rebuild from the scoring run there #178

Merged
lilleman merged 4 commits from larv-review-rules into rebuild 2026-10-01 22:19:21 +02:00
2 changed files with 23 additions and 9 deletions
+22 -6
View File
@@ -35,13 +35,29 @@ Follow `~/.claude/CLAUDE.md` → "Git, commits, and PRs". Never commit to the de
| Product-owner | product-owner-reviewer | changes an external surface: API, CLI, UI, error or deprecation text a consumer reads, README and docs an outside reader lands on | | Product-owner | product-owner-reviewer | changes an external surface: API, CLI, UI, error or deprecation text a consumer reads, README and docs an outside reader lands on |
| Prose | prose-reviewer | every chunk; a fix, where it touches prose | | Prose | prose-reviewer | every chunk; a fix, where it touches prose |
A comment is prose, not code. Passes run in this order: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work. A 🔀 escalation runs the named pass once the current pass is done; its fixes re-enter like any other. A comment is prose, not code. Passes run in this order: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work. A 🔀 escalation runs the named pass once the current pass is done.
**Record, then ask**, for the architecture pass and the full scan: where, before the chunk began, the repo held the decision this change executes — a decision-log entry, or a planning item crediting the pass — the pass is done: cite the record and skip it. The architecture pass's principles audit and scoring run are excepted: they run whenever the pass fires, unasked, since no record older than the chunk checked the code it writes. A change that *departs* from the record is unreviewed however thorough the record is. Fired and not skipped → ask the user with the evidence and your recommendation; no user reachable → run it. **Record, then ask** — for the architecture pass and the full scan:
**Round cap.** A round is one launch of a pass's reviewer, whatever launched it, a rerun after the architect's Stage 0 questions — the goals, audience, scale or domain language it found unrecorded — included. The architecture pass's round is the architect (unless skipped), the principles audit and the scoring run, so a fix to any of their findings reruns the whole round; the external auto-reviewer (§4) is a pass of its own, each review it posts a round. From round 2, prompt an agent under `~/.claude/agents/` with the previous round's findings verbatim and what changed since. A pass is done on no 🔴 and no 🟡, until a re-entry reruns it; the 🟢 and ❓ left are addressed in the round that finished it — fixed, answered, declined or filed in `todo.md`; a ❓ only the user can answer is asked; no user reachable → filed. A pass takes at most three rounds per chunk; instead of a fourth, list what is open and ask the user — for the auto-reviewer, before any push that would summon a fourth, fixes waiting unpushed. A yes grants that pass one more round, after which the ask repeats; a no leaves the PR unmerged. 1. A record is a decision-log entry, or a planning 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 the record.
2. A change that departs from the record is unreviewed, however thorough the record is.
3. Fired and not skipped → ask the user whether to run it, with the evidence and your recommendation; no user reachable → run it.
4. A record or the user's no skips only the architect, never the principles audit or the scoring run: no record older than the chunk checked the code it writes.
**Re-entry.** A fix is a change no pass has seen, a 🟢's or ❓'s included. A round's fixes re-enter together: run, in table order, each pass whose trigger they fire and the pass whose 🔴 or 🟡 they answer, a pass at its cap getting the cap's ask; then §4. **Round cap.**
1. A round is one launch of a pass's reviewer: the first, each re-entry, and the rerun after the architect's Stage 0 questions.
2. The architecture pass's round is the architect (unless skipped), the principles audit and the scoring run, so a fix to any of their findings reruns the whole round.
3. The external auto-reviewer (§4) is a pass of its own, each review it posts a round.
4. From round 2, prompt an agent under `~/.claude/agents/` with the previous round's findings verbatim and what changed since.
5. A pass is done on no 🔴 and no 🟡. The round that finishes it addresses each 🟢 and ❓ left: fixed, answered, declined or filed in `todo.md`. A ❓ only the user can answer is asked; no user reachable → filed.
6. A pass takes at most three rounds per chunk. Instead of a fourth, list what is open and ask the user. For the auto-reviewer, ask before the push that would summon its fourth, and hold the fixes unpushed until the answer.
7. A yes grants that pass one more round, after which the ask repeats; a no leaves the PR unmerged.
**Re-entry.**
1. A fix is a change no pass has seen, a 🟢's or ❓'s included.
2. A round's fixes re-enter together: run, in table order, each pass whose trigger they fire, a done pass included, and each pass whose 🔴 or 🟡 they answer; a pass at its cap gets "Round cap" rule 6's ask instead. Then §4.
### Architecture ### Architecture
@@ -52,7 +68,7 @@ Launch systems-architect: review the system as a whole entered through this chan
Then the principles audit: one principles-auditor per file in `~/.claude/principles/` and one for the README's goals, each over the whole project in every round. A finding outside the chunk is filed in `todo.md`; a 🔴 on a decision is asked, since the decision is the user's. Then the principles audit: one principles-auditor per file in `~/.claude/principles/` and one for the README's goals, each over the whole project in every round. A finding outside the chunk is filed in `todo.md`; a 🔴 on a decision is asked, since the decision is the user's.
Then the comprehension floor: the `comprehension-panel` skill's scoring run (`~/.claude/skills/comprehension-panel/SKILL.md` → "The scoring run") over the whole project, not the diff. With any dimension or the overall below 7.0 the chunk does not merge: fix the places the seats name under the capping dimension, or take the user's explicit decision to ship under the floor, record it in `docs/decisions.md` with the scores, and file the places in `todo.md`. No user reachable → fix. At the floor or above, the scores are still a ratchet — a later chunk may not lower any — and the four dimension scores and the overall go in the summary so the next run can see the direction of travel. Then the comprehension floor: the `comprehension-panel` skill's scoring run (`~/.claude/skills/comprehension-panel/SKILL.md` → "The scoring run") over the whole project, not the diff; a chunk whose PR goes into `rebuild` takes none. With any dimension or the overall below 7.0 the chunk does not merge: fix the places the seats name under the capping dimension, or take the user's explicit decision to ship under the floor, record it in `docs/decisions.md` with the scores, and file the places in `todo.md`. No user reachable → fix. At the floor or above, the scores are still a ratchet — a later chunk may not lower any — and the four dimension scores and the overall go in the summary so the next run can see the direction of travel.
### Security ### Security
@@ -75,7 +91,7 @@ Launch prose-reviewer with what the diff touched and every section this review c
## 4. Gate ## 4. Gate
1. Run the project's test suite locally unless the last stability round already left it verified green. 1. Run the project's test suite locally unless the last stability round already left it verified green.
2. Watch the forge's checks until every one passes. A red check is a finding; its fix re-enters per §3. 2. Watch the forge's checks until every one passes. A red check is a finding.
3. No CI configured → the gate is local tests only; note it in the summary. 3. No CI configured → the gate is local tests only; note it in the summary.
4. Everything green → mark the PR ready, dropping any `WIP:`/`Draft:` title prefix. 4. Everything green → mark the PR ready, dropping any `WIP:`/`Draft:` title prefix.
5. **External auto-reviewer**, when the repo has one — its config file (`.coderabbit.yaml` and the like), or its comments on earlier PRs; none → skip it, say so. Marking the PR ready is what summons it. Wait up to **10 minutes** for its first review, checking about once a minute; nothing by then → note it in the summary and carry on, never waiting twice. Its rounds, §3 → "Round cap". Once it has reviewed, each later return here, after a fix re-entered per §3, waits up to **5 minutes** for its re-review of the new commit. 5. **External auto-reviewer**, when the repo has one — its config file (`.coderabbit.yaml` and the like), or its comments on earlier PRs; none → skip it, say so. Marking the PR ready is what summons it. Wait up to **10 minutes** for its first review, checking about once a minute; nothing by then → note it in the summary and carry on, never waiting twice. Its rounds, §3 → "Round cap". Once it has reviewed, each later return here, after a fix re-entered per §3, waits up to **5 minutes** for its re-review of the new commit.
+1 -3
View File
@@ -8,9 +8,7 @@ The sketches, the judges' verdicts and what to take from each: `~/code/claude-ha
The places the panel on `rebuild` at 8585257 named under Self-sufficiency and Locality, the dimensions under the floor (scores: `docs/decisions.md` → "comprehension floor"): The places the panel on `rebuild` at 8585257 named under Self-sufficiency and Locality, the dimensions under the floor (scores: `docs/decisions.md` → "comprehension floor"):
- **Write larv-review §3's "Record, then ask", "Round cap" and "Re-entry" as numbered rules, each stated once.** Three seats each reread them three times. "Round cap" alone holds nine rules, and changing what a round is touches `SKILL.md`'s "Round cap", "Re-entry" and §4.5, `review-findings.md` → "Rounds" and `CLAUDE.md` → "Vocabulary".
- **Title each `AGENTS.md` index line by what holds at the commit it ships in.** Three seats searched `bin/` for the full-path id and the refused second loop, which wait on 0.2.0. "cut-over", "stats" and "bench" name nothing a reader can find. - **Title each `AGENTS.md` index line by what holds at the commit it ships in.** Three seats searched `bin/` for the full-path id and the refused second loop, which wait on 0.2.0. "cut-over", "stats" and "bench" name nothing a reader can find.
- **State in larv-review §3 that a chunk into `rebuild` takes no scoring run.** Two seats found the skill running it whenever the architecture pass fires, and the exemption only in a decision.
- **Name a project's loop states and give them one transition function.** Every seat had to keep two facts in mind: a run resumes only if its transcript exists (`steps.py:27`), and a reload carries its state through argv (`reload.py:45`). - **Name a project's loop states and give them one transition function.** Every seat had to keep two facts in mind: a run resumes only if its transcript exists (`steps.py:27`), and a reload carries its state through argv (`reload.py:45`).
- **Split `written_by_human`'s boolean into one named check per entry shape.** `formats.py:42` packs three tests into one line, one seat learnt the cases only from `HumanTurns` in the tests, and another could not confirm them without `HumanTurns`. Three seats named it the unit they least wanted to modify, and the architect named it where the project rots first. - **Split `written_by_human`'s boolean into one named check per entry shape.** `formats.py:42` packs three tests into one line, one seat learnt the cases only from `HumanTurns` in the tests, and another could not confirm them without `HumanTurns`. Three seats named it the unit they least wanted to modify, and the architect named it where the project rots first.
- **Have stability-reviewer's step 4 run tests where the project's decisions say.** It says never host runtimes, and two seats found README's tests run on the host by decision. - **Have stability-reviewer's step 4 run tests where the project's decisions say.** It says never host runtimes, and two seats found README's tests run on the host by decision.
@@ -39,7 +37,7 @@ The places the panel on `rebuild` at 8585257 named under Self-sufficiency and Lo
- Make the contributor a standing member of every project's audience. A project drops them only where its `## Audience` says maintainability does not matter. State that in `CLAUDE.md`'s goals-and-audience rule, and have larv-review's comprehension floor name the contributor as the reader it serves. The floor then gates every chunk while the contributor stands, and a project that drops them skips it. - Make the contributor a standing member of every project's audience. A project drops them only where its `## Audience` says maintainability does not matter. State that in `CLAUDE.md`'s goals-and-audience rule, and have larv-review's comprehension floor name the contributor as the reader it serves. The floor then gates every chunk while the contributor stands, and a project that drops them skips it.
- Have larv-review's prose pass fix only what the chunk touched, and file the rest per `CLAUDE.md` → "Working loop". Today its fixes land "in this chunk", including cited sections and the sweep that runs with the architecture pass. In the 2026-09-30 bench, rebuild's costliest runs sprawled outside the chunk: one deleted README facts, and one took 13 rounds on the mypy case where main took 6–7 for the same fixes. Source: `~/code/claude-handoffs/claude-config/2026-09-30/bench/comparison.md`. - Have larv-review's prose pass fix only what the chunk touched, and file the rest per `CLAUDE.md` → "Working loop". Today its fixes land "in this chunk", including cited sections and the sweep that runs with the architecture pass. In the 2026-09-30 bench, rebuild's costliest runs sprawled outside the chunk: one deleted README facts, and one took 13 rounds on the mypy case where main took 6–7 for the same fixes. Source: `~/code/claude-handoffs/claude-config/2026-09-30/bench/comparison.md`.
- **Clean up the rules, skills, agents, plan and decision log.** Goal 4.1. - **Clean up the rules, skills, agents, plan and decision log.** Goal 4.1.
- Remove what the rebuild's merge made stale. The ⚠️ paragraphs in `AGENTS.md` and `todo.md`, and each decision valid "until the rebuild merges". - Remove what the rebuild's merge made stale. The ⚠️ paragraphs in `AGENTS.md` and `todo.md`, each decision valid "until the rebuild merges", and larv-review §3 → "Architecture"'s exemption of a chunk into `rebuild` from the scoring run.
- `docs/decisions.md`: give the comprehension-floor and vocabulary entries a premise that has not expired. Both say "Valid until the next scoring run", and every run since has passed it. Put the floor's rule first and its runs' scores in a table. - `docs/decisions.md`: give the comprehension-floor and vocabulary entries a premise that has not expired. Both say "Valid until the next scoring run", and every run since has passed it. Put the floor's rule first and its runs' scores in a table.
- larv-review: move its reasons for `/security-review` and for the premises chunk's review into `docs/decisions.md`. They are rejected alternatives, which the decision log holds. - larv-review: move its reasons for `/security-review` and for the premises chunk's review into `docs/decisions.md`. They are rejected alternatives, which the decision log holds.
- `comprehension-panel`: cut the run history and the restated description. They carry nothing the instructions need. - `comprehension-panel`: cut the run history and the restated description. They carry nothing the instructions need.