From f609bdfbb128d06416d648e62c750d1ad366fd76 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 4 Dec 2026 11:27:03 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=202:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=207=20=F0=9F=9F=A1=20(0=20misread);=20correct=20the=20routing?= =?UTF-8?q?=20docstrings=20and=20the=20no-clone=20rule,=20split=20the=20de?= =?UTF-8?q?cisions'=20long=20sentences,=20and=20decline=20renaming=20the?= =?UTF-8?q?=20setup's=20rules=20group?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/decisions.md | 8 ++++---- todo.md | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/decisions.md b/docs/decisions.md index 7b94ef78..6d50d128 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -143,7 +143,7 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b 2026-12-04, lilleman's plan for 0.18.0. Serves goal 3. `bin/claude_home` builds the home in the data folder, `~/.local/share/build-release/claude-home`, so the clone stays a clean checkout: the files Claude Code keeps in its home never reach a commit. Only a change made through one of the six links below reaches the clone. `bin/claude_home` links `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/` to the clone's, `bin/` and `principles/` since `setup files: …` below, and writes `settings.json` from the clone's with the clone's path in place of `{clone}`, since the clone may lie anywhere and the tracked file can't hold its path. It builds the home again when the clone's commit or path changes, which covers a release's tag and a development clone alike. Probed on 2.1.336, once, while the home was built: `claude plugin install` finds a plugin only after `claude plugin marketplace add` of its marketplace; each exits 0 where its work is already done; and an install rewrites the home's `settings.json` in Claude Code's key order. Not tested: that a session loads `agents/`, `CLAUDE.md`, `rules/` and `skills/` through links, which needs a model request. -2026-12-04, the release review of 0.18.0, declining the architect's finding that two clones can rebuild one home. Only the README keeps the development clone's `claude_home` from repointing a running loop's home. Serves goal 2. One home per machine is what lets the person sign in once. A program-held guard would have to know which clone is the development one and whether a loop is running, and pass both into `claude_home`. The cost of the README's rule is a chunk that runs on unreleased rules after someone ran the development clone's tool. Valid while one person runs the setup on a machine; two clones that run loops at once would each need a home. +2026-12-04, the release review of 0.18.0, declining the architect's finding that two clones can rebuild one home. Only the README keeps the development clone's build-release, build-epic, `task-bench gather` and `claude-release` from repointing a running loop's home. Serves goal 2. One home per machine is what lets the person sign in once. A program-held guard would have to know which clone is the development one and whether a loop is running, and pass both into `claude_home`. The cost of the README's rule is a chunk that runs on unreleased rules after someone ran the development clone's tool. Valid while one person runs the setup on a machine; two clones that run loops at once would each need a home. ## comprehension floor: every dimension and the overall at the project's readability floor or above is the target, and no score blocks a merge or release @@ -157,7 +157,7 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b 2026-11-11, lilleman through item 314. Serves goal 1.4. Claude Code loaded `~/.claude/AGENTS.md` into every other project's sessions, and each 1,000 tokens every thread starts with cost $68.60 of the $9,154 spent from 2026-09-30 to 2026-11-11: the 14.4 KB file cost about 2.1% of spend, and put this repo's rules in front of other projects. Other projects keep the name `AGENTS.md`, so the setup stays portable to other harnesses. The working rules sit there too, rather than in `.claude/rules/`, since build-release's judge reads the decision log and no project's `.claude/rules/`. In the clone, the release's `~/.claude/CLAUDE.md` and the clone's both loaded, about 0.9% of spend; the exclude drops the release's, so a chunk runs under the rules it is changing. A session working in `~/.claude` itself loads no `CLAUDE.md`, since there both are the same file; none works there, as the entry above says. -Valid while `~/.claude` is a checkout of this repo. Item 585 ends it: from 0.18.0 `~/.claude` is the person's own Claude home, not a checkout of this repo, so the reason is gone. +Valid while `~/.claude` is a checkout of this repo. Item 585 ends it: from 0.18.0 `~/.claude` is the person's own Claude home, not a checkout, so AGENTS.md no longer loads into other projects' sessions. ## deploy: `cut-release` cuts a release through a pull request merged fast-forward only, then tags the merged commit, and `--patch` tags a patch of the newest tag beside `main`, then merges the tag back; the human runs both @@ -689,7 +689,7 @@ Valid while the worker reports in its transcript the triggers that fired, and wh 2026-10-15, lilleman. Serves goals 1.2 and 1.4. -The cost of a cheaper worker shows as extra review rounds and unfinished verdicts. Every 20 cycles across the archive, build-release measures them in code, with no model run (goal 1.4), and interrupts lilleman with the calls not raised before, when chunks routed onto a rung took more of either than chunks routed onto the next rung up, each rung with 5 chunks or more. Five keeps one odd chunk from calling for a change (goal 1.2). It also calls when the reports of 5 or more subagents of one type were longer than the tool results they read, so a delegated search cost the worker more context than it saved. `bin/routing_figures/` measures and words the calls. A loop on another project cannot commit here, so it writes the figures and the calls raised at the archive's root, and this repo's next chunk files the plan item, as `AGENTS.md` says. Off a terminal, a call is said on stderr and the loop goes on: it is about this setup, not the running project's chunk. A machine without the development clone, such as a release-only install, has nowhere to change the decision, so a DM that went out is the last word there and marks the calls raised, and one that failed leaves them to come again; where the project's config names no notifier, the DM is skipped and stderr is what the human gets, since the project asked for no DMs. A reset line in the calls file restarts the figures after a routing change, so they show whether the change worked. +The cost of a cheaper worker shows as extra review rounds and unfinished verdicts. Every 20 cycles across the archive, build-release measures them in code, with no model run (goal 1.4), and interrupts lilleman with the calls not raised before, when chunks routed onto a rung took more of either than chunks routed onto the next rung up, each rung with 5 chunks or more. Five keeps one odd chunk from calling for a change (goal 1.2). It also calls when the reports of 5 or more subagents of one type were longer than the tool results they read, so a delegated search cost the worker more context than it saved. `bin/routing_figures/` measures and words the calls. A loop on another project cannot commit here, so it writes the figures and the calls raised at the archive's root, and this repo's next chunk files the plan item, as `AGENTS.md` says. Off a terminal, a call is said on stderr and the loop goes on: it is about this setup, not the running project's chunk. A machine without the development clone, such as a release-only install, has nowhere to change the decision. There a DM that didn't fail marks the calls raised, since it is the last word, and a failed one leaves them to come again. A project whose config names no notifier skips the DM, so stderr is what its human gets, and the calls are marked raised all the same. A reset line in the calls file restarts the figures after a routing change, so they show whether the change worked. Since 2026-10-16 the reviewers may run above the worker's rung, on the one the highest E + I among their chunk's items picks, so chunks whose worker ran on a lower rung may take more rounds from stronger reviewers, and a call could blame the worker's rung for them; `todo.md` item 171 groups the rounds by the reviewers' rung too. Valid while build-release's archive holds every finished chunk's review rounds and unfinished verdicts. @@ -922,7 +922,7 @@ Valid while task-bench's figures are unproven against the panel's scores. The protection lives in Gitea's settings, outside the repo: rule `main`, required status check `CI / tests (pull_request)`. A pull request has no status until CI queues its run, so `cut-release` waits for each check the protection requires rather than reading no status as no checks, for 30 minutes at most. CI runs no rule-hook check, so a `rule-override` in the PR body doesn't have anything to override. Whoever adds a rule check to CI must also let it read the PR body's `rule-override`. Valid while gitea.larvit.se runs a runner labelled `docker-host`. -2026-12-04, the release review of 0.18.0, recording the architect's finding that the first-chunk e2e makes the gate depend on the network, and keeping the dependency. Serves goal 2. `ci.sh` also runs `first-chunk-e2e/run`, which adds two waits of at most 300 s each and needs the network: apt for git and tmux, and `claude plugin marketplace add` for the plugins the setup's `settings.json` enables, taken at the marketplace's head. The e2e keeps the apt install and the marketplace head, since it runs a first chunk as a newcomer's install does. Claude Code's documentation says `plugin marketplace add` pins a GitHub source only to a branch or tag with `#`, and refuses a commit for the reserved name `claude-plugins-official`, and that repository has no tags, so a ref could only name a branch that moves. A red gate that the network or the marketplace caused is rerun, not fixed. Valid while `anthropics/claude-plugins-official` publishes no tags; once it does, add the marketplace at a tag. +2026-12-04, the release review of 0.18.0, recording the architect's finding that the first-chunk e2e makes the gate depend on the network, and keeping the dependency. Serves goal 2. `ci.sh` also runs `first-chunk-e2e/run`, which adds two waits of at most 300 s each and needs the network: apt for git and tmux, and `claude plugin marketplace add` for the plugins the setup's `settings.json` enables, taken at the marketplace's head. The e2e keeps the apt install and the marketplace head, since it runs a first chunk as a newcomer's install does. Claude Code's documentation says `plugin marketplace add` pins a GitHub source only to a branch or tag with `#`, and refuses a commit for the reserved name `claude-plugins-official`. That repository has no tags, so a ref could only name a branch that moves. A red gate that the network or the marketplace caused is rerun, not fixed. Valid while `anthropics/claude-plugins-official` publishes no tags; once it does, add the marketplace at a tag. ## tests: each test earns its keep as the technical principles' test bullet says, and the worker takes a test's expected values from its item, never from the code diff --git a/todo.md b/todo.md index bfacd14b..9cb48ff9 100644 --- a/todo.md +++ b/todo.md @@ -17,7 +17,7 @@ | 585 | 0.19.0 | | | **Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.** | 3 | 1 | 3 | 5 | 4 | code health by 3 | 3.1 | | 592 | 0.19.0 | | principle | **Wait on an event in the tests that poll with sleeps or assert on the wall clock, in `loop_effects`, `cut_release` and `mutate_changes`, with a timeout that only fails the test.** | 3 | 2 | 1 | 4 | 5 | code health by 3, 1.5 by 2 | 2.7 | | 591 | 0.19.0 | | principle | **Let an environment variable name the setup's development clone, with `~/code/dev-factory` as its default, documented in README's Install and build-release's `--help`.** | 2 | 1 | 2 | 3 | 3 | code health by 2 | 2.5 | -| 595 | 0.19.0 | | principle | **Move the five dated study folders at the repo's root under one folder named for what it holds, so the root shows the entry points first.** | 3 | 1 | 2 | 4 | 5 | code health by 3 | 2.3 | +| 595 | 0.19.0 | | principle | **Move the five dated folders of studies and a talk at the repo's root under one folder named for what it holds, so the root shows the entry points first.** | 3 | 1 | 2 | 4 | 5 | code health by 3 | 2.3 | | 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 | | 593 | 0.19.0 | | principle | **Pin hard tabs for the tracked `settings.json` in the settings check, or record the decision that keeps its spaces, and report each failing case of the check's loops through `subTest`.** | 1 | 1 | 1 | 1 | 2 | code health by 1 | 1.4 | | 589 | 0.19.0 | | | **Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last.** | 2 | 2 | 1 | 3 | 2 | 1.1 by 3 | 1.0 | @@ -163,7 +163,7 @@ Evidence: - `bin/mutate_changes/test_mutate_changes.py:372-386`: `interrupted` and `assert_ends` poll with sleeps. - `bin/mutate_changes/test_mutate_changes_runs.py:299, 306` poll with sleeps. -A wait that polls, or a bound on elapsed time, fails on a loaded runner without a defect in the code. Wait on an event instead: `os.pidfd_open` with `select`, or a pipe the child writes to, and `Popen.wait(timeout=...)` only as the backstop that fails the test. Items 102 and 456 cover other places: test_black_box.py's `sitecustomize` swaps and the `ChildShells` race. +A wait that polls, or a bound on elapsed time, can fail on a loaded runner without a defect in the code. Wait on an event instead: `os.pidfd_open` with `select`, or a pipe the child writes to, and `Popen.wait(timeout=...)` only as the backstop that fails the test. Items 102 and 456 cover other places: test_black_box.py's `sitecustomize` swaps and the `ChildShells` race. L 3, since the change spans three packages and brings a new waiting pattern. E 2, since a wait that still races shows only under load. @@ -188,11 +188,12 @@ Touches: - `bin/loop_state/test_paths.py`: `SetupFolders` (small) - `bin/build_release/loop/usage.py`: `HELP` (small) - `README.md`: `## Install` (small) -- `README.md`: `lines 211-217` (small) +- `README.md`: `## Release`, `## Tools` (small) +- `bin/build_release/loop/test_routing_check.py` - `CLAUDE.md`: `## Vocabulary` (small) - `bin/self_update/main.py`: `lines 5-9` (small) -### 595. Move the five dated study folders at the repo's root under one folder named for what it holds, so the root shows the entry points first. +### 595. Move the five dated folders of studies and a talk at the repo's root under one folder named for what it holds, so the root shows the entry points first. Principle: `principles/technical-principles.md` → "About seven things per level, so a reader new to the project can take in each level at once" and "Make the entry point the first thing a newcomer finds". From the principles pass of 0.18.0's release review.