diff --git a/CHANGELOG.md b/CHANGELOG.md index 033d3424..21e3e52d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- larv-review names each pass by the first column of its pass table, and titles each round's commit with that name in lower case: `Answer full scan round 1: …`. +- larv-review's comprehension floor says what the scoring run measures without another file open. A project's `docs/decisions.md` keeps the last scoring run's scores, and the next run may not score below them. - `loop-claude`'s judge reads your `~/.claude/CLAUDE.md` beside the project's `AGENTS.md` and `docs/decisions.md`. It no longer interrupts for a choice that file settles, and it answers the worker's questions from it. - `loop-claude`'s judge holds a chunk open until each answer you typed in it that a later chunk could need is recorded. An answer counts as recorded once the README's goals or audience, `AGENTS.md`, `docs/decisions.md` or `~/.claude/CLAUDE.md` hold it. It also counts once the transcript shows the worker writing it into the README's goals or audience, `AGENTS.md`, `docs/decisions.md`, `todo.md` or a code comment. The worker writing to `~/.claude/CLAUDE.md` does not count, since new rules there are yours. The resumed worker is told this rule. - `loop-claude` archives each answer the judge quotes, with the question it answers and its UTC time, in `.outcomes.md`. diff --git a/docs/decisions.md b/docs/decisions.md index 2ca36866..c113dc00 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -36,11 +36,19 @@ ## comprehension floor: every dimension and the overall at 7.0 or above, and 0.1.0 waits on it -2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 4. The 2026-09-28 run, Junior A, Mid A, the maintainability senior and the inherited architect at depth 1 over every non-test file, blind to `todo.md` and this log, scored Navigation 7.25, Locality 6.0, Shape 6.5, Self-sufficiency 6.25, overall 6.25; on 2026-09-26 they were 7.75, 6.25, 7.0, 6.75, 6.75. Every seat scored Locality 6, and three of four named `run_cycle`'s three-way return and larv-review's re-entry rules, split across the passes on 2026-09-28. The same seats on `rebuild` scored 7.5, 6.63, 6.88, 6.5, 7.0 at 37edc9a, later that day, 7.5, 6.75, 6.88, 6.75, 7.0 at 7f9de5c, 7.38, 6.25, 6.88, 6.75, 6.88 at 2f9ab2f on 2026-09-29, Locality lowest again and every seat naming the reload state and the two retry counters, and 7.5, 7.0, 7.25, 6.75, 7.13 at 2c74bbc later that day, Self-sufficiency lowest and every seat naming the round's definition split across larv-review's two files, and 7.38, 6.75, 7.25, 6.5, 6.88 at 8585257 on 2026-10-01, lowering every dimension but Shape, and the overall, Self-sufficiency lowest and every seat naming larv-review §3's round rules; the places it named under Self-sufficiency and Locality are filed in `todo.md` under 0.1.0, and a later scoring run may not score any dimension or the overall below its best run on `rebuild`, 2026-10-01, lilleman. `rebuild` merged into main under the floor at 8585257's scores, 2026-10-01, lilleman. The 2026-10-01 run on PR #182 (the loop state machine) scored 7.5, 6.5, 6.88, 6.25, 6.38; lilleman shipped that PR under the floor and below `rebuild`'s best run the same day, its places filed in `todo.md` under 0.1.0. The 2026-10-02 run on PR #187 (`loop_claude`'s names, the exit contract) scored 7.75, 7.25, 7.38, 6.88, 7.25 at 70362d0, every seat naming larv-review §3 under Self-sufficiency, and 7.63, 7.13, 7.38, 7.0, 7.13 at 1971dba later that day, the first run at the floor, with no dimension or the overall below its best run on `rebuild`. The 2026-10-02 runs on PR #191 (the status line in Python) scored 7.5, 7.0, 7.13, 6.88, 7.13; 7.25, 6.75, 7.25, 6.88, 7.0; 7.63, 6.88, 7.38, 7.0, 7.13; and 7.63, 7.0, 7.25, 6.75, 7.25. Every seat rated the status line easy. The places they named under Locality and Self-sufficiency are filed in `todo.md` under 0.1.0, except `entries.py`'s heuristics over Claude Code's transcript format, which the seats scored as the problem's own difficulty. lilleman decided the same day to ship that PR under the floor. The 2026-10-02 runs on PR #194 (each cycle's transcript archived) scored 8.0, 7.25, 7.38, 7.13, 7.5 at 6ccd5b1 and 7.75, 7.13, 7.25, 7.0, 7.25 at d104ea0, both at the floor, every seat naming `archive` as the unit it would least want to modify. On 2026-10-02, applying `todo.md`'s bar deleted every place these scoring runs filed except larv-review §3's round rules and the Claude Code flags no comment explained. The 2026-10-02 runs on PR #196 (`todo.md` as one scored table) scored 7.63, 6.88, 7.25, 6.88, 7.13 at c0dba66; 7.5, 6.88, 7.13, 6.75, 7.0 at 798dfd7; and 7.5, 7.0, 7.0, 6.75, 7.0 at b712076. Under Self-sufficiency, every seat named larv-review §3 and the agents, which a reader follows only with `CLAUDE.md` open. lilleman decided the same day to ship that PR under the floor; the place filed was larv-review §3's round rules. The 2026-10-02 run on PR #198 (a usage limit waited out) scored 7.63, 6.88, 7.38, 6.75, 7.13 at 8e85033. Under Self-sufficiency, every seat named larv-review §3; under Locality, they named `archive`'s invariants spread over `session.py` and `run.py`, `rank_todo.py` reaching into `premises.sections`, and `stopped` comparing reason strings, each under `todo.md`'s bar and not filed. lilleman decided the same day to ship that PR under the floor. +2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 4. Valid while the scoring run keeps its four seats. -The 2026-10-03 runs on PR #202 (the judge reads the project's records) scored 7.75, 7.13, 7.25, 7.0, 7.25 in the first round and 7.5, 7.0, 7.0, 6.75, 7.0 in the eighth; between them a dimension moved by up to 0.4 on near-identical code. Under Self-sufficiency every seat named larv-review §3 and the agents leaning on `CLAUDE.md`, the Claude Code flags left unexplained, and the judge's contract spread over its prompt, schema, parser and `--help`; under Shape, that "record", "verdict" and "judge" each name two things, and that `loop_claude/` holds modules `rank_todo.py` also uses. lilleman decided the same day to ship that PR under the floor and to fix those places next; all were fixed on 2026-10-03. +The last scoring run, which the next may not score below (`CLAUDE.md` → "Quality"): PR #208, 2026-10-03, Navigation 7.5, Locality 7.0, Shape 7.13, Self-sufficiency 6.63, overall 6.88. -The 2026-10-03 runs on PR #208 (the judge's contract in one home, the shared modules out of `loop_claude/`) scored 7.5, 7.25, 7.0, 6.88, 7.0; 7.5, 7.0, 6.88, 7.25, 7.0; and 7.5, 7.0, 7.13, 6.63, 6.88, each overall below PR #202's first round's 7.25. Under Self-sufficiency every seat named the skills leaning on `CLAUDE.md`; the worst was the chain from larv-review's comprehension floor through the panel skill and its scoring-run file to `AGENTS.md`. Under Shape, they named the flat `bin/` and larv-review §3 counting rounds by a pass name the table does not fix. lilleman decided the same day to ship that PR under the floor; the places above `todo.md`'s bar are filed there. Valid until the next scoring run, which uses the same four seats. +Shipped under the floor by lilleman's decision on the day, at that day's last scores (Navigation, Locality, Shape, Self-sufficiency, overall): + +- 2026-10-01, `rebuild`, merged at 8585257: 7.38, 6.75, 7.25, 6.5, 6.88. +- 2026-10-01, PR #182: 7.5, 6.5, 6.88, 6.25, 6.38. +- 2026-10-02, PR #191: 7.63, 7.0, 7.25, 6.75, 7.25. +- 2026-10-02, PR #196: 7.5, 7.0, 7.0, 6.75, 7.0. +- 2026-10-02, PR #198: 7.63, 6.88, 7.38, 6.75, 7.13. +- 2026-10-03, PR #202: 7.5, 7.0, 7.0, 6.75, 7.0. +- 2026-10-03, PR #208: 7.5, 7.0, 7.13, 6.63, 6.88. ## loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 58564ae1..0a2778cd 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -26,13 +26,13 @@ Follow `~/.claude/CLAUDE.md` → "Git, commits, and PRs". Never commit to the de ## 3. Passes -A pass is one kind of review, a row of the table. Its trigger says when it runs on a change it has not seen; its reviewer reports the findings. +A pass is one kind of review, a row of the table, named by its first column. Its trigger says when it runs on a change it has not seen; its reviewer reports the findings. | Pass | Reviewer | Trigger | |------|----------|----------------------------------------| -| Architecture, then the principles audit and the comprehension floor | systems-architect, then principles-auditor and 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, CLI flags and exit codes); a schema change beyond an additive column; the chunk shipping its release's last item | +| Architecture | systems-architect, then principles-auditor and the comprehension floor | 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, CLI flags and exit codes); a schema change beyond an additive column; the chunk shipping its release's last item | | 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 at high effort: `/claude-security scan this branch's changes at high` | touches authn/authz, secrets or crypto, opens an untrusted-input boundary, or adds an external surface | +| Full scan | the `claude-security` plugin at high effort: `/claude-security scan this branch's changes at high` | 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 | | Product-owner | product-owner-reviewer | changes an external surface: API, CLI, UI, error or deprecation text a consumer reads, README and docs an outside reader lands on | | Prose | prose-reviewer | every chunk; a fix, where it touches prose | @@ -46,14 +46,14 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its - **Skip.** A precedent is a `docs/decisions.md` entry, or a plan item crediting the pass, that the repo held before the chunk began. Where one holds the decision this change executes, skip the pass and cite that entry or item. - **Departure.** A change that departs from the precedent is unreviewed, however thorough the precedent is. - **Ask.** Fired and not skipped → ask the user whether to run it, with the evidence and your recommendation; no user reachable → run it. For the full scan, give the evidence and your recommendation, then launch it: the plugin asks the user to confirm its cost, and that prompt is the ask. -- **Audit.** A precedent or the user's no skips only the architect, never the principles audit or the scoring run: no precedent checked the code this chunk writes. +- **Audit.** A precedent or the user's no skips only the architect, never the principles audit or the comprehension floor: no precedent checked the code this chunk writes. **Round cap.** - **Round.** A round is one launch of a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below). -- **Architecture round.** The architecture pass's round is the architect (unless skipped), the principles audit and the scoring run, so a fix to any of their findings reruns the whole round. +- **Architecture round.** The architecture pass's round is the architect (unless skipped), the principles audit and the comprehension floor, so a fix to any of their findings reruns the whole round. - **Auto-reviewer.** The external auto-reviewer (§4) is a pass of its own, each review it posts a round. -- **Count.** Close each round with one commit that holds the round's fixes and is titled `Answer round : …`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when §4 runs next, where there is a remote. A pass's count is the highest `` among titles holding `Answer round :` in `git log origin/..HEAD` after a `git fetch`, or in `git log ..HEAD` with no remote. The auto-reviewer's count is the number of its reviews on the PR. +- **Count.** Close each round with one commit that holds the round's fixes and is titled `Answer round : …`, `` being the pass's name in lower case, such as `full scan`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when §4 runs next, where there is a remote. A pass's count is the highest `` among titles holding `Answer round :` in `git log origin/..HEAD` after a `git fetch`, or in `git log ..HEAD` with no remote. The auto-reviewer's count is the number of its reviews on the PR. - **Later rounds.** From round 2, prompt an agent under `~/.claude/agents/` with the previous round's findings verbatim and what changed since: `git diff HEAD`, since the fixes may be unpushed. - **Done.** A pass is done when its latest round leaves no 🔴 or 🟡 standing: none was reported, or each was shown factually wrong, declined, filed, or named under the bar per "Findings". Resolve that round's 🟢s and ❓s per "Findings" too. - **Cap.** A pass takes at most three rounds per chunk. Instead of a fourth, list what is open and ask the user. For the auto-reviewer, ask before the push that would summon its fourth, and hold the fixes unpushed until the answer. @@ -83,7 +83,11 @@ Launch systems-architect: review the system as a whole entered through this chan Then the principles audit: one principles-auditor per file in `~/.claude/principles/` and one for the README's goals, each over the whole project in every round. -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` per `~/.claude/CLAUDE.md` → "Todo items". No user reachable → fix. 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. +Then the comprehension floor. Four simulated readers — Junior A, Mid A, the maintainability senior and the inherited architect — each read the whole project, not the diff, and score it from 1 to 10 overall and on four dimensions: Navigation, Locality, Shape and Self-sufficiency. Each score is the mean of the four seats. Launch the seats per `~/.claude/skills/comprehension-panel/SKILL.md` → "The scoring run". The project's `docs/decisions.md` keeps one comprehension-floor entry: the last scoring run's scores, and each decision to ship under the floor with its scores. + +- **Floor.** With any dimension or the overall below 7.0, the chunk does not merge. Fix the places the seats name under the lowest dimension, or take the user's explicit decision to ship under the floor; no user reachable → fix. List a decision to ship under the floor in the entry, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". +- **Ratchet.** A score below the entry's last scoring run, even within the panel's noise, blocks the merge like a score under the floor; an equal score passes. +- **Record.** Replace the entry's last scoring run with this one, and put its five scores in the summary. ### Security diff --git a/todo.md b/todo.md index 1a34f75f..52e2e927 100644 --- a/todo.md +++ b/todo.md @@ -25,13 +25,10 @@ | ID | Release | Exempt | Item | R | S | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---| | 1 | 0.1.0 | question | **Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | -| 54 | 0.1.0 | | **Give each review pass a fixed name in larv-review §3's table, and count its rounds by that name.** | 2 | 1 | 6 | 6 | 4, 4.1 | 17.8 | | 58 | 0.1.0 | | **Give the worker of a chunk the judge held open the judge's evidence of what remains.** | 3 | 3 | 6 | 6 | 4, 4.4 | 16.3 | -| 55 | 0.1.0 | | **Make larv-review's comprehension floor readable without opening the panel skill, its scoring-run file and `AGENTS.md` in turn.** | 2 | 3 | 5 | 6 | 4, 4.1 | 15.3 | | 23 | 0.1.0 | | **Launch a principles auditor only for a principles file the project shows applies, and rerun only the reviewer whose finding a fix answers.** | 3 | 4 | 7 | 8 | 4.4 | 13.5 | | 21 | 0.1.0 | | **Give `settings.json`'s model one writer, and sort its keys.** | 3 | 3 | 6 | 7 | 4.3 | 12.9 | | 49 | 0.1.0 | principle | **Check that `AGENTS.md` lists exactly the titles of `docs/decisions.md`.** | 1 | 2 | 5 | 6 | 4.3 | 12.5 | -| 53 | 0.1.0 | | **Cut the comprehension-floor decision to its standing rule and each call to ship under the floor.** | 1 | 2 | 4 | 5 | 4.1 | 12.1 | | 12 | 0.1.0 | | **Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough.** | 2 | 4 | 4 | 6 | 4.1 | 11.7 | | 5 | 0.1.0 | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 5 | 5 | 5 | 6 | 4.1 | 10.5 | | 4 | 0.1.0 | | **Name each chunk's archive folder by the chunk's start time, so `/` lists chunks in the order they ran.** | 3 | 2 | 4 | 3 | 2 | 9.8 | @@ -51,18 +48,10 @@ It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost The README line covers the bench's transcripts in `workflow-bench/logs/` too (goal 2). -### 54. Give each review pass a fixed name in larv-review §3's table, and count its rounds by that name. - -Named under Shape by the PR #208 scoring runs: "Count" keys on `Answer round :`, but the table's first column names the architecture pass with a whole sentence, so a run can spell one pass two ways and restart its count. - ### 58. Give the worker of a chunk the judge held open the judge's evidence of what remains. Raised by the product-owner review of PR #211: a verdict that the chunk is unfinished resumes the worker with a generic prompt, so a worker that thinks the chunk done repeats itself, and nothing bounds a run of such verdicts (goal 4.4). -### 55. Make larv-review's comprehension floor readable without opening the panel skill, its scoring-run file and `AGENTS.md` in turn. - -Named under Self-sufficiency by the PR #208 scoring runs, as the worst of the skills' leans on other documents. - ### 23. Launch a principles auditor only for a principles file the project shows applies, and rerun only the reviewer whose finding a fix answers. On this repo the frontend, REST and logging auditors each read the whole project to report "does not apply", and one 🟢 fix reruns ten whole-project reads. @@ -77,10 +66,6 @@ Every write Claude Code makes to the file rewrites `"model"`, `claude plugin ins DRY, in `principles/technical-principles.md`: the list is copied by hand, and sessions work from the copy. -### 53. Cut the comprehension-floor decision to its standing rule and each call to ship under the floor. - -Its 2026-09-27 paragraph lists every scoring run's five scores, and buries among them the rule that no later scoring run may score below its best run on `rebuild`; the scores live in the PRs and git history. - ### 12. Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough. The repo has no CI, so larv-review's gate is the local run, and larv-review's Gate skips even that when the last stability round left the suite green: an unattended chunk can merge on the worker's own word.