Launch a round's reviewers in up to three waves, each in one message, in place of one at a time

This commit is contained in:
2026-10-28 02:17:15 +01:00
parent b23bf4f9c3
commit 9accc68ec3
4 changed files with 13 additions and 9 deletions
+11 -3
View File
@@ -5,7 +5,7 @@ description: Ship a work chunk through review to a merged PR; decisions land in
# larv-review — ship the chunk, review until clean, gate green, merge
You orchestrate, fix, and ship; reviewers only report. Run every reviewer synchronously (`run_in_background: false`) and watch CI in the foreground: a headless run exits when the turn ends, and a background watcher dies with it. Never schedule a wakeup: a pending one keeps a headless run from exiting, so loop-claude neither runs its judge nor asks the human. The turn runs on until §6.
You orchestrate, fix, and ship; reviewers only report. Run every reviewer synchronously (`run_in_background: false`), a wave's in one message (§3 → "Waves"), and watch CI in the foreground: a headless run exits when the turn ends, and a background watcher dies with it. Never schedule a wakeup: a pending one keeps a headless run from exiting, so loop-claude neither runs its judge nor asks the human. The turn runs on until §6.
**Forge-neutral.** Five PR operations recur below: read a PR's diff, open a draft PR, read check status, mark ready, merge. Resolve the tooling from the remote per `~/.claude/CLAUDE.md` → "Git, commits, and PRs"; on any other forge, achieve the same intents through its CLI or API — discover how rather than assuming. A forge without a native draft state gets the closest equivalent (a `WIP:`/`Draft:` title prefix); note any approximation in the summary.
@@ -41,7 +41,15 @@ A pass is one kind of review, a row of the table, named by its first column. Its
| 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 | changes prose a reader reads, such as docs, comments, help or error text, or the plan; one round |
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 comment is prose, not code.
**Waves.** A round's passes launch in up to three waves, each wave's reviewers in one message, since line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work. A wave waits until every pass of the waves before it is done, and a wave with no pass whose trigger fired is skipped.
1. Architecture.
2. Principles, every auditor, with Full scan or Security, and Overrides.
3. Stability, Product-owner and Prose.
Foreground calls in one message run together, so a wave lasts as long as its slowest reviewer.
Give a reviewer without Bash the branch diff and `git ls-files`'s output in its prompt: some harnesses grant it Read alone.
@@ -70,7 +78,7 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its
- **Cap.** 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.
- **Answer.** A yes grants that pass one more round, after which the ask repeats; a no leaves the PR unmerged. rule-hook refuses a round commit titled past round 3 unless its `round-cap` override quotes the yes.
**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, in the pass table's order, every pass that a row below names for any of them, a done pass included, then §4. A pass at its cap gets "Round cap" → "Cap"'s ask instead.
**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, in "Waves", every pass that a row below names for any of them, a done pass included, then §4. A pass at its cap gets "Round cap" → "Cap"'s ask instead.
| The fix | Reruns |
|---------|--------|