Name the pass table's column Trigger, define a pass, and plan benching the rebuilt larv-review #143

Merged
lilleman merged 1 commits from trigger-column into rebuild 2026-09-29 18:48:22 +02:00
5 changed files with 11 additions and 5 deletions
+1
View File
@@ -25,3 +25,4 @@ Decisions live in `docs/decisions.md`:
- rebuild: a chunk into `rebuild` takes no comprehension scoring run
- loop-claude: a `claude` that cannot start is a failed worker run, retried
- bin/: mypy checks `loop_claude`'s types in the tests
- rebuild: main's larv-review reviews a chunk into `rebuild`
+1
View File
@@ -9,6 +9,7 @@ Shorter is better, none is best — chat output, commit messages, comments, docs
- **gate** — the merge gate: the checks a PR passes before it merges.
- **interrupt** — `loop-claude` handing the terminal to the human, `claude --resume`, for a decision that is theirs.
- **judge** — the headless claude that reads a worker's transcript each cycle and decides whether to interrupt and whether the chunk is finished.
- **pass** — one kind of review a chunk may take, run in rounds by its reviewer until clean; `larv-review` §3 lists them.
- **plan** — `todo.md`.
- **premises** — the goals and audience under `## Goals` and `## Audience` in the project's `README.md`.
- **release** — a semver version the human cuts.
+4
View File
@@ -83,3 +83,7 @@
## bin/: mypy checks `loop_claude`'s types in the tests
2026-09-29, lilleman. Serves goal 4. An unchecked annotation goes stale when a body gains a return type, and a reader trusts it; the suite already needs `uv`, which fetches a pinned mypy. Valid while `loop_claude` carries annotations.
## rebuild: main's larv-review reviews a chunk into `rebuild`
2026-09-29, lilleman. Serves goal 4. The rewritten larv-review has not yet been benched against main's, so it reviews nothing until the plan's bench shows it does not regress. Valid until the rebuild merges.
+4 -4
View File
@@ -24,9 +24,9 @@ Follow `~/.claude/CLAUDE.md` → "Git, commits, and PRs". Never commit to the de
## 3. Passes
| Pass | Reviewer | Runs on a change it has not seen that… |
| Pass | Reviewer | Trigger |
|------|----------|----------------------------------------|
| Architecture, then the comprehension floor | systems-architect, then the `comprehension-panel` scoring run | carries an architectural decision: a new, restructured or moved component, module, service or boundary; a new dependency or first use of an infrastructure pattern (queue, cron, cache, websocket, …); a new or changed external contract (routes, request/response shapes, events, webhooks, published file formats); a schema change beyond an additive column; more than ~400 non-generated lines of code or ~5 modules |
| Architecture, then the comprehension floor | systems-architect, then the `comprehension-panel` scoring run | carries an architectural decision: a new, restructured or moved component, module, service or boundary; a new dependency or first use of an infrastructure pattern (queue, cron, cache, websocket, …); a new or changed external contract (routes, request/response shapes, events, webhooks, published file formats); a schema change beyond an additive column |
| Security | `/security-review` | changes code or config; a fix, only where it opens an untrusted-input boundary or touches authn/authz, secrets or crypto |
| Full security scan | the `claude-security` plugin (`/claude-security` → "Scan changes") | touches authn/authz, secrets or crypto, opens an untrusted-input boundary, or adds an external surface |
| Stability | stability-reviewer | changes code, config or tests; a fix, only where it changes behaviour: what the code or its tests do |
@@ -37,7 +37,7 @@ A comment is prose, not code. Passes run in this order: line-level polish on cod
**Record, then ask**, for the architecture pass and the full scan: where the repo holds the decision this change executes — a decision-log entry, or a planning item crediting the pass — the pass is done: skip it and cite the record. A change that *departs* from the record is unreviewed however thorough the record is. Fired with no record behind it → ask the user with the evidence and your recommendation; no user reachable → run it.
**Round cap.** A round is one launch of a pass's reviewer, whatever launched it, a Stage 0 rerun included. The architecture pass's round is the architect and then the scoring run, so a floor fix reruns both as one round; the prose pass's round is its fresh-context agent; the external auto-reviewer (§4) is a pass of its own, each review it posts a round. From round 2, prompt an agent under `~/.claude/agents/` with the previous round's findings verbatim and what changed since. A pass is done on no 🔴 and no 🟡; the 🟢 and ❓ left are addressed in that round — fixed, answered, declined or filed in `todo.md` — and take no round of their own. A pass takes at most three rounds per chunk; instead of a fourth, list what is open and ask the human — for the auto-reviewer, before any push that would summon a fourth.
**Round cap.** A round is one launch of a pass's reviewer, whatever launched it, a rerun after the architect's Stage 0 questions — the goals, audience, scale or domain language it found unrecorded — included. The architecture pass's round is the architect and then the scoring run, so a floor fix reruns both as one round; the prose pass's round is its fresh-context agent; the external auto-reviewer (§4) is a pass of its own, each review it posts a round. From round 2, prompt an agent under `~/.claude/agents/` with the previous round's findings verbatim and what changed since. A pass is done on no 🔴 and no 🟡; the 🟢 and ❓ left are addressed in that round — fixed, answered, declined or filed in `todo.md` — and take no round of their own. A pass takes at most three rounds per chunk; instead of a fourth, list what is open and ask the human — for the auto-reviewer, before any push that would summon a fourth.
**Re-entry.** A fix is a change no pass has seen. A round's fixes re-enter together: run, in table order, each pass whose trigger they fire and the pass whose 🔴 or 🟡 they answer; then §4.
@@ -45,7 +45,7 @@ A comment is prose, not code. Passes run in this order: line-level polish on cod
Launch systems-architect: review the system as a whole entered through this change; the decision log carries previously accepted decisions to honor, the README the goals and Stage 0 artifacts.
- **Stage 0 questions returned** (goals/audience/horizon unrecorded): relay them to the user, record the answers in the README, re-run once. No user → skip the pass, carry the questions into the summary.
- **Stage 0 questions returned**: relay them to the user, record the answers in the README, re-run once. No user → skip the pass, carry the questions into the summary.
- **BLOCK** → confirm with the user first when the restructure materially reshapes their PR.
Then the comprehension floor: the `comprehension-panel` skill's scoring run (`~/.claude/skills/comprehension-panel/SKILL.md` → "The scoring run") over the whole project, not the diff. With any dimension or the overall below 7.0 the chunk does not merge: fix the places the seats name under the capping dimension, or take the user's explicit decision to ship under the floor, record it in `docs/decisions.md` with the scores, and file the places in `todo.md`. At the floor or above, the scores are still a ratchet — a later chunk may not lower any — and the four dimension scores and the overall go in the summary so the next run can see the direction of travel.
+1 -1
View File
@@ -8,7 +8,7 @@ The rebuild lifts every dimension, one chunk per item, until the last item opens
The places the panel on `rebuild` at 2c74bbc named (`docs/decisions.md`), capping dimension first:
- **Name larv-review's pass table's condition column "Trigger", gloss Stage 0 where larv-review first uses it, and define "pass" in `CLAUDE.md` → "Vocabulary".** Today Stage 0 is defined only in `agents/systems-architect.md`, and the Vocabulary uses "pass" without defining it.
- **Bench rebuild's larv-review against main's on the same real chunks, and show it misses nothing main's catches.** Run both over chunks from this repo and other projects, and compare findings, rounds and cost.
- **Score `rebuild` with the four-seat panel at 7.0 or above on every dimension and the overall, none below the last run, and open its PR into main for the human.** ⚠️ Leave that PR ready and unmerged: only the human merges it, after approving the whole rebuild. A dimension under the floor gets its places filed above this item.
## 0.2.0