Files
claude-config/docs/decisions.md
T

9.6 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

2026-09-21, lilleman; the rename and mirrored-path costs accepted 2026-09-25 by larv-review. 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 session name, so moving the checkout or changing that name orphans open sessions: they stay in the picker until the human deletes them, migration code not being worth a one-human audience. A checkout outside ~/code mirroring a path inside it would share its id. Valid while claude takes --session-id and resumes by it, and no checkout outside ~/code mirrors a path inside 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. Valid while no flag skips the dialog.

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. 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, carrying the floor the 2026-09-26 stability round assumed and verified its f-string fix under. 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 3.11-only call like contextlib.chdir, and a python3.N on PATH is installed by hand on every machine and again at each bump. Valid while 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 the same way. 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 at 37edc9a, later that day, scored 7.5, 6.63, 6.88, 6.5, 7.0; the places they named are filed in todo.md under 0.1.0, and a later chunk may not lower any dimension. Valid until the next scoring run, which uses the same four seats.

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.

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: the rebuild keeps main's --reloaded state

2026-09-28, lilleman, for the rebuild. Serves goal 4. A loop running main's script reloads into the rebuilt one at its next cycle boundary and carries on; decode_state accepts only JSON whose keys and value types match LoopState exactly, so renaming, adding, dropping or retyping a field breaks that reload, and no code exists only for the cut-over. 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.