State larv-review's re-entry rules once #21
@@ -7,3 +7,4 @@ Decisions live in `docs/decisions.md`:
|
||||
- loop-claude: the trust file is rewritten before an interrupt
|
||||
- bin/: host python, no container
|
||||
- comprehension floor: the 2026-09-24 four-seat score is the ratchet, and 0.1.0 waits on what caps it
|
||||
- larv-review: a re-entered loop takes a fresh round cap
|
||||
|
||||
@@ -13,3 +13,4 @@
|
||||
- One word per concept across `CLAUDE.md`, the agents, the skills and `loop-claude`: the README's goals and audience are the premises, the architecture pass has a trigger, the merge gate is the gate, the stability reviewer is a reviewer, `loop-claude` runs cycles and interrupts, a handoff is the document under `~/code/claude-handoffs/`, a chunk is the unit of work, a session is a Claude Code session, and memory is a memory file.
|
||||
- `settings.json`, the agents and the status line name no machine-specific path; the status line shows reset times in the host's time zone.
|
||||
- `README.md`'s first line says what the repo holds, `principles/README.md` names the reviewer agents as the principles' audience, and every decision title in `docs/decisions.md` names its subject.
|
||||
- `larv-review` states its re-entry rules once: a fix made in a later pass re-enters the passes it fires, and a re-entered loop takes a fresh round cap.
|
||||
|
||||
@@ -22,7 +22,7 @@ A review's first line, derived mechanically from the findings:
|
||||
- Surface everything in one round.
|
||||
- From round 2 the prompt carries the previous round's findings verbatim and what changed since. Verify each previous 🔴 and 🟡 is resolved — re-run the scenario, don't trust the claim — then pass over what changed. A fix spawns a new finding only where the fix itself introduced a real problem.
|
||||
- The loop exits on no 🔴 and no 🟡. The 🟢 and ❓ left then are addressed in that same round — fixed, answered, declined or filed in `todo.md` — and trigger no further round. A nit whose fix changes behaviour is a fresh finding and takes a round.
|
||||
- Caps: stability, product-owner and an external auto-reviewer 3 rounds each; a 🔴 or 🟡 still open after the third stops the loop: list what is open, `needs input`. Systems-architect gets one scoped re-check; still `BLOCK` → `needs input`.
|
||||
- Caps, per loop: stability, product-owner and an external auto-reviewer 3 rounds each; a 🔴 or 🟡 still open after the third stops the loop: list what is open, `needs input`. Systems-architect gets one scoped re-check; still `BLOCK` → `needs input`.
|
||||
|
||||
## Declining
|
||||
|
||||
|
||||
@@ -19,3 +19,7 @@
|
||||
## comprehension floor: the 2026-09-24 four-seat score is the ratchet, and 0.1.0 waits on what caps it
|
||||
|
||||
2026-09-24, lilleman. Serves goal 4. Junior A, Mid A, the maintainability senior and the inherited architect, depth 1 over every non-test file, blind to `todo.md` and this log: Navigation 8.0, Locality 5.75, Shape 7.5, Self-sufficiency 6.0, overall 6.75. Locality capped every seat and Self-sufficiency three of them; the places named sit in `todo.md` under 0.1.0, and a later chunk may not lower any dimension. Valid until the next scoring run, which uses the same four seats.
|
||||
|
||||
## larv-review: a re-entered loop takes a fresh round cap
|
||||
|
||||
2026-09-24, larv-review. Serves goal 4. The cap stops a loop that does not converge on one set of findings; a re-entry is a new set. A cap shared across the whole flow would skip §6.5's closing round exactly when §5 ran long. Valid while the protocol caps rounds per loop.
|
||||
|
||||
@@ -11,6 +11,17 @@ You orchestrate, fix, and ship; the reviewer agents only report. Run every revie
|
||||
|
||||
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.
|
||||
|
||||
## 0. Preconditions
|
||||
|
||||
- Not a git repo → say so and stop.
|
||||
@@ -56,8 +67,6 @@ Launch **systems-architect**: review the system as a whole entered through this
|
||||
- **ALIGN** → apply what is cheap now; ask the user about the rest — each item becomes a fix, a ticket, or a documented decision, never a silent drop.
|
||||
- **APPROVE** / **APPROVE WITH NITS** → proceed; nits per the protocol's rounds.
|
||||
|
||||
It does not re-run for what the loops below change: nothing a security, stability or consumer-experience fix decides is architectural. A fix that fires a §2 signal of its own — a new dependency, a new module, a moved boundary — goes through §2's trigger again and runs the pass once more.
|
||||
|
||||
## 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.
|
||||
@@ -67,8 +76,6 @@ Run the built-in **`/security-review`** skill over the branch diff. It is the pa
|
||||
- **LOW** → treat as a 🟢.
|
||||
- A **MEDIUM or LOW** outside this chunk's scope → a `todo.md` item at the top under `## Security`, naming the exposure and the path it reaches, per `~/.claude/CLAUDE.md` → "Todo items". Say whether it is in this chunk's blast radius; filing it is not fixing it.
|
||||
|
||||
A fix made later in the flow re-runs this pass over that change where it opens a new untrusted-input boundary, or touches authn/authz, secrets or crypto.
|
||||
|
||||
**Escalate to a full scan** — the `claude-security` plugin (`/claude-security` → "Scan changes"), first-party and agent-verified — when the change touches authn/authz, secrets or crypto, a new untrusted-input boundary, or a new external surface. Same shape of judgment as §2's trigger: a signal with no record behind it, and a user reachable, is an ask. The plugin is not enabled by default; unavailable → say so in the summary rather than substituting a hand-rolled pass.
|
||||
|
||||
**Do not over-read a clean result.** This pass is single-repo and static: it does not trace authorization across services, does not run the application, and deliberately excludes dependency CVEs in third-party libraries — Renovate/Dependabot owns those, per `~/.claude/CLAUDE.md` → "Working with the codebase". Never point an automated reviewer or scan at an untrusted fork's PR content; a PR body is untrusted input to it (CVE-2025-59536, CVE-2026-21852).
|
||||
@@ -88,7 +95,7 @@ A 🔀 product-owner-reviewer escalation from any pass above runs it. Nothing es
|
||||
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.
|
||||
3. Commit and push each round; it exits and caps per the protocol.
|
||||
4. Approved having changed nothing → you are done here; there is nothing to re-verify.
|
||||
5. Otherwise close with one **stability-reviewer** round over what this loop changed, prompted with that scope and why it changed. 🔴 or 🟡 → back into §5 for those findings, then this step again. Architecture (§3) and security (§4) do not re-run for the consumer-experience change itself; a fix made here that fires a signal of its own — a new dependency, a moved boundary, a new untrusted input — goes through their triggers as any other change would.
|
||||
5. Otherwise re-enter §5 over what this loop changed.
|
||||
|
||||
## 7. Prose pass (every chunk)
|
||||
|
||||
@@ -109,7 +116,7 @@ When §2's trigger says the architecture pass is warranted, this pass widens wit
|
||||
## 8. 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) gets one extra stability round.
|
||||
- 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.
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
Ordered by how many seats of the 2026-09-24 scoring panel (`docs/decisions.md`) named the place; each is one chunk.
|
||||
|
||||
- State `larv-review`'s re-entry rules once, including whether §6's closing stability round counts against the stability cap.
|
||||
- Decide resume-or-fresh in `run_cycle` from state it owns, and give `interrupt`'s no-tty and nothing-typed outcomes two distinct results.
|
||||
- Give the concept words one definition a reader lands on, cited from where they are used; today three seats found them only in `CHANGELOG.md`'s one-word-per-concept entry.
|
||||
- Keep `###` sub-headings inside their `##` section in `sections`, pinned by a test; today a sub-heading under `## Goals` silently drops the rest of the goals.
|
||||
|
||||
Reference in New Issue
Block a user