32 KiB
todo
Scoring
Score = -R - S/4 + 2*A + 2*G*W
Bar = 9
Next ID = 110
| Goal | W |
|---|---|
| 1 | 1.00 |
| 1.1 | 0.99 |
| 1.2 | 0.98 |
| 1.3 | 0.97 |
| 1.4 | 0.96 |
| 1.5 | 0.95 |
| 2 | 0.90 |
| 3 | 0.85 |
| 4 | 0.80 |
Items
| ID | Release | Exempt | Item | R | S | A | G | Goals | Score |
|---|---|---|---|---|---|---|---|---|---|
| 98 | 0.1.0 | Score R and S from a measurement wherever one exists, and calibrate each guessed score against the finished chunk's measured outcome. | 2 | 5 | 6 | 7 | 1.1, 1.4 | 22.6 | |
| 99 | 0.1.0 | Drop the comprehension panel as a merge gate, and keep recording its scores and the places in the code its seats found hard, for later measurement and for other reviewers and agents to improve. | 4 | 5 | 7 | 7 | 1.1, 1.4, 1.5 | 22.6 | |
| 87 | 0.1.0 | Score every todo.md item's complexity C from 1 to 10, and have rank_todo.py fail on an item without one. |
3 | 4 | 6 | 7 | 1.1, 1.4 | 21.9 | |
| 97 | 0.1.0 | Narrow each review pass to the findings worth a fix, so a pass converges in its second round. | 5 | 4 | 7 | 7 | 1.1, 1.4, 1.5 | 21.9 | |
| 109 | 0.1.0 | Lower the reading cost of the files a chunk reads most before its first commit. | 2 | 4 | 5 | 6 | 1.4 | 18.5 | |
| 93 | 0.2.0 | Let a chunk's worker start below the project's model, once the archive shows chunks on a lower rung took no more review rounds than chunks on the project's model. | 3 | 2 | 6 | 7 | 1.1, 1.4 | 22.4 | |
| 94 | 0.2.0 | Every 20th cycle, have loop-claude measure token spend and routing outcomes, file them here, and interrupt the human only when they call for a routing change. | 3 | 5 | 6 | 7 | 1.1, 1.4 | 21.6 | |
| 88 | 0.2.0 | Define one routing ladder of (model, effort) rungs ordered by a published ranking of their competence, and map a task's R + C to a rung relative to the project's model. | 3 | 4 | 6 | 7 | 1.4 | 21.4 | |
| 90 | 0.2.0 | Route each reviewer by the chunk's R + C, once a replay of past chunks shows the routed reviewer finds the 🔴 and 🟡 findings on record. | 4 | 5 | 6 | 7 | 1.4 | 20.2 | |
| 91 | 0.2.0 | Start each chunk's worker on the rung its item's R + C picks, never below the project's model, and step it one rung up after two unfinished verdicts on one chunk. | 4 | 5 | 6 | 7 | 1.4 | 20.2 | |
| 105 | 0.2.0 | decision | Compare review rounds per pass and reading cost for the five chunks before and after the worker: decision moved the principles out of the worker's context, and file an item if either rose. |
1 | 2 | 5 | 6 | 1.4 | 20.0 |
| 92 | 0.2.0 | Have the worker route each subagent by its task's R + C, and delegate a task only when the worker needs just its conclusion. | 2 | 2 | 5 | 6 | 1.4 | 19.0 | |
| 89 | 0.2.0 | Run the judge on the rung its chunk's R + C picks, once a replay of archived transcripts shows it returns the verdicts on record. | 3 | 4 | 5 | 6 | 1.4 | 17.5 | |
| 1 | 0.3.0 | question | Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume. | 3 | 5 | 8 | 9 | 3, 4 | 27.0 |
| 62 | 0.3.0 | defect | Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name. | 4 | 6 | 6 | 8 | 1.1 | 22.3 |
| 21 | 0.3.0 | Give settings.json's model one writer, and sort its keys. |
3 | 3 | 6 | 7 | 1.3 | 21.8 | |
| 49 | 0.3.0 | principle | Check that AGENTS.md lists exactly the titles of docs/decisions.md. |
1 | 2 | 5 | 6 | 1.3 | 20.1 |
| 59 | 0.3.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.3.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.3.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.3.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 |
| 84 | 0.3.0 | Check, at each release's scoring run, that seats in a paired ruling agree more often than two scoring runs on near-identical code do, as the paired-ruling decision assumes. | 2 | 2 | 4 | 5 | 1.4 | 15.1 | |
| 67 | 0.3.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 |
| 106 | 0.3.0 | Make larv-review's "Do not over-read a clean result" cite a rule that says Renovate or Dependabot owns dependency CVEs, or drop the citation. | 1 | 1 | 3 | 5 | 1.1 | 14.7 | |
| 66 | 0.3.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 |
| 101 | 0.3.0 | principle | Have larv_review/record.py's read_seats take the time, the commit check and the history as inputs, so it parses and decides without effects. |
3 | 3 | 4 | 5 | 1.1 | 14.2 |
| 29 | 0.3.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.3.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.3.0 | Archive each judge reply the loop rejects. | 3 | 4 | 4 | 5 | 3 | 12.5 | |
| 82 | 0.3.0 | principle | Sort AGENTS.md's decision titles and docs/decisions.md's entries by title. |
1 | 2 | 3 | 4 | 1.3 | 12.3 |
| 73 | 0.3.0 | Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries. | 3 | 4 | 4 | 4 | 1.4 | 11.7 | |
| 6 | 0.3.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.3.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 |
| 102 | 0.3.0 | Give loop-claude's retry delay an environment override, so the black-box test stops replacing time.sleep through sitecustomize. |
2 | 2 | 3 | 4 | 1.1 | 11.4 | |
| 50 | 0.3.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.3.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.3.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.3.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 |
| 77 | 0.4.0 | Teach bin/metric-bench Go and TypeScript, rerun it once two projects' comprehension histories name places, and bring into review only a metric that tracks the panel. |
3 | 6 | 6 | 7 | 1.1, 1.4 | 21.4 |
Details
98. Score R and S from a measurement wherever one exists, and calibrate each guessed score against the finished chunk's measured outcome.
A score that can be computed from the code it touches, such as the files an item names, comes from that computation. Otherwise size and risk are estimated from finished work, the way reference-class forecasting estimates a project from earlier projects like it. When a chunk merges, record its measured outcome beside the item's guessed R and S: lines and files changed, review rounds, 🔴 and 🟡 findings, and fixes the code needed later. Show the scorer, when it files an item, the finished items whose guessed scores sat nearest and what they measured. Once enough chunks are recorded, report how far each guess was from its outcome, so a scorer whose S runs high can be corrected. Item 87's C is scored and calibrated the same way.
99. Drop the comprehension panel as a merge gate, and keep recording its scores and the places in the code its seats found hard, for later measurement and for other reviewers and agents to improve.
No published study validates simulated reader panels as a measure of how easy code is to understand, and item 84's test of whether the panel's signal beats its noise has not run. Keep running the panel where it runs, and keep docs/comprehension-history.md: each run's scores, and each place a seat named with what it found hard there. No paired ruling, floor or ratchet blocks a merge. The architecture pass and the stability reviewer read the latest places named, and each chunk that touches one of them improves it or says in its PR summary why not. A worker filing items reads them too.
This revises the comprehension floor: decision and the review: decisions on the paired ruling, the scoring run, suspending and opting out of the comprehension check, and it turns item 62 from a defect into an ordinary item scored by its value. A project's own gate rule, such as the one in fejkdata's AGENTS.md, is that project's to change.
87. Score every todo.md item's complexity C from 1 to 10, and have rank_todo.py fail on an item without one.
C is how hard the change is to get right: novel design, subtle invariants, many interacting parts. It differs from R, the chance the change creates serious bugs, and from S, its size: a huge rename is low C, a ten-line lock fix can be high C. C routes work (items 88–92) and stays out of the Score formula. Add the column to rank_todo.py's valid shape and its --help, backfill every item in this repo, and state in ~/.claude/rules/todo-items.md that C is scored when an item is filed, like R, S, A and G, so no chunk starts on an unscored item.
97. Narrow each review pass to the findings worth a fix, so a pass converges in its second round.
Anthropic's best-practices page: "A reviewer prompted to find gaps will usually report some, even when the work is sound… Chasing every finding leads to over-engineering." 320 of this repo's 876 commits answer a review round.
Stability and product-owner report a defect, a broken requirement from the plan or the goals, or a breach of a technical principle, and nothing else. Prose runs when a chunk changes prose a reader reads, such as docs, comments, help text and the plan, and skips a code-only chunk. The architecture pass and the comprehension check keep their whole-project view, which guards goal 1.1 as a project grows. Each architecture finding names a concrete later change the PR makes harder, such as "a second forge needs edits in four modules", so a finding is checkable and a vague one is dropped.
From its second round on, a pass reviews only how the chunk answered the round before. Each finding should be fixed correctly or dismissed with a good reason, and the reviewer reports only a fix or a dismissal that is plainly wrong or worse than the change it answered. The pass then converges in its second round. This revises the decisions on reruns and the round cap in docs/decisions.md. A fix that opens an untrusted-input boundary still triggers the security pass.
109. Lower the reading cost of the files a chunk reads most before its first commit.
bin/reading-cost found a rise: the last 5 chunks' median is 106562 new input tokens before their first commit, the 5 before them 56802. Files read most in those 5 chunks (opens and searches): CLAUDE.md 17, todo.md 16, docs/decisions.md 12, README.md 10, bin/loop_claude/loop/main.py 9, CHANGELOG.md 8, skills/larv-review/SKILL.md 8, .gitignore 5, bin/loop_claude/test_loop_claude.py 5, AGENTS.md 4. The chunk that ships this item runs reading-cost --reset.
93. Let a chunk's worker start below the project's model, once the archive shows chunks on a lower rung took no more review rounds than chunks on the project's model.
Goal 1.1 asks for proven quality, so stepping down waits on the archive's evidence.
Needs 91.
94. Every 20th cycle, have loop-claude measure token spend and routing outcomes, file them here, and interrupt the human only when they call for a routing change.
Count the cycles across all projects in loop-claude's archive, which holds every project's transcripts on the machine. Measure in code, as bin/reading-cost does, so the check itself costs no model run (goal 1.4): tokens by project, subagent type, rung and tool, and per routed chunk its review rounds and unfinished verdicts. A loop on another project cannot commit here, so it writes the figures to the archive, and this repo's next chunk files or refreshes one plan item from them. The ladder's thresholds and the delegation rule are decisions, so a change to them is the human's. Interrupt when chunks on a rung took more review rounds or unfinished verdicts than chunks on the rung above, or when subagent reports fill more of the worker's peak context than the searches they replaced would have; never twice for the same figures (goal 1.2).
Needs 88, 91, 92.
88. Define one routing ladder of (model, effort) rungs ordered by a published ranking of their competence, and map a task's R + C to a rung relative to the project's model.
One ladder, the same in every project (goal 1.3), read by loop-claude, larv-review and the worker. A rung is a model and an effort; the rungs run from Haiku at low effort to the strongest model at max effort. Order the rungs by a published source, cited in the decision recording the ladder; where no source orders two rungs, such as Sonnet at xhigh against Opus at medium, ask the human. R + C moves a task up or down from the rung holding the project's model at its default effort: a low sum steps down, a high sum steps up, the thresholds set in the decision. S never moves a rung: a huge task with low R and C runs cheap. Leave out the comprehension panel and the security pass, which stay on the project model. Record each route in loop-claude's archive, so the outcomes can tune the thresholds.
Needs 87.
90. Route each reviewer by the chunk's R + C, once a replay of past chunks shows the routed reviewer finds the 🔴 and 🟡 findings on record.
larv-review passes the rung through the Agent tool's model and effort. A reviewer never steps down when the worker has stepped down on the same chunk, so a cheap worker always meets a reviewer on the project model or above.
Needs 88.
91. Start each chunk's worker on the rung its item's R + C picks, never below the project's model, and step it one rung up after two unfinished verdicts on one chunk.
loop-claude reads the top item of the next release with rank_todo.py before starting a chunk's first cycle. Change the rung only when a chunk starts or steps up: every cycle resumes the chunk's session, and a model switch discards its prompt cache. When the worker bundles an item scoring a higher R + C than the one routed on, it says so in its transcript, and the judge's verdict steps the next cycle up.
Needs 88.
105. Compare review rounds per pass and reading cost for the five chunks before and after the worker: decision moved the principles out of the worker's context, and file an item if either rose.
The worker: decision is valid while review rounds per pass do not rise. Count the rounds from each PR's Answer <pass> round <n>: commits, and take reading cost from docs/reading-cost.md. Run it once five chunks have merged after the one that recorded the decision.
92. Have the worker route each subagent by its task's R + C, and delegate a task only when the worker needs just its conclusion.
State in CLAUDE.md when the worker delegates: a search or read that spans many files whose conclusion is all it needs, and work independent enough to run in parallel. Edits and anything the worker must verify line by line stay in the main thread, since a delegated diff is read again to check it. The worker scores R and C for each delegated task as it would for an item, and passes the rung's model and effort. In item 73's measurement, reports cost a median 8% of the worker's peak context, and sed -n and grep output made up 41% of its Bash results, so delegating searches saves the most context. The Agent tool sets a subagent's effort only when instructions ask, so the rule names both model and effort.
Needs 88.
89. Run the judge on the rung its chunk's R + C picks, once a replay of archived transcripts shows it returns the verdicts on record.
loop-claude starts the judge itself (bin/loop_claude/cycle/judge.py), so it routes without any skill change. Replay the judge on archived cycles at the candidate rung, and switch only when its interrupts and verdicts match those on record.
Needs 88.
1. Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.
It lives under ~/.claude, which .gitignore keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read.
2026-10-02, the human: ai-sandbox is the VM loop-claude will run on, hosted on the server bender. bender-infra, the infrastructure-as-code project that manages bender, will back up ai-sandbox's data volume once ai-sandbox is rebuilt. The item waits for the human to say the rebuild has landed; do not remind them. Before writing the README line, check that ~/.claude lives on that volume and that the backup is private and encrypted at rest.
The README line covers the bench's transcripts in workflow-bench/logs/ too (goal 3).
62. Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name.
Raised by the principles audit of PR #215 against KISS, in principles/technical-principles.md, and goal 1.1. The comprehension floor: entry in docs/decisions.md lists each decision to ship under it.
PR #234's last scoring run, at b2a277b, put Locality and Self-sufficiency at 6.50 and the overall at 6.75. Every seat named larv-review's rules, which cannot be followed without skills/larv-review/SKILL.md §3 open beside the code: "Round cap", "Re-entry", "Fresh" and "Suspended" point at each other; bin/larv_review/record.py record_ruling branches on split, worse, fell and a scores file, with its terms defined only in larv-review --help and the skill; the pass list lives in both bin/larv_review/rounds.py PASSES and the skill's table, which also counts the auto-reviewer; bin/comprehension_history.py is reader, writer and seat registry in one, and parses the history by regex for two tools. Also named: the judge's prompt assembled from cycle/judge.py, cycle/prompts.py and project/records.py; git run four ways, in bin/larv_review/git.py, bin/metric_bench/main.py, bin/reading_cost/main.py and bin/loop_claude/effects.py; SeatsFile.read, a field named like a method.
21. Give settings.json's model one writer, and sort its keys.
Claude Code rewrites "model" in this tracked file whenever a model is picked, so one /model dirties the checkout and overrides the synced choice.
Every write Claude Code makes to the file rewrites "model", claude plugin install included: Claude Code 2.1.288 turned "opus" into "opus[1m]". Each write also puts the keys back in Claude Code's own order, so a sorted file stays sorted only until the next write.
49. Check that AGENTS.md lists exactly the titles of docs/decisions.md.
DRY, in principles/technical-principles.md: the list is copied by hand, and sessions work from the copy.
59. Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end.
Raised by the product-owner review of PR #211. The resumed worker gets the judge's quote of the work remaining, but a worker that still thinks the chunk done can answer each cycle the same way, and each cycle costs a worker and a judge run (goal 1.4).
12. Run the test suite in CI on every PR, or record in docs/decisions.md why the local run is enough.
The repo has no CI, so larv-review's gate is the local run, and larv-review's Gate skips even that when the last stability round left the suite green: an unattended chunk can merge on the worker's own word.
When CI runs a rule check, such as one of bin/rule-hook's, let <!-- rule-override <rule>: <reason> --> in the PR body override it.
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.
bin/reading-cost keys the archive by the main checkout, the parent of git's common dir, since it runs in a chunk's worktree; loop-claude keys it by --show-toplevel, so a loop started inside a worktree archives where reading-cost never looks. Derive both keys one way.
84. Check, at each release's scoring run, that seats in a paired ruling agree more often than two scoring runs on near-identical code do, as the paired-ruling decision assumes.
Raised by the principles audit of PR #228: the review: a paired ruling … entry in docs/decisions.md is valid only while that holds, and docs/comprehension-history.md keeps every vote, yet nothing reads the agreement rate. Scoring runs on near-identical code are rare now, so compare with those already in the history, such as PR #224's and PR #225's, or make a second run for the check.
67. Point stability-reviewer at the technical principles in place of its own restatement of them.
DRY, in principles/technical-principles.md: agents/stability-reviewer.md restates principles in its own words, and the copy has drifted: it asks for "properly randomised UUIDs" where the principle requires UUID v7.
106. Make larv-review's "Do not over-read a clean result" cite a rule that says Renovate or Dependabot owns dependency CVEs, or drop the citation.
Found by the goals audit of PR #245. skills/larv-review/SKILL.md §3 → "Security" says Renovate or Dependabot owns dependency CVEs per CLAUDE.md → "Working with the codebase", which says nothing about either.
66. Hold systems-architect's method thresholds only while the comprehension panel finds the flagged code hard.
KISS, in principles/technical-principles.md, which keeps a limit only while readers find the flagged code hard. agents/systems-architect.md makes cyclomatic 7 and 24 lines gate rules from the first commit, a 🔴 unless a reason is stated.
101. Have larv_review/record.py's read_seats take the time, the commit check and the history as inputs, so it parses and decides without effects.
Found by the principles audit of PR #242, against "Functional core, imperative shell" (principles/technical-principles.md). bin/larv_review/record.py:94 reads time.time(), then checks git (:97, commit_exists) and the history file (:100) inside the function that parses the seats file and decides. A test cannot fix the heading's time, and every test of read_seats touches the real checkout.
29. Make the contributor a standing member of every project's audience, unless its ## Audience says maintainability does not matter.
State that in ~/.claude/rules/goals-and-audience.md → "Goals and Audience", and have larv-review's comprehension floor name the contributor as the reader it serves. The floor's block then applies to a project whose audience includes the contributor, and a project that drops them skips it.
68. Test workflow-bench/compare.py's blinding and bench.py's run plan.
"Most, if not all, code should have automated tests", in principles/technical-principles.md: compare.blind() keeps the comparison blind, and a version name it misses invalidates the bench silently.
65. Archive each judge reply the loop rejects.
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.
73. Have each reviewer write its full report to a file and return the worker only its findings' one-line summaries.
2026-10-08, lilleman: rescored from A10/G8 to A4/G4 on the measurement below, so other items that lower token use go first.
Measured over the 68 transcripts in loop-claude's archive on 2026-10-08, matching each Agent call to its tool result and to any <task-notification> naming its tool-use id. No report reached the worker twice: 813 arrived once as the hand-back, and 363 once as a notification after Claude Code ran the agent in the background. Reports took a median 19k tokens per chunk, 8% of the worker's peak context (24% at most). Lines carrying a severity mark are 9–24% of a reviewer's report, and the worker would still open the file for each 🔴 or 🟡 it fixes. A third of the report volume is the comprehension seats', whose votes and places the worker copies into the history. File reads fill more of the worker's context: sed -n output is 30% of its Bash results and grep output 11%, which reading-cost targets.
The reports would live in the session's scratchpad, such as <scratchpad>/larv-review/prose-round-1.md, so no project's checkout sees them. A later round gets the path of that pass's earlier report in place of the findings pasted in. How a report reaches the file:
- Write access. Grant each reviewer Write. No reviewer under
agents/holds it today, an agent's tool list cannot confine Write to one folder, and~/.claude/CLAUDE.md→ "Working with the codebase" denies edits to a reviewer that only reads. Check whether a PreToolUse hook can tell a subagent's call from the worker's and deny a Write outside the scratchpad. - A wrapper. A general-purpose subagent launches the reviewer, saves the report and returns only the summary lines. Claude Code's documentation says a subagent cannot start another; drop this route unless a test shows one can.
This risks goal 1.1: a worker fixing from a one-line summary can miss context it needs.
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.
51. Hand loop-claude's terminal output to an injected effect, so no storage or retry function prints.
"Functional core, imperative shell", in principles/technical-principles.md: archive, trust, retried, the worker, interrupt and model_choice print to stderr themselves, and the tests swap the global stream.
102. Give loop-claude's retry delay an environment override, so the black-box test stops replacing time.sleep through sitecustomize.
Found by the principles audit of PR #242. bin/loop_claude/test_black_box.py:113-114 swaps the global time.sleep, the shape "Functional core, imperative shell" bans. An override of the delay lets the test run the code as production runs it.
50. Grant the bench's runs only the tools a review needs, in place of skipping every permission.
"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. bin/reading-cost takes a chunk's id from the folder's first 12 characters and skips a chunk whose id docs/reading-cost.md holds, so give it a way to match a figure written under the old name.
52. Record why this checkout lives in Claude Code's own directory, or move it out and link it in.
"One owner per value" and "Prefer the vendor-neutral option", in principles/technical-principles.md: git, Claude Code and loop-claude all write ~/.claude, kept apart only by the .gitignore allowlist, and the repo's records live in a vendor directory.
77. Teach bin/metric-bench Go and TypeScript, rerun it once two projects' comprehension histories name places, and bring into review only a metric that tracks the panel.
2026-10-08, lilleman: no metric enters review until a rerun on more data shows it tracking the panel.
Before the rerun, set the AUC and top-k lift over chance that count as tracking, from a published threshold, so the rerun ends in a decision. The rerun needs places from a project in Go or TypeScript, the languages most other projects use, so the bench first measures those languages, run through each project's own tooling. Function and file length stay warnings to look into, never limits: a plain long function can be simple, and a hard one may need five-line pieces.
On 2026-10-08 only this repo's history named places: five scoring runs, all that day. The medians:
| Metric | AUC | Top k |
|---|---|---|
| Cognitive complexity | 0.66 | 0.26 |
| Length | 0.74 | 0.18 |
| Shared state | constant | constant |
| Change spread | 0.67 | 0.18 |
AUC is 0.5 for a coin toss, and top k scores 0.10 by chance. Shared state cannot be judged here: every unit in bin/ scores 0 on it. Every run's first place was a section of skills/larv-review/SKILL.md, which no code metric sees.
On 2026-10-09 a question bench asked a headless claude, allowed only Read, Grep and Glob, three questions a script answers from the syntax tree: which units call a unit, which units it calls, and which test files refer to it. It asked them about every unit the history names whose name is unique, plus as many units the history does not name. Five of the history's six scoring runs named such a unit. The tool is in commit 083cc78; it was deleted after the run.
Claude's misses ranked the named units at a coin toss. Top k scores 0.50 by chance on these units:
| Metric | AUC | Top k |
|---|---|---|
| Question misses | 0.49 | 0.50 |
| Cognitive complexity | 0.66 | 0.59 |
| Length | 0.75 | 0.69 |
| Change spread | 0.57 | 0.54 |
Claude's answers overlapped the truth by a median Jaccard index of 0.76. A run took in 62,643 new input tokens and cost $0.70; it did not record which model answered. Grep answers these questions whatever the code's shape, so no question enters review; a new question bench would need questions that take understanding the code, not finding it.