Merge pull request 'Keep every scoring run in an append-only comprehension history' (#224) from comprehension-history into main
This commit was merged in pull request #224.
This commit is contained in:
+3
-2
@@ -2,8 +2,9 @@
|
||||
|
||||
## 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 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`, `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.
|
||||
@@ -11,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.
|
||||
- `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 `<sha256>.outcomes.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
|
||||
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
# Comprehension history
|
||||
|
||||
## 2026-10-04T18:28:07Z, PR #215 merged at 5baedb5
|
||||
|
||||
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|
||||
|---|---|---|---|---|---|
|
||||
| Mean | 7.38 | 6.63 | 7.00 | 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.00 | 6.75 | 7.00 |
|
||||
|
||||
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"
|
||||
- `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, hardest first:
|
||||
|
||||
- `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, hardest first:
|
||||
|
||||
- `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`
|
||||
|
||||
## 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
|
||||
+1
-2
@@ -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.
|
||||
@@ -50,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
|
||||
|
||||
|
||||
@@ -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 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".
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -85,20 +85,25 @@ 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.
|
||||
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 `## <UTC time, ISO 8601>, <PR or branch> at <commit>` 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 `<seat>, hardest first:` or, for the architect, `<seat>, 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 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:
|
||||
|
||||
- **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. 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.
|
||||
|
||||
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. 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: 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.
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
`Bar = 9`
|
||||
|
||||
`Next ID = 80`
|
||||
`Next ID = 83`
|
||||
|
||||
| Goal | W |
|
||||
|---|---|
|
||||
@@ -26,9 +26,8 @@
|
||||
|---|---|---|---|---|---|---|---|---|---|
|
||||
| 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 |
|
||||
| 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 |
|
||||
@@ -38,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 |
|
||||
@@ -45,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 `<key>/` 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 |
|
||||
|
||||
@@ -55,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 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.
|
||||
|
||||
@@ -63,27 +65,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.
|
||||
|
||||
@@ -115,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.
|
||||
@@ -143,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.
|
||||
@@ -155,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 `<key>/` 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.
|
||||
|
||||
Reference in New Issue
Block a user