|
|
|
@@ -4,27 +4,27 @@
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
## loop-claude: a judge decides each interrupt from the transcript and the README's premises; the worker's own account of which goal settles a choice decides nothing
|
|
|
|
|
|
|
|
|
|
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. On 2026-10-01 lilleman decided the judge is to read `docs/decisions.md` and `AGENTS.md` too, so an answer recorded there is not asked again (goal 4.2); `todo.md`'s "Give the judge the project's recorded decisions" ends the README-only bar. Valid while the worker's self-report stays unreliable.
|
|
|
|
|
|
|
|
|
|
## loop-claude: one session per project, at a fixed id from its checkout's path
|
|
|
|
|
## loop-claude: one session per project, its id derived from the checkout's path relative to `~/code`, or to `/` outside it
|
|
|
|
|
|
|
|
|
|
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 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. Once `todo.md`'s "Key a project on its checkout's full path" lands, the id comes from the 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. Valid while claude takes `--session-id` and resumes by it.
|
|
|
|
|
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. A checkout outside `~/code` mirroring a path inside it shares that id, and a second loop on it is not refused. Once `todo.md`'s "Key a project on its checkout's full path" lands, the id comes from the 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. Valid while claude takes `--session-id` and resumes by it.
|
|
|
|
|
|
|
|
|
|
## loop-claude: the trust file is rewritten before an interrupt
|
|
|
|
|
## loop-claude: before an interrupt, it marks the checkout and each of its worktrees trusted in `~/.claude.json`
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
## loop-claude: every worktree of the checkout is trusted before an interrupt
|
|
|
|
|
2026-09-24, lilleman, extending it to every worktree. `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.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
## bin/: the Python floor is README's Install prerequisite
|
|
|
|
|
## bin/: the tests rerun themselves on a `uv`-fetched Python at README Install's floor
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
## bin/: the tools and their tests run on the host's Python, with 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.
|
|
|
|
|
|
|
|
|
@@ -32,42 +32,22 @@
|
|
|
|
|
|
|
|
|
|
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. `rebuild` merged into main under the floor at 8585257's scores, 2026-10-01, lilleman. The 2026-10-01 run on PR #182 (the loop state machine) scored 7.5, 6.5, 6.88, 6.25, 6.38; lilleman shipped that PR under the floor and below `rebuild`'s best run the same day, its places filed in `todo.md` under 0.1.0. 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
|
|
|
|
|
## loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
## review: the round cap counts a pass's rounds per chunk
|
|
|
|
|
## review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human
|
|
|
|
|
|
|
|
|
|
2026-09-28, lilleman. 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.
|
|
|
|
|
2026-09-28, lilleman. Serves goal 4. One counter per pass per chunk, so 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
|
|
|
|
|
## review: a fix for a 🟢 or ❓ re-enters review 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
|
|
|
|
|
## review: a pass skips only on a record older than the chunk
|
|
|
|
|
|
|
|
|
|
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. 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. 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. 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.
|
|
|
|
@@ -76,23 +56,15 @@
|
|
|
|
|
|
|
|
|
|
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. 2026-10-01, lilleman: the suite also passes `--disallow-untyped-defs`, so every def carries full annotations and a reader learns a parameter's type at its def without tracing callers (goal 4.1). Valid while the suite fetches mypy through `uv`.
|
|
|
|
|
|
|
|
|
|
## review: an ask no user answers leaves the PR unmerged
|
|
|
|
|
|
|
|
|
|
2026-09-30, claude. 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 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 planned stats line goes in the transcript archive
|
|
|
|
|
## loop-claude: the planned stats line goes in the transcript archive, off the remote
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
@@ -100,14 +72,6 @@
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
## loop-claude: a cycle's states cover only its progress, and a returned `Stop` ends the cycle
|
|
|
|
|
|
|
|
|
|
2026-10-01, larv-review. Applies "Always use explicit state machines". A `Stop` ends the process, so no later state could act on it. A `Stopped` state would add an event and a transition that nothing reads. Valid until a cycle must act after a `Stop`, as `todo.md`'s "Archive the transcript as each cycle ends" would.
|
|
|
|
|
|
|
|
|
|
## review: `/security-review` is the security pass of record
|
|
|
|
|
|
|
|
|
|
2026-09-20, lilleman. Serves goal 4.1. Its value is a tuned exclusion list and a ≥0.8 confidence floor, which a hand-written reviewer would reproduce worse. Valid while `/security-review` ships both.
|
|
|
|
@@ -115,7 +79,3 @@
|
|
|
|
|
## review: the premises chunk's whole review is the human's approval
|
|
|
|
|
|
|
|
|
|
2026-09-20, lilleman. Serves goal 4.1. A reviewer's finding on that chunk could only be declined by citing the goals the chunk exists to write. Valid while every decline must name a goal or a technical principle.
|
|
|
|
|
|
|
|
|
|
## workflow-bench/: the scripts are in the repo, and the 2026-09-30 bench's cases and results stay out
|
|
|
|
|
|
|
|
|
|
2026-10-02, larv-review. Serves goal 3. The cases are clones of other projects, some private, and their reports and `comparison.md` describe those projects' code, so they are data this repo may not publish. The planned bench needs the method, which the scripts and prompts hold, and picks its own chunks. Valid until the planned bench replaces the scripts.
|
|
|
|
|