diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 472a51eb..762f3394 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -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 | | 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 @@ -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 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 @@ -75,7 +91,7 @@ Launch prose-reviewer with what the diff touched and every section this review c ## 4. Gate 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. 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. diff --git a/todo.md b/todo.md index 6079cd88..61306c2f 100644 --- a/todo.md +++ b/todo.md @@ -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"): -- **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. -- **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`). - **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. @@ -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. - 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. - - 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. - 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.