diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e9314ac..15a906fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- **The loop's Claude home keeps out your own `~/.claude/CLAUDE.md` and `~/.claude/rules/`, which Claude Code loaded in every project under your home folder.** The home's generated `settings.json` now names your `~/.claude` in `claudeMdExcludes`. build-release and build-epic refuse to run from a release cloned inside `~/.claude`, since that setting would drop the release's own rules: clone it elsewhere, as `README.md` → Install says. The gate now runs a first chunk as a newcomer would, in a container with a stock Claude Code and a mock Messages API (`first-chunk-e2e/run`), and fails where anything from that `~/.claude` reaches a request or the folder changes. - Added `claude-release`, which opens claude in the loop's Claude home with the setup loaded, in the folder you run it in, and passes every argument on to claude; `README.md` → Install says how it differs from the claude you start from your own `~/.claude`. - **The project and its repo are named `dev-factory`, in the README, the docs, the prose and the tools; the repo moved from `claude-config` on the forge.** Before you update, point each clone at the new URL, as `README.md` → Install clones it: `git remote set-url origin `. First finish the project's open chunks and stop its running `build-release`: neither the tmux session `loop-claude-config` nor a claude session named `A claude-config build-release ` is found under the new key. Then rename the setup's development clone from `~/code/claude-config` to `~/code/dev-factory`, where the tools expect it. A project's key is its clone's path relative to `~/code`, so the rename gives the project a new key. After it, set `checkout = "~/code/dev-factory"` in the project's `config.toml`, move its folder `~/.config/build-release/claude-config/` to `~/.config/build-release/dev-factory/`, move its folder under the transcripts root the same way (`~/.local/state/build-release/transcripts/`, unless `BUILD_RELEASE_TRANSCRIPTS` names another), and rename its entry in `~/.config/build-release/models.json`. The Docker image the README builds for `task-bench` is tagged `dev-factory-task-bench`, not `claude-config-task-bench`: build it again. - **The rules, agents, skills and each tool's text name a file of the setup as the setup's, as in the setup's `rules/todo-items.md`, and a project's config names one as `setup:`, as in `standards = "setup:skills/larv-review/standards"`.** Both hold wherever the release is cloned; `CLAUDE.md` → "Vocabulary" defines the setup. The loop's Claude home links `bin/` and `principles/` too, and `task-bench gather` runs its claude in that home, where it exits 1 until someone is signed in. diff --git a/todo.md b/todo.md index b625cdc3..b5ec8965 100644 --- a/todo.md +++ b/todo.md @@ -12,8 +12,7 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 577 | 0.18.0 | | 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.** | 4 | 2 | 3 | 7 | 7 | 3 by 9, 2 by 5 | 3.1 | -| 578 | 0.18.0 | 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 | | 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 | | 586 | 0.19.0 | | | **Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink.** | 2 | 3 | 2 | 5 | 3 | 3 by 4 | 5.0 | | 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 | | 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 | @@ -28,7 +27,7 @@ | 493 | 0.21.0 | 490, 491 | owner | **Add a second harness adapter and run one chunk of this repo on it end to end.** | 3 | 2 | 2 | 5 | 7 | 1.4 by 3, 1.3 by 2, 6 by 8 | 1.3 | | 495 | 0.22.0 | | owner | **Fail the gate where shipped content names a person, a client, a private host or a private URL.** | 2 | 1 | 3 | 4 | 3 | 5 by 5 | 6.2 | | 497 | 0.22.0 | 498 | decision | **Compare the first 10 chunks `build-release`'s state machine drove with the 10 before them on tokens, 🔴 and 🟡 findings and interrupts per chunk, and move back to prose each step whose figures got worse.** | 1 | 2 | 1 | 2 | 3 | 1.1 by 3, 1.4 by 3 | 1.7 | -| 494 | 0.22.0 | 577 | owner | **Let a newcomer clone a release, sign in and run a first project from the README alone, with an example config.** | 2 | 2 | 2 | 4 | 5 | 1.6 by 4, 2 by 6 | 1.6 | +| 494 | 0.22.0 | | owner | **Let a newcomer clone a release, sign in and run a first project from the README alone, with an example config.** | 2 | 2 | 2 | 4 | 5 | 1.6 by 4, 2 by 6 | 1.6 | | 496 | 0.22.0 | 491 | owner | **Rename what says Claude where it means any harness, such as `CLAUDE.md`.** | 3 | 2 | 3 | 6 | 6 | 6 by 2, code health by 2 | 1.2 | | 446 | 0.23.0 | | question | **Kill the process a stuck check names where its verdict is `stuck`, once the human says the recorded verdicts match what they would have done.** | 2 | 2 | 3 | 5 | 3 | 1.5 by 3 | 0.8 | | 521 | 0.23.0 | | | **Refuse a `.dockerignore` that leaves out a secret-named entry the `.gitignore` beside it ignores, where a Dockerfile copies the whole build context.** | 2 | 2 | 3 | 5 | 3 | 5 by 4 | 5.0 | @@ -102,24 +101,6 @@ ## Details -### 577. 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. - -Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. Split from item 494, which keeps the newcomer's README. The probes behind the decision "Claude Code in a home of its own" already ran a mock Messages API at `ANTHROPIC_BASE_URL`. The test fails where goal 3 breaks: it compares `~/.claude` before and after the run. Give the container a memory and a swap limit, and run it under `run-heavy`. - -The chunk also fixes the defect the test found: Claude Code loaded the person's own `~/.claude/CLAUDE.md` and `~/.claude/rules/` in the loop's Claude home, so the home's `settings.json` now excludes them with `claudeMdExcludes`. - -The test's own files, such as its Dockerfile and mock Messages API, are new, and their folder is not yet named, so the list leaves them out. - -Touches: - -- `ci.sh` -- `.gitignore` -- `README.md`: `## Test` (small) -- `bin/claude_home/home.py`: `unready` (small), `refreshed` (small), `settings_written` (small) -- `bin/claude_home/test_home.py` -- `bin/loop_effects/effects.py`: `system_effects` (small) -- `docs/decisions.md`: `` ## Claude Code in a home of its own: a `CLAUDE_CONFIG_DIR` home loads `CLAUDE.md`, rules, agents, skills, hooks and plugins, and `CLAUDE_CODE_OAUTH_TOKEN` signs in there, but never under `--bare` `` (small) - ### 578. 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`. Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. This is the proof lilleman asked for before the cut. The chunk takes any item left in 0.18.0, or a tiny one filed for it. The machines themselves move after the cut, which is no plan item: the script that moves transcripts, archives, memory and plugins into the new home is thrown away once both machines have run it.