Place larv-review's Re-entry section after the passes it cites #43
+21
-21
@@ -5,28 +5,17 @@ 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; the reviewer agents only report. Run every reviewer synchronously (`run_in_background: false`) — each step depends on the previous result. Watch CI in the foreground too: a headless run exits when the turn ends, and a background watcher or a scheduled wakeup dies with it. A reviewer's report is input to the next step; the turn runs on until §11. Architecture strictly before security, security before stability: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work.
|
||||
You orchestrate, fix, and ship; the reviewer agents only report. Run every reviewer synchronously (`run_in_background: false`) — each step depends on the previous result. Watch CI in the foreground too: a headless run exits when the turn ends, and a background watcher or a scheduled wakeup dies with it. A reviewer's report is input to the next step; the turn runs on until §12. Architecture strictly before security, security before stability: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work.
|
||||
|
||||
**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.
|
||||
|
||||
Words: `~/.claude/CLAUDE.md` → "Vocabulary". Verdicts, severities, round caps, declining a finding and where decisions are recorded: ~/.claude/agents/review-protocol.md. Its Declining section also binds `/security-review` and the external reviewer in §9.
|
||||
|
||||
## Re-entry
|
||||
|
||||
A fix made in any pass is a change the passes before it never saw. It re-enters:
|
||||
|
||||
- §3 only where it fires a §2 signal of its own (a new dependency, a new module, a moved boundary).
|
||||
- §4 only where it opens a new untrusted-input boundary or touches authn/authz, secrets or crypto.
|
||||
- §5 wherever a later step names it (§6.5, §8), prompted with the fix's scope and why it changed.
|
||||
- §6 where it changed an external surface or a reviewer escalated 🔀 to it, as at first entry.
|
||||
|
||||
A re-entry is a new loop with its own round cap.
|
||||
Words: `~/.claude/CLAUDE.md` → "Vocabulary". Verdicts, severities, round caps, declining a finding and where decisions are recorded: ~/.claude/agents/review-protocol.md. Its Declining section also binds `/security-review` and the external reviewer in §10.
|
||||
|
||||
## 0. Preconditions
|
||||
|
||||
- Not a git repo → say so and stop.
|
||||
- Someone else's PR, or the user asked for opinions only → single stability pass, report findings, done (skip shipping, fixing, the loops and the merge).
|
||||
- Prose only — markdown, docs, comments, no code — → the reviewer loops add nothing: ship the branch (§1), the prose pass (§7), green gate (§8), merge (§10). Say so in the summary. Prose an outside reader lands on — public API docs, README, CHANGELOG, error or deprecation text — still takes §6's product-owner pass.
|
||||
- Prose only — markdown, docs, comments, no code — → the reviewer loops add nothing: ship the branch (§1), the prose pass (§8), green gate (§9), merge (§11). Say so in the summary. Prose an outside reader lands on — public API docs, README, CHANGELOG, error or deprecation text — still takes §6's product-owner pass.
|
||||
- Issue trackers are project-specific — the project's own docs say whether it has one. When it does and the work has a ticket, follow that tracker's conventions for assignment and status.
|
||||
- **Nothing merges and nothing is reported done without premises**, which `~/.claude/CLAUDE.md` → "Working loop" holds all planned work on. Premises missing, or too vague to settle a decision → this chunk cannot be judged: stop, say so, and write them with the user as the chunk instead. That chunk's whole review is the human's approval, since a reviewer's findings on it could only be declined by citing the goals it exists to write; a later change to a goal takes the full review. The same content in `AGENTS.md`, in `docs/` or in a decision log does not satisfy it, and neither does an earlier chunk having passed it. Only what that section lets through without them reaches review.
|
||||
|
||||
@@ -85,7 +74,7 @@ Run the built-in **`/security-review`** skill over the branch diff. It is the pa
|
||||
## 5. Stability loop
|
||||
|
||||
1. Launch **stability-reviewer**, prompted per the protocol's rounds.
|
||||
2. Fix every 🔴 **and every 🟡** along its Fix guidance (delete > simplify > modify > add). Keep test changes and implementation changes separately reviewable. §8's gate verifies what the final round's nits changed.
|
||||
2. Fix every 🔴 **and every 🟡** along its Fix guidance (delete > simplify > modify > add). Keep test changes and implementation changes separately reviewable. §9's gate verifies what the final round's nits changed.
|
||||
3. Commit and push each round's fixes so CI feedback accumulates while the loop runs.
|
||||
4. Carry any 🔀 product-owner escalation into §6.
|
||||
|
||||
@@ -99,7 +88,18 @@ A 🔀 product-owner-reviewer escalation from any pass above runs it. Nothing es
|
||||
4. Approved having changed nothing → you are done here; there is nothing to re-verify.
|
||||
5. Otherwise re-enter §5 over what this loop changed.
|
||||
|
||||
## 7. Prose pass (every chunk)
|
||||
## 7. Re-entry
|
||||
|
||||
A fix made in any pass is a change the passes before it never saw. It re-enters:
|
||||
|
||||
- §3 only where it fires a §2 signal of its own.
|
||||
- §4 only where it opens a new untrusted-input boundary or touches authn/authz, secrets or crypto.
|
||||
- §5 where §6.5 or §9 sends it there, prompted with the fix's scope and why it changed.
|
||||
- §6 where it changed an external surface or a reviewer escalated 🔀 to it, as at first entry.
|
||||
|
||||
A re-entry is a new loop with its own round cap.
|
||||
|
||||
## 8. Prose pass (every chunk)
|
||||
|
||||
Two scopes:
|
||||
|
||||
@@ -115,22 +115,22 @@ The bar is `~/.claude/CLAUDE.md` → "Comments and documentation"; per paragraph
|
||||
|
||||
When §2's trigger says the architecture pass is warranted, this pass widens with it: the fresh-context agent reads every prose file the repo owns rather than only the cited sections. That is the only sweep that catches accretion, since no diff shows a file that grew a paragraph per chunk.
|
||||
|
||||
## 8. Green gate, PR ready
|
||||
## 9. Green gate, PR ready
|
||||
|
||||
- Run the project's test suite locally unless the final stability round already left it verified green; fix, commit, push.
|
||||
- Watch the forge's checks until every one passes. A red check is a finding: fix → commit → push → watch again. A CI fix that changes behavior (not config or a flake) re-enters §5.
|
||||
- No CI configured → the gate is local tests only; note it in the summary (a missing merge gate on a production-horizon project is architect-finding material).
|
||||
- Everything green → mark the PR ready, dropping any `WIP:`/`Draft:` title prefix.
|
||||
|
||||
## 9. External auto-reviewer (when the repo has one)
|
||||
## 10. External auto-reviewer (when the repo has one)
|
||||
|
||||
Marking the PR ready is what summons CodeRabbit and its kind, so this follows §8.
|
||||
Marking the PR ready is what summons CodeRabbit and its kind, so this follows §9.
|
||||
|
||||
- Detect one from the repo — a reviewer's config file (`.coderabbit.yaml` and the like), or its comments on the repo's earlier PRs. None found → skip, say so.
|
||||
- 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; a reviewer that arrives later is read the next time anyone visits the PR, never waited on twice.
|
||||
- Its findings follow the protocol like every reviewer above — no more authority, and no less; anything it marks blocking is a 🔴. Fix → commit → push, then wait up to **5 minutes** for its re-review of the new commit.
|
||||
|
||||
## 10. Goal alignment, then merge
|
||||
## 11. Goal alignment, then merge
|
||||
|
||||
1. Read the finished PR against the README goals: does anything in it work against one? Misaligned → do not merge; state the conflict and ask: `needs input`.
|
||||
2. The item ships into a release later than one that is finished and uncut → leave the PR ready and unmerged; say that release is ready to cut: `needs input`.
|
||||
@@ -138,6 +138,6 @@ Marking the PR ready is what summons CodeRabbit and its kind, so this follows §
|
||||
4. Merged → tick the item off `todo.md` per `~/.claude/CLAUDE.md` → "Working loop". Ticking it off emptied its release → the summary says the release is ready to cut.
|
||||
5. Stop. The next chunk gets a fresh session. A release is the human's — prepare it, never cut it.
|
||||
|
||||
## 11. Wrap up
|
||||
## 12. Wrap up
|
||||
|
||||
Summarize: PR URL and final state, every reviewer's verdict, rounds used per loop, findings fixed vs declined vs open — each decline with the goal it rests on — CI status, decisions recorded (file paths), `todo.md`/`CHANGELOG.md` updated, and any 🔀 escalation left for the user.
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
Ordered by how many seats of the 2026-09-25 scoring panel (`docs/decisions.md`) named the place; each is one chunk.
|
||||
|
||||
- Place `larv-review`'s Re-entry section after the passes it cites, today five forward references before §0.
|
||||
- State the fits-in-your-head thresholds once in `agents/systems-architect.md`, cited by heading, today echoed at seven places and cited as "step 4" by number at nine; fold the Quality Bar into the sections it restates.
|
||||
- Say why the worker failed when `claude` exits 0 without a result event, today `run_worker` returns `{}` for that and for a non-zero exit and prints nothing.
|
||||
- Pass the checkout root to `project`, `read_premises` and `checkouts`, today each reads the cwd `main` set once.
|
||||
|
||||
Reference in New Issue
Block a user