From c14707da5485fc6bce7b5cccb1214bdb7812ca5e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:37:48 +0200 Subject: [PATCH 01/12] Keep every scoring run in an append-only comprehension history --- CHANGELOG.md | 1 + docs/comprehension-history.md | 20 ++++++++++++++++++++ docs/decisions.md | 2 -- skills/comprehension-panel/scoring-run.md | 4 ++-- skills/larv-review/SKILL.md | 10 ++++++---- todo.md | 11 +++-------- 6 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 docs/comprehension-history.md diff --git a/CHANGELOG.md b/CHANGELOG.md index b29393ee..7df0a20c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- larv-review appends every scoring run to the project's `docs/comprehension-history.md`: the commit the seats read, each seat's five scores and their mean, and the places each seat named. The ratchet compares a run with the history's last run on the default branch. The `comprehension floor:` entry in `docs/decisions.md` keeps only the decisions to ship under the floor; a project's next scoring run moves the last scores the entry still holds into the history. The seats do not read the history. - The README's goals put quality with the fewest interrupts first, as goal 1; sharing the setup, backups and leaking nothing follow as goals 2–4. - larv-review reruns the comprehension scoring run before merge when any commit since the last run changes more than `docs/decisions.md`, `todo.md` or `CHANGELOG.md`, so the recorded scores are the merged commit's. A score under the floor, or below the default branch's recorded scores, blocks the merge and is never filed in `todo.md`. A fix lifts either; your decision to ship under the floor lifts only a score under the floor. A rerun counts toward the three-round cap only when it reports a blocking score that no decision of yours covers. - larv-review skips the comprehension scoring run for a chunk whose plan items a project decision names. The decision also names the later item whose scoring run ends the suspension. Neither the comprehension floor nor the ratchet can block a skipped chunk, its summary cites the decision, and a chunk shipping its release's last item is always measured. diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md new file mode 100644 index 00000000..cb41112f --- /dev/null +++ b/docs/comprehension-history.md @@ -0,0 +1,20 @@ +# Comprehension history + +## 2026-10-04, PR #215 at 5baedb5 + +Moved from `docs/decisions.md`, which kept only the mean and not the commit the seats read; 5baedb5 merged PR #215. + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Mean | 7.38 | 6.63 | 7.0 | 6.88 | 6.88 | + +Places named, all seats together: + +- `bin/loop_claude/cycle/judge_reply.py`, `cycle/worker.py`, `cycle/run.py`: the judge's contract, spread over three files. +- `bin/loop_claude/loop/main.py`, `loop/reload.py` `LoopRun`, `cycle/run.py`, `worker_args`: `remaining`, which is `Unfinished.evidence` under another name. +- `bin/loop_claude/cycle/states.py` `transition` and `cycle/run.py` `question_for`: the `quoted_answers` cap, held by case order and restated. +- `bin/loop_claude/cycle/run.py`: the four outcome texts built inline for `archive`. +- `skills/larv-review/SKILL.md`: needs `CLAUDE.md` → "Vocabulary" open beside it. +- `bin/loop_claude/loop/main.py` docstring: the archive layout, defined there and not at `cycle/archive.py`. +- `bin/loop_claude/cycle/judge_reply.py` `JUDGE_RULES`: its precedence, restated by `verdict_from`'s branch order and the `Reply` field descriptions. +- `bin/loop-claude`: the `sys.path` insert that the `from failure import` lines rely on, unstated at the import sites. diff --git a/docs/decisions.md b/docs/decisions.md index 58682481..4de80467 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -38,8 +38,6 @@ 2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 1. Valid while the scoring run keeps its four seats. The decisions to ship under the floor, listed below, stand until `todo.md` item 62 lifts the project to it. -The last scoring run, which the next may not score below (`CLAUDE.md` → "Quality"): PR #215, 2026-10-04, Navigation 7.38, Locality 6.63, Shape 7.0, Self-sufficiency 6.88, overall 6.88. - lilleman decided to ship each of these under the floor on the day listed. Each line gives its 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. diff --git a/skills/comprehension-panel/scoring-run.md b/skills/comprehension-panel/scoring-run.md index c7c3b4a7..49589464 100644 --- a/skills/comprehension-panel/scoring-run.md +++ b/skills/comprehension-panel/scoring-run.md @@ -4,7 +4,7 @@ Each seat's prompt is the four parts below, in order: the opening, the seat's ba - `{checkout}` and `{branch}`: the worktree the seats read, and its branch. - `{main}`: the project's main checkout. -- `{files}`: every tracked non-test file but `todo.md` and `docs/decisions.md`, from `git -C {checkout} ls-files`, listed as one recursive glob per top-level source directory, such as `bin/loop_claude/**/*.py`. +- `{files}`: every tracked non-test file but `todo.md`, `docs/decisions.md` and `docs/comprehension-history.md`, from `git -C {checkout} ls-files`, listed as one recursive glob per top-level source directory, such as `bin/loop_claude/**/*.py`. - `{preloaded}`: the files the harness pre-loads into a seat, found per `SKILL.md` → "What makes the result trustworthy". - `{anchors}` and `{dimensions}`: the six anchor bullets and the four dimension bullets in `SKILL.md` → "The score", verbatim, without bold and each on one line. - `{language}`, `{kind}`, `{domain}`, `{domain docs}` and `{3am question}`: the project's `AGENTS.md` → "Scoring run". @@ -27,7 +27,7 @@ You are one seat of a comprehension panel. Tools: Read, Grep, Glob, and Bash onl ``` Target: the project checked out at {checkout} (branch `{branch}`). Read ONLY there — never {main}, which is a different version. -Depth 1, the whole project: read README.md, AGENTS.md and CLAUDE.md (the charter), then every non-test tracked file: {files}. Do NOT open todo.md or docs/decisions.md (the plan and decision log), nor any review output. You may open a test file when the code does not answer a question; say when you did. +Depth 1, the whole project: read README.md, AGENTS.md and CLAUDE.md (the charter), then every non-test tracked file: {files}. Do NOT open todo.md, docs/decisions.md or docs/comprehension-history.md (the plan, the decision log and past panels' scores), nor any review output. You may open a test file when the code does not answer a question; say when you did. Your harness pre-loads these files into your context before your first tool call, from a DIFFERENT version (main): {preloaded}. Treat the worktree's own copies as the ones under review. A pre-loaded AGENTS.md may list decision titles; do not use them as evidence. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 5d24b5d4..d3b88320 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -85,20 +85,22 @@ Then the principles audit: one principles-auditor for the README's goals, and on Then the comprehension floor, which the scoring run measures. 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. A seat's overall may not exceed its lowest dimension by more than 1. Each score is the mean of the four seats, to two decimals. Launch the seats per `~/.claude/skills/comprehension-panel/SKILL.md` → "The scoring run". -The project's `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds the last scoring run's scores, and each decision to ship under the floor, with its scores. +The project's `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. + +The project's `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming the commit the seats read, a table of each seat's five scores and their mean, and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name. The chunk does not merge while either holds: - **Floor.** Any dimension or the overall is below 7.0. -- **Ratchet.** Any score is below the entry's last scoring run as it stands on the default branch, even within the panel's noise. An equal score passes, and so does every run while the default branch has no entry. +- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. Until the history holds a run, a last scoring run that the `comprehension floor:` entry still holds stands in. An equal score passes, and so does every run while the default branch has neither. Each score under the floor or the ratchet is a 🔴 of the scoring run. It is never filed, and stands until a later scoring run clears it or, for a score under the floor, a decision to ship answers it. Fix the places the seats name under the lowest dimension and under each dimension that fell. When only the floor holds, the user may decide to ship instead. A decision that lets every chunk ship under the floor, held in the project's `docs/decisions.md` before the chunk began, counts as theirs while it stands. A decision to ship listed in the `comprehension floor:` entry covers only the chunk it names. No user reachable → fix. A fall never ships: after three rounds, "Round cap" → "Cap" asks the user for another round. -Put each run's five scores in the summary, and replace the entry's last scoring run with them on this branch. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`). +Put each run's five scores in the summary, and append the run to the history on this branch. A last scoring run that the `comprehension floor:` entry still holds moves into the history as its first run, under that run's own date and PR. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`). -**Fresh.** Where the chunk ran a scoring run, the architecture pass is done only once its last scoring run measured the commit to merge. That run may predate commits that change only `docs/decisions.md`, `todo.md` or `CHANGELOG.md`. Any other commit after it, a prose fix included, because the seats read the docs, calls for a rescore: the scoring run again, once every other pass is done, the auto-reviewer included. A rescore reporting a 🔴 that no decision to ship answers is an architecture round. Any other rescore is not a round: commit only its scores to the entry, titled `Rescore: …`. A `Rescore:` commit re-enters no pass: push it and wait for the forge's checks (§4 step 3), not for an auto-review. +**Fresh.** Where the chunk ran a scoring run, the architecture pass is done only once its last scoring run measured the commit to merge. That run may predate commits that change only `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`. Any other commit after it, a prose fix included, because the seats read the docs, calls for a rescore: the scoring run again, once every other pass is done, the auto-reviewer included. A rescore reporting a 🔴 that no decision to ship answers is an architecture round. Any other rescore is not a round: commit only its run, appended to the history, titled `Rescore: …`. A `Rescore:` commit re-enters no pass: push it and wait for the forge's checks (§4 step 3), not for an auto-review. **Suspended.** A decision in the project's `docs/decisions.md`, held before the chunk began, may name plan items to ship without a scoring run. A named item counts as `todo.md` worded it before the chunk began. The decision must name the later plan item whose chunk ends the suspension with a scoring run. A chunk may ship named items only with each other. Such a chunk skips the scoring run, so neither the floor nor the ratchet can block it, and its summary cites the decision. A chunk shipping its release's last item runs the scoring run, even when every item it ships is named. diff --git a/todo.md b/todo.md index b80e710b..26a21a0e 100644 --- a/todo.md +++ b/todo.md @@ -28,7 +28,6 @@ | 72 | 0.1.0 | | **Rerun after a fix only the pass whose finding it answers, over the fix's diff alone; close a pass on a round of only 🟢, and give prose one round.** | 4 | 4 | 10 | 9 | 1.4, 1.5 | 32.3 | | 75 | 0.1.0 | | **Decide the ratchet by a paired run: Mid A and the inherited architect read the whole project at the default branch and at the PR head, and rule whether it reads better, the same or worse once the PR lands; add seats only until the votes settle.** | 5 | 5 | 10 | 9 | 1.1, 1.4 | 31.6 | | 73 | 0.1.0 | | **Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries.** | 3 | 4 | 10 | 8 | 1.4 | 31.4 | -| 76 | 0.1.0 | | **Keep every scoring run and paired ruling in an append-only `docs/comprehension-history.md` in the project, with its commit, date, each seat's scores and the places it named.** | 2 | 3 | 9 | 8 | 1.1 | 31.1 | | 74 | 0.1.0 | | **Run one security pass per round: the full scan alone when it triggers, else `/security-review`.** | 2 | 1 | 10 | 6 | 1.4 | 29.3 | | 77 | 0.1.0 | | **Measure each project with cheap static metrics — cognitive complexity, how far a change spreads, state shared or mutated across methods — and keep only those the panel's history shows tracking comprehension.** | 3 | 7 | 9 | 8 | 1.1, 1.4 | 29.1 | | 78 | 0.1.0 | | **Generate comprehension questions with deterministic scripts — from symbols, the call graph and the tests, each answer checkable by a tool — and bench the scores an agent gets on them against the panel, reading cost and static metrics.** | 3 | 7 | 9 | 8 | 1.1, 1.4 | 29.1 | @@ -63,27 +62,23 @@ The human ranks review cost first. An audit of the four costliest archived chunk ### 75. Decide the ratchet by a paired run: Mid A and the inherited architect read the whole project at the default branch and at the PR head, and rule whether it reads better, the same or worse once the PR lands; add seats only until the votes settle. -The human ranks review cost first, and wants the project as a whole measured, since comprehension drifts across chunks that each look fine alone. Today the ratchet compares two independent absolute runs of four seats, whose scores move up to about 0.4 between runs on near-identical code, so a fall within that noise forces rounds that move nothing. A seat comparing the two commits judges the difference on the same material, so the noise the commits share cancels. Start with two seats; add one at a time until a sign test settles better or worse, and call it the same if four seats leave it unsettled. The four-seat scoring run still checks the floor, once, on each release's last item. +The human ranks review cost first, and wants the project as a whole measured, since comprehension drifts across chunks that each look fine alone. Today the ratchet compares two independent absolute runs of four seats, whose scores move up to about 0.4 between runs on near-identical code, so a fall within that noise forces rounds that move nothing. A seat comparing the two commits judges the difference on the same material, so the noise the commits share cancels. Start with two seats; add one at a time until a sign test settles better or worse, and call it the same if four seats leave it unsettled. The four-seat scoring run still checks the floor, once, on each release's last item. Append each paired ruling to `docs/comprehension-history.md`, with each seat's vote and the places it named. ### 73. Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries. The human ranks review cost first. Across 54 archived chunks the worker's own thread was 54% of spend, mostly cache reads: its context averaged about 350k tokens a turn and peaked near 700k, filled by reviewer reports, each of which arrived twice (the spawn result and the task notification). -### 76. Keep every scoring run and paired ruling in an append-only `docs/comprehension-history.md` in the project, with its commit, date, each seat's scores and the places it named. - -Today the `comprehension floor:` entry in `docs/decisions.md` holds only the last run, replaced each time; earlier scores survive only in that file's git log, and the places the seats named survive only in archived transcripts. The trend across chunks, and benching item 77's metrics against the panel, both need this history. Items 77, 78 and 79 need it. - ### 74. Run one security pass per round: the full scan alone when it triggers, else `/security-review`. The human ranks review cost first. In the audited chunks two security agents started seconds apart each round and returned near-identical reports. ### 77. Measure each project with cheap static metrics — cognitive complexity, how far a change spreads, state shared or mutated across methods — and keep only those the panel's history shows tracking comprehension. -The human wants these explored and benched against the panel, with a global push toward a good state in every project. Candidates: cognitive complexity per function; how far a change spreads (files and modules a typical chunk touches, and files that change together in git history); state shared or mutated across methods (fields written by more than one method of a type, package-level variables written outside init, lack of cohesion between methods). Function and file length are warnings to look into, never limits: a plain long function can be simple, and a hard one may need five-line pieces. One harness under `bin/` serves every project; which metrics a project tracks may differ by project. Needs item 76's history to bench against. +The human wants these explored and benched against the panel, with a global push toward a good state in every project. Candidates: cognitive complexity per function; how far a change spreads (files and modules a typical chunk touches, and files that change together in git history); state shared or mutated across methods (fields written by more than one method of a type, package-level variables written outside init, lack of cohesion between methods). Function and file length are warnings to look into, never limits: a plain long function can be simple, and a hard one may need five-line pieces. One harness under `bin/` serves every project; which metrics a project tracks may differ by project. ### 78. Generate comprehension questions with deterministic scripts — from symbols, the call graph and the tests, each answer checkable by a tool — and bench the scores an agent gets on them against the panel, reading cost and static metrics. -A hand-written question bank goes stale as the project grows and leaves everything it does not ask about unmeasured. A script that samples symbols at random each run ("what calls X?", "where is Y validated?", "which test fails if Z changes?") covers the whole project over time, and the call graph, grep and the tests hold the answers, so no judge is needed. Each answer names the code it rests on, so a question whose code changed is regenerated. Keep the method only where the bench shows it tracks the panel at a lower cost. Needs item 76's history. +A hand-written question bank goes stale as the project grows and leaves everything it does not ask about unmeasured. A script that samples symbols at random each run ("what calls X?", "where is Y validated?", "which test fails if Z changes?") covers the whole project over time, and the call graph, grep and the tests hold the answers, so no judge is needed. Each answer names the code it rests on, so a question whose code changed is regenerated. Keep the method only where the bench shows it tracks the panel at a lower cost. ### 1. Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume. -- 2.52.0 From a58a0a8262d7b0e484b7583311f5d72c521b8108 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:43:18 +0200 Subject: [PATCH 02/12] Answer architecture round 1: stamp runs in UTC, define a moved run's shape, correct the changelog, file three findings outside the chunk --- CHANGELOG.md | 4 ++-- README.md | 2 +- docs/comprehension-history.md | 15 +-------------- skills/comprehension-panel/scoring-run.md | 2 +- skills/larv-review/SKILL.md | 6 +++--- todo.md | 19 +++++++++++++++++-- 6 files changed, 25 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7df0a20c..4c647ec5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - larv-review appends every scoring run to the project's `docs/comprehension-history.md`: the commit the seats read, each seat's five scores and their mean, and the places each seat named. The ratchet compares a run with the history's last run on the default branch. The `comprehension floor:` entry in `docs/decisions.md` keeps only the decisions to ship under the floor; a project's next scoring run moves the last scores the entry still holds into the history. The seats do not read the history. - The README's goals put quality with the fewest interrupts first, as goal 1; sharing the setup, backups and leaking nothing follow as goals 2–4. -- larv-review reruns the comprehension scoring run before merge when any commit since the last run changes more than `docs/decisions.md`, `todo.md` or `CHANGELOG.md`, so the recorded scores are the merged commit's. A score under the floor, or below the default branch's recorded scores, blocks the merge and is never filed in `todo.md`. A fix lifts either; your decision to ship under the floor lifts only a score under the floor. A rerun counts toward the three-round cap only when it reports a blocking score that no decision of yours covers. +- larv-review reruns the comprehension scoring run before merge when any commit since the last run changes more than `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`, so the recorded scores are the merged commit's. A score under the floor, or below the default branch's recorded scores, blocks the merge and is never filed in `todo.md`. A fix lifts either; your decision to ship under the floor lifts only a score under the floor. A rerun counts toward the three-round cap only when it reports a blocking score that no decision of yours covers. - larv-review skips the comprehension scoring run for a chunk whose plan items a project decision names. The decision also names the later item whose scoring run ends the suspension. Neither the comprehension floor nor the ratchet can block a skipped chunk, its summary cites the decision, and a chunk shipping its release's last item is always measured. - README → Install and Update give the commands that check the latest tag out into `~/.claude`: on a new machine, whether or not Claude Code has already created the directory, and on one already on an older tag. - A session commits changes Claude Code made to `settings.json` only once their diff holds no credential, and asks you to move any credential out of the file first. @@ -12,7 +12,7 @@ - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose 🔴 or 🟡 the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names, `Architecture` and `Full scan`. Each round's commit is titled with its pass's name in lower case: `Answer full scan round 1: …`. -- larv-review's comprehension floor now says, without another file open, what the scoring run measures. A project's `docs/decisions.md` keeps the last scoring run's scores, and a later run scoring below them blocks the merge until fixed. After three rounds larv-review asks you; an unattended run leaves the PR unmerged with the question. A PR under the floor that scores no lower than the last run merges once you decide to ship. A decision in `docs/decisions.md` that lets every chunk ship under the floor counts as yours. A project without those scores gets them at its next scoring run. +- larv-review's comprehension floor now says, without another file open, what the scoring run measures. A run scoring below the last one blocks the merge until fixed. After three rounds larv-review asks you; an unattended run leaves the PR unmerged with the question. A PR under the floor that scores no lower than the last run merges once you decide to ship. A decision in `docs/decisions.md` that lets every chunk ship under the floor counts as yours. A project without those scores gets them at its next scoring run. - `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/README.md b/README.md index c19e1b84..109c70ce 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Claude Code configuration -My personal `~/.claude`, version controlled: `CLAUDE.md` and `AGENTS.md` for instructions, the words under `CLAUDE.md` → "Vocabulary"; `agents/` and `skills/`; `principles/` for what the reviewer agents hold projects to; `docs/` for decisions; `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo; `CHANGELOG.md` and `todo.md`; the tools in `bin/`; and `workflow-bench/`, the scripts and prompts of the 2026-09-30 bench of larv-review. +My personal `~/.claude`, version controlled: `CLAUDE.md` and `AGENTS.md` for instructions, the words under `CLAUDE.md` → "Vocabulary"; `agents/` and `skills/`; `principles/` for what the reviewer agents hold projects to; `docs/` for decisions and the comprehension history; `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo; `CHANGELOG.md` and `todo.md`; the tools in `bin/`; and `workflow-bench/`, the scripts and prompts of the 2026-09-30 bench of larv-review. ## Goals diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index cb41112f..f25ea6b3 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -1,20 +1,7 @@ # Comprehension history -## 2026-10-04, PR #215 at 5baedb5 - -Moved from `docs/decisions.md`, which kept only the mean and not the commit the seats read; 5baedb5 merged PR #215. +## 2026-10-04T18:28:07Z, PR #215 merged at 5baedb5 | Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | |---|---|---|---|---|---| | Mean | 7.38 | 6.63 | 7.0 | 6.88 | 6.88 | - -Places named, all seats together: - -- `bin/loop_claude/cycle/judge_reply.py`, `cycle/worker.py`, `cycle/run.py`: the judge's contract, spread over three files. -- `bin/loop_claude/loop/main.py`, `loop/reload.py` `LoopRun`, `cycle/run.py`, `worker_args`: `remaining`, which is `Unfinished.evidence` under another name. -- `bin/loop_claude/cycle/states.py` `transition` and `cycle/run.py` `question_for`: the `quoted_answers` cap, held by case order and restated. -- `bin/loop_claude/cycle/run.py`: the four outcome texts built inline for `archive`. -- `skills/larv-review/SKILL.md`: needs `CLAUDE.md` → "Vocabulary" open beside it. -- `bin/loop_claude/loop/main.py` docstring: the archive layout, defined there and not at `cycle/archive.py`. -- `bin/loop_claude/cycle/judge_reply.py` `JUDGE_RULES`: its precedence, restated by `verdict_from`'s branch order and the `Reply` field descriptions. -- `bin/loop-claude`: the `sys.path` insert that the `from failure import` lines rely on, unstated at the import sites. diff --git a/skills/comprehension-panel/scoring-run.md b/skills/comprehension-panel/scoring-run.md index 49589464..eda4f4e5 100644 --- a/skills/comprehension-panel/scoring-run.md +++ b/skills/comprehension-panel/scoring-run.md @@ -4,7 +4,7 @@ Each seat's prompt is the four parts below, in order: the opening, the seat's ba - `{checkout}` and `{branch}`: the worktree the seats read, and its branch. - `{main}`: the project's main checkout. -- `{files}`: every tracked non-test file but `todo.md`, `docs/decisions.md` and `docs/comprehension-history.md`, from `git -C {checkout} ls-files`, listed as one recursive glob per top-level source directory, such as `bin/loop_claude/**/*.py`. +- `{files}`: every tracked non-test file the shared brief does not forbid, from `git -C {checkout} ls-files`, listed as one recursive glob per top-level source directory, such as `bin/loop_claude/**/*.py`. - `{preloaded}`: the files the harness pre-loads into a seat, found per `SKILL.md` → "What makes the result trustworthy". - `{anchors}` and `{dimensions}`: the six anchor bullets and the four dimension bullets in `SKILL.md` → "The score", verbatim, without bold and each on one line. - `{language}`, `{kind}`, `{domain}`, `{domain docs}` and `{3am question}`: the project's `AGENTS.md` → "Scoring run". diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index d3b88320..4c9b894c 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -87,18 +87,18 @@ Then the comprehension floor, which the scoring run measures. Four simulated rea The project's `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. -The project's `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming the commit the seats read, a table of each seat's five scores and their mean, and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name. +The project's `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read, a table of each seat's five scores and their mean, and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name. The chunk does not merge while either holds: - **Floor.** Any dimension or the overall is below 7.0. -- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. Until the history holds a run, a last scoring run that the `comprehension floor:` entry still holds stands in. An equal score passes, and so does every run while the default branch has neither. +- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. Until the history holds a run, the entry's line opening `The last scoring run` stands in. An equal score passes, and so does every run while the default branch has neither. Each score under the floor or the ratchet is a 🔴 of the scoring run. It is never filed, and stands until a later scoring run clears it or, for a score under the floor, a decision to ship answers it. Fix the places the seats name under the lowest dimension and under each dimension that fell. When only the floor holds, the user may decide to ship instead. A decision that lets every chunk ship under the floor, held in the project's `docs/decisions.md` before the chunk began, counts as theirs while it stands. A decision to ship listed in the `comprehension floor:` entry covers only the chunk it names. No user reachable → fix. A fall never ships: after three rounds, "Round cap" → "Cap" asks the user for another round. -Put each run's five scores in the summary, and append the run to the history on this branch. A last scoring run that the `comprehension floor:` entry still holds moves into the history as its first run, under that run's own date and PR. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`). +Put each run's five scores in the summary, and append the run to the history on this branch. That line, where the entry still holds it, moves into the history ahead of every run there: `## , merged at `, since the entry never named the commit the seats read, and a table with the mean alone. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`). **Fresh.** Where the chunk ran a scoring run, the architecture pass is done only once its last scoring run measured the commit to merge. That run may predate commits that change only `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`. Any other commit after it, a prose fix included, because the seats read the docs, calls for a rescore: the scoring run again, once every other pass is done, the auto-reviewer included. A rescore reporting a 🔴 that no decision to ship answers is an architecture round. Any other rescore is not a round: commit only its run, appended to the history, titled `Rescore: …`. A `Rescore:` commit re-enters no pass: push it and wait for the forge's checks (§4 step 3), not for an auto-review. diff --git a/todo.md b/todo.md index 26a21a0e..cce437a4 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 9` -`Next ID = 80` +`Next ID = 83` | Goal | W | |---|---| @@ -37,6 +37,7 @@ | 49 | 0.1.0 | principle | **Check that `AGENTS.md` lists exactly the titles of `docs/decisions.md`.** | 1 | 2 | 5 | 6 | 1.3 | 20.1 | | 59 | 0.1.0 | | **Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end.** | 3 | 3 | 6 | 6 | 1.4 | 19.8 | | 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 | 1.1 | 16.9 | +| 80 | 0.1.0 | | **State in README → Install that every machine taking this checkout must be a sandbox, as `settings.json`'s auto mode assumes.** | 1 | 1 | 5 | 5 | 4 | 16.8 | | 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 | 1.1 | 15.6 | | 67 | 0.1.0 | principle | **Point stability-reviewer at the technical principles in place of its own restatement of them.** | 2 | 3 | 4 | 5 | 1.3 | 14.9 | | 66 | 0.1.0 | principle | **Hold systems-architect's method thresholds only while the comprehension panel finds the flagged code hard.** | 3 | 3 | 4 | 5 | 1.1 | 14.2 | @@ -44,9 +45,11 @@ | 29 | 0.1.0 | | **Make the contributor a standing member of every project's audience, unless its `## Audience` says maintainability does not matter.** | 2 | 2 | 3 | 5 | 1.1, 1.4 | 13.4 | | 68 | 0.1.0 | principle | **Test `workflow-bench/compare.py`'s blinding and `bench.py`'s run plan.** | 2 | 4 | 3 | 5 | 1.1 | 12.9 | | 65 | 0.1.0 | | **Archive each judge reply the loop rejects.** | 3 | 4 | 4 | 5 | 3 | 12.5 | +| 82 | 0.1.0 | principle | **Sort `AGENTS.md`'s decision titles and `docs/decisions.md`'s entries by title.** | 1 | 2 | 3 | 4 | 1.3 | 12.3 | | 6 | 0.1.0 | decision | **Move what `loop-claude` writes out of `~/.claude.json`, and ask the human about each write that must stay.** | 5 | 5 | 4 | 5 | 1.1 | 11.7 | | 51 | 0.1.0 | principle | **Hand loop-claude's terminal output to an injected effect, so no storage or retry function prints.** | 3 | 5 | 3 | 5 | 1.1 | 11.7 | | 50 | 0.1.0 | principle | **Grant the bench's runs only the tools a review needs, in place of skipping every permission.** | 2 | 2 | 3 | 4 | 4 | 9.9 | +| 81 | 0.1.0 | principle | **Have `workflow-bench/bench.py` return each run's failure as a value, so one failed clone does not hide the later runs' results.** | 2 | 2 | 3 | 4 | 4 | 9.9 | | 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 | 3 | 9.6 | | 52 | 0.1.0 | principle | **Record why this checkout lives in Claude Code's own directory, or move it out and link it in.** | 6 | 6 | 3 | 5 | 2 | 7.5 | @@ -54,7 +57,7 @@ ### 79. Measure each chunk's reading cost from its transcript as loop-claude archives it, append it to `docs/comprehension-history.md`, and file a plan item naming the most-read places when the trend rises. -The human wants comprehension measured from real work. The archived transcript already records what the worker opened and searched before its first edit, and how much it read per line it changed; a script derives both at archive time with no model call. One chunk's figure is noise, since tasks differ; the trend over many chunks is the signal. The files read most often before an edit name where to act. +The human wants comprehension measured from real work. The archived transcript already records what the worker opened and searched before its first edit, and how much it read per line it changed; a script derives both at archive time with no model call. One chunk's figure is noise, since tasks differ; the trend over many chunks is the signal. The files read most often before an edit name where to act. Decide who commits the figure, and in which PR: loop-claude archives from the main checkout, outside any PR, and a tracked file it writes there dirties that checkout. Give its entries a heading the ratchet's "last run" skips. ### 72. Rerun after a fix only the pass whose finding it answers, over the fix's diff alone; close a pass on a round of only 🟢, and give prose one round. @@ -110,6 +113,10 @@ Raised by the product-owner review of PR #211. The resumed worker gets the judge 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. +### 80. State in README → Install that every machine taking this checkout must be a sandbox, as `settings.json`'s auto mode assumes. + +Raised by the principles audit of PR #224. The `settings.json` decision is valid while every machine taking this checkout is a sandbox, but Install asks for a sandbox only for `loop-claude`, so a new machine is never told. + ### 5. Key a project on its checkout's full path, and refuse to start while another session uses that key. The key names the project's session, archive folder and models entry. `project_key` drops the leading `/`, so `~/code/a` and `/a` share all three, and one loop can resume or delete the other's session. @@ -138,6 +145,10 @@ State that in `CLAUDE.md`'s goals-and-audience rule, and have larv-review's comp Goal 3, raised by the principles audit of PR #215: the judge runs with `--no-session-persistence`, and the first two rejected replies reach only stderr, so the archive cannot answer the 3am question of why the loop rejected a verdict. +### 82. Sort `AGENTS.md`'s decision titles and `docs/decisions.md`'s entries by title. + +"Deterministic order", in `principles/technical-principles.md`, raised by the principles audit of PR #224: their order carries no meaning, so two chunks adding a decision conflict at the end, and a reader cannot find a title by scanning. + ### 6. Move what `loop-claude` writes out of `~/.claude.json`, and ask the human about each write that must stay. Claude Code owns that file and writes it. `trust` reads it, changes it and writes it back, so a write that lands in between is lost. @@ -150,6 +161,10 @@ Claude Code owns that file and writes it. `trust` reads it, changes it and write "Always grant explicit access to data", in `principles/technical-principles.md`: `workflow-bench/bench.py` starts claude with `--dangerously-skip-permissions`, and no rule confines it to a sandbox, so a run on the host reaches the host's credentials and other checkouts. +### 81. Have `workflow-bench/bench.py` return each run's failure as a value, so one failed clone does not hide the later runs' results. + +"Errors as values", in `principles/technical-principles.md`, raised by the principles audit of PR #224: `bench.py` raises `KeyError` and `CalledProcessError`, and `pool.map` re-raises the first while the other threads run on unreported. + ### 4. Name each chunk's archive folder by the chunk's start time, so `/` lists chunks in the order they ran. Today the folder is the SHA-256 of the transcript's first timestamped line, which tells the human nothing; that line carries the start time. Drop the fallback to the first line, which every chunk of a project shares, and give the tests' fake transcripts ISO timestamps. -- 2.52.0 From 894f99e55b687aeac49644e46c59c6ceb7def9c8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:53:27 +0200 Subject: [PATCH 03/12] Answer architecture round 1 (scoring run): record the run, list the floor's records as one set, inline the README's reason for the floor Python --- README.md | 2 +- docs/comprehension-history.md | 51 +++++++++++++++++++++++++++++++++++ skills/larv-review/SKILL.md | 10 ++++--- 3 files changed, 58 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 109c70ce..177a6879 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Rename `## Unreleased` in `CHANGELOG.md` to the version, commit, tag that commit - `rank_todo.py [--check] [todo.md]` scores and ranks a project's `todo.md`; `rank_todo.py --help` states the format. - `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it. -Test on the host, with `uv` on `PATH` to fetch mypy and the Python version Install names (`docs/decisions.md` → `bin/`): `python3 -m unittest discover -s bin -p 'test_*.py'` +Test on the host, with `uv` on `PATH` to fetch mypy and the Python version Install names, since the host's newer Python accepts code the floor rejects (`docs/decisions.md` → `bin/`): `python3 -m unittest discover -s bin -p 'test_*.py'` ## Tracking a new file diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index f25ea6b3..0e89807d 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -5,3 +5,54 @@ | Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | |---|---|---|---|---|---| | Mean | 7.38 | 6.63 | 7.0 | 6.88 | 6.88 | + +## 2026-10-08T12:50:49Z, PR #224 at a58a0a8 + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Junior A | 7 | 6.5 | 7 | 6.5 | 7 | +| Mid A | 7.5 | 7 | 7 | 7 | 7 | +| Maintainability senior | 7.5 | 6.5 | 7 | 6.5 | 7 | +| Inherited architect | 7.5 | 7 | 7 | 7 | 7 | +| Mean | 7.38 | 6.75 | 7.0 | 6.75 | 7.0 | + +Junior A: + +- `skills/larv-review/SKILL.md:77` "Architecture": Ratchet, the history move, Fresh, Suspended +- `skills/larv-review/SKILL.md:51` "Round cap", with "Re-entry" +- `bin/loop_claude/cycle/judge_reply.py:90` `verdict_from`, `cycle/judge.py:31` `run_judge`, `cycle/states.py:69` `transition` +- `bin/loop_claude/cycle/states.py:9` the `quoted_answers` counter +- `bin/loop_claude/cycle/archive.py:14` `archive` +- `bin/loop_claude/claude_code/entries.py:28` `written_by_human` +- `bin/loop_claude/loop/reload.py:50` `exec_if_edited` +- `CLAUDE.md:22` (Todo items), with `bin/rank_todo.py:235` `check_citations` + +Mid A: + +- `skills/larv-review/SKILL.md:86` "Architecture" +- `bin/loop_claude/cycle/states.py:69` `transition`, with `cycle/run.py:55` `step` +- `bin/loop_claude/cycle/worker.py:41` `worker_args` +- `bin/loop_claude/cycle/judge.py:31` `run_judge` +- `bin/loop_claude/claude_code/entries.py:28` `written_by_human` +- `bin/loop_claude/cycle/archive.py:14` `archive` +- `bin/rank_todo.py:161` `rank`, `:408` `rank_details` +- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES` + +Maintainability senior: + +- `skills/larv-review/SKILL.md:77` "Architecture" +- `skills/larv-review/SKILL.md:56` "Round cap" → "Count" +- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES` +- `bin/loop_claude/cycle/states.py:69` `transition`, with `cycle/run.py:104` `question_for` +- `bin/loop_claude/cycle/archive.py:14` `archive` +- `bin/loop_claude/claude_code/entries.py:28` `written_by_human` +- `bin/loop_claude/loop/reload.py:50` `exec_if_edited` +- `bin/rank_todo.py:161` `rank`, `:408` `rank_details` + +Inherited architect, would restructure first: + +- `skills/larv-review/SKILL.md:51` "Round cap" and `:77` "Architecture" +- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES` +- `bin/` flat folder: tools, shared modules and repo checks +- `bin/loop_claude/project/checkout.py:32` `read_utf8` +- `bin/loop_claude/loop/main.py:127` `remaining`, `cycle/run.py:96` `ruling` diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 4c9b894c..d16c1461 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -85,20 +85,22 @@ Then the principles audit: one principles-auditor for the README's goals, and on Then the comprehension floor, which the scoring run measures. 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. A seat's overall may not exceed its lowest dimension by more than 1. Each score is the mean of the four seats, to two decimals. Launch the seats per `~/.claude/skills/comprehension-panel/SKILL.md` → "The scoring run". -The project's `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. +Two files of the project keep the floor's records: -The project's `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read, a table of each seat's five scores and their mean, and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name. +- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores and their mean; and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name. +- **Entry.** `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. +- **Moved run.** An entry written before the history may still hold a line opening `The last scoring run`. While the history holds no run, that line is its last run. The chunk's first scoring run moves it into the history as its first run: `## , merged at `, with the mean alone. The chunk does not merge while either holds: - **Floor.** Any dimension or the overall is below 7.0. -- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. Until the history holds a run, the entry's line opening `The last scoring run` stands in. An equal score passes, and so does every run while the default branch has neither. +- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. An equal score passes, and so does every run while the default branch has none. Each score under the floor or the ratchet is a 🔴 of the scoring run. It is never filed, and stands until a later scoring run clears it or, for a score under the floor, a decision to ship answers it. Fix the places the seats name under the lowest dimension and under each dimension that fell. When only the floor holds, the user may decide to ship instead. A decision that lets every chunk ship under the floor, held in the project's `docs/decisions.md` before the chunk began, counts as theirs while it stands. A decision to ship listed in the `comprehension floor:` entry covers only the chunk it names. No user reachable → fix. A fall never ships: after three rounds, "Round cap" → "Cap" asks the user for another round. -Put each run's five scores in the summary, and append the run to the history on this branch. That line, where the entry still holds it, moves into the history ahead of every run there: `## , merged at `, since the entry never named the commit the seats read, and a table with the mean alone. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`). +Put each run's five scores in the summary, and append the run to the history on this branch. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`). **Fresh.** Where the chunk ran a scoring run, the architecture pass is done only once its last scoring run measured the commit to merge. That run may predate commits that change only `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`. Any other commit after it, a prose fix included, because the seats read the docs, calls for a rescore: the scoring run again, once every other pass is done, the auto-reviewer included. A rescore reporting a 🔴 that no decision to ship answers is an architecture round. Any other rescore is not a round: commit only its run, appended to the history, titled `Rescore: …`. A `Rescore:` commit re-enters no pass: push it and wait for the forge's checks (§4 step 3), not for an auto-review. -- 2.52.0 From 7426f84aff1bcee9266b847caabded83f11ce91b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:55:55 +0200 Subject: [PATCH 04/12] Answer product-owner round 1: move an old entry's five scores whatever its wording, keep the rest of the entry, label each seat's places --- CHANGELOG.md | 2 +- docs/comprehension-history.md | 6 +++--- skills/larv-review/SKILL.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c647ec5..9eb2bb00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose 🔴 or 🟡 the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names, `Architecture` and `Full scan`. Each round's commit is titled with its pass's name in lower case: `Answer full scan round 1: …`. -- larv-review's comprehension floor now says, without another file open, what the scoring run measures. A run scoring below the last one blocks the merge until fixed. After three rounds larv-review asks you; an unattended run leaves the PR unmerged with the question. A PR under the floor that scores no lower than the last run merges once you decide to ship. A decision in `docs/decisions.md` that lets every chunk ship under the floor counts as yours. A project without those scores gets them at its next scoring run. +- larv-review's comprehension floor now says, without another file open, what the scoring run measures. A run scoring below the last one blocks the merge until fixed. After three rounds larv-review asks you; an unattended run leaves the PR unmerged with the question. A PR under the floor that scores no lower than the last run merges once you decide to ship. A decision in `docs/decisions.md` that lets every chunk ship under the floor counts as yours. - `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/comprehension-history.md b/docs/comprehension-history.md index 0e89807d..2445012e 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -16,7 +16,7 @@ | Inherited architect | 7.5 | 7 | 7 | 7 | 7 | | Mean | 7.38 | 6.75 | 7.0 | 6.75 | 7.0 | -Junior A: +Junior A, hardest first: - `skills/larv-review/SKILL.md:77` "Architecture": Ratchet, the history move, Fresh, Suspended - `skills/larv-review/SKILL.md:51` "Round cap", with "Re-entry" @@ -27,7 +27,7 @@ Junior A: - `bin/loop_claude/loop/reload.py:50` `exec_if_edited` - `CLAUDE.md:22` (Todo items), with `bin/rank_todo.py:235` `check_citations` -Mid A: +Mid A, hardest first: - `skills/larv-review/SKILL.md:86` "Architecture" - `bin/loop_claude/cycle/states.py:69` `transition`, with `cycle/run.py:55` `step` @@ -38,7 +38,7 @@ Mid A: - `bin/rank_todo.py:161` `rank`, `:408` `rank_details` - `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES` -Maintainability senior: +Maintainability senior, hardest first: - `skills/larv-review/SKILL.md:77` "Architecture" - `skills/larv-review/SKILL.md:56` "Round cap" → "Count" diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index d16c1461..ef7afbfb 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -87,9 +87,9 @@ Then the comprehension floor, which the scoring run measures. Four simulated rea Two files of the project keep the floor's records: -- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores and their mean; and under each seat the places it ranked hardest, or, for the architect, would restructure first, each as `path:line` and the unit's name. +- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores and their mean; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. - **Entry.** `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. -- **Moved run.** An entry written before the history may still hold a line opening `The last scoring run`. While the history holds no run, that line is its last run. The chunk's first scoring run moves it into the history as its first run: `## , merged at `, with the mean alone. +- **Moved run.** An entry written before the history may still hold the last scoring run's five scores. While the history holds no run, those scores are its last run. The chunk's first scoring run moves those five scores, and only them, into the history as its first run: a heading of the date and whatever the entry names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. The chunk does not merge while either holds: -- 2.52.0 From c2c5d4b8852cc6b524861e51b34ddb5f198dc95c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:56:48 +0200 Subject: [PATCH 05/12] Answer prose round 1: the old scores' move is a paragraph of its own, the mean row is the seats' mean, the ratchet's empty case names both records --- CHANGELOG.md | 2 +- README.md | 2 +- skills/larv-review/SKILL.md | 9 +++++---- todo.md | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eb2bb00..57b03d9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- larv-review appends every scoring run to the project's `docs/comprehension-history.md`: the commit the seats read, each seat's five scores and their mean, and the places each seat named. The ratchet compares a run with the history's last run on the default branch. The `comprehension floor:` entry in `docs/decisions.md` keeps only the decisions to ship under the floor; a project's next scoring run moves the last scores the entry still holds into the history. The seats do not read the history. +- larv-review appends every scoring run to the project's `docs/comprehension-history.md`: the commit the seats read, each seat's five scores and the seats' mean, and the places each seat named. The ratchet compares a run with the history's last run on the default branch. The `comprehension floor:` entry in `docs/decisions.md` keeps only the decisions to ship under the floor; a project's next scoring run moves the last scores the entry still holds into the history. The seats do not read the history. - The README's goals put quality with the fewest interrupts first, as goal 1; sharing the setup, backups and leaking nothing follow as goals 2–4. - larv-review reruns the comprehension scoring run before merge when any commit since the last run changes more than `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`, so the recorded scores are the merged commit's. A score under the floor, or below the default branch's recorded scores, blocks the merge and is never filed in `todo.md`. A fix lifts either; your decision to ship under the floor lifts only a score under the floor. A rerun counts toward the three-round cap only when it reports a blocking score that no decision of yours covers. - larv-review skips the comprehension scoring run for a chunk whose plan items a project decision names. The decision also names the later item whose scoring run ends the suspension. Neither the comprehension floor nor the ratchet can block a skipped chunk, its summary cites the decision, and a chunk shipping its release's last item is always measured. diff --git a/README.md b/README.md index 177a6879..109c70ce 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Rename `## Unreleased` in `CHANGELOG.md` to the version, commit, tag that commit - `rank_todo.py [--check] [todo.md]` scores and ranks a project's `todo.md`; `rank_todo.py --help` states the format. - `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it. -Test on the host, with `uv` on `PATH` to fetch mypy and the Python version Install names, since the host's newer Python accepts code the floor rejects (`docs/decisions.md` → `bin/`): `python3 -m unittest discover -s bin -p 'test_*.py'` +Test on the host, with `uv` on `PATH` to fetch mypy and the Python version Install names (`docs/decisions.md` → `bin/`): `python3 -m unittest discover -s bin -p 'test_*.py'` ## Tracking a new file diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index ef7afbfb..fbadd386 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -87,14 +87,15 @@ Then the comprehension floor, which the scoring run measures. Four simulated rea Two files of the project keep the floor's records: -- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores and their mean; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. +- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores, with a last row holding the four seats' mean of each; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. - **Entry.** `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. -- **Moved run.** An entry written before the history may still hold the last scoring run's five scores. While the history holds no run, those scores are its last run. The chunk's first scoring run moves those five scores, and only them, into the history as its first run: a heading of the date and whatever the entry names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. + +A `comprehension floor:` entry written before the history may still hold the last scoring run's five scores. While the history holds no run, the ratchet compares with those scores. The next scoring run moves them, and only them, into the history as its first run: a heading of the date and whatever the entry names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. The chunk does not merge while either holds: - **Floor.** Any dimension or the overall is below 7.0. -- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. An equal score passes, and so does every run while the default branch has none. +- **Ratchet.** Any score is below the mean of the history's last run as it stands on the default branch, even within the panel's noise. An equal score passes, and so does every run while the default branch holds neither a run in the history nor such scores in the entry. Each score under the floor or the ratchet is a 🔴 of the scoring run. It is never filed, and stands until a later scoring run clears it or, for a score under the floor, a decision to ship answers it. @@ -102,7 +103,7 @@ Fix the places the seats name under the lowest dimension and under each dimensio Put each run's five scores in the summary, and append the run to the history on this branch. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`). -**Fresh.** Where the chunk ran a scoring run, the architecture pass is done only once its last scoring run measured the commit to merge. That run may predate commits that change only `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`. Any other commit after it, a prose fix included, because the seats read the docs, calls for a rescore: the scoring run again, once every other pass is done, the auto-reviewer included. A rescore reporting a 🔴 that no decision to ship answers is an architecture round. Any other rescore is not a round: commit only its run, appended to the history, titled `Rescore: …`. A `Rescore:` commit re-enters no pass: push it and wait for the forge's checks (§4 step 3), not for an auto-review. +**Fresh.** Where the chunk ran a scoring run, the architecture pass is done only once its last scoring run measured the commit to merge. That run may predate commits that change only `docs/decisions.md`, `docs/comprehension-history.md`, `todo.md` or `CHANGELOG.md`. Any other commit after it, a prose fix included, because the seats read the docs, calls for a rescore: the scoring run again, once every other pass is done, the auto-reviewer included. A rescore reporting a 🔴 that no decision to ship answers is an architecture round. Any other rescore is not a round: append only its run to the history, in a commit titled `Rescore: …`. A `Rescore:` commit re-enters no pass: push it and wait for the forge's checks (§4 step 3), not for an auto-review. **Suspended.** A decision in the project's `docs/decisions.md`, held before the chunk began, may name plan items to ship without a scoring run. A named item counts as `todo.md` worded it before the chunk began. The decision must name the later plan item whose chunk ends the suspension with a scoring run. A chunk may ship named items only with each other. Such a chunk skips the scoring run, so neither the floor nor the ratchet can block it, and its summary cites the decision. A chunk shipping its release's last item runs the scoring run, even when every item it ships is named. diff --git a/todo.md b/todo.md index cce437a4..e8037e58 100644 --- a/todo.md +++ b/todo.md @@ -57,7 +57,7 @@ ### 79. Measure each chunk's reading cost from its transcript as loop-claude archives it, append it to `docs/comprehension-history.md`, and file a plan item naming the most-read places when the trend rises. -The human wants comprehension measured from real work. The archived transcript already records what the worker opened and searched before its first edit, and how much it read per line it changed; a script derives both at archive time with no model call. One chunk's figure is noise, since tasks differ; the trend over many chunks is the signal. The files read most often before an edit name where to act. Decide who commits the figure, and in which PR: loop-claude archives from the main checkout, outside any PR, and a tracked file it writes there dirties that checkout. Give its entries a heading the ratchet's "last run" skips. +The human wants comprehension measured from real work. The archived transcript already records what the worker opened and searched before its first edit, and how much it read per line it changed; a script derives both at archive time with no model call. One chunk's figure is noise, since tasks differ; the trend over many chunks is the signal. The files read most often before an edit name where to act. Decide who commits the figure, and in which PR: loop-claude archives from the main checkout, outside any PR, and a tracked file it writes there dirties that checkout. Give these entries a heading the ratchet does not read as a scoring run. ### 72. Rerun after a fix only the pass whose finding it answers, over the fix's diff alone; close a pass on a round of only 🟢, and give prose one round. -- 2.52.0 From 897c6e9552d544874bd0eee942d201d3a2393af6 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:57:33 +0200 Subject: [PATCH 06/12] Answer stability round 1: an appended run re-enters no pass, and a conflict keeps the default branch's runs first --- skills/larv-review/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index fbadd386..02591103 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -87,7 +87,7 @@ Then the comprehension floor, which the scoring run measures. Four simulated rea Two files of the project keep the floor's records: -- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores, with a last row holding the four seats' mean of each; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. +- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores, with a last row holding the four seats' mean of each; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. Appending a run is a record, not a fix: it re-enters no pass. A merge conflict in the file keeps the default branch's runs first. - **Entry.** `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. A `comprehension floor:` entry written before the history may still hold the last scoring run's five scores. While the history holds no run, the ratchet compares with those scores. The next scoring run moves them, and only them, into the history as its first run: a heading of the date and whatever the entry names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. -- 2.52.0 From 4f0f801ba01faa46bfc1333b7887067171ad2c5c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:59:04 +0200 Subject: [PATCH 07/12] Answer product-owner round 2: the old scores stand in while the default branch's history is empty, and means carry two decimals --- docs/comprehension-history.md | 4 ++-- skills/larv-review/SKILL.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 2445012e..88b75009 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -4,7 +4,7 @@ | Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | |---|---|---|---|---|---| -| Mean | 7.38 | 6.63 | 7.0 | 6.88 | 6.88 | +| Mean | 7.38 | 6.63 | 7.00 | 6.88 | 6.88 | ## 2026-10-08T12:50:49Z, PR #224 at a58a0a8 @@ -14,7 +14,7 @@ | Mid A | 7.5 | 7 | 7 | 7 | 7 | | Maintainability senior | 7.5 | 6.5 | 7 | 6.5 | 7 | | Inherited architect | 7.5 | 7 | 7 | 7 | 7 | -| Mean | 7.38 | 6.75 | 7.0 | 6.75 | 7.0 | +| Mean | 7.38 | 6.75 | 7.00 | 6.75 | 7.00 | Junior A, hardest first: diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 02591103..0595178e 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -90,7 +90,7 @@ Two files of the project keep the floor's records: - **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores, with a last row holding the four seats' mean of each; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. Appending a run is a record, not a fix: it re-enters no pass. A merge conflict in the file keeps the default branch's runs first. - **Entry.** `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. -A `comprehension floor:` entry written before the history may still hold the last scoring run's five scores. While the history holds no run, the ratchet compares with those scores. The next scoring run moves them, and only them, into the history as its first run: a heading of the date and whatever the entry names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. +A `comprehension floor:` entry written before the history may still hold the last scoring run's five scores. While the default branch's history holds no run, the ratchet compares with those scores. The next scoring run moves them, and only them, into the history as its first run: a heading of the date and whatever the entry names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. The chunk does not merge while either holds: -- 2.52.0 From aff4ba66513ce74be8e0703162e8b45e9d807eeb Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:59:04 +0200 Subject: [PATCH 08/12] Answer prose round 2: cut the contrastive tail, phrase the conflict rule as an instruction, let the moved heading carry a date or time --- skills/larv-review/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 0595178e..3aff8ca7 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -87,10 +87,10 @@ Then the comprehension floor, which the scoring run measures. Four simulated rea Two files of the project keep the floor's records: -- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores, with a last row holding the four seats' mean of each; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. Appending a run is a record, not a fix: it re-enters no pass. A merge conflict in the file keeps the default branch's runs first. +- **History.** `docs/comprehension-history.md` keeps every scoring run, appended and never edited. A run is a `## , at ` heading naming when the seats finished and the commit they read; a table of each seat's five scores, with a last row holding the four seats' mean of each; and under each seat, labelled `, hardest first:` or, for the architect, `, would restructure first:`, its places, each as `path:line` and the unit's name. Appending a run re-enters no pass. Resolve a merge conflict in the file by putting the default branch's runs first. - **Entry.** `docs/decisions.md` keeps one entry whose title opens `comprehension floor:`. It holds each decision to ship under the floor, with its scores. -A `comprehension floor:` entry written before the history may still hold the last scoring run's five scores. While the default branch's history holds no run, the ratchet compares with those scores. The next scoring run moves them, and only them, into the history as its first run: a heading of the date and whatever the entry names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. +A `comprehension floor:` entry written before the history may still hold the last scoring run's five scores. While the default branch's history holds no run, the ratchet compares with those scores. The next scoring run moves them, and only them, into the history as its first run: a heading of the date or time the entry gives and whatever it names the run by, its commit included where named, and a table with the mean alone. The rest of the entry stays. The chunk does not merge while either holds: -- 2.52.0 From a483e8d637f39d7be60a77ba3b2cfce3d1159709 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:59:04 +0200 Subject: [PATCH 09/12] Answer stability round 2: nothing to fix -- 2.52.0 From 7b86497a93864f27a5bc39c4594db1bcaab5093d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:59:43 +0200 Subject: [PATCH 10/12] Answer product-owner round 3: nothing to fix -- 2.52.0 From 9ea4f0abf6f96298eacb7841fd3bfc2c747970ac Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 14:59:43 +0200 Subject: [PATCH 11/12] Answer prose round 3: nothing to fix; moving the stand-in into the Ratchet bullet declined, the term is defined five lines below and a fourth round costs more -- 2.52.0 From f199118e74b2f56bd25faa3e49e748a5e0f487cf Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 8 Oct 2026 15:26:20 +0200 Subject: [PATCH 12/12] Answer architecture round 2: the rescore fell within the panel's noise; lilleman decided to ship, recorded in the comprehension floor entry --- docs/comprehension-history.md | 53 +++++++++++++++++++++++++++++++++++ docs/decisions.md | 1 + todo.md | 2 +- 3 files changed, 55 insertions(+), 1 deletion(-) diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 88b75009..d975b6e2 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -56,3 +56,56 @@ Inherited architect, would restructure first: - `bin/` flat folder: tools, shared modules and repo checks - `bin/loop_claude/project/checkout.py:32` `read_utf8` - `bin/loop_claude/loop/main.py:127` `remaining`, `cycle/run.py:96` `ruling` + +## 2026-10-08T13:03:40Z, PR #224 at 9ea4f0a + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Junior A | 7 | 6.5 | 7 | 6 | 6.5 | +| Mid A | 7 | 6.5 | 7 | 6.5 | 7 | +| Maintainability senior | 7 | 6.5 | 7 | 6.5 | 6.5 | +| Inherited architect | 7 | 6.5 | 7 | 7 | 7 | +| Mean | 7.00 | 6.50 | 7.00 | 6.50 | 6.75 | + +Junior A, hardest first: + +- `skills/larv-review/SKILL.md:77` "Architecture", with `:51` "Round cap" +- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES`, `:90` `verdict_from` +- `bin/loop_claude/cycle/archive.py:14` `archive` +- `bin/loop_claude/loop/reload.py:50` `exec_if_edited` +- `bin/rank_todo.py:187` `read_scoring`, `:408` `rank_details` +- `bin/loop_claude/claude_code/entries.py:28` `written_by_human` +- `bin/loop_claude/cycle/run.py:69` `work` +- `bin/loop-claude:7` the `sys.path` insert + +Mid A, hardest first: + +- `skills/larv-review/SKILL.md:86` "Architecture" +- `skills/larv-review/SKILL.md:51` "Round cap" → "Count" +- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES` +- `bin/loop_claude/cycle/archive.py:14` `archive` +- `bin/loop_claude/claude_code/entries.py:28` `written_by_human` +- `bin/rank_todo.py:408` `rank_details` +- `bin/loop_claude/cycle/states.py:69` `transition` +- `bin/loop_claude/loop/reload.py:50` `exec_if_edited` + +Maintainability senior, hardest first: + +- `skills/larv-review/SKILL.md:51` "Round cap", with `:77` "Architecture" +- `bin/loop_claude/cycle/states.py:69` `transition` +- `bin/loop_claude/cycle/judge_reply.py:12` `JUDGE_RULES`, `cycle/judge.py:31` `run_judge` +- `bin/loop_claude/cycle/archive.py:14` `archive` +- `bin/loop_claude/claude_code/entries.py:28` `written_by_human` +- `bin/rank_todo.py:408` `rank_details` +- `bin/loop_claude/loop/reload.py:50` `exec_if_edited` +- `bin/loop_claude/loop/main.py:1` the `--help` docstring + +Inherited architect, would restructure first: + +- `bin/loop_claude/cycle/judge.py:53` `judge_prompt` and `judge_reply.py:12` `JUDGE_RULES`: one home for the judge's prompt +- `bin/` flat folder: shared modules and tests +- `skills/larv-review/SKILL.md:27` §3: bold labels to addressable headings +- `bin/loop_claude/loop/main.py:5` `--help` and `cycle/retry.py:40`: numbers restating constants +- `bin/loop_claude/project/checkout.py:32` `read_utf8` +- `agents/stability-reviewer.md:3`, `agents/systems-architect.md:3`: house style +- `workflow-bench/bench.py:26`: not runnable from the repo diff --git a/docs/decisions.md b/docs/decisions.md index 4de80467..91393e41 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -48,6 +48,7 @@ lilleman decided to ship each of these under the floor on the day listed. Each l - 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. - 2026-10-04, PR #215: 7.38, 6.63, 7.0, 6.88, 6.88. +- 2026-10-08, PR #224: 7.00, 6.50, 7.00, 6.50, 6.75. lilleman shipped it below the ratchet as well: its 20 lines of skill prose left the code as it was, so the fall is the panel's noise between runs, which `todo.md` item 75 addresses. ## loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes diff --git a/todo.md b/todo.md index e8037e58..eaa39d4e 100644 --- a/todo.md +++ b/todo.md @@ -26,7 +26,7 @@ |---|---|---|---|---|---|---|---|---|---| | 79 | 0.1.0 | | **Measure each chunk's reading cost from its transcript as loop-claude archives it, append it to `docs/comprehension-history.md`, and file a plan item naming the most-read places when the trend rises.** | 2 | 4 | 10 | 9 | 1.1, 1.4 | 34.8 | | 72 | 0.1.0 | | **Rerun after a fix only the pass whose finding it answers, over the fix's diff alone; close a pass on a round of only 🟢, and give prose one round.** | 4 | 4 | 10 | 9 | 1.4, 1.5 | 32.3 | -| 75 | 0.1.0 | | **Decide the ratchet by a paired run: Mid A and the inherited architect read the whole project at the default branch and at the PR head, and rule whether it reads better, the same or worse once the PR lands; add seats only until the votes settle.** | 5 | 5 | 10 | 9 | 1.1, 1.4 | 31.6 | +| 75 | 0.1.0 | decision | **Decide the ratchet by a paired run: Mid A and the inherited architect read the whole project at the default branch and at the PR head, and rule whether it reads better, the same or worse once the PR lands; add seats only until the votes settle.** | 5 | 5 | 10 | 9 | 1.1, 1.4 | 31.6 | | 73 | 0.1.0 | | **Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries.** | 3 | 4 | 10 | 8 | 1.4 | 31.4 | | 74 | 0.1.0 | | **Run one security pass per round: the full scan alone when it triggers, else `/security-review`.** | 2 | 1 | 10 | 6 | 1.4 | 29.3 | | 77 | 0.1.0 | | **Measure each project with cheap static metrics — cognitive complexity, how far a change spreads, state shared or mutated across methods — and keep only those the panel's history shows tracking comprehension.** | 3 | 7 | 9 | 8 | 1.1, 1.4 | 29.1 | -- 2.52.0