Merge remote-tracking branch 'origin/main' into item-582
This commit is contained in:
+10
-227
@@ -1,227 +1,10 @@
|
||||
# Allowlist: Claude Code writes credentials (.credentials.json), full session
|
||||
# transcripts (projects/, history.jsonl), memory files and shell env dumps
|
||||
# into this directory, and each release adds more. Ignore everything, then
|
||||
# un-ignore authored config only.
|
||||
*
|
||||
|
||||
!.gitignore
|
||||
!CHANGELOG.md
|
||||
!CLAUDE.md
|
||||
!LICENSE.md
|
||||
!README.md
|
||||
!ci.sh
|
||||
!settings.json
|
||||
!todo.md
|
||||
|
||||
!.claude/
|
||||
!.claude/rules/
|
||||
!.claude/rules/*.md
|
||||
!.claude/settings.json
|
||||
!.gitea/
|
||||
!.gitea/workflows/
|
||||
!.gitea/workflows/*.yml
|
||||
!agents/
|
||||
!agents/*.md
|
||||
!bin/
|
||||
!bin/adf_codec/
|
||||
!bin/adf_codec/*.py
|
||||
!bin/adf_codec/node_shim/
|
||||
!bin/adf_codec/node_shim/Dockerfile
|
||||
!bin/adf_codec/node_shim/package-lock.json
|
||||
!bin/adf_codec/node_shim/package.json
|
||||
!bin/adf_codec/node_shim/shim.mjs
|
||||
!bin/agent_cycle/
|
||||
!bin/agent_cycle/*.py
|
||||
!bin/atlassian/
|
||||
!bin/atlassian/*.py
|
||||
!bin/branch_chunks/
|
||||
!bin/branch_chunks/*.py
|
||||
!bin/build-epic
|
||||
!bin/build-epic-e2e
|
||||
!bin/build-release
|
||||
!bin/build_epic/
|
||||
!bin/build_epic/*.py
|
||||
!bin/build_epic/backend/
|
||||
!bin/build_epic/backend/*.py
|
||||
!bin/build_epic/e2e/
|
||||
!bin/build_epic/e2e/*.py
|
||||
!bin/build_release/
|
||||
!bin/build_release/**/
|
||||
!bin/build_release/**/*.py
|
||||
!bin/chunk-pr
|
||||
!bin/chunk-preflight
|
||||
!bin/chunk_driver/
|
||||
!bin/chunk_driver/*.py
|
||||
!bin/chunk_driver/project/
|
||||
!bin/chunk_driver/project/*.py
|
||||
!bin/chunk_pr/
|
||||
!bin/chunk_pr/*.py
|
||||
!bin/chunk_preflight/
|
||||
!bin/chunk_preflight/*.py
|
||||
!bin/claude_code/
|
||||
!bin/claude_code/*.py
|
||||
!bin/claude_home/
|
||||
!bin/claude_home/*.py
|
||||
!bin/command-patterns
|
||||
!bin/command_lines/
|
||||
!bin/command_lines/*.py
|
||||
!bin/command_patterns/
|
||||
!bin/command_patterns/*.py
|
||||
!bin/compress-archives
|
||||
!bin/compress_archives/
|
||||
!bin/compress_archives/*.py
|
||||
!bin/cut-release
|
||||
!bin/cut_release/
|
||||
!bin/cut_release/*.py
|
||||
!bin/failure.py
|
||||
!bin/forge/
|
||||
!bin/forge/*.py
|
||||
!bin/git_cli/
|
||||
!bin/git_cli/*.py
|
||||
!bin/judge-replay
|
||||
!bin/judge_replay/
|
||||
!bin/judge_replay/*.py
|
||||
!bin/larv-review
|
||||
!bin/larv_review/
|
||||
!bin/larv_review/*.py
|
||||
!bin/loop_effects/
|
||||
!bin/loop_effects/*.py
|
||||
!bin/loop_state/
|
||||
!bin/loop_state/*.py
|
||||
!bin/machine_load/
|
||||
!bin/machine_load/*.py
|
||||
!bin/markdown-section
|
||||
!bin/markdown_section/
|
||||
!bin/markdown_section/*.py
|
||||
!bin/metric-bench
|
||||
!bin/metric_bench/
|
||||
!bin/metric_bench/*.py
|
||||
!bin/model_routing/
|
||||
!bin/model_routing/*.py
|
||||
!bin/model_routing/routing-ladder.json
|
||||
!bin/mutate-changes
|
||||
!bin/mutate_changes/
|
||||
!bin/mutate_changes/*.py
|
||||
!bin/notifier/
|
||||
!bin/notifier/*.py
|
||||
!bin/notify
|
||||
!bin/plan/
|
||||
!bin/plan/*.py
|
||||
!bin/plan_store/
|
||||
!bin/plan_store/*.py
|
||||
!bin/project-config
|
||||
!bin/project-record
|
||||
!bin/project_config/
|
||||
!bin/project_config/*.py
|
||||
!bin/project_record/
|
||||
!bin/project_record/*.py
|
||||
!bin/rank_todo.py
|
||||
!bin/reading-cost
|
||||
!bin/reading_cost/
|
||||
!bin/reading_cost/*.py
|
||||
!bin/record_store/
|
||||
!bin/record_store/*.py
|
||||
!bin/release_plan/
|
||||
!bin/release_plan/*.py
|
||||
!bin/repo_checks/
|
||||
!bin/repo_checks/*.py
|
||||
!bin/rest_client/
|
||||
!bin/rest_client/*.py
|
||||
!bin/review-replay
|
||||
!bin/review_replay/
|
||||
!bin/review_replay/*.py
|
||||
!bin/review_rules/
|
||||
!bin/review_rules/*.py
|
||||
!bin/routing_figures/
|
||||
!bin/routing_figures/*.py
|
||||
!bin/rule-hook
|
||||
!bin/rule_hook/
|
||||
!bin/rule_hook/*.py
|
||||
!bin/run-heavy
|
||||
!bin/run-tests
|
||||
!bin/run_heavy/
|
||||
!bin/run_heavy/*.py
|
||||
!bin/run_heavy/path_entry/
|
||||
!bin/run_heavy/path_entry/docker
|
||||
!bin/run_tests/
|
||||
!bin/run_tests/*.py
|
||||
!bin/rung_replay/
|
||||
!bin/rung_replay/*.py
|
||||
!bin/score-outcomes
|
||||
!bin/score_outcomes/
|
||||
!bin/score_outcomes/*.py
|
||||
!bin/self-update
|
||||
!bin/self_update/
|
||||
!bin/self_update/*.py
|
||||
!bin/setup.cfg
|
||||
!bin/statusline.py
|
||||
!bin/subagent-rung
|
||||
!bin/subagent_rung/
|
||||
!bin/subagent_rung/*.py
|
||||
!bin/task-bench
|
||||
!bin/task_bench/
|
||||
!bin/task_bench/**/
|
||||
!bin/task_bench/**/*.py
|
||||
!bin/task_bench/figures/gather-prompt.md
|
||||
!bin/test_*.py
|
||||
!bin/text_files/
|
||||
!bin/text_files/*.py
|
||||
!bin/todo-item
|
||||
!bin/todo_item/
|
||||
!bin/todo_item/*.py
|
||||
!bin/touch-predictions
|
||||
!bin/touch_predictions/
|
||||
!bin/touch_predictions/*.py
|
||||
!bin/transcript_archive/
|
||||
!bin/transcript_archive/*.py
|
||||
!bin/wait-for
|
||||
!bin/wait_for/
|
||||
!bin/wait_for/*.py
|
||||
!docs/
|
||||
!docs/*.md
|
||||
!judge-field-trials/
|
||||
!judge-field-trials/*.py
|
||||
!judge-field-trials/README.md
|
||||
!presentation/
|
||||
!presentation/README.md
|
||||
!presentation/build-pdf.py
|
||||
!presentation/index.html
|
||||
!presentation/render-pdf.js
|
||||
!principles/
|
||||
!principles/*.md
|
||||
!reviewer-merge-trials/
|
||||
!reviewer-merge-trials/*-reviewer.md
|
||||
!reviewer-merge-trials/*.py
|
||||
!reviewer-merge-trials/README.md
|
||||
!reviewer-merge-trials/cases-*.json
|
||||
!rules/
|
||||
!rules/*.md
|
||||
!skills/
|
||||
!skills/comprehension-panel/
|
||||
!skills/comprehension-panel/*.md
|
||||
!skills/larv-review/
|
||||
!skills/larv-review/*.md
|
||||
!skills/larv-review/standards/
|
||||
!skills/larv-review/standards/*.md
|
||||
!stability-skip-count/
|
||||
!stability-skip-count/README.md
|
||||
!stability-skip-count/count.py
|
||||
!task-bench-image/
|
||||
!task-bench-image/Dockerfile
|
||||
!workflow-bench/
|
||||
!workflow-bench/advisor-judge-prompt.md
|
||||
!workflow-bench/advisor-run-prompt.md
|
||||
!workflow-bench/advisor_bench.py
|
||||
!workflow-bench/bench.py
|
||||
!workflow-bench/compare-prompt.md
|
||||
!workflow-bench/compare.py
|
||||
!workflow-bench/handoff-brief-prompt.md
|
||||
!workflow-bench/handoff-resume-prompt.md
|
||||
!workflow-bench/handoff_bench.py
|
||||
!workflow-bench/review_git.py
|
||||
!workflow-bench/run-prompt.md
|
||||
!workflow-bench/setup.cfg
|
||||
!workflow-bench/test_advisor_bench.py
|
||||
!workflow-bench/test_bench.py
|
||||
!workflow-bench/test_handoff_bench.py
|
||||
!workflow-bench/test_review_git.py
|
||||
# What the repo's own tools generate: the runs of workflow-bench and
|
||||
# reviewer-merge-trials, and the presentation's PDF.
|
||||
__pycache__/
|
||||
presentation/build-release-explained.pdf
|
||||
reviewer-merge-trials/agents-*.json
|
||||
reviewer-merge-trials/clones/
|
||||
reviewer-merge-trials/results/
|
||||
reviewer-merge-trials/runs.pkl
|
||||
workflow-bench/*-[0-9]*.md
|
||||
workflow-bench/*/
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- `.gitignore` ignores only what the repo generates, in place of an allowlist that kept a Claude home's files out of the clone. A checkout in `~/.claude` that moves past 0.17.0 would list its credentials, transcripts and memory files as untracked: run `echo '*' >> .git/info/exclude` in it, or leave it on 0.17.0.
|
||||
- **build-release and build-epic run every claude in a Claude home of their own, `~/.local/share/build-release/claude-home`, and a release is cloned anywhere, no longer into `~/.claude`.** Take this release as `README.md` → Update says for a checkout in `~/.claude`: finish each open chunk first, clone the release, and change each path into `~/.claude` that a project config or a crontab names, such as `principles` and `standards`, to the new clone. The commands build the home from the clone they ship in, with links to its `CLAUDE.md`, `rules/`, `agents/` and `skills/`, a `settings.json` generated from the clone's, and each plugin that file enables; they build it again when the clone moves to another release. Sign in there once: until you have, a command stops and prints the line to run, `CLAUDE_CONFIG_DIR=~/.local/share/build-release/claude-home claude`, where you type `/login`. Your own `~/.claude` is yours again: the loop doesn't run a claude there, and only `task-bench gather` still does. The settings filter and its Install step are gone, and `self-update` no longer asks you to pick a model with `/model`.
|
||||
- **`deploy-release` is gone, with no alias: `self-update` moves a clone of a release, and `cut-release` cuts one.** Take this release by cloning it, as `README.md` → Update says for a checkout in `~/.claude`, not with `deploy-release`. From then on, update with the new clone's `bin/self-update`. It takes no argument, moves the clone it ships in and names that clone in what it prints, so never run the development clone's copy. In the development clone, run `bin/cut-release` where you ran `deploy-release --cut`, and `bin/cut-release --patch <commits>` where you ran `--cut-patch <commits>`; neither takes a `<checkout>`. A cut no longer moves `~/.claude`: its stdout is the one `Done:` line, and each machine runs `self-update` afterwards. `cut-release` cuts the clone it ships in, whatever the directory it is run from, and no longer checks an origin. Its traces go to `~/.local/state/build-release/cut-release/`, and older traces stay where they are. Install no longer links `build-release` onto `PATH`: run it as `<clone>/bin/build-release`. Remove a link made earlier: it leads into `~/.claude`, to the old release.
|
||||
- Renamed `do-epic` to `build-epic`, with no alias. Before you update, finish your open `do-epic` chunks, since a chunk left open starts a fresh session, and stop every running `do-epic`, since one that runs across the update can't reload. Then, in each Jira project, relabel every issue that carries `do-epic-claude`, `do-epic-human` or `do-epic-release-review`, done issues included, to `build-epic-claude`, `build-epic-human` or `build-epic-release-review`, since a finished release review that keeps the old label isn't counted and `build-epic` files another. Rename each `DO_EPIC_E2E_*` variable you set to `BUILD_EPIC_E2E_*`. Nothing reads the old names. The next bullet moves the folders.
|
||||
|
||||
@@ -194,7 +194,7 @@ It prints `CHANGELOG.md`'s section for each version it moved past: do what each
|
||||
|
||||
It refuses while a file the clone tracks has an uncommitted change. Claude Code keeps its own files in the loop's home, not in the clone. The home's four links lead into the clone, though, so a rule, an agent or a skill changed at user level in that home changes the clone's file. Carry such a change into `~/code/claude-config` on a branch of its own, merge it through a PR, and cut a release.
|
||||
|
||||
A release up to 0.17.0 was a checkout in `~/.claude`, and `self-update` doesn't move one out of there. Finish each open chunk first: its session stays in `~/.claude`, where the new release doesn't look for it. Then clone the newest release as Install says, and sign in to the loop's home. In each project's config, write the new clone in place of `~/.claude` in `principles` and `standards`, and likewise in the crontab line. build-release and build-epic don't read `~/.claude` after that, so the checkout there is yours to keep or remove. Keep it on 0.17.0 if you keep it: a later `settings.json` names its hooks by a placeholder that only the loop's home fills in, so in `~/.claude` the hooks would not run.
|
||||
A release up to 0.17.0 was a checkout in `~/.claude`, and `self-update` doesn't move one out of there. Finish each open chunk first: its session stays in `~/.claude`, where the new release doesn't look for it. Then clone the newest release as Install says, and sign in to the loop's home. In each project's config, write the new clone in place of `~/.claude` in `principles` and `standards`, and likewise in the crontab line. build-release and build-epic don't read `~/.claude` after that, so the checkout there is yours to keep or remove. Keep it on 0.17.0 if you keep it: a later `settings.json` names its hooks by a placeholder that only the loop's home fills in, so in `~/.claude` the hooks would not run. A later release's `.gitignore` doesn't ignore Claude Code's credentials, transcripts and memory files, so in `~/.claude` a `git add .` would stage them. Where that checkout has moved past 0.17.0, run `echo '*' >> .git/info/exclude` in it.
|
||||
|
||||
## Release
|
||||
|
||||
@@ -328,12 +328,3 @@ The commands in this section name their tools bare, as Tools says. CI runs `ci.s
|
||||
To mutation-test the lines a branch changes, run `run-heavy mutate-changes --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"'` in its checkout.
|
||||
|
||||
To bench how hard the code is to fix a bug in, build the image first, with `run-heavy docker build --quiet --memory 2g --memory-swap 2g -t claude-config-task-bench task-bench-image`. Then run `task-bench --image claude-config-task-bench --prefix 'uvx --python "$(command -v python3)" --with pytest==9.2.0 --from "mutmut>=3,<4"' --test 'python -m pytest -q -p no:cacheprovider -n 4 bin --ignore=bin/adf_codec --ignore=bin/run_tests --ignore=bin/repo_checks/test_types.py --deselect bin/plan/test_touches.py::PredictedTest --deselect bin/loop_effects/test_effects.py::ChildShells'` in this checkout, under `run-heavy`. A scoring run starts it with `--record-figures` added. The bench runs the tests with no network, so the image holds everything they need. The `--test` leaves out the tests that need docker or `uvx`, and `ChildShells`, which needs `docker run --init` to reap its processes: `bin/run-tests` on the host runs those.
|
||||
|
||||
## Tracking a new file
|
||||
|
||||
`.gitignore` is an allowlist. Track a file by negating it and its parent directories, then confirm with `git check-ignore -v <path>`:
|
||||
|
||||
```
|
||||
!docs/
|
||||
!docs/*.md
|
||||
```
|
||||
|
||||
@@ -124,7 +124,7 @@ class TheLauncher(unittest.TestCase):
|
||||
ran = subprocess.run([str(launcher), "--help"], capture_output=True, text=True, timeout=60)
|
||||
self.assertEqual((ran.returncode, ran.stdout.split(" ", 2)[2]), (0, main.HELP + "\n"))
|
||||
tracked = subprocess.run(["git", "ls-files", "--error-unmatch", launcher.name], capture_output=True, cwd=launcher.parent)
|
||||
self.assertEqual(tracked.returncode, 0, "bin/build-epic is not in the repo; .gitignore lists what it keeps")
|
||||
self.assertEqual(tracked.returncode, 0, "bin/build-epic is not in the repo")
|
||||
|
||||
|
||||
class TheCommand(BuildEpicTest):
|
||||
|
||||
@@ -7,27 +7,14 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from repo_checks import ROOT
|
||||
|
||||
PRIVATE = [
|
||||
".claude/settings.local.json",
|
||||
".credentials.json",
|
||||
"auto-mode-transcripts/a.jsonl",
|
||||
"backups/.claude.json.backup.1",
|
||||
"daemon-auth-status.json",
|
||||
"daemon.log",
|
||||
"daemon/control.key",
|
||||
"debug/a.txt",
|
||||
"file-history/a/b.md",
|
||||
"history.jsonl",
|
||||
"jobs/a/b.json",
|
||||
"memory/MEMORY.md",
|
||||
"paste-cache/a.txt",
|
||||
"projects/-home-a/a.jsonl",
|
||||
"projects/-home-a/memory/MEMORY.md",
|
||||
"projects/-home-a/memory/a.md",
|
||||
"session-env/a/b.sh",
|
||||
"sessions/a.json",
|
||||
"shell-snapshots/a.sh",
|
||||
"tasks/a/b.json",
|
||||
GENERATED = [
|
||||
"bin/__pycache__/a.cpython-313.pyc",
|
||||
"bin/agent_cycle/__pycache__/a.cpython-313.pyc",
|
||||
"presentation/build-release-explained.pdf",
|
||||
"reviewer-merge-trials/agents-wave3.json",
|
||||
"reviewer-merge-trials/clones/rm-a/b.py",
|
||||
"reviewer-merge-trials/results/a/b.json",
|
||||
"reviewer-merge-trials/runs.pkl",
|
||||
"workflow-bench/a-1-1.md",
|
||||
"workflow-bench/a-1-1/README.md",
|
||||
"workflow-bench/compare/a/A1/fixes.diff",
|
||||
@@ -44,6 +31,7 @@ class Gitignore(unittest.TestCase):
|
||||
ignored = subprocess.run(["git", "ls-files", "-oi", "--exclude-standard", "--", "bin/*.py", "bin/**/*.py"], capture_output=True, check=True, cwd=ROOT, text=True).stdout
|
||||
self.assertEqual(ignored, "")
|
||||
|
||||
def test_ignores_every_private_file(self):
|
||||
ignored = subprocess.run(["git", "check-ignore", "--no-index", "--stdin"], capture_output=True, cwd=ROOT, input="\n".join(PRIVATE), text=True).stdout
|
||||
self.assertEqual(ignored.splitlines(), PRIVATE)
|
||||
def test_ignores_every_generated_file(self):
|
||||
ignored = subprocess.run(["git", "check-ignore", "--no-index", "--stdin"], capture_output=True, cwd=ROOT, input="\n".join(GENERATED), text=True).stdout
|
||||
self.assertEqual(ignored.splitlines(), GENERATED)
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
| 581 | 0.18.0 | | | **Name each file of the setup, in everything a model or a person reads, by a path that holds wherever the clone lies, never by `~/.claude`.** | 3 | 2 | 3 | 6 | 6 | 2 by 8 | 0.8 |
|
||||
| 486 | 0.18.0 | | 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 | 486, 581 | 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 |
|
||||
| 583 | 0.18.0 | | | **Ignore only what the repo generates, in place of the allowlist that kept a Claude home's files out of the clone.** | 1 | 1 | 2 | 2 | 1 | code health by 2 | 2.9 |
|
||||
| 576 | 0.18.0 | | 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 |
|
||||
| 582 | 0.18.0 | | | **Write the review folder under the state folder into the generated `settings.json`'s `additionalDirectories`, so a moved `XDG_STATE_HOME` needs no hand edit.** | 1 | 1 | 2 | 2 | 1 | 2 by 2 | 0.6 |
|
||||
@@ -171,13 +170,6 @@ Touches:
|
||||
- `.gitignore`
|
||||
- `README.md`: `## Test` (small)
|
||||
|
||||
### 583. Ignore only what the repo generates, in place of the allowlist that kept a Claude home's files out of the clone.
|
||||
|
||||
Since item 483 no Claude home is a clone of this repo, so Claude Code no longer writes credentials, transcripts or memory files into it. The ignore file still ignores everything and un-ignores each authored path, and its opening comment says Claude Code writes into this directory. Replace the allowlist with the few patterns the repo needs, such as `__pycache__/`. Keep the `ignorefile-sorted` rule as it is: other projects use it.
|
||||
|
||||
Touches:
|
||||
- `.gitignore`
|
||||
|
||||
### 576. Name the project `dev-factory` in the README, the prose and the tools, and say in the changelog that the repo moved.
|
||||
|
||||
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 496, which keeps the renames that wait for the harness interface, such as `CLAUDE.md`. Renaming the repo on the forge is lilleman's, and it changes every clone's remote. A project's key comes from its clone's folder name, and tmux session names from the key, so say in the changelog what renaming the clone's folder changes. Revise the decision "names", which still says the code keeps today's names and calls harness independence an open aim: it is goal 6.
|
||||
|
||||
Reference in New Issue
Block a user