Scope each re-entry rule to the passes after it; file §9's unrouted fix
This commit is contained in:
@@ -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; 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. A fix made in any pass is a change the passes before it never saw: each pass says when one re-enters it, and a re-entry is a new loop with its own round cap.
|
||||
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. A fix made in any pass is a change the passes before it in this order never saw; a pass it re-enters says so, and a re-entry is a new loop with its own round cap.
|
||||
|
||||
**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.
|
||||
|
||||
@@ -43,7 +43,7 @@ Otherwise, any one of these is grounds for the pass:
|
||||
- diff > ~400 non-generated lines, or touching > ~5 modules
|
||||
- a previous stability round escalated to systems-architect
|
||||
|
||||
No signal fires → skip it, say so in the summary, don't ask. A signal fires with no record behind it → ask the user (AskUserQuestion) with the evidence and your recommendation. No user reachable → run the pass. A fix made in a later pass takes this trigger again on what it changed.
|
||||
No signal fires → skip it, say so in the summary, don't ask. A signal fires with no record behind it → ask the user (AskUserQuestion) with the evidence and your recommendation. No user reachable → run the pass. A fix made in any pass after §3 takes this trigger again on what it changed.
|
||||
|
||||
## 3. Architecture pass (when warranted)
|
||||
|
||||
@@ -60,7 +60,7 @@ Invoke the `comprehension-panel` skill's scoring run (`~/.claude/skills/comprehe
|
||||
|
||||
## 4. Security pass (whenever the chunk changed anything but test code)
|
||||
|
||||
Run the built-in **`/security-review`** skill over the branch diff. It is the pass of record here: its value is a tuned exclusion list and a ≥0.8 confidence floor, which a hand-written reviewer would reproduce worse. A fix made in a later pass re-enters it only where it opens a new untrusted-input boundary or touches authn/authz, secrets or crypto.
|
||||
Run the built-in **`/security-review`** skill over the branch diff. It is the pass of record here: its value is a tuned exclusion list and a ≥0.8 confidence floor, which a hand-written reviewer would reproduce worse. A fix made in any pass after it re-enters it only where it opens a new untrusted-input boundary or touches authn/authz, secrets or crypto.
|
||||
|
||||
- **HIGH** → verify it is real, then fix it before this chunk ships: inside this chunk's blast radius it is fixed here, outside it on its own branch and PR with this chunk waiting behind it. Say which. A verified HIGH is never filed for later and never put to the human as a question. Verification showing it is not real is no decline but a disproof — record what disproved it, since a finding that is factually wrong needs no goal to reject.
|
||||
- **MEDIUM** → fix in this chunk, under the protocol's Declining section.
|
||||
@@ -73,16 +73,16 @@ Run the built-in **`/security-review`** skill over the branch diff. It is the pa
|
||||
|
||||
## 5. Stability loop
|
||||
|
||||
§6 and §8 send a fix back here; its first round is prompted with the fix's scope and why it changed.
|
||||
A fix sent back here opens its loop with a round prompted with the fix's scope and why it changed.
|
||||
|
||||
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.
|
||||
3. Commit and push each round's fixes so CI feedback accumulates while the loop runs.
|
||||
4. Carry any 🔀 product-owner escalation into §6.
|
||||
|
||||
## 6. Product-owner loop (when a reviewer escalates to it)
|
||||
## 6. Product-owner loop (when escalated to, or an external surface changed)
|
||||
|
||||
A 🔀 product-owner-reviewer escalation from any pass runs it, and so does a change to an external surface, a later pass's fix included. Neither → skip it, say so in the summary.
|
||||
A 🔀 product-owner-reviewer escalation from any pass runs it, and so does a change to an external surface, a fix from any pass after it included. Neither → skip it, say so in the summary.
|
||||
|
||||
1. Launch **product-owner-reviewer** with the change and the external surface it touches — API, CLI, UI, error and deprecation text a consumer reads, README and docs an outside reader lands on — prompted per the protocol's rounds.
|
||||
2. Apply what it asks for, under the protocol's Declining section. Its findings are about the consumer's experience (wording, discoverability, upgrade path, the edge case a persona hits), so the fix is as often a message or a doc as it is code.
|
||||
|
||||
@@ -15,4 +15,5 @@ Then:
|
||||
- **Scope `JUDGE_RULES`' "The question must be one the agent itself raised" to the rules where the agent raises one.** Today it contradicts the assumption, release and alternatives rules. Drop "A sensible preference is not a derivation" too.
|
||||
- **Define chunk in `loop-claude --help` beside cycle, interrupt and premises.** Name it in the vocabulary decision too.
|
||||
- **Close every file `bin/loop-claude` and `bin/test_loop_claude.py` open, so the suite runs without a ResourceWarning.**
|
||||
- **Route an external auto-reviewer's behaviour-changing fix in `larv-review` §9 back through §5.** Today nothing sends it there.
|
||||
- **Rerun the four-seat panel and score every dimension and the overall at 7.0 or above.** A dimension under it gets its places filed above, and this item stays last.
|
||||
|
||||
Reference in New Issue
Block a user