Compare commits

9 Commits

Author SHA1 Message Date
lilleman 98c49021c7 Finish item 565 in the plan
CI / tests (pull_request) Successful in 8m32s
2026-12-01 14:51:44 +01:00
lilleman 6f24a7f0ba Answer prose round 2: 0 🔴, 0 🟡 (0 misread); say Claude Code writes the memory files
CI / tests (pull_request) Has been cancelled
2026-12-01 14:47:10 +01:00
lilleman 2159b64a7b Answer prose round 1: 0 🔴, 2 🟡 (0 misread); say whose the memory files are and tell the reader to leave them out
CI / tests (pull_request) Has been cancelled
2026-12-01 14:46:16 +01:00
lilleman 1c0b598e9e Leave the agents' memory files off Install's backup list, and drop an unused folder from item 484
CI / tests (pull_request) Has been cancelled
2026-12-01 14:45:01 +01:00
lilleman 6e17de5fdf Finish item 562 in the plan
CI / tests (pull_request) Successful in 6m46s
2026-12-01 13:55:40 +01:00
lilleman a24abd6425 Answer prose round 2: 0 🔴, 1 🟡 (0 misread); say when the backup holds credentials, and name the transcripts folder apart from the variable
CI / tests (pull_request) Has been cancelled
2026-12-01 13:51:12 +01:00
lilleman 916b90c139 Answer prose round 1: 0 🔴, 3 🟡 (0 misread); list the backup paths and say what each holds
CI / tests (pull_request) Has been cancelled
2026-12-01 13:49:53 +01:00
lilleman ab550b89ff Back up the project config folder and the models file too, and word goal 3 to point at Install's list
CI / tests (pull_request) Has been cancelled
2026-12-01 13:47:34 +01:00
Lilleman 0e36b4c035 File two review gaps an outside reviewer found: a write that doesn't recheck its condition, and an overlapping oneOf
CI / tests (pull_request) Successful in 3m43s
2026-11-30 17:30:00 +01:00
3 changed files with 29 additions and 29 deletions
+1
View File
@@ -2,6 +2,7 @@
## Unreleased
- Added the project config folder and the models file to the install's backup step, and worded goal 3 to point at that list.
- Worded goal 1 for any agent harness and model, and goal 3 for the setup's files with this repo as their copy.
- Added a goal that the setup doesn't depend on any one model vendor or agent harness, and worded goals 1, 1.2 and 3 for whoever runs the setup.
- prose-reviewer checks a decision or plan item a change records against the decision log and the CI checks that list a published package's files, and reports a contradiction or a check the text leaves out.
+12 -2
View File
@@ -33,7 +33,7 @@ My personal `~/.claude`, version controlled: `CLAUDE.md` and `rules/` for instru
- Signal: the steps a person takes from a release's tag to their first finished chunk fall, and the changes an install or a run makes to their own `~/.claude` fall to none.
- Counter-signal: defects that show up only on a machine other than mine rise.
- Why: fewer steps and an install that leaves their `~/.claude` alone count only where the setup then works on machines that aren't mine.
3. **Maintain:** Keep the setup's files backed up, with this repo as their copy, and the transcripts of unattended runs too. A bench's transcripts are the exception: they stay only until `task-bench gather` has filed plan items from their digest, or the next bench starts.
3. **Maintain:** Keep the setup's files backed up: this repo is the copy of those it tracks, and Install lists the rest, which includes the transcripts of unattended runs. A bench's transcripts are the exception: they stay only until `task-bench gather` has filed plan items from their digest, or the next bench starts.
4. **Maintain:** Don't leak anything: no credentials, transcripts or memory files to this repo's remote, and no client's code, transcripts or credentials to another client or to this repo.
5. **Achieve:** The setup doesn't depend on any one model vendor or agent harness: what lives in the `.claude` folder is split into parts that each run on their own, and Claude Code is one harness among others.
- Signal: the harnesses the loop can run a chunk on rise.
@@ -80,7 +80,17 @@ Then pick a model with `/model`.
Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Every claude it starts, the interactive ones included, skips every permission prompt. loop-claude runs each chunk in its own window of a tmux session per project, so it needs tmux 3.2 or later.
Back up three folders: `~/.claude/loop-claude-transcripts`, where loop-claude keeps every transcript, `~/.claude/do-epic-transcripts`, where do-epic keeps its chunks' transcripts, and `~/.local/state/larv-review`, where larv-review keeps each chunk's reports. To keep loop-claude's transcripts and the reports small, add a crontab line that gzips each transcript and review file 30 days after it last changed, and logs each run with its date:
Back up these four folders and one file:
- `~/.claude-projects/`: each project's config, and a client project's plan and records. A project's `env-file`, if you keep it here as below, puts credentials in the backup, so keep the backup private.
- `~/.claude/loop-claude-models.json`: the model of each project, which loop-claude and do-epic write.
- `~/.claude/loop-claude-transcripts`: every transcript loop-claude keeps. Where you set `LOOP_CLAUDE_TRANSCRIPTS`, back up the folder it names instead.
- `~/.claude/do-epic-transcripts`: the transcripts of do-epic's chunks.
- `~/.local/state/larv-review`: each chunk's review reports.
Leave out Claude Code's memory files in `~/.claude/projects/<folder>/memory/`: Claude Code writes them, so they aren't part of this setup.
To keep loop-claude's transcripts and the reports small, add a crontab line that gzips each transcript and review file 30 days after it last changed, and logs each run with its date:
```sh
17 4 * * * { date; $HOME/.claude/bin/compress-archives; } >> $HOME/.local/state/compress-archives.log 2>&1
+16 -27
View File
@@ -6,16 +6,14 @@
`Bar = 0.1`
`Next ID = 564`
`Next ID = 566`
## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 562 | 0.17.0 | | question | **Decide which of the files the setup keeps outside this repo goal 3 and the Install section's backup step cover.** | 1 | 2 | 1 | 2 | 1 | | 0.0 |
| 480 | 0.18.0 | | owner | **Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 1.6 by 3, code health by 3 | 1.9 |
| 481 | 0.18.0 | 480 | owner | **Put the release's tools on `PATH` for every session the loop starts and every hook it runs, name them bare in the prose in place of `~/.claude/bin/<tool>`, and refuse the old spelling in new prose.** | 3 | 2 | 3 | 6 | 6 | 1.4 by 2, 2 by 2, code health by 2 | 1.5 |
| 563 | 0.18.0 | | | **Have prose-reviewer check each rewrite it suggests against the project's own code, above all wording lifted from another repo.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 |
| 561 | 0.18.0 | | | **Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window.** | 2 | 2 | 2 | 4 | 3 | 1.5 by 2 | 0.5 |
| 482 | 0.19.0 | 481 | owner | **Install the setup with `uv tool install` from a release tag, with `build-release` and `build-epic` on `PATH`, and replace `deploy-release` with `build-release self-update`.** | 3 | 2 | 3 | 6 | 7 | 1.6 by 4, 1.3 by 3, 2 by 6 | 1.6 |
| 485 | 0.19.0 | 482 | owner | **Rename `loop-claude` to `build-release`, and keep `loop-claude` as an alias that warns, for one release.** | 2 | 2 | 3 | 5 | 4 | 1.3 by 2, 5 by 2 | 2.5 |
@@ -92,6 +90,8 @@
| 298 | 0.23.0 | | | **Send the judge only the decision entries and the transcript tail a verdict needs, and keep the cut only where `judge-replay` changes no verdict kind.** | 3 | 3 | 3 | 7 | 4 | 1.4 by 2, 1.5 by 1 | 0.7 |
| 265 | 0.23.0 | | | **Archive each wait that costs a chunk wall time, for a usage limit, low memory, a failed worker start or a heavy slot, with its start and end stamps, so goal 1.5's hours split waiting from work.** | 3 | 2 | 2 | 5 | 4 | 1.5 by 3 | 0.7 |
| 475 | 0.23.0 | | | **Have stability-reviewer report, as a finding, each lookup that an input from outside the repo can make fail without an error naming what was missing.** | 1 | 1 | 2 | 2 | 2 | 1.1 by 2 | 0.7 |
| 563 | 0.23.0 | | | **Have the stability reviewer flag a write that acts on rows an earlier statement selected by a condition, where the write neither repeats the condition nor holds a lock.** | 2 | 2 | 2 | 4 | 2 | 1.1 by 2 | 0.7 |
| 564 | 0.23.0 | | | **Have the product-owner reviewer check that the branches of a `oneOf` in an API schema cannot both match one body.** | 2 | 2 | 2 | 4 | 2 | 1.1 by 2 | 0.7 |
| 395 | 0.23.0 | | decision | **Keep each block a save didn't change, with its localId, and the spacing paragraphs beside it as Jira or Confluence holds them.** | 3 | 2 | 2 | 5 | 5 | 1.6 by 4 | 0.7 |
| 425 | 0.23.0 | | | **Show on loop-claude's terminal why it doesn't start a chunk beside the next item, as chunk-preflight prints it.** | 1 | 1 | 2 | 2 | 2 | 1.5 by 2 | 0.6 |
| 169 | 0.23.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 | 0.6 |
@@ -106,23 +106,6 @@
## Details
### 562. Decide which of the files the setup keeps outside this repo goal 3 and the Install section's backup step cover.
README.md's goal 3 reads "Keep the setup's files backed up, with this repo as their copy, and the transcripts of unattended runs too." This repo is the copy of every file it tracks, but three places hold state of the setup that it doesn't track, and goal 3 may leave them out:
- `~/.claude/loop-claude-models.json`: the models loop-claude routes to on this machine. `.gitignore` is an allowlist that doesn't list it, so it stays out of this repo. Install doesn't mention backing it up.
- `~/.local/state/larv-review`: each chunk's review reports. Install's "Back up three folders" step already names it, beside `~/.claude/loop-claude-transcripts` and `~/.claude/do-epic-transcripts`.
- `~/.claude-projects/<key>/`: a client project's config, plan, records and `goals.md`, in a local git repo with no remote. Goal 4 keeps a client's files out of this repo, so this repo can't be their copy. Install's "Set up a project" describes the folder, but the backup step doesn't name it.
Question: should Install's "Back up three folders" step add `~/.claude/loop-claude-models.json` and `~/.claude-projects/`, and should goal 3 say that the setup's files outside this repo are backed up too?
Recommendation: yes to both for `~/.claude-projects/`, since it holds a client project's only copy of its plan and records, and losing it loses the loop's memory of that project. Add `~/.claude/loop-claude-models.json` to the step too: it is one small file, and rebuilding it by hand costs an interrupt. Word goal 3 as "the setup's files, with this repo as the copy of those it tracks, and the folders Install names backed up", so the list lives once, in Install.
The chunk that takes this writes the answer once, in README.md.
Touches:
- `README.md`: `## Goals` (small), `## Install` (small)
### 480. Resolve every path the tools use in one module: the release root (the folder the running code ships in), the config folder, the state folder and the Claude home. Then only that module names `~/.claude`, and the loop still runs from `~/.claude`.
Part of the standalone-install plan lilleman approved on 2026-11-20. Today about 160 references in some 40 modules name `~/.claude`; `bin/loop_state/paths.py` holds a few. This item changes no behaviour.
@@ -131,12 +114,6 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Today about
Part of the standalone-install plan lilleman approved on 2026-11-20. About 70 places in `CLAUDE.md`, `rules/`, `skills/` and `agents/` name a tool by its path in `~/.claude/bin/`. Keeping the tools on `PATH` only inside the loop's sessions keeps short names such as `wait-for` out of the human's shell. And prose that names no install folder works under every harness.
### 563. Have prose-reviewer check each rewrite it suggests against the project's own code, above all wording lifted from another repo.
A prose reviewer suggested, as a 🟢 nit, rewording a README sentence to match a sibling repo's README. The sibling's sentence ("every service runs its `:main` image") was true there but false in the project under review, whose own image is built locally. A fix for a 🟢 reruns no pass, so the false claim reached the pull request, and the forge's auto-reviewer caught it.
Add one line to `agents/prose-reviewer.md`: a suggested rewrite states only what the reviewed project's code or docs show; where it borrows wording from another repo, check each of its claims against this project first, and name what you checked.
### 561. Clean up a do-epic chunk whose pull request has merged without waiting for a running slot, and close its window.
Today a parked chunk whose pull request is no longer open (`gates.Unopened`, `bin/do_epic/gates.py`) gets news for its worker to remove the worktree (`parking.news_after`). That worker needs a running slot, so behind the epic's `**Max parallel chunks:**` cap or the repo's `parallel-chunks`, the chunk stays parked with "it may be merged or closed already, but the chunk stays parked", and its window lingers for days. On a team epic, the issue of one such chunk was already Done while its window still read "awaits a slot". The person reads that as stuck work, and once a slot frees, a whole worker run goes to `chunk-pr clean`.
@@ -161,7 +138,7 @@ Part of the standalone-install plan lilleman approved on 2026-11-20. Once the lo
### 484. Keep project configs, this machine's rules, transcripts and review reports in `~/.config/build-release/` and `~/.local/state/build-release/`, move them there with `build-release migrate`, and have rule-hook guard the new places.
Part of the standalone-install plan lilleman approved on 2026-11-20. Today they live in `~/.claude-projects/`, `~/.claude/rules/this-machine/`, `~/.claude/*-transcripts` and `~/.local/state/larv-review`. Read the old places for one release, warning on each read. From the first release that reads project configs from `~/.config/build-release/`, rule-hook must read each `env-file` from those configs and refuse a read of it.
Part of the standalone-install plan lilleman approved on 2026-11-20. Today they live in `~/.claude-projects/`, `~/.claude/*-transcripts` and `~/.local/state/larv-review`. Read the old places for one release, warning on each read. From the first release that reads project configs from `~/.config/build-release/`, rule-hook must read each `env-file` from those configs and refuse a read of it.
### 487. Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.
@@ -682,6 +659,18 @@ A forge's auto-reviewer raised two such findings on a chunk whose stability pass
Add one line to `agents/stability-reviewer.md`, where it lists what to check: for every value the change reads from a file, a response or a table that the repo does not hold, follow each lookup by key or index on it, and report one that fails without a message naming the missing key, unless the code states that the key is always there and why. A deterministic tool was weighed first and fits badly: no linter tells a mapping parsed from outside data from one the code built.
### 563. Have the stability reviewer flag a write that acts on rows an earlier statement selected by a condition, where the write neither repeats the condition nor holds a lock.
An outside reviewer raised this on a client's pull request, and two stability rounds had passed the code. A job selected the rows that met a condition, then changed them by primary key in a second statement. A row that stopped meeting the condition between the two statements was changed anyway, which broke the guarantee the change was written to give.
Put the rule where the stability reviewer reads it, such as the review standards' `quality.md` or the agent's definition: where a change states a guarantee as "never X a row that has Y", the reviewer checks that the statement that writes also checks Y, or that a lock covers both statements. A transaction alone doesn't count.
### 564. Have the product-owner reviewer check that the branches of a `oneOf` in an API schema cannot both match one body.
An outside reviewer raised this on a client's pull request. A fix for a product-owner finding described a response as `oneOf` two schemas, where one schema required no property and so matched every object. Each real body matched both branches, which `oneOf` forbids. The fix came at the pass's round cap, so no reviewer of ours read it.
First look for a deterministic check: a linter rule for OpenAPI that fails a `oneOf` holding a branch with no required property and no `additionalProperties: false`. Where no linter offers one, add the rule to the product-owner reviewer's definition: a `oneOf` whose branches can overlap is a 🟡, and `anyOf` is the fix where the branches cannot be made disjoint.
### 395. Keep each block a save didn't change, with its localId, and the spacing paragraphs beside it as Jira or Confluence holds them.
Today a Jira detail edited in one line, or a Confluence record with one entry appended, is written back whole by adf-codec's portable pair, which drops each block's localId and the empty paragraphs Jira uses for spacing. A save whose text is the text a read showed already sends nothing (`docs/decisions.md` → `project config: the loop shows a Jira description and a Confluence page as adf-codec's portable markdown, …`). Match the saved markdown's top-level blocks against the held document's, each as the portable pair reads it, and send the held block where they match. The decision's limit on partial saves ends with this item.