Compare commits

...

8 Commits

8 changed files with 128 additions and 17 deletions
+2
View File
@@ -2,6 +2,8 @@
## Unreleased ## Unreleased
- The stability reviewer traces every path that can reach a callback, handler or hook that a change guards, background and process-wide ones included, and reports each path the guard leaves open.
- Interactive sessions start with permissions bypassed (`defaultMode: bypassPermissions`) instead of in auto mode, so a session on the sandbox this checkout requires asks for permission only where Claude Code always does.
- Renamed `loop-claude` to `build-release`, with no alias. Before you update, finish your open chunks, since a chunk left open under `loop-claude` starts a fresh session, and stop every running `loop-claude`, since a loop that runs across the update can't reload and hands its workers variables the new rule-hook ignores. Then remove `~/.local/bin/loop-claude`, link the new name with `ln -s ~/.claude/bin/build-release ~/.local/bin/build-release`, and rename each `LOOP_CLAUDE_*` variable you set, in your shell profile and in your crontab, to `BUILD_RELEASE_*`, such as `BUILD_RELEASE_TRANSCRIPTS`. The folders and the file it keeps, `~/.claude/loop-claude-transcripts`, `~/.claude/loop-claude-models.json` and `~/.local/state/loop-claude`, keep their names for now. - Renamed `loop-claude` to `build-release`, with no alias. Before you update, finish your open chunks, since a chunk left open under `loop-claude` starts a fresh session, and stop every running `loop-claude`, since a loop that runs across the update can't reload and hands its workers variables the new rule-hook ignores. Then remove `~/.local/bin/loop-claude`, link the new name with `ln -s ~/.claude/bin/build-release ~/.local/bin/build-release`, and rename each `LOOP_CLAUDE_*` variable you set, in your shell profile and in your crontab, to `BUILD_RELEASE_*`, such as `BUILD_RELEASE_TRANSCRIPTS`. The folders and the file it keeps, `~/.claude/loop-claude-transcripts`, `~/.claude/loop-claude-models.json` and `~/.local/state/loop-claude`, keep their names for now.
- A claude that build-release, do-epic or `task-bench gather` starts has the release's tools first on its `PATH`, and the rules, the skills and each tool's help and errors name a tool bare, as in `todo-item`. In your own shell, and in a claude you start from it yourself, call a tool other than `build-release` by its path, `~/.claude/bin/<tool>`. - A claude that build-release, do-epic or `task-bench gather` starts has the release's tools first on its `PATH`, and the rules, the skills and each tool's help and errors name a tool bare, as in `todo-item`. In your own shell, and in a claude you start from it yourself, call a tool other than `build-release` by its path, `~/.claude/bin/<tool>`.
- do-epic runs `chunk-pr clean` itself for a chunk whose pull request merged, finishes the chunk and closes its window, without a running slot or a worker, where it used to wait for a free slot and a worker for that. - do-epic runs `chunk-pr clean` itself for a chunk whose pull request merged, finishes the chunk and closes its window, without a running slot or a worker, where it used to wait for a free slot and a worker for that.
+1 -1
View File
@@ -47,7 +47,7 @@ Me, and anyone who installs a release and runs it, on their own machines or on t
## Install ## Install
Take this checkout only onto a machine that is a sandbox with no direct access to a production environment, such as a dedicated VM: `settings.json` runs Claude Code in auto mode with the dangerous-mode prompt skipped. Take this checkout only onto a machine that is a sandbox with no direct access to a production environment, such as a dedicated VM: `settings.json` runs Claude Code with permissions bypassed and the dangerous-mode prompt skipped.
This release still installs into `~/.claude`, which goals 2 and 3 work to end. This release still installs into `~/.claude`, which goals 2 and 3 work to end.
+1
View File
@@ -88,6 +88,7 @@ Catch behavior that is unclear or under-specified — "building in ambiguousness
- Is mutable shared state properly protected? - Is mutable shared state properly protected?
- Check-then-act races, including at the DB (exists-then-insert, `firstOrCreate`): is there a unique constraint that wins when two requests race? - Check-then-act races, including at the DB (exists-then-insert, `firstOrCreate`): is there a unique constraint that wins when two requests race?
- **Does correctness depend on reading process-global mutable state set by a *prior* call** — `json_last_error()`/`json_last_error_msg()`, `errno`, `preg_last_error()`, last-insert-id, locale, default timezone? This is **blocking** (🔴): the verdict silently breaks the moment any call is reordered or inserted between the setter and the reader, and code-reading will not catch the regression. Demand a self-contained alternative (`JSON_THROW_ON_ERROR`, an explicit return value, capturing the result on the adjacent line) even when the current ordering happens to work. - **Does correctness depend on reading process-global mutable state set by a *prior* call** — `json_last_error()`/`json_last_error_msg()`, `errno`, `preg_last_error()`, last-insert-id, locale, default timezone? This is **blocking** (🔴): the verdict silently breaks the moment any call is reordered or inserted between the setter and the reader, and code-reading will not catch the regression. Demand a self-contained alternative (`JSON_THROW_ON_ERROR`, an explicit return value, capturing the result on the adjacent line) even when the current ordering happens to work.
- Where the change adds a guard that keeps a callback, handler or hook from running in some window (before a constructor returns, while a lock is held, after the owner is closed), list every path that can reach the callback, not only the direct call the diff touches: background goroutines and threads, queues and retries, timers, and process-wide handlers such as a global error handler. Report each path the guard leaves open.
- Are there potential deadlocks? - Are there potential deadlocks?
- Is state mutation predictable and traceable? - Is state mutation predictable and traceable?
+85
View File
@@ -4708,3 +4708,88 @@ Inherited architect, decided by:
- Locality: `bin/task_bench/main.py:528` `planted_tasks`: the cached thunk is one more step of indirection than the base's inline read - Locality: `bin/task_bench/main.py:528` `planted_tasks`: the cached thunk is one more step of indirection than the base's inline read
- Locality: `bin/chunk_preflight/indentation.py:48` `space_indented`: one loop with a key-or-None marker is denser than the base's per-file loop - Locality: `bin/chunk_preflight/indentation.py:48` `space_indented`: one loop with a key-or-None marker is denser than the base's per-file loop
- Navigation: `README.md:314` task_bench entry: says what `task_bench` imports from `mutate_changes` - Navigation: `README.md:314` task_bench entry: says what `task_bench` imports from `mutate_changes`
## 2026-12-03T16:38:23Z, PR #799 at 0aff7d39
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 6 | 6 | 5.5 | 6 |
| Mid A | 7 | 5.5 | 6 | 5.5 | 6 |
| Maintainability senior | 7 | 5.5 | 6 | 6 | 6 |
| Inherited architect | 6.5 | 6 | 5 | 5.5 | 6 |
| Mean | 6.88 | 5.75 | 5.75 | 5.63 | 6.00 |
Junior A, hardest first:
- Locality: `bin/do_epic/main.py:236` `chunk_run`: one loop over `str | Stop | Merged` that handles parking, reopening and handing on together
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: a queue loop over a flock with by-human, wait and park flags, and a side trip to `remeasure` at line 655
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs held at once, with the reasons in the decision log
- Self-sufficiency, Locality: `skills/larv-review/SKILL.md:109` "Re-entry": a table whose exceptions and the round cap must be read beside it
- Locality, Shape: `bin/do_epic/scheduler.py:173` `start_chunks`: overlapping sets and an elif ladder whose order carries the meaning
Mid A, hardest first:
- Locality, Shape: `bin/do_epic/scheduler.py:173` `start_chunks`: four overlapping sets and a five-way elif under a lock, with state also written by other processes
- Locality: `bin/do_epic/parking.py:26` `parked_through`: the park and resume order spans a file, a tmux window name and the scheduler, and `Told` mutates it
- Locality: `bin/chunk_pr/main.py:462` `merged`: a queue loop under a flock whose correctness depends on three other tools' exit codes
- Self-sufficiency: `bin/agent_cycle/routing.py:115` `unfinished_route`: five rungs and caps whose reasons sit in the decision log
- Self-sufficiency: `bin/agent_cycle/run.py:33` `Cycle`: 17 fields justified by a decision citation
Maintainability senior, hardest first:
- Locality, Shape: `bin/do_epic/parking.py:26` `parked_through`: six parameters, three outcomes types and a mutable `Told` that renames windows
- Locality: `bin/do_epic/scheduler.py:173` `start_chunks`: parked and waiting state lives in tmux window names that the function reads
- Locality: `bin/chunk_pr/main.py:601` `levelled_and_finished`: the push-then-report order depends on lock order that is stated nowhere locally
- Shape: `bin/plan/ranking.py:144` `weigh`: the old and the new table shape are woven through the core path
- Locality: `bin/build_release/loop/reload.py:36` `decode_handed`: `LOOP_RUN_FIELDS` must be kept in sync with `LoopRun` by hand
Inherited architect, would restructure first:
- Navigation, Shape: `README.md:261` "Packages under bin/": the groupings exist only in prose over a flat `bin/` of 86 entries
- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing is spread over about ten places in six packages
- Shape: `bin/chunk_pr/main.py:462` `merged`: a 770-line module with 47 top-level definitions that bundles open, merge queue and cleanup
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap is enforced on commit titles only, and the launch-time check is advisory
- Self-sufficiency: `bin/agent_cycle/run.py:33` `Cycle`: 17 fields defended by a decision citation rather than by the code
## 2026-12-03T16:42:14Z, PR #799 rerun at 0aff7d39
| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall |
|---|---|---|---|---|---|
| Junior A | 7 | 5.5 | 6.5 | 6 | 6 |
| Mid A | 7 | 6 | 5.5 | 6 | 6 |
| Maintainability senior | 7 | 5.5 | 6 | 5 | 6 |
| Inherited architect | 7 | 6.5 | 5.5 | 7 | 6 |
| Mean | 7.00 | 5.88 | 5.88 | 6.00 | 6.00 |
Junior A, hardest first:
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: orthogonal modes, a flock queue and git-config state, and a trip into `remeasure`, with no statement of how the modes combine
- Locality, Shape: `bin/do_epic/main.py:236` `chunk_run`: one loop over `str | Stop | Merged` with reopen, human-task and epic-finish branches
- Locality: `bin/do_epic/parking.py:26` `parked_through`: six parameters and an effect order that matters, with nested gate-polling loops
- Shape: `bin/task_bench/main.py:242` `Planner`: three layers of curried factories
- Self-sufficiency: `bin/agent_cycle/judge.py:301` `judge_prompt`: schema text filled in by string replacement and a heading wording coupled to another tool
Mid A, hardest first:
- Shape: `bin/task_bench/main.py:242` `Planner`: each alias is a callable that returns a callable that returns a callable
- Locality, Shape: `bin/chunk_pr/main.py:462` `merged`: sentinels, parks, epic base against default base, and a flock queue, with the base stored in git config
- Self-sufficiency: `bin/larv_review/main.py:33` "needs-scoring-run": the rule for when a run is due and owed is visible only in a long docstring
- Shape: `bin/plan_store/jira_epic.py:200` `edit`: about 45 lines of `isinstance` early returns that hide the loop-filed against person-filed rule
- Shape: `bin/plan/ranking.py:144` `weigh`: two table shapes run through every function
Maintainability senior, hardest first:
- Locality: `bin/chunk_pr/main.py:601` `levelled_and_finished`: an order-dependent chain of git changes and a scoring-run check, with no statement of what holds after it returns
- Shape: `bin/task_bench/main.py:242` `Planner`: three levels of curried factories
- Locality: `bin/agent_cycle/run.py:160` `rule`: the archive order decides the figures written, and only a comment says so
- Locality: `bin/agent_cycle/judge.py:77` `TASK_HEADING`: a heading wording that judge-replay parses, held by a comment alone
- Self-sufficiency: `bin/plan/ranking.py:20` `MAINTAIN_WEIGHT`: the rationale sits in the decision log
- Locality: `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start`: `held_items` reads a worker's transcripts for a free-text line
Inherited architect, would restructure first:
- Navigation, Shape: `README.md:264` "Packages under bin/": the only map of a flat `bin/` of about 80 entries
- Shape: `bin/do_epic/main.py:236` `chunk_run`: a 520-line main that holds help text, policy, the loop and printing, with about 30 imports
- Locality: `bin/rule_hook/round_cap.py:10` `round_cap_breaches`: the round cap has four homes and fails open at `earlier_titles`
- Locality: `bin/agent_cycle/routing.py:115` `unfinished_route`: routing is spread over four homes
- Locality: `bin/transcript_archive/outcomes.py:11` `outcomes`: a line format parsed by regex in four readers
+4 -2
View File
@@ -7,7 +7,7 @@ Each project principle states one rule that the decisions below apply; their ent
3. **Each file has one writer.** `~/.claude/loop-claude-models.json` is written only by `save_model`, which the entry points, build-release and do-epic, both call. `~/.claude.json` is Claude Code's, and `~/.claude` moves only through `deploy-release`. The exception is `~/.claude/settings.json`, which Claude Code writes from any session. Git's clean filter `bin/settings_filter.py` keeps each machine's model and Claude Code's key order out of every commit, and `README.md` → "Update" carries its other changes into this repo. 3. **Each file has one writer.** `~/.claude/loop-claude-models.json` is written only by `save_model`, which the entry points, build-release and do-epic, both call. `~/.claude.json` is Claude Code's, and `~/.claude` moves only through `deploy-release`. The exception is `~/.claude/settings.json`, which Claude Code writes from any session. Git's clean filter `bin/settings_filter.py` keeps each machine's model and Claude Code's key order out of every commit, and `README.md` → "Update" carries its other changes into this repo.
4. **A rule a program can check is enforced by a program, and reviewers rule on the rest.** rule-hook and its overrides, `docker-run-memory`, the refused writes of reviewers under `agents/`, and CI with `main`'s branch protection apply it. 4. **A rule a program can check is enforced by a program, and reviewers rule on the rest.** rule-hook and its overrides, `docker-run-memory`, the refused writes of reviewers under `agents/`, and CI with `main`'s branch protection apply it.
5. **A chunk can't vouch for itself.** What a chunk writes is approved by a review pass, by the human, or by a precedent the repo held before the chunk began. So an unanswered ask leaves the PR unmerged, the human approves the premises chunk and runs `deploy-release --cut`, and the judge holds a chunk open while an answer the human typed isn't recorded anywhere. 5. **A chunk can't vouch for itself.** What a chunk writes is approved by a review pass, by the human, or by a precedent the repo held before the chunk began. So an unanswered ask leaves the PR unmerged, the human approves the premises chunk and runs `deploy-release --cut`, and the judge holds a chunk open while an answer the human typed isn't recorded anywhere.
6. **An unattended run never waits on a prompt, and a lasting failure stops it.** Every claude build-release starts bypasses permissions inside its sandbox, each claude it opens on a terminal has `CLAUDE_CODE_SANDBOXED` set, and interactive sessions run in auto mode with the dangerous-mode prompt skipped. A failed archive stops the loop, while a `claude` that cannot start, as during an update, is retried. 6. **An unattended run never waits on a prompt, and a lasting failure stops it.** Every claude build-release starts bypasses permissions inside its sandbox, each claude it opens on a terminal has `CLAUDE_CODE_SANDBOXED` set, and interactive sessions bypass permissions with the dangerous-mode prompt skipped. A failed archive stops the loop, while a `claude` that cannot start, as during an update, is retried.
7. **One word names one thing, and one rule has one home.** In `bin/`, an outcome is an entry of a `.outcomes.md` file in build-release's archive, a record is a document tools or people keep entries in, and a place is what a comprehension seat names. `CLAUDE.md` holds only the rules no path can scope, and each `rules/` file loads by its `paths:`. 7. **One word names one thing, and one rule has one home.** In `bin/`, an outcome is an entry of a `.outcomes.md` file in build-release's archive, a record is a document tools or people keep entries in, and a place is what a comprehension seat names. `CLAUDE.md` holds only the rules no path can scope, and each `rules/` file loads by its `paths:`.
# Decisions no project principle covers # Decisions no project principle covers
@@ -830,10 +830,12 @@ Claude Code's user-level rules tie this repo to Claude Code, which "Prefer the v
Valid while Claude Code loads `~/.claude/rules/*.md` in every project, a path-scoped one when a session reads, writes or edits a matching file, or reads one with a single-file Bash command such as `cat`, and after a write only once the write is done. On 2026-10-13 a smoke test confirmed both triggers: a rule in `~/.claude/rules/` with `paths: ["**/smoke-target.txt"]` held a secret word. `claude -p` in a project under `/tmp` printed the word after reading the target with the Read tool, and after creating it with the Write tool. A control run that opened no file printed none. Per the docs, a path-scoped rule leaves the context at compaction and returns at the next matching read. Valid while Claude Code loads `~/.claude/rules/*.md` in every project, a path-scoped one when a session reads, writes or edits a matching file, or reads one with a single-file Bash command such as `cat`, and after a write only once the write is done. On 2026-10-13 a smoke test confirmed both triggers: a rule in `~/.claude/rules/` with `paths: ["**/smoke-target.txt"]` held a secret word. `claude -p` in a project under `/tmp` printed the word after reading the target with the Read tool, and after creating it with the Write tool. A control run that opened no file printed none. Per the docs, a path-scoped rule leaves the context at compaction and returns at the next matching read.
## settings.json: Claude Code runs in auto mode with the dangerous-mode prompt skipped ## settings.json: Claude Code bypasses permissions with the dangerous-mode prompt skipped
2026-10-04, lilleman, answering the principles audit of PR #215. Serves goal 1: this setup is meant to run in a sandbox and to work autonomously, so tool access is granted by the sandbox, as "Always grant explicit access to data" in `principles/technical-principles.md` asks. Valid while every machine taking this checkout is such a sandbox. 2026-10-04, lilleman, answering the principles audit of PR #215. Serves goal 1: this setup is meant to run in a sandbox and to work autonomously, so tool access is granted by the sandbox, as "Always grant explicit access to data" in `principles/technical-principles.md` asks. Valid while every machine taking this checkout is such a sandbox.
2026-12-03, lilleman. Interactive sessions now start in `bypassPermissions` instead of auto mode: auto mode still asked for permission too often for a sandbox, where the sandbox, not the prompt, grants access. Valid while every machine taking this checkout is such a sandbox.
## settings.json: each machine owns its model, and git's clean filter `bin/settings_filter.py` keeps it, and Claude Code's key order, out of every commit ## settings.json: each machine owns its model, and git's clean filter `bin/settings_filter.py` keeps it, and Claude Code's key order, out of every commit
2026-10-21, lilleman. Serves goal 2: Claude Code rewrites `"model"` in `settings.json` on every `/model` and plugin install, so a tracked model let one machine's pick override every other's. lilleman chose a model per machine over one synced in `env.ANTHROPIC_MODEL`, which would override a `/model` pick from the next session on. A model per machine is simpler, and build-release picks each project's model in `~/.claude/loop-claude-models.json` anyway. The filter also sorts the keys, since each write puts them back in Claude Code's order. The cost: a move or pull that changes `settings.json` drops the machine's model. The effort keys, `effortLevel` and `modelSettings`, stay synced: the routing decision on a chunk's worker rung relies on the effort `settings.json` gives every interactive session. Valid while Claude Code writes the model it picks into `settings.json`. 2026-10-21, lilleman. Serves goal 2: Claude Code rewrites `"model"` in `settings.json` on every `/model` and plugin install, so a tracked model let one machine's pick override every other's. lilleman chose a model per machine over one synced in `env.ANTHROPIC_MODEL`, which would override a `/model` pick from the next session on. A model per machine is simpler, and build-release picks each project's model in `~/.claude/loop-claude-models.json` anyway. The filter also sorts the keys, since each write puts them back in Claude Code's order. The cost: a move or pull that changes `settings.json` drops the machine's model. The effort keys, `effortLevel` and `modelSettings`, stay synced: the routing decision on a chunk's worker rung relies on the effort `settings.json` gives every interactive session. Valid while Claude Code writes the model it picks into `settings.json`.
+12
View File
@@ -4016,3 +4016,15 @@ Read most (opens and searches):
- `bin/agent_cycle/run.py` 2 - `bin/agent_cycle/run.py` 2
- `bin/loop_claude/loop/test_usage.py` 2 - `bin/loop_claude/loop/test_usage.py` 2
- `bin/model_routing/worker_rungs.py` 2 - `bin/model_routing/worker_rungs.py` 2
## Reading cost, chunk 6036c9ce08ad, finished 2026-12-03T16:14:50Z
74380 new input tokens before the first commit.
Read most (opens and searches):
- `.gitignore` 5
- `ci.sh` 2
- `bin/repo_checks/test_gitignore.py` 1
- `bin/run-tests` 1
- `settings.json` 1
+1 -1
View File
@@ -59,7 +59,7 @@
"~/.local/state/larv-review", "~/.local/state/larv-review",
"~/code" "~/code"
], ],
"defaultMode": "auto" "defaultMode": "bypassPermissions"
}, },
"skipDangerousModePermissionPrompt": true, "skipDangerousModePermissionPrompt": true,
"skipWorkflowUsageWarning": true, "skipWorkflowUsageWarning": true,
+22 -13
View File
@@ -6,13 +6,12 @@
`Bar = 0.1` `Bar = 0.1`
`Next ID = 580` `Next ID = 581`
## Items ## Items
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|---|---|---|---|---|---|---|---|---|---|---|---| |---|---|---|---|---|---|---|---|---|---|---|---|
| 579 | 0.17.0 | | | **Make stability-reviewer trace every path, asynchronous ones included, to a callback that a change guards.** | 1 | 2 | 2 | 3 | 1 | 1.1 by 2 | 0.7 |
| 484 | 0.18.0 | | owner | **Keep project configs and this machine's rules in `~/.config/build-release/`, and transcripts and review reports in `~/.local/state/build-release/`, each under its `XDG_*` variable where set, read no old place, and have rule-hook guard the new ones.** | 3 | 2 | 4 | 7 | 6 | 2 by 4 | 0.4 | | 484 | 0.18.0 | | owner | **Keep project configs and this machine's rules in `~/.config/build-release/`, and transcripts and review reports in `~/.local/state/build-release/`, each under its `XDG_*` variable where set, read no old place, and have rule-hook guard the new ones.** | 3 | 2 | 4 | 7 | 6 | 2 by 4 | 0.4 |
| 575 | 0.18.0 | 484 | owner | **Rename `do-epic` to `build-epic`, with no alias, and its config folder with it.** | 2 | 2 | 2 | 4 | 4 | 2 by 2, 6 by 1 | 0.6 | | 575 | 0.18.0 | 484 | owner | **Rename `do-epic` to `build-epic`, with no alias, and its config folder with it.** | 2 | 2 | 2 | 4 | 4 | 2 by 2, 6 by 1 | 0.6 |
| 482 | 0.18.0 | | owner | **Run the setup from a clone of a release by the path of its `bin/`, with no install step, and replace `deploy-release` with a command that moves that clone to the newest tag.** | 3 | 2 | 3 | 6 | 7 | 2 by 6 | 0.4 | | 482 | 0.18.0 | | owner | **Run the setup from a clone of a release by the path of its `bin/`, with no install step, and replace `deploy-release` with a command that moves that clone to the newest tag.** | 3 | 2 | 3 | 6 | 7 | 2 by 6 | 0.4 |
@@ -21,6 +20,7 @@
| 577 | 0.18.0 | 483, 486, 575 | owner | **Test in the gate that a container holding only a stock Claude Code runs a chunk from a clone, against a mock Messages API, and that the run leaves the container's own `~/.claude` as it was.** | 3 | 1 | 2 | 4 | 6 | 3 by 9, 2 by 5 | 5.2 | | 577 | 0.18.0 | 483, 486, 575 | owner | **Test in the gate that a container holding only a stock Claude Code runs a chunk from a clone, against a mock Messages API, and that the run leaves the container's own `~/.claude` as it was.** | 3 | 1 | 2 | 4 | 6 | 3 by 9, 2 by 5 | 5.2 |
| 576 | 0.18.0 | 575 | owner | **Name the project `dev-factory` in the README, the prose and the tools, and say in the changelog that the repo moved.** | 2 | 2 | 2 | 4 | 4 | 2 by 1, 6 by 1 | 0.4 | | 576 | 0.18.0 | 575 | owner | **Name the project `dev-factory` in the README, the prose and the tools, and say in the changelog that the repo moved.** | 2 | 2 | 2 | 4 | 4 | 2 by 1, 6 by 1 | 0.4 |
| 578 | 0.18.0 | 576, 577 | owner | **Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.** | 1 | 2 | 1 | 2 | 1 | 2 by 4 | 1.2 | | 578 | 0.18.0 | 576, 577 | owner | **Ship one chunk of this repo, to a merged pull request, from a clone of `main` that runs in the generated home, beside the untouched `~/.claude`.** | 1 | 2 | 1 | 2 | 1 | 2 by 4 | 1.2 |
| 580 | 0.19.0 | | | **Call no scoring run for a release already cut whose last item the chunk moved to a later release.** | 2 | 2 | 3 | 5 | 3 | 1.4 by 3, 1.5 by 3 | 1.6 |
| 487 | 0.20.0 | 483 | owner | **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.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 5, 1.4 by 5 | 0.4 | | 487 | 0.20.0 | 483 | owner | **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.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 5, 1.4 by 5 | 0.4 |
| 498 | 0.20.0 | 487 | owner | **Drive each chunk as a state machine in `build-release`, from preflight through implementing, review, the pull request and the merge to finishing its items, with the worker as one model step that ends in a result that code checks.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 4, 1.4 by 4 | 0.3 | | 498 | 0.20.0 | 487 | owner | **Drive each chunk as a state machine in `build-release`, from preflight through implementing, review, the pull request and the merge to finishing its items, with the worker as one model step that ends in a result that code checks.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 4, 1.4 by 4 | 0.3 |
| 488 | 0.20.0 | 498 | owner | **Cut the larv-review skill, `CLAUDE.md` and rule-hook down to what `build-release` doesn't own: the judgement the model makes and the safety guards.** | 2 | 2 | 3 | 5 | 5 | 1.4 by 4, code health by 2 | 2.3 | | 488 | 0.20.0 | 498 | owner | **Cut the larv-review skill, `CLAUDE.md` and rule-hook down to what `build-release` doesn't own: the judgement the model makes and the safety guards.** | 2 | 2 | 3 | 5 | 5 | 1.4 by 4, code health by 2 | 2.3 |
@@ -45,7 +45,7 @@
| 499 | 0.23.0 | | defect | **Stop `todo-item add` and `edit` from waiting on a stdin that stays open without data, so a call without a heredoc ends at once.** | 2 | 2 | 2 | 4 | 2 | 1.5 by 3, 1.4 by 2 | 1.5 | | 499 | 0.23.0 | | defect | **Stop `todo-item add` and `edit` from waiting on a stdin that stays open without data, so a call without a heredoc ends at once.** | 2 | 2 | 2 | 4 | 2 | 1.5 by 3, 1.4 by 2 | 1.5 |
| 445 | 0.23.0 | | | **Refuse a plan that holds an item a `Finish item <ID>` commit already removed, so a merge resolution cannot bring a finished item back.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3, 1.1 by 2 | 1.4 | | 445 | 0.23.0 | | | **Refuse a plan that holds an item a `Finish item <ID>` commit already removed, so a merge resolution cannot bring a finished item back.** | 2 | 2 | 2 | 4 | 3 | 1.4 by 3, 1.1 by 2 | 1.4 |
| 171 | 0.23.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 | 1.4 | | 171 | 0.23.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 | 1.4 |
| 300 | 0.23.0 | | owner | **Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Self-sufficiency, Locality and Shape first; today the second scoring run at add7c09d scored Navigation 6.75, Locality 5.63, Shape 5.75, Self-sufficiency 5.88 and Overall 5.88.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.4 | | 300 | 0.23.0 | | owner | **Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Locality, Shape and Self-sufficiency first; today the second scoring run at 0aff7d39 scored Navigation 7.00, Locality 5.88, Shape 5.88, Self-sufficiency 6.00 and Overall 6.00.** | 4 | 2 | 3 | 7 | 8 | code health by 8 | 1.4 |
| 264 | 0.23.0 | | | **Report the comprehension seats and the escalated subagents as subagent types of their own in `routing-figures.md`, with their dollars.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 5 | 1.4 | | 264 | 0.23.0 | | | **Report the comprehension seats and the escalated subagents as subagent types of their own in `routing-figures.md`, with their dollars.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 5 | 1.4 |
| 323 | 0.23.0 | | | **Count a release review as landed once its pull request has merged, whatever its commits are titled.** | 3 | 2 | 3 | 6 | 3 | 1.4 by 3, 1.5 by 2 | 1.4 | | 323 | 0.23.0 | | | **Count a release review as landed once its pull request has merged, whatever its commits are titled.** | 3 | 2 | 3 | 6 | 3 | 1.4 by 3, 1.5 by 2 | 1.4 |
| 342 | 0.23.0 | | | **Research the tooling agents read, search and run commands with once more, and file an item for each tool that cuts tokens a replay shows keep quality.** | 1 | 2 | 1 | 2 | 3 | 1.4 by 3, 1.5 by 2 | 1.4 | | 342 | 0.23.0 | | | **Research the tooling agents read, search and run commands with once more, and file an item for each tool that cuts tokens a replay shows keep quality.** | 1 | 2 | 1 | 2 | 3 | 1.4 by 3, 1.5 by 2 | 1.4 |
@@ -106,15 +106,6 @@
## Details ## Details
### 579. Make stability-reviewer trace every path, asynchronous ones included, to a callback that a change guards.
A forge auto-reviewer found, on a library, a guard the stability pass had read as complete: the code kept a user callback from running before the constructor returned by leaving it out of one handler, while a background export of the same record still reached the callback through a global error handler. The stability reviewer checked the direct call and not the asynchronous one.
Add to the concurrency section: where a change keeps a callback, handler or hook from running in some window, the reviewer lists every path that can reach it, including background goroutines, threads, queues and process-wide handlers, and reports each path the guard leaves open.
Touches:
- `agents/stability-reviewer.md`: `### 6. Concurrency & State Management` (small)
### 484. Keep project configs and this machine's rules in `~/.config/build-release/`, and transcripts and review reports in `~/.local/state/build-release/`, each under its `XDG_*` variable where set, read no old place, and have rule-hook guard the new ones. ### 484. Keep project configs and this machine's rules in `~/.config/build-release/`, and transcripts and review reports in `~/.local/state/build-release/`, each under its `XDG_*` variable where set, read no old place, and have rule-hook guard the new ones.
Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. Today they live in `~/.claude-projects/`, `~/.claude/*-transcripts`, `~/.claude/loop-claude-models.json` and `~/.local/state/larv-review`. `rules/goals-and-audience.md` loads by the glob `**/.claude-projects/*/goals.md`, which moves with the folder. The release ships no migrate command and reads no old place: the only two machines move once, after the cut, by a throwaway script that is never committed. 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, as it does today from the old folder. Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. Today they live in `~/.claude-projects/`, `~/.claude/*-transcripts`, `~/.claude/loop-claude-models.json` and `~/.local/state/larv-review`. `rules/goals-and-audience.md` loads by the glob `**/.claude-projects/*/goals.md`, which moves with the folder. The release ships no migrate command and reads no old place: the only two machines move once, after the cut, by a throwaway script that is never committed. 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, as it does today from the old folder.
@@ -421,6 +412,22 @@ Touches:
- `README.md` - `README.md`
### 580. Call no scoring run for a release already cut whose last item the chunk moved to a later release.
When a chunk's first change moves its plan item out of a release already cut into the next one, as `CLAUDE.md` → "Working loop" asks, `larv-review needs-scoring-run <ID>` and `scoring-run-owed` still say the chunk "leaves release 0.17.0 with no plan item". The chunk then owes two scoring runs: eight seat launches and a task-bench run, hours of work. Item 579, a one-line change to an agent file, ran the full scoring twice for this reason.
The cause is in `bin/larv_review/scoring_due.py`. `plan_reasons` reads the plan at the merge base, where the item still stands under the cut release. `owed.py`'s `owed_scoring_run` passes no IDs, so `plan_reasons` counts as shipped each item the merge base's plan holds and the branch's doesn't. `scoring_run_due` builds the shipped item from the merge base's row once the chunk has finished it, so the item carries the cut release. `emptied` then finds that release named by no kept item, and `work_landed` counts work as landed because a shipped item names it. `landed_towards` already returns None for a cut release; `work_landed` doesn't check that.
Fix it in one of two ways, recommended first: have `emptied` or `work_landed` leave out a release no later than the last cut, which `plan_reasons` can read from `held.cut`'s tag, since a cut release can't end unmeasured; or read a moved item's release from the branch's plan before its finish. Keep the deferral of an uncut release due a run, as `test_calls_a_scoring_run_for_a_deferred_release_and_none_for_one_the_checkouts_plan_marks_renamed` checks. Test both tools against a repo with a `v0.1.0` tag whose chunk moves 0.1.0's last item to 0.2.0 and ships it.
The comprehension seats found the needs-scoring-run paragraph of `larv-review --help` hard to follow, since the rule for when a run is due and owed is visible only in a long docstring (`bin/larv_review/main.py:33`). Where the item changes that paragraph, make it easier to read.
Touches:
- `bin/larv_review/scoring_due.py`: `scoring_run_due`, `work_landed`, `emptied`, `plan_reasons` (small)
- `bin/larv_review/test_larv_review.py`: `ScoringRunDue`, `LarvReviewTool`
- `bin/larv_review/main.py`: `(module)` (small)
### 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. ### 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.
Part of the standalone-install plan lilleman approved on 2026-11-20. It applies the decision `loop: a step whose result a program can check …` in `docs/decisions.md`. The reviewer briefs stay prose. Start here, since larv-review holds the most sequencing rules. Part of the standalone-install plan lilleman approved on 2026-11-20. It applies the decision `loop: a step whose result a program can check …` in `docs/decisions.md`. The reviewer briefs stay prose. Start here, since larv-review holds the most sequencing rules.
@@ -560,12 +567,14 @@ Have the gate, or `rank_todo.py --check` where it runs in a checkout, refuse a p
Raised by the goals audit of PR #296. `bin/routing_figures/calls.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). Raised by the goals audit of PR #296. `bin/routing_figures/calls.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).
### 300. Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Self-sufficiency, Locality and Shape first; today the second scoring run at add7c09d scored Navigation 6.75, Locality 5.63, Shape 5.75, Self-sufficiency 5.88 and Overall 5.88. ### 300. Reach the comprehension floor: restructure the places the comprehension seats found hardest to follow, so the project reads at 7.0 or above on every dimension, Locality, Shape and Self-sufficiency first; today the second scoring run at 0aff7d39 scored Navigation 7.00, Locality 5.88, Shape 5.88, Self-sufficiency 6.00 and Overall 6.00.
Filed by the comprehension check of PR #473 at 13d1550 (`larv-review record-scoring`), which printed `Floor:` and `Next:`, refreshed from the two runs of item 525's chunk at 68611733, and then from the two runs of item 565's chunk at 98c49021. The lowest mean of the second run at 98c49021 is Self-sufficiency at 5.75, with Locality at 5.88 and Shape at 6.13; the first run put Self-sufficiency lowest at 5.63, with Locality and Shape at 5.75. Self-sufficiency: the why behind code sits in `docs/decisions.md`, cited by title from about 120 places, and the review loop's rules live in `skills/larv-review/SKILL.md`, not beside the unit that enforces them; `bin/agent_cycle/routing.py:115` `unfinished_route` keeps its reasons in the decision log too. Locality: do-epic and chunk-pr run order-dependent steps and keep state in tmux window names and between loop passes (`start_chunks`, `resumed_news`, `merged`, `merge_turn`), and no code enforces the order; `bin/do_epic/main.py:236` `chunk_run` and `bin/do_epic/scheduler.py:172` `start_chunks` are the hardest do-epic places, and the round cap is counted three ways (`bin/rule_hook/round_cap.py:28` `earlier_titles`, `bin/larv_review/reviewer_header.py:83` `branch_summaries`, `bin/review_rules/round_titles.py:39` `named_counts`). Shape: `bin/` stays flat at about 86 entries at one level, long functions carry several flags at once, and the OLD_SHAPE fork in `bin/plan/ranking.py` doubles the paths through ranking. Refresh this item's places and aim from the newest run before the chunk starts; do not file a second floor item. Filed by the comprehension check of PR #473 at 13d1550 (`larv-review record-scoring`), which printed `Floor:` and `Next:`, refreshed from the two runs of item 525's chunk at 68611733, and then from the two runs of item 565's chunk at 98c49021. The lowest mean of the second run at 98c49021 is Self-sufficiency at 5.75, with Locality at 5.88 and Shape at 6.13; the first run put Self-sufficiency lowest at 5.63, with Locality and Shape at 5.75. Self-sufficiency: the why behind code sits in `docs/decisions.md`, cited by title from about 120 places, and the review loop's rules live in `skills/larv-review/SKILL.md`, not beside the unit that enforces them; `bin/agent_cycle/routing.py:115` `unfinished_route` keeps its reasons in the decision log too. Locality: do-epic and chunk-pr run order-dependent steps and keep state in tmux window names and between loop passes (`start_chunks`, `resumed_news`, `merged`, `merge_turn`), and no code enforces the order; `bin/do_epic/main.py:236` `chunk_run` and `bin/do_epic/scheduler.py:172` `start_chunks` are the hardest do-epic places, and the round cap is counted three ways (`bin/rule_hook/round_cap.py:28` `earlier_titles`, `bin/larv_review/reviewer_header.py:83` `branch_summaries`, `bin/review_rules/round_titles.py:39` `named_counts`). Shape: `bin/` stays flat at about 86 entries at one level, long functions carry several flags at once, and the OLD_SHAPE fork in `bin/plan/ranking.py` doubles the paths through ranking. Refresh this item's places and aim from the newest run before the chunk starts; do not file a second floor item.
Newest run, two runs of item 569's chunk at add7c09d: Locality is lowest at 5.63. It adds these places to the list below: `bin/rule_hook/reviewer_rung.py:28` `reviewer_breaches` refuses a launch for its rung and never for its round count, so the round cap has a launch-time gap beside the three counters; `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start` is a near-twin of `bin/do_epic/scheduler.py:172` `start_chunks` with different rules and no stated reason for two; `bin/agent_cycle/tmux.py:92` `as_listed` keeps chunk state in window-name suffixes that other code matches on; `bin/plan/ranking.py:144` `weigh` checks the old table shape in every function; `bin/do_epic/__init__.py:1` has no map of its 25 modules. Newest run, two runs of item 569's chunk at add7c09d: Locality is lowest at 5.63. It adds these places to the list below: `bin/rule_hook/reviewer_rung.py:28` `reviewer_breaches` refuses a launch for its rung and never for its round count, so the round cap has a launch-time gap beside the three counters; `bin/build_release/loop/chunk_windows.py:150` `chunks_to_start` is a near-twin of `bin/do_epic/scheduler.py:172` `start_chunks` with different rules and no stated reason for two; `bin/agent_cycle/tmux.py:92` `as_listed` keeps chunk state in window-name suffixes that other code matches on; `bin/plan/ranking.py:144` `weigh` checks the old table shape in every function; `bin/do_epic/__init__.py:1` has no map of its 25 modules.
Newest run, two runs of item 579's chunk at 0aff7d39: Locality and Shape are lowest, both at 5.88, with Self-sufficiency at 6.00 and Navigation at 7.00. It adds these places to the list below: `bin/chunk_pr/main.py:601` `levelled_and_finished` is an order-dependent chain of git changes and a scoring-run check, with no statement of what holds after it returns; `bin/agent_cycle/run.py:160` `rule` decides the figures written by the order of its archive calls, and only a comment says so; `bin/larv_review/main.py:33` "needs-scoring-run" holds the whole rule for when a run is due and owed only in a long docstring; `bin/plan_store/jira_epic.py:200` `edit` hides the loop-filed against person-filed rule among about 45 lines of early returns; `bin/transcript_archive/outcomes.py:11` `outcomes` is a line format that four readers parse by regex; `bin/do_epic/main.py:236` `chunk_run` sits in a 520-line main that also holds help text and the issue-move policy.
Aim: one ambitious refactor of the areas below, sized so every mean reaches 7.0 on the chunk's own scoring run. Where a place is already easier to read when the chunk starts, drop it. Aim: one ambitious refactor of the areas below, sized so every mean reaches 7.0 on the chunk's own scoring run. Where a place is already easier to read when the chunk starts, drop it.
Places the seats named in the two runs at 98c49021, hardest first (`larv-review places`), Self-sufficiency first: Places the seats named in the two runs at 98c49021, hardest first (`larv-review places`), Self-sufficiency first: