diff --git a/CHANGELOG.md b/CHANGELOG.md index e99ce197..c34b4b8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- The setup's folders moved, and nothing reads or migrates the old ones. Before you update, stop every running `build-release` and `do-epic`. Then move `~/.claude-projects/` to `~/.config/build-release/` and `~/.claude/loop-claude-models.json` to `~/.config/build-release/models.json`; move `~/.claude/loop-claude-transcripts` to `~/.local/state/build-release/transcripts` and `~/.claude/do-epic-transcripts` to `~/.local/state/build-release/do-epic-transcripts`; move `larv-review`, `do-epic`, `project-record`, `run-heavy` and `deploy-release` from `~/.local/state/` into `~/.local/state/build-release/`; and delete `~/.local/state/loop-claude/`, which held only locks. Respell each setting that names `~/.claude-projects/`, such as `env-file`, and the log path in your crontab line. Where `XDG_CONFIG_HOME` or `XDG_STATE_HOME` holds an absolute path, the two folders are `build-release/` under it instead, and a chunk's tmux window is handed both variables. - 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`. diff --git a/todo.md b/todo.md index 651cf6af..30749b18 100644 --- a/todo.md +++ b/todo.md @@ -12,10 +12,9 @@ | ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score | |---|---|---|---|---|---|---|---|---|---|---|---| -| 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.** | 4 | 2 | 4 | 8 | 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 | | 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 | -| 483 | 0.18.0 | 482, 484 | owner | **Run every claude the loop starts in a Claude home that the commands generate under `~/.local/share/build-release/` and refresh when the clone's tag changes, with the enabled plugins installed there and the person signed in by `/login` in that home.** | 4 | 2 | 3 | 7 | 7 | 2 by 8 | 0.5 | +| 483 | 0.18.0 | 482 | owner | **Run every claude the loop starts in a Claude home that the commands generate under `~/.local/share/build-release/` and refresh when the clone's tag changes, with the enabled plugins installed there and the person signed in by `/login` in that home.** | 4 | 2 | 3 | 7 | 7 | 2 by 8 | 0.5 | | 486 | 0.18.0 | 483 | owner | **Open an interactive claude with the setup loaded through one wrapper command, which sets the generated home and `PATH` and passes every argument on to claude.** | 2 | 1 | 1 | 2 | 3 | 2 by 2 | 0.5 | | 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 | @@ -106,88 +105,6 @@ ## Details -### 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. - -Item 480 lands first and gathers these paths in one module, so how many of the call sites below still change here is not predictable; the list names each. Whether the other state the tools keep under `~/.local/state`, such as the chunk claims, do-epic's epic state and the project-record copies, moves too is not predictable either, so the list holds it. The trial records under `judge-field-trials/`, `reviewer-merge-trials/`, `stability-skip-count/` and `presentation/` name the old transcript folders, and the list leaves them out as history. - -L is 4 since the change is S 6, spans some twenty packages under `bin/`, moves live config and state, and threads the `XDG_*` environment to call sites that today hold only `home`. - -Touches: - -- `bin/loop_state/paths.py`: `Paths` (small), `paths_from` (small) -- `bin/project_config/settings.py`: `(module)`, `PROJECTS`, `DO_EPIC`, `ProjectConfig`, `load`, `held`, `by_name`, `configs`, `env_files` -- `bin/project_config/main.py`: `(module)` (small) -- `bin/review_rules/review_folder.py`: `REPORTS`, `review_folder`, `made_review_folder` -- `bin/transcript_archive/__init__.py`: `(module)` (small) -- `bin/transcript_archive/location.py`: `archive_root`, `project_archive` -- `bin/chunk_driver/claims.py`: `CLAIMS`, `project_lock` (small) -- `bin/chunk_driver/project/model_choice.py`: `save_model` (small) -- `bin/project_record/main.py`: `(module)` (small), `COPIES`, `opened` (small), `pruned` (small) -- `bin/do_epic/config.py`: `(module)`, `DoEpicConfig`, `load` -- `bin/do_epic/repos.py`: `locate` (small) -- `bin/do_epic/main.py`: `HELP` (small), `ARCHIVE`, `next_cycle` (small) -- `bin/do_epic/scheduler.py`: `STATE`, `Epic.folder` (small) -- `bin/do_epic/backend/jira.py`: `NO_FINISH` (small) -- `bin/do_epic/e2e/scenario.py`: `machine_made` (small) -- `bin/rule_hook/env_file.py`: `(module)`, `env_file_breaches`, `reaching` -- `bin/rule_hook/reviewer_report.py`: `(module)` (small), `report_breaches` -- `bin/rule_hook/rules.py`: `RULES` (small) -- `bin/compress_archives/main.py`: `(module)`, `main` -- `bin/review_replay/main.py`: `(module)` (small) -- `bin/review_replay/replay.py`: `review` (small), `redirected` (small) -- `bin/judge_replay/main.py`: `(module)` (small) -- `bin/larv_review/main.py`: `(module)` (small) -- `bin/build_release/loop/usage.py`: `HELP` (small) -- `bin/notifier/main.py`: `(module)` (small) -- `bin/reading_cost/main.py`: `(module)` (small) -- `bin/subagent_rung/main.py`: `(module)` (small) -- `bin/task_bench/main.py`: `bench` (small) -- `settings.json`: lines 59-59 -- `rules/goals-and-audience.md`: `(top)` (small) -- `CLAUDE.md`: `## Working with the codebase` (small), `## Git, commits, and PRs` (small) -- `README.md`: `## Install`, `### Set up a project`, `## Release` (small), `## Test` (small) -- `bin/chunk_driver/project/test_model_choice.py`: `SavingAModel` -- `bin/chunk_driver/project/test_records.py`: `Records` -- `bin/chunk_driver/test_claims.py`: `Starting` -- `bin/chunk_pr/test_chunk_pr.py`: `Checkout`, `Merge` -- `bin/chunk_preflight/test_chunk_preflight.py`: `Repo`, `ChunkPreflightTool`, `EpicBranchWorktree` -- `bin/command_patterns/test_command_patterns.py`: `Main` -- `bin/compress_archives/test_compress_archives.py`: `Main` -- `bin/do_epic/backend/test_jira.py`: `Jira` -- `bin/do_epic/test_do_epic.py`: `ConfigTest` -- `bin/do_epic/test_findings.py`: `FindingsTest`, `FilingAFinding` -- `bin/do_epic/test_finish.py`: `ClosingTheEpic`, `TheFinishingChunk` -- `bin/do_epic/test_human_tasks.py`: `AHumanTaskThatBlocksAnIssue` -- `bin/do_epic/test_main.py`: `DoEpicTest`, `TheCommand`, `ACycleOfAChunkWithoutARepo`, `TheHumansRun`, `AChunksRun`, `AChunkWhosePullRequestWaitsOnAGate`, `AnEpicsWorkingBranch`, `TheDryRun` -- `bin/do_epic/test_planning.py`: `Planning` -- `bin/do_epic/test_repos.py`: `LocateTest` -- `bin/do_epic/test_scheduler.py`: `StartingAnEpicsChunks` -- `bin/judge_replay/test_judge_replay.py`: `Main` -- `bin/larv_review/test_larv_review.py`: `LarvReviewTool` -- `bin/larv_review/test_scoring_setup.py`: `PrepareScoring` -- `bin/build_release/loop/test_chunk_windows.py`: `StartChunks` -- `bin/build_release/loop/test_main.py`: `WindowStarts`, `OwnLadder` -- `bin/build_release/test_black_box.py`: `Checkout`, `Premises`, `Cycles`, `Windows`, `Interrupt` -- `bin/notifier/test_notifier.py`: `Project` -- `bin/project_config/doubles.py`: `write_config` -- `bin/project_config/test_project_config.py`: `ConfigCase`, `LoadTest`, `HeldTest`, `ToolTest` -- `bin/project_record/test_project_record.py`: `COPIES`, `worktree_config`, `Pruned`, `BlackBox` -- `bin/reading_cost/test_reading_cost.py`: `ReadingCostTool` -- `bin/record_store/test_stores.py`: `Store`, `GoalsStore` -- `bin/repo_checks/test_gitignore.py`: `PRIVATE` -- `bin/review_replay/test_review_replay.py`: `Main` -- `bin/review_rules/test_review_folder.py`: `ReviewFolder` -- `bin/rule_hook/test_rule_hook.py`: `ReviewerRung`, `EnvFileRead`, `ReviewerReport`, `Hook`, `TodoRankCheck`, `TranscriptRead` -- `bin/score_outcomes/test_score_outcomes.py`: `ScoreOutcomesTool` -- `bin/subagent_rung/test_subagent_rung.py`: `SubagentRung` -- `bin/task_bench/features/test_feature_tasks.py`: `BenchOfTasksCase`, `FeatureBenchTest` -- `bin/task_bench/figures/test_gather.py`: `GatherTest` -- `bin/task_bench/figures/test_record_figures.py`: `RecordFiguresTest` -- `bin/task_bench/test_task_bench.py`: `BenchTest` -- `bin/transcript_archive/test_transcript_archive.py`: `Location` - ### 575. Rename `do-epic` to `build-epic`, with no alias, and its config folder with it. Part of the standalone-install plan lilleman approved on 2026-11-20, as reshaped on 2026-12-03 when 0.18.0 was planned. The decision "names" set `build-epic` beside `build-release`. Its machine settings move from `~/.claude-projects/do-epic/` to a folder named for `build-epic` under `~/.config/build-release/`. The changelog names the successor, and nothing forwards from the old name.