From 8301e387e1382b76aa4adaa0295d9b2f19a0ecb4 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 24 Sep 2026 23:21:36 +0200 Subject: [PATCH] State larv-review's re-entry rules once --- AGENTS.md | 1 + CHANGELOG.md | 1 + agents/review-protocol.md | 2 +- docs/decisions.md | 4 ++++ skills/larv-review/SKILL.md | 19 +++++++++++++------ todo.md | 1 - 6 files changed, 20 insertions(+), 8 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index bbbf4683..07259c7c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b63bca9..a474599c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/agents/review-protocol.md b/agents/review-protocol.md index 6a9868c0..41cfd5a5 100644 --- a/agents/review-protocol.md +++ b/agents/review-protocol.md @@ -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 diff --git a/docs/decisions.md b/docs/decisions.md index 0ed45669..40e818c4 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -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. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 66121f05..18946467 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -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. diff --git a/todo.md b/todo.md index 2479bc2b..0ba865d3 100644 --- a/todo.md +++ b/todo.md @@ -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. -- 2.52.0