Files
claude-config/todo.md
T

54 KiB

todo

Scoring

Score = 100 * V / (2**S + 8)

Bar = 0.1

Next ID = 208

Items

ID Release Blocked by Exempt Item L E I R S Moves Score
122 0.4.0 Assemble the judge's prompt in bin/loop_claude/cycle/judge.py, importing only wording the worker also sees, and call the worker "the worker" in it. 2 2 3 5 3 code health by 5, 1.4 by 5 27.4
207 0.4.0 Have chunk-preflight and larv-review's scoring-run trigger decide "work has landed towards the next release" in one place. 2 2 3 5 3 code health by 5 22.5
130 0.4.0 Move the vote counting out of bin/larv_review/ruling.py's votes, so reading a votes file decides nothing. 2 1 2 3 3 code health by 4, 1.4 by 4 21.9
170 0.4.0 decision Re-tune WORKER_STEPS and REVIEW_STEPS once 10 chunks have shipped under them, from how well L, E and I order their review rounds and 🔴 findings. 2 2 3 5 2 1.1 by 3, 1.4 by 5 10.9
154 0.4.0 defect Have bin/shell_command.py's segments keep a command's words together across a redirect, so git > out commit reads as one git commit. 1 1 3 3 2 1.1 by 6 8.4
186 0.4.0 Point every file a session parks outside its checkout, such as the comprehension panel's detached worktree and a build probe's output, at a folder a headless session has, since loop-claude's sessions have no scratchpad. 1 2 2 3 2 1.1 by 3, 1.5 by 2 6.8
198 0.4.0 decision Count, per finished chunk, the findings that arose from misreading code that had already shipped, so code health's counter-signal shows. 3 2 2 5 5 code health by 3, 1.1 by 2 6.2
59 0.4.0 Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end. 2 1 3 4 3 1.4 by 6 6.0
167 0.4.0 Refuse a /security-review or /claude-security Skill call below the project's rung, as rule-hook refuses such an Agent call. 3 2 3 6 2 1.1 by 4 5.6
6 0.4.0 decision Move what loop-claude writes out of ~/.claude.json, and ask the human about each write that must stay. 3 3 3 7 3 1.1 by 5 5.3
66 0.4.0 principle Hold systems-architect's method thresholds only while the comprehension panel finds the flagged code hard. 2 2 3 5 3 1.1 by 5 5.3
1 0.5.0 question Say in README → Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume. 1 2 1 2 1 0.0
204 0.5.0 Read the status line's branch through git_repo.git, so no tool in bin/ runs git outside it. 1 2 1 2 1 code health by 3 21.6
125 0.5.0 decision Give "record", "outcome" and "places" one meaning each across bin/, and rename bin/larv_review/git.py by what it holds. 3 1 3 5 5 code health by 9, 1.4 by 9 19.7
172 0.5.0 Name the project's rung project across bin/loop_claude, in place of anchor, as bin/model_routing/ladder.py names it. 2 1 3 4 3 code health by 3, 1.4 by 3 16.5
190 0.5.0 Rewrite the docs/decisions.md entries todo.md: one table …, loop-claude: a judge decides … and loop-claude: before it opens claude … as the current state, so a reader no longer replays superseded paragraphs to learn what holds. 2 2 1 3 3 code health by 3, 1.4 by 2 15.5
82 0.5.0 principle Sort AGENTS.md's decision titles and docs/decisions.md's entries by title. 2 2 1 3 4 code health by 4, 1.4 by 4 14.6
137 0.5.0 Archive a chunk's route as a record loop-claude reads back field by field, in place of the Worker: prose ROUTED parses, and name stepped and the judge's bundled by what they do. 4 2 3 7 4 code health by 4, 1.4 by 4 14.6
205 0.5.0 Rewrite the comprehension-floor decision's 2026-10-15 paragraph as the rule that holds, so it no longer scores G 9 after PR #283 replaced G. 1 2 1 2 1 code health by 2 14.4
123 0.5.0 Have bin/comprehension_history.py parse each history entry once into seats, votes and places, so latest_places, worse_places and worse_votes neither depend on table order nor split a label to find a seat. 2 1 2 3 5 code health by 5, 1.4 by 5 11.0
124 0.5.0 decision Group the shared modules at bin/'s root into packages named by purpose, so the root holds only launchers and stand-alone tools. 4 1 3 6 6 code health by 9, 1.4 by 9 11.0
132 0.5.0 Lift each dimension still under the comprehension floor after release 0.2.0's scoring run, at the places that run names. 3 2 2 5 5 code health by 5, 1.4 by 5 11.0
139 0.5.0 Split bin/routing_figures/measure.py by concern, and keep the figures' measured cycle and each raised call as fields loop-claude reads back, not as the prose it renders. 3 1 2 4 5 code health by 5, 1.4 by 5 11.0
158 0.5.0 decision Measure the fixed cost of a chunk from loop-claude's archive, in tokens and hours against its items' S, and set F in Score = 100 * V / (2**S + F) to it. 2 2 1 3 3 1.1 by 5, 1.4 by 5 10.3
49 0.5.0 principle Check that AGENTS.md lists exactly the titles of docs/decisions.md. 1 1 1 1 2 1.1 by 6 8.4
105 0.5.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 1 2 2 1.4 by 6 8.0
162 0.5.0 owner Script each step that 0.2.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release. 2 2 1 3 3 1.4 by 4, 1.5 by 4 7.8
175 0.5.0 Compare the first five chunks loop-claude starts with chunk-preflight against the five before them, and file an item where the preflight did not pay off. 1 2 1 2 2 1.4 by 3, 1.5 by 3 7.8
183 0.5.0 Merge the two 2026-10-13 paragraphs of docs/decisions.md → loop-claude: a judge decides each interrupt … into one. 1 1 1 1 1 code health by 1 7.2
184 0.5.0 Rewrap the lines of loop-claude --help that run past the column the rest of it wraps at. 1 1 1 1 1 code health by 1 7.2
116 0.5.0 Report L by the share of chunks with a 🔴, once 10 chunks that each shipped one item record finding counts and most record no 🔴. 1 1 2 2 2 1.1 by 5 7.0
121 0.5.0 Check that bin/round_titles.py's PASSES lists exactly the passes of larv-review §3's table. 1 1 1 1 2 1.1 by 5 7.0
203 0.5.0 Make bin/repo_checks fail on a todo.md citation of a docs/decisions.md title that no heading holds. 1 1 1 1 2 1.1 by 5 7.0
113 0.5.0 Compute an item's S from the code it names, where it names any, and show it beside the finished items score-outcomes lists. 3 2 2 5 4 1.1 by 5, 1.4 by 5 6.8
112 0.5.0 Count an item as shipped only where its chunk built it, so an item a chunk dropped from the plan gets no outcome. 3 2 2 5 3 1.1 by 6 6.3
81 0.5.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. 1 2 1 2 2 1.1 by 4 5.6
102 0.5.0 Give loop-claude's retry delay an environment override, so the black-box test stops replacing time.sleep through sitecustomize. 1 1 2 2 2 1.1 by 4 5.6
173 0.5.0 Have rule-hook's todo-rank-check run a worktree's own bin/rank_todo.py when the worktree is of this repo, so a branch that changes todo.md's shape commits without an override. 2 1 3 4 2 1.1 by 2, 1.4 by 2 5.5
101 0.5.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. 2 1 2 3 3 1.1 by 5 5.3
110 0.5.0 Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed E. 3 2 2 5 5 1.1 by 6, 1.4 by 6 4.9
12 0.5.0 Run the test suite in CI on every PR, or record in docs/decisions.md why the local run is enough. 3 2 1 4 4 1.1 by 6 4.2
135 0.5.0 Fingerprint only the modules loop-claude imports, so editing another tool's code no longer reloads a running loop. 2 2 3 5 3 1.1 by 4 4.2
171 0.5.0 decision Group the routing figures' review rounds by the reviewers' rung as well as the worker's, so a call blames a rung only for rounds its own reviews raised. 3 2 2 5 4 1.2 by 3, 1.4 by 3 4.0
196 0.5.0 decision Replay the architecture, principles, overrides and product-owner passes with review-replay on Opus 5.5 projects, record each run in the review-replay routing decision, and add any rung a run qualifies to REPLAYED. 2 2 3 5 2 1.4 by 3 4.0
68 0.5.0 principle Test workflow-bench/compare.py's blinding and bench.py's run plan. 2 1 1 2 4 1.1 by 5 3.5
181 0.5.0 principle Have the test of a quoted answer's step-up assert the stepped rung's facts as literals, not through prompts.rungs_held. 1 1 1 1 1 1.1 by 2 3.4
192 0.5.0 principle Sort .gitignore's allowlist block, from !.claude/ to !workflow-bench/test_review_git.py, by code point, so rule-hook's ignorefile-sorted checks later edits to it again. 1 1 1 1 1 1.1 by 2 3.4
193 0.5.0 Narrow readme_goals's mark to Mark by a typed lookup in place of typing.cast, so a mark added to the regex but not the lookup fails at run time, and one added to the lookup but not Mark fails mypy. 1 1 3 3 1 1.1 by 2 3.4
194 0.5.0 Make test_waits_out_a_usage_limit_which_ends_a_run_of_failures expect a usage-limit wait independent of the wall-clock time that passes during the run. 1 1 1 1 1 1.1 by 2 3.4
202 0.5.0 Add CLAUDE.md → "Prose"'s rule "Write negations as people say them", with its examples, to skills/larv-review/standards/prose.md, so the prose reviewer holds prose to it. 1 2 2 3 1 1.1 by 2 3.4
77 0.5.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. 4 2 1 5 6 1.1 by 7, 1.4 by 7 3.2
4 0.5.0 Name each chunk's archive folder by the chunk's start time, so <key>/ lists chunks in the order they ran. 3 2 3 6 3 1.1 by 3 3.2
187 0.5.0 Count the tokens a worker spends reading reviewers' reports, so goal 1.4's signal shows whether report files lowered what a review costs the worker's context. 2 2 1 3 3 1.4 by 3 3.0
149 0.5.0 decision Fill each release by priority up to a capacity it states, in place of the bar, and move what does not fit to a later release. 4 2 3 7 5 1.1 by 7 3.0
165 0.5.0 Make this repo's tests assert the facts a prompt or help text carries in place of its sentences, and drop the tests that scan source or assert a constant. 3 2 1 4 5 1.1 by 4, 1.4 by 3 2.9
151 0.5.0 decision Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes. 3 2 2 5 5 1.2 by 7 2.9
156 0.5.0 decision Drop rank_todo.py's ranking of an old-shape table once no project under ~/code holds one. 2 1 3 4 4 1.1 by 4 2.8
201 0.5.0 owner Save the human's tmux setups and restore them after a reboot, so work is up and running again quickly. 3 2 1 4 4 1.5 by 4 2.6
5 0.5.0 decision Key a project on its checkout's full path, and refuse to start while another session uses that key. 4 2 3 7 5 1.1 by 6 2.5
155 0.5.0 Lower the reading cost of the files a chunk reads most before its first commit. 3 2 2 5 5 1.4 by 6 2.4
51 0.5.0 principle Hand loop-claude's terminal output to an injected effect, so no storage or retry function prints. 2 1 3 4 5 1.1 by 5 2.1
169 0.5.0 Have rule-hook's todo-rank-check catch a todo.md that the same Bash call edits and then commits. 3 1 3 5 3 1.1 by 2 2.1
174 0.5.0 In a chunk no item routed, ask the worker to name each todo.md item it takes, with its L and E + I, so loop-claude can route on an item it takes in. 1 2 3 4 2 1.1 by 1 1.4
197 0.5.0 Let the human edit what they type at loop-claude's terminal questions with the arrow keys, so Left moves the cursor in place of printing ^[[D. 2 2 3 5 2 1.5 by 1 1.3
52 0.5.0 principle Record why this checkout lives in Claude Code's own directory, or move it out and link it in. 4 3 4 9 6 1.1 by 4 0.9

Details

122. Assemble the judge's prompt in bin/loop_claude/cycle/judge.py, importing only wording the worker also sees, and call the worker "the worker" in it.

All four seats of PR #257's scoring run named bin/loop_claude/cycle/judge.py:16 JUDGE_RULES. The prompt is spliced from constants in cycle/prompts.py (ANSWER_DESTINATIONS, ANSWERS_RECORDED, either) and project/records.py (HUMAN_RULE_NAMES), so a reader rebuilds it from three files. It says "the agent" where the code and CLAUDE.md → "Vocabulary" say "worker". Wording the worker also sees, such as ANSWER_DESTINATIONS in prompts.resumed, may stay in cycle/prompts.py. Make JUDGE_RULES easier to read.

207. Have chunk-preflight and larv-review's scoring-run trigger decide "work has landed towards the next release" in one place.

bin/chunk_pick.py:97 standing and bin/larv_review/plan.py's work_landed, with committed_since_release in bin/larv_review/git.py, both decide whether work has landed towards the next release, and can disagree. standing takes its count from unreleased_changes, which counts the entries under CHANGELOG.md → ## Unreleased first and falls back to the commits since the tag. work_landed counts only the commits since the newest v* tag. Take a project whose ## Unreleased is empty but which has commits since the tag. If a chunk moves the next release's last items to a later release without shipping them, the scoring-run trigger calls a run, while chunk-preflight calls the release unplanned. Principles reviews of PR #343 (item 126) raised it. So did seats of PR #324's scoring run, who named both standing and scoring_run_due as hard places: "next release" is computed two ways. Make standing and the trigger share one function for it, or say in a decision why they differ, and make standing and scoring_run_due easier to read.

130. Move the vote counting out of bin/larv_review/ruling.py's votes, so reading a votes file decides nothing.

Mid A of PR #257's scoring run named bin/larv_review/ruling.py:8 votes. It calls counted while validating, to reject the maintainability senior's and Junior A's lines when Mid A and the inherited architect already agree overall: a ruling hidden in a parser. The counting rule is spread over seats.py, ruling.py, comprehension_history.place_dimensions and the help. Make votes easier to read.

170. Re-tune WORKER_STEPS and REVIEW_STEPS once 10 chunks have shipped under them, from how well L, E and I order their review rounds and 🔴 findings.

docs/decisions.md → routing: one ladder… calls the steps lilleman approved on 2026-10-16 a first guess. Once 10 chunks that each shipped one item scored with L, E and I have merged, read score-outcomes' rank correlations for L, E and I and the routed-chunks table of routing-figures.md, and propose new steps to lilleman, whose call they are.

154. Have bin/shell_command.py's segments keep a command's words together across a redirect, so git > out commit reads as one git commit.

segments('echo hi > f arg') returns arg as a command of its own, and segments('git > /tmp/x commit -m hi') returns git and commit -m hi apart, though the shell runs one git commit. rule-hook's commit rules read the commands segments finds, so such a commit escapes commit-one-line, no-ai-attribution, round-title-counts and todo-rank-check. The comprehension seats' scoring run in PR #280 found it.

186. Point every file a session parks outside its checkout, such as the comprehension panel's detached worktree and a build probe's output, at a folder a headless session has, since loop-claude's sessions have no scratchpad.

skills/comprehension-panel/SKILL.md puts the base version's detached worktree "in your scratchpad", and CLAUDE.md → "Working with the codebase" lets a build-probing subagent write "only to the session scratchpad". A probe on 2026-10-18 found no scratchpad_dir in a headless claude -p session's hook input, and neither the session nor its subagent knew a scratchpad path. larv-review now parks its reports and votes file in the chunk's review folder under ~/.local/state/larv-review/, per docs/decisions.md → review: each reviewer under agents/ writes its full report into the chunk's review folder. Found by the architecture review of PR #310.

198. Count, per finished chunk, the findings that arose from misreading code that had already shipped, so code health's counter-signal shows.

Code health's counter-signal (CLAUDE.md → "Shared goal") has no count, since no tool records why a finding arose. Have each reviewer tag a finding that arose because the implementer misread code that had already shipped, and have score-outcomes count the tagged findings per finished chunk. Item 110's later fixes stand for the defects that keep reappearing.

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).

167. Refuse a /security-review or /claude-security Skill call below the project's rung, as rule-hook refuses such an Agent call.

rule-hook checks Agent calls (item 163) but no Skill calls. A worker that invokes /security-review in its own context, instead of in a subagent, runs the pass on its own rung, and nothing blocks it. Check Skill calls too: breaches_of in bin/rule_hook/main.py takes a Skill call whose skill is security-review or claude-security as a review launch, and settings.json's PreToolUse matcher gains Skill. Found by the systems-architect's review of PR #295.

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.

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.

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).

204. Read the status line's branch through git_repo.git, so no tool in bin/ runs git outside it.

bin/statusline.py's current_branch runs git with its own contract: errors replaced, stderr dropped, no Failure. Every other tool in bin/ runs git through bin/git_repo.py's git; workflow-bench/ runs git its own way on purpose. Keep the status line showing no branch where git fails.

125. Give "record", "outcome" and "places" one meaning each across bin/, and rename bin/larv_review/git.py by what it holds.

Shape is the lowest dimension, so this item moves code health by 9, per docs/decisions.md → larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything.

The inherited architect of PR #257's scoring run named bin/reading_cost/measure.py:16 Reading and bin/larv_review/git.py:6 history_changes, and found each word used for several concepts. "Record": the history writer larv_review/record.py, the judge's loop_claude/project/records.py, and reading_cost/figures.py's RECORD. "Outcome": transcript_archive/outcomes.py, score_outcomes/outcomes.py Outcome and rule_hook/rules.py Outcome. "Places": comprehension_history.Place and Reading.places. larv_review/git.py holds history logic, not a git runner. Make Reading and history_changes easier to read.

172. Name the project's rung project across bin/loop_claude, in place of anchor, as bin/model_routing/ladder.py names it.

The architecture pass of PR #296 found one rung under two names: bin/model_routing/ladder.py calls it project, while bin/loop_claude/routing.py, cycle/prompts.py, cycle/run.py's Cycle.anchor and loop/main.py call it anchor, and gloss it as "anchor, the project's rung" in docstring after docstring. A reader works out that the two are one rung each time. Make bin/loop_claude/routing.py's first_route easier to read.

190. Rewrite the docs/decisions.md entries todo.md: one table …, loop-claude: a judge decides … and loop-claude: before it opens claude … as the current state, so a reader no longer replays superseded paragraphs to learn what holds.

Found by the prose review of PR #312, which judged both entries to read as amendment logs, each paragraph correcting an earlier one. The rewrite keeps each paragraph's date and reason only where it still explains a rule that holds, and drops superseded states. It covers items 157 and 183, which reshape paragraphs of the same two entries. The prose review of PR #335 found the trust entry, loop-claude: before it opens claude …, made of four dated paragraphs, and a 2026-10-21 paragraph on item 120 that records a move which changed no rule; drop that paragraph.

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.

137. Archive a chunk's route as a record loop-claude reads back field by field, in place of the Worker: prose ROUTED parses, and name stepped and the judge's bundled by what they do.

PR #262's paired ruling found the project reads worse: a rerun resumes on its rung only by parsing Rung.__str__'s and Route.__str__'s wording back with bin/loop_claude/routing.py's ROUTED, a string contract over four files, where a reword silently routes afresh. Write the route as a structured line, such as JSON after Worker:, that transcript_archive reads into fields. stepped both raises to a bundled item's rung and counts towards a one-rung step; Reply.bundled names neither L nor highest. Make bin/loop_claude/loop/main.py's run_loop easier to read where it threads the route. The structured line must keep the escalation's mark, archived today as escalated at transcript entry N: without it, a trigger that already stepped the worker could step it again.

205. Rewrite the comprehension-floor decision's 2026-10-15 paragraph as the rule that holds, so it no longer scores G 9 after PR #283 replaced G.

docs/decisions.md → larv-review: within a chunk lifting a project towards the comprehension floor, …: its 2026-10-15 paragraph says such an item scores G 9 and that PR #283 will replace G; the next paragraph says PR #283 did. A reader replays both to learn the rule. Item 190 rewrites two other entries this way.

123. Have bin/comprehension_history.py parse each history entry once into seats, votes and places, so latest_places, worse_places and worse_votes neither depend on table order nor split a label to find a seat.

Three seats of PR #257's scoring run named bin/comprehension_history.py:106 latest_places; the logic it rests on is :114 worse_places and :126 worse_votes. They regex the markdown the module writes. worse_votes keeps a seat's first row through setdefault, because the votes table comes first. worse_places recovers the seat with label.split(",")[0]. Entry still holds scoring seats' places for rulings recorded before PR #255. Make these functions easier to read.

124. Group the shared modules at bin/'s root into packages named by purpose, so the root holds only launchers and stand-alone tools.

Shape is the lowest dimension, so this item moves code health by 9, per docs/decisions.md → larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything.

PR #257's scoring run put Shape at 6.25, the lowest dimension. bin/ holds about 30 entries: 6 launchers, 6 tool packages, 3 shared packages and 15 root modules. Two root modules are tools (rank_todo.py, statusline.py) and 13 are shared libraries, and nothing in the layout tells them apart; only README's import-root paragraph maps them. Candidate packages: git running and parsing, the todo table with rank_todo.py's formula language and goal weighing, and the comprehension history with round titles. rank_todo.py keeps its path, which every project's rules name. The .gitignore allowlist and README follow the move.

132. Lift each dimension still under the comprehension floor after release 0.2.0's scoring run, at the places that run names.

Replaces item 62, which release 0.3.0's items split. PR #257's scoring run put Locality and Self-sufficiency at 6.63, Shape at 6.25 and the overall at 6.50, against the floor of 7.0 in docs/decisions.md → comprehension floor: …. Split this into items, one per place, once 0.3.0's scoring run has named them.

139. Split bin/routing_figures/measure.py by concern, and keep the figures' measured cycle and each raised call as fields loop-claude reads back, not as the prose it renders.

The paired ruling on PR #265 ruled worse. Make these places easier to read: measure.py measured and render (token attribution, subagent rungs, round counting, calls and rendering in one module; measured, Measured and measure_archive side by side); calls with archive.py raised and last_measured, where a call's identity is its sentence and the measured cycle is read back from rendered markdown; and Reports.searches, which holds characters, not searches.

158. Measure the fixed cost of a chunk from loop-claude's archive, in tokens and hours against its items' S, and set F in Score = 100 * V / (2**S + F) to it.

F is 8 until then, about one S 3 change, lilleman's call in PR #283. A chunk costs more than its size: the worker reads about 130k tokens before its first commit whatever the item, and every chunk takes its review passes. Fit cost against 2**S from the finished chunks score-outcomes measures, in the same units 2**S counts, and say in docs/decisions.md → todo.md: … how far the fit holds. A chunk bundling tiny items shares F between them.

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.

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.

162. Script each step that 0.2.0's chunks repeated by hand and a program can compute, filing one item per step, and file this audit again for the next release.

lilleman asked, on 2026-10-16, for a standing audit each release, so the loop keeps moving work a program does as well from the model to scripts (goals 1.4 and 1.5). Item 161 scripts the steps found before the first edit in item 140's chunk. This audit reads the archived transcripts of the chunks that shipped release 0.2.0 for every step repeated by hand across chunks whose answer a program computes the same way, before, during and after review: a lookup, a check, a prompt assembled for a reviewer, a cleanup. File one item per such step, with the time and tokens it cost, into the next release with items left. Leave a step that needs judgement with the model.

The chunk that ships this item files a copy of it in the release after the one it audits, rewording "0.2.0" to the release that copy audits, and marks the copy owner, so the audit recurs each release until lilleman drops it.

175. Compare the first five chunks loop-claude starts with chunk-preflight against the five before them, and file an item where the preflight did not pay off.

Item 161 put chunk-preflight's facts into a fresh worker's prompt, so the worker no longer finds them itself. Before that, in item 140's chunk, the worker spent 5 min 46 s of 30 min, 16 of its 68 messages and 226k of its 491k fresh tokens before its first edit, through 12 Bash and 5 Read calls. Measure those figures from loop-claude's archive, as medians over the first five chunks that started with the preflight and the five before them: one chunk is too noisy a baseline, as docs/decisions.md → reading cost: a rise is … records. Measure the counter-signals beside them: goal 1.4's review rounds and unfinished verdicts, and goal 1.5's 🔴 findings, per chunk, since a worker that reads less may start sooner and need more rounds or let more defects through. Where time or tokens did not fall, or a counter-signal rose, file an item naming the facts the workers still found by hand, or what the preflight got wrong.

183. Merge the two 2026-10-13 paragraphs of docs/decisions.md → loop-claude: a judge decides each interrupt … into one.

They say the same thing for ~/.claude/rules/ (item 95) and ~/.claude/skills/larv-review/standards/ (item 104), and the entry grows a paragraph per chunk. Raised by the prose review of PR #308.

184. Rewrap the lines of loop-claude --help that run past the column the rest of it wraps at.

In bin/loop_claude/loop/main.py's docstring, the line holding "of one PR, is finished" and the one ending "Each of these opens with its UTC time." run to 107 and 159 columns. Raised by the prose review of PR #308.

116. Report L by the share of chunks with a 🔴, once 10 chunks that each shipped one item record finding counts and most record no 🔴.

score-outcomes reports the median 🔴 count at each guessed R, and how well L orders chunks by 🔴 findings; the part of R a 🔴 tests is L. Where most chunks have no 🔴, every median reads 0 and the rank correlation rests on the few that have one, which tells a scorer little. No round title held counts before PR #254, so how often a chunk has a 🔴 is not yet known.

121. Check that bin/round_titles.py's PASSES lists exactly the passes of larv-review §3's table.

The inherited architect of PR #257's scoring run named bin/round_titles.py:5 PASSES: it repeats skills/larv-review/SKILL.md:33 with no check tying them. It leaves out the auto-reviewer, whose rounds SKILL.md:68 counts by hand. A test under bin/repo_checks/ can hold the two lists together. Make PASSES easier to read.

203. Make bin/repo_checks fail on a todo.md citation of a docs/decisions.md title that no heading holds.

A retitled decision leaves its citations in todo.md stale, and no check reads them. test_citations.py covers only citations of CLAUDE.md and of rule files. Item 49 covers AGENTS.md's list of titles, not these citations.

113. Compute an item's S from the code it names, where it names any, and show it beside the finished items score-outcomes lists.

score-outcomes grounds L, E, I and S in finished chunks only. Where an item names files or units, their size bounds what the change can touch.

112. Count an item as shipped only where its chunk built it, so an item a chunk dropped from the plan gets no outcome.

score-outcomes counts every item a merge removed from todo.md as shipped. A merge that changed only the plan ships nothing, but one that built an item and also dropped another gives the dropped item the built one's outcome, as PR #253 did with item 69. Mark a dropped item in the change that drops it, such as by the commit or merge title, and leave it out.

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.

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.

173. Have rule-hook's todo-rank-check run a worktree's own bin/rank_todo.py when the worktree is of this repo, so a branch that changes todo.md's shape commits without an override.

Raised by the overrides pass of PR #296. The hook imports the main checkout's rank_todo.py, so while a branch of this repo changes the table's shape, every commit touching todo.md needs a todo-rank-check override: 33 log lines across four branches, the score-outcomes, plan-136, plan-148 and item-146 ones. The hook then checks nothing, and the rule rests on the worker chaining the branch's own check. Run another repo's bin/rank_todo.py never: that would run its code before every commit.

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:67 reads time.time(), then checks git (:70, commit_exists) and the history file (:75) 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.

110. Count, for each finished chunk, the later changes that fixed code it wrote, and show them beside its guessed E.

score-outcomes measures risk only by the 🔴 findings review caught. A serious bug review missed shows later, as a change that fixes code the chunk wrote: the defect that escaped, which E guesses.

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.

135. Fingerprint only the modules loop-claude imports, so editing another tool's code no longer reloads a running loop.

The maintainability senior and the inherited architect of PR #257's scoring run named bin/loop_claude/loop/reload.py:38 fingerprint and :50 exec_if_edited: the fingerprint covers every bin/**/*.py, so editing statusline.py or rank_todo.py re-execs a running loop. Make fingerprint easier to read.

171. Group the routing figures' review rounds by the reviewers' rung as well as the worker's, so a call blames a rung only for rounds its own reviews raised.

Raised by the goals audit of PR #296. bin/routing_figures/measure.py groups a chunk's review rounds by the rung its worker started on, and calls for a routing change when a lower rung took more of them. Since PR #296 the reviewers may run above the worker's rung, on the one their item's E + I picks, and no figure groups rounds by it, though the archived worker line names the E + I it follows from. A cheap worker on an item of high E + I gets stronger reviewers, who may raise more rounds, and a call could then blame the worker's rung for them: an interrupt of lilleman that settles nothing (goal 1.2).

196. Replay the architecture, principles, overrides and product-owner passes with review-replay on Opus 5.5 projects, record each run in the review-replay routing decision, and add any rung a run qualifies to REPLAYED.

Item 159's chunk, PR #322, replayed only the prose and stability passes. Sonnet 5.5 at high missed 44 to 55% of what the project's rung found again in each, so the agent judged a replay of the other four unlikely to qualify a rung. The product-owner review of PR #322 asked that the plan keep them, so the ranking decides when they run. Each run costs hours of reviewer replays (goal 1.4), so the score keeps it low until a cheaper model joins the ladder. docs/decisions.md → routing: a review pass runs below the project's rung only on a rung that a replay of its rounds shows finding every 🔴 and 🟡 the project's rung finds… records the runs so far.

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.

The tests also cover workflow-bench/bench.py's permission_flags, with a probe of a headless claude given its flags. It is denied a read outside the granted trees, a bare git status, and wrapper calls with --output, --no-index, a glued -aF/abs, --fil=/abs or a path outside the clone. A cd <elsewhere> && python3 <wrapper> … acts on the clone only. It is allowed the wrapper's log, diff, show, status, ls-files, add and commit -m. workflow-bench/test_review_git.py tests the wrapper's refusals directly.

181. Have the test of a quoted answer's step-up assert the stepped rung's facts as literals, not through prompts.rungs_held.

bin/loop_claude/test_loop_claude.py's test_a_quoted_answer_that_cites_an_escalation_trigger_steps_the_worker_up_before_it_resumes_and_archives_the_step builds its expected prompt from prompts.rungs_held, the code under test, so a bug there passes it. The technical principles' test bullet bans that shape. Assert the new rung and one review launch as literals, as the typed answer's step-up test does. Raised by the principles audit of PR #308.

192. Sort .gitignore's allowlist block, from !.claude/ to !workflow-bench/test_review_git.py, by code point, so rule-hook's ignorefile-sorted checks later edits to it again.

Found by review of PR #317. .gitignore:56-58 holds !bin/rule-hook above !bin/routing_figures/ and !bin/routing_figures/*.py, but o sorts before u. ignore_breaches in bin/rule_hook/rules.py skips a block that was already unsorted before an edit, so while this one stays unsorted no later edit to it is checked. The unsorted block breaches the technical principle "Deterministic order wherever order carries no meaning".

193. Narrow readme_goals's mark to Mark by a typed lookup in place of typing.cast, so a mark added to the regex but not the lookup fails at run time, and one added to the lookup but not Mark fails mypy.

Found by review of PR #317. bin/rank_todo.py's readme_goals writes typing.cast(Mark, mark or None), which asserts the type goal_weights branches on without checking it: a mark added to the regex reaches goal_weights as a value Mark lacks. mypy does not read the regex, so no lookup lets it catch that. Replace the cast with a lookup typed dict[str, Mark], from each mark the regex captures, and "" for none, to its Mark value. A mark added to the regex but not the lookup then raises KeyError at run time, and a value added to the lookup but not Mark fails mypy.

194. Make test_waits_out_a_usage_limit_which_ends_a_run_of_failures expect a usage-limit wait independent of the wall-clock time that passes during the run.

Found by review of PR #317. bin/loop_claude/test_black_box.py:569-575 sets resets_at from the test's time.time() and expects the wait, rounded to tens, to be 3720. When more than about 5 s pass between that read and the loop's, the wait rounds to 3710 and the test fails with no bug. Item 102 covers only replacing the time.sleep swap; this item changes the expected value, for example by asserting the wait against resets_at + 120 minus the time the loop read, or a bound on it.

202. Add CLAUDE.md → "Prose"'s rule "Write negations as people say them", with its examples, to skills/larv-review/standards/prose.md, so the prose reviewer holds prose to it.

Found by the prose review of PR #329. prose.md opens by calling itself the full rules that CLAUDE.md → "Prose" keeps a core of, yet it lacks that rule, so a prose reviewer whose bar is the standards files never sees it.

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.

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.

187. Count the tokens a worker spends reading reviewers' reports, so goal 1.4's signal shows whether report files lowered what a review costs the worker's context.

Before PR #310, reports reached the worker as the Agent call's result, a median 19k tokens per chunk (2026-10-08, 68 archived transcripts). Now a reviewer returns its verdict and one line per finding, and the worker reads a 🔴 or 🟡 finding's entry from the report file. reading-cost counts only tracked files (bin/reading_cost/measure.py), and routing-figures counts only the Agent call's result (bin/routing_figures/measure.py), so neither sees the report reads. Found by the architecture review of PR #310.

149. Fill each release by priority up to a capacity it states, in place of the bar, and move what does not fit to a later release.

A release's capacity is a sum of its items' cost, as the formula counts it. Each project states its own; the human sets the first value per project. Nothing is deleted by score.

165. Make this repo's tests assert the facts a prompt or help text carries in place of its sentences, and drop the tests that scan source or assert a constant.

A test audit across lilleman's projects on 2026-10-16 found 10 of 33 sampled tests in this repo pinning wording that is not the contract. Examples of these and other weak tests: bin/loop_claude/test_loop_claude.py:165, :271 and most asserts in :664 to :687 pin whole sentences of the question, archive or prompt text, up to about 750 characters, and :864 asserts help-text wording. :906 and :936 parse the source with ast and list each Stop(...) and Failure(...) call by function name. bin/model_routing/test_ladder.py:16 asserts len(LADDER) == 11. Rewrite each to the technical principles' test bullet: assert the facts the text must carry, such as an item ID, a rung or a model argument, and delete a test no real bug could fail. Before and after rewriting a test, run the mutation tool on the code it covers: every mutant the old test killed, the new one kills.

151. Keep 10 to 20 settled decisions per project as its goals' test set, and rerun them after a goal changes.

Each case is a question the project settled and the answer it chose. A fresh-context agent given only the README's premises answers each case; a case it answers differently says the goals no longer decide it. Written guidance can fail to change behaviour, which is why the goals get a test.

156. Drop rank_todo.py's ranking of an old-shape table once no project under ~/code holds one.

While rank_todo.py ranks two shapes, projects follow two sets of scoring rules, against goal 1.3. Once every project has reshaped, drop OLD_SHAPE's weighing from rank_todo.py, RESHAPE, and the old shape's lines in rank_todo.py --help and rules/todo-items.md. Keep todo_table reading old tables: score_outcomes reads every past merge's todo.md. PR #283's paired ruling found the old-shape path made rank_todo.py's score, Scoring.weights, unknown_columns and todo_table.py's Moves harder to read; leave each easier, with one shape and moves that are always moves, and the Moves cell's rules in one place.

201. Save the human's tmux setups and restore them after a reboot, so work is up and running again quickly.

The human asked on 2026-10-21 for tmux support, above all for saving tmux setups. Don't build anything until the human has said exactly what they need. Ask them at least:

  • What a setup holds, such as sessions, windows, panes, each pane's working directory and the command running in it, like one loop-claude per project.
  • When a setup is saved: on demand or on its own.
  • How a setup comes back after a reboot.
  • Whether the code that saves and restores setups must work on every machine that takes this checkout (goal 2), which decides whether that code lives in this repo.
  • What else tmux support should cover.

Weigh the widely used tmux-resurrect and tmux-continuum plugins against a script of our own. Then re-score this item from the answers and that choice, and split it into items where it is more than one chunk.

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.

155. Lower the reading cost of the files a chunk reads most before its first commit.

bin/reading-cost on 2026-10-21: the median of the last 5 chunks is 230,039 new input tokens before their first commit, up from 115,559 for the 5 before them. Read most over the last 5, by opens and searches: rules/decisions.md 1. The chunk that ships this item runs bin/reading-cost --reset.

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, put_question and model_choice print to stderr themselves, and the tests swap the global stream.

169. Have rule-hook's todo-rank-check catch a todo.md that the same Bash call edits and then commits.

The hook judges a call before it runs, and changed in bin/rule_hook/todo_check.py compares todo.md with the index and HEAD as they stand then. A call that edits todo.md and commits it, such as a heredoc script followed by git commit, passes unchecked: PR #296's commit 149108e did, and the override marker it carried was never logged. larv-review's gate still runs rank_todo.py --check, so an unranked plan stops at merge rather than at commit. A git pre-commit hook would see the staged file.

174. In a chunk no item routed, ask the worker to name each todo.md item it takes, with its L and E + I, so loop-claude can route on an item it takes in.

The principles pass of PR #301 found that only routed_by in bin/loop_claude/cycle/prompts.py asks the worker to name each item it takes with its L and E + I, and fresh uses it only where an item routed the chunk. In an unrouted chunk the judge has no levels to report, so neither the taken-in L nor the taken-in E + I lifts the worker, the reviewers or the judge, and the first prompt names no reviewers' rung for a higher E + I.

197. Let the human edit what they type at loop-claude's terminal questions with the arrow keys, so Left moves the cursor in place of printing ^[[D.

bin/loop_claude/effects.py hands loop-claude Python's builtin input, and nothing under bin/ imports readline, so the terminal gets no line editing: fixing a typo means erasing back to it. effects.input reads the answer to both of loop-claude's questions: the interrupt, in cycle/interrupt.py's put_question, and the pick of the project's model, in project/model_choice.py's ask_for_model. Importing readline in effects.py gives both line editing, at two costs. It moves the prompt from stderr to stdout, while the question above it stays on stderr. test_black_box.py waits for the prompt on stderr. readline's bracketed paste takes a pasted block whole, so an answer can hold several lines. prompts.typed_answer ends the answer at its first blank line, so the judge would read the rest of such a paste as loop-claude's words. The product-owner review of PR #308 raised the interrupt's case. lilleman, 2026-10-18: "Not super-important, but a bit irritating."

"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.