15 KiB
Decisions
larv-review: a project under the comprehension floor is fixed at the capping dimension
2026-09-20, lilleman. Serves goal 4. Across six projects scored with the four seats, Locality or Self-sufficiency capped every seat and Navigation capped none, so a layout fix would not lift a project under the floor. Valid while the scoring run keeps those four seats.
loop-claude: a judge decides interrupts, not the worker's self-report
2026-09-21, lilleman. Serves goal 4. Asked to name the goal behind each choice, the worker cites a real goal for a choice that goal does not settle, and under-reports its own decisions; the judge's bar is whether the README discriminates between the alternatives. Valid while the worker's self-report stays unreliable.
loop-claude: one session per project, at a fixed id from its path
2026-09-21, lilleman; revised 2026-09-30 by lilleman. Serves goal 4. One fixed id per project keeps the session picker at one entry per project and makes any transcript under that id loop-claude's own to delete. The id derives from the checkout's full path, so no two checkouts share one, and loop-claude refuses to start while another session on that id is active. Moving the checkout orphans its open sessions, archive folder and models entry: sessions stay in the picker until the human deletes them, migration code not being worth a one-human audience. Until todo.md's "Key a project on its checkout's full path" lands, the id is the checkout's path relative to ~/code, or to / outside it, and a second loop is not refused, so a checkout outside ~/code mirroring a path inside it shares its id. Valid while claude takes --session-id and resumes by it.
loop-claude: the trust file is rewritten before an interrupt
2026-09-21, lilleman; the lost-write risk accepted 2026-09-24 by larv-review. Serves goal 4. A write by another claude inside trust's read-modify-write window is lost. 2026-09-30, lilleman: Claude Code owns and writes that file, so loop-claude is to move out of it, bringing each case that must stay to the human. Stands until todo.md's "Move what loop-claude writes out of ~/.claude.json" ends it.
loop-claude: every worktree of the checkout is trusted before an interrupt
2026-09-24, lilleman. Serves goal 4. claude --resume re-enters the worktree the worker last entered, recorded in the transcript's worktree-state entry, and Claude Code asks trust per path, so trusting the checkout alone still lands the human in the dialog; trusting every worktree git worktree list names spares reading which one from the transcript. Stands until todo.md's "Move what loop-claude writes out of ~/.claude.json" ends it. Valid while resume re-enters a recorded worktree and trust is kept per path.
bin/: the Python floor is README's Install prerequisite
2026-09-26, larv-review. Serves goal 1. The suite reruns itself on a uv-fetched interpreter of the version Install names: ast.parse(feature_version=) on the host's Python accepts the nested f-string 186181a fixed, a compile check passes a call newer than the floor, like 3.12's itertools.batched, and a python3.N on PATH is installed by hand on every machine and again at each bump. Valid while uv can fetch the floor interpreter and no machine taking the checkout ships an older Python.
bin/: host python, no container
2026-09-24, larv-review. Serves goals 1 and 4. The tools drive the host's claude CLI and read the host's session files, which a container cannot see; the tests run on the same host Python the tools meet. Valid while claude runs on the host.
comprehension floor: every dimension and the overall at 7.0 or above, and 0.1.0 waits on it
2026-09-27, lilleman, restating the 2026-09-24 target and extending it to the overall. Serves goal 4. The 2026-09-28 run, Junior A, Mid A, the maintainability senior and the inherited architect at depth 1 over every non-test file, blind to todo.md and this log, scored Navigation 7.25, Locality 6.0, Shape 6.5, Self-sufficiency 6.25, overall 6.25; on 2026-09-26 they were 7.75, 6.25, 7.0, 6.75, 6.75. Every seat scored Locality 6, and three of four named run_cycle's three-way return and larv-review's re-entry rules, split across the passes on 2026-09-28. The same seats on rebuild scored 7.5, 6.63, 6.88, 6.5, 7.0 at 37edc9a, later that day, 7.5, 6.75, 6.88, 6.75, 7.0 at 7f9de5c, 7.38, 6.25, 6.88, 6.75, 6.88 at 2f9ab2f on 2026-09-29, Locality lowest again and every seat naming the reload state and the two retry counters, and 7.5, 7.0, 7.25, 6.75, 7.13 at 2c74bbc later that day, Self-sufficiency lowest and every seat naming the round's definition split across larv-review's two files, and 7.38, 6.75, 7.25, 6.5, 6.88 at 8585257 on 2026-10-01, lowering every dimension but Shape, and the overall, Self-sufficiency lowest and every seat naming larv-review §3's round rules; the places it named under Self-sufficiency and Locality are filed in todo.md under 0.1.0, and a later scoring run may not score any dimension or the overall below its best run on rebuild, 2026-10-01, lilleman. Valid until the next scoring run, which uses the same four seats.
vocabulary: the concept words are defined under CLAUDE.md → "Vocabulary" and cited by a bare link
2026-09-24, larv-review. Serves goal 4. Three seats of the 2026-09-24 panel found the words only in the changelog; a definition at each rule lands one reader and misses the next, so the section is the one landing place and each file using the words links it once, and bin/test_citations.py fails on a citation no heading or bold lead answers, so the pointer's rot is visible. loop-claude --help restates chunk, cycle, interrupt and premises, since a terminal reader has no link to follow. Valid until the next scoring run.
loop-claude: a reload into an older file is unsupported
2026-09-26, lilleman. Serves goal 4. A running loop whose bin/loop-claude or bin/loop_claude/ on disk is rolled back to a version with an older handover fails in that older file, or, older than the handover itself, runs --reloaded <state> as its task; this version cannot change either; the human who rolled it back reruns loop-claude <task>. Valid while nobody but the developer runs it: other team members running it while it is still developed reopens this.
loop-claude: a CR-only README.md is reported at line 1
2026-09-26, larv-review. Serves goal 4. The line of a non-UTF-8 byte counts \n, so a file with classic-Mac \r endings reports line 1 whatever line an editor shows; no machine the audience runs writes such a file. Valid while the audience is the author's own machines.
loop-claude: each project's model lives in loop-claude's own file
2026-09-26, lilleman. Serves goal 4. Claude Code rewrites the user settings' model whenever one is picked inside a session, so a loop reading settings runs whatever was picked last; ~/.claude/loop-claude-models.json has loop-claude as its one writer, and every claude it starts gets that model as --model. The file is per machine, outside the synced allowlist, since a tracked file the loop writes would dirty the checkout. Valid while Claude Code keeps rewriting the settings' model from inside a session.
rebuild: loop-claude and the review process are rebuilt on rebuild and merge to main whole
2026-09-28, lilleman. Serves goal 4. Three scoring runs held Locality at 6 while about thirty chunks fixed the places the seats named, and two blind judges scored main's loop-claude 5 and its review process 4 against 7 for sketches designed from the target result. Other sessions run on ~/.claude main throughout, so every rebuild chunk merges into rebuild, never main, and rebuild reaches main only when it passes the comprehension floor and the human has explicitly approved the whole and merges it themselves. The ⚠️ warning stands in AGENTS.md, atop todo.md and on its last item on purpose, 2026-09-28, lilleman: a premature merge lands under every session running on main, so a reader of any one of them must meet it. Valid until the rebuild merges.
review: the round cap counts a pass's rounds per chunk
2026-09-28, lilleman, for the rebuild. Serves goal 4. Every round of a pass counts against one cap per chunk, and a fourth asks the human; one counter, and no fix bounces between two passes without end. Valid while one human answers the ask, in the session or from the unmerged PR.
review: a 🟢's or ❓'s fix re-enters like any fix
2026-09-30, lilleman. Serves goal 4: no human reads an unattended chunk before it merges, so every change it makes, a nit's wording included, is reviewed. In the 2026-09-30 bench this cost four of nine rounds in one run and drove two passes to the round cap. Valid while a pass is the only reader of a fix before merge.
review: only a record older than the chunk lets a pass skip
2026-09-30, lilleman. Serves goal 4: a record the chunk writes is the chunk's own unreviewed decision, and an unattended run has no human to catch it. Valid while a pass is the only reader of a chunk before merge.
loop-claude: the judge is retried alone, on its own counter
2026-09-28, lilleman, for the rebuild. Serves goal 4. A failed verdict reruns the judge on the same transcript; rerunning the worker would spend a worker run on a judge's fault. Valid while a judge run costs far less than a worker run.
loop-claude: the judge loads CLAUDE.md
2026-09-28, lilleman, for the rebuild. Serves goal 4. The judge rules on chunks, releases and premises, which CLAUDE.md → "Vocabulary" and "Working loop" define; --bare would leave it the prompt's words alone. Valid while those definitions live in CLAUDE.md.
loop-claude: the archive keeps the raw transcript, and a failed archive stops the loop
2026-09-28, lilleman, for the rebuild. Serves goals 2 and 4: saving each transcript locally is the first step of backing it up, and it shows afterwards what an unattended run did. A copy of the .jsonl, deduplicated by content hash, with the verdict beside it; a rendering drops tool results, and a second-resolution stamp names two states within one second as one file. A failed archive exits 1, since a loop that loses its record silently fails the backup goal. Valid while transcripts stay small enough to copy whole.
loop-claude: a loop started on main's script stops at its first reload into the rebuild's
2026-09-29, lilleman. Serves goal 4. The rebuild's LoopState lacks main's failure count, so a loop running main's script exits 1 at its first reload into the rebuild, telling the human to rerun loop-claude <task>. No code exists only for that reload: one rerun costs a one-human audience less. Valid until the rebuild merges.
rebuild: a chunk into rebuild takes no comprehension scoring run
2026-09-28, lilleman, confirming larv-review's reading of the rebuild decision above. Serves goal 4. The floor and its ratchet gate rebuild into main, scored by the plan's last item; the chunks before it pass through half-moved states a per-chunk run would block. Valid until the rebuild merges.
loop-claude: a claude that cannot start is a failed worker run, retried
2026-09-28, larv-review, declining a product-owner nit to exit at once when claude is missing. Serves goal 4. Claude Code's updater repoints ~/.local/bin/claude at each new version under running loops, and a start that meets it mid-update fails with the same error as a broken install; the retry costs two minutes on the second and saves an unattended loop on the first. Valid while Claude Code updates by repointing its link.
bin/: mypy checks loop_claude's types in the tests
2026-09-29, lilleman. Serves goal 4. An unchecked annotation goes stale when a body gains a return type, and a reader trusts it; the suite already needs uv, which fetches a pinned mypy. Valid while loop_claude carries annotations.
rebuild: rebuild's larv-review reviews a chunk into rebuild
2026-09-30, lilleman. Serves goal 4. A blind judge ruled it at least as good as main's on all four cases of the 2026-09-30 bench. Valid until the rebuild merges.
review: an ask no user answers leaves the PR unmerged
2026-09-30, claude, for the rebuild. Serves goal 4: the round cap, a BLOCK's restructure, Stage 0's questions and a goal conflict are the human's call, and an unmerged PR is what brings it to them; merging would make the call for them. Where an option reviews more — run the pass, fix under the floor, fix a finding no goal lets the run decline — the run takes it; a ❓ or a prose fix changing a goal or a decision is filed in todo.md, which reaches the human without holding the chunk. Valid while a human reads every unmerged PR an unattended run leaves.
review: the architecture pass audits every principle and goal over the whole project, and a release's last chunk fires it
2026-09-30, lilleman. Serves goal 4: @larvit/log's chunks each passed their per-diff reviewers, and a whole-project audit that day still found its functional core and state machines not followed and two semver breaks planned; what grows over many chunks shows in no diff. Valid while the other passes review a diff.
loop-claude: every claude it starts bypasses permissions inside its sandbox
2026-09-30, lilleman. Applies "Always grant explicit access to data": the sandbox loop-claude runs in is where access is granted, so the worker and the interrupt run with bypassPermissions. The worker may read ~/.claude/.credentials.json: it holds Claude Code's own credentials, which claude reads to run anyway. Its one seam to production is the forge: what it pushes or merges can publish through CI. Valid while loop-claude runs only in the sandbox README → Install names.
loop-claude: the stats line todo.md plans goes in the transcript archive
2026-10-01, lilleman. Serves goals 3 and 4.4. The numbers show whether a change to the workflow raised quality or only cost. Each line names another project and its chunk, so the file stays off this repo's remote. loop-claude writes the line: the tokens, cycles and interrupts it counts, and the review's numbers from the summary larv-review ends with. Valid while the transcript archive stays off the remote.
workflow changes: one merges only once three runs of the bench todo.md plans rule it better
2026-10-01, lilleman. Serves goals 4.1 and 4.4. The 2026-09-30 bench showed one run cannot tell a workflow's effect from the variance between runs. One bench ruling it worse closes the PR, since quality comes first (goal 4.1), and docs/workflow-learnings.md keeps what the PR changed and why it lost. Three is a starting number, to be evaluated against the stats. Valid until that evaluation changes the number.
chunk: as large as one purpose allows
2026-10-01, lilleman. Serves goal 4.4. Every review has a fixed cost: each reviewer reloads the rules and the files around the change. Purpose caps a chunk, never a line count. Tiny items are the exception: up to ten, a few lines each, share one chunk whatever their purposes and passes, since the review's fixed cost dwarfs them. Valid until the stats or a bench show that larger chunks lower what reviews catch.