Answer product-owner round 2: 0 🔴, 1 🟡 (0 misread); name the clone in self-update's two refusals too, and move the note for a clone on 0.17.0 last in Update

This commit is contained in:
2026-12-04 00:27:38 +01:00
parent bbbf3767cc
commit a73ad34695
4 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -203,12 +203,12 @@ Move `~/.claude` to the newest release:
~/.claude/bin/self-update
```
It prints `CHANGELOG.md`'s section for each version it moved past: do what each asks, such as a new step under Install. `self-update` moves the clone it ships in, whatever the directory it is run from, and names that clone in what it prints. So run `~/.claude`'s copy, never the development clone's. `self-update --help` says what else it checks.
A release up to 0.17.0 holds no `self-update`. Move such a clone once with its own `~/.claude/bin/deploy-release`, which takes no argument there either.
It prints `CHANGELOG.md`'s section for each version it moved past: do what each asks, such as a new step under Install. `self-update` moves the clone it ships in, whatever the directory it is run from, and names that clone in each line that says what it did or why it refused. So run `~/.claude`'s copy, never the development clone's. `self-update --help` says what else it checks.
It refuses while a file `~/.claude` tracks has an uncommitted change, such as a hook Claude Code wrote into `settings.json`; a model picked with `/model` is no such change. Read the change first, as in `git -C ~/.claude diff HEAD -- settings.json`. When it holds a credential, such as a token in `env` or `mcpServers`, move that out of the file: a token in `env` to the shell profile, a server in `mcpServers` to `~/.claude.json` with `claude mcp add --scope user`. Then carry the 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 holds no `self-update`. Move such a clone once with its own copy of the tool that release holds, `~/.claude/bin/deploy-release`, run without an argument.
## Release
Once the next release holds no item in `todo.md` and its release review has landed, cut it from `~/code/claude-config`:
@@ -229,7 +229,7 @@ It applies only those commits on the newest tag, tests them with `ci.sh`, tags a
## Tools
build-release, build-epic and `task-bench gather` put the release's tools first on the `PATH` of every claude they start, so this README and the rules name each tool bare, as in `metric-bench`. Install puts no tool on your shell's `PATH`: there, and in a claude you start from it yourself, call each by its path, `~/.claude/bin/<tool>`, from the project's checkout. `cut-release` is the one exception: run the development clone's copy, as Release says. The tools under `~/.claude` are the release's; test a change to one from `~/code/claude-config/bin`. The tools are listed in alphabetical order, and the packages under `bin/` follow under their own heading.
build-release, build-epic and `task-bench gather` put the release's tools first on the `PATH` of every claude they start, so this README and the rules name each tool bare, as in `metric-bench`. Install puts no tool on your shell's `PATH`: there, and in a claude you start from it yourself, call each by its path, `~/.claude/bin/<tool>`, from the project's checkout. Run `cut-release` from the development clone instead, as Release says. The tools under `~/.claude` are the release's; test a change to one from `~/code/claude-config/bin`. The tools are listed in alphabetical order, and the packages under `bin/` follow under their own heading.
- `build-epic <EPIC-KEY>` runs the chunks of one Jira epic whose items span repos, or have none, each in its own window of the tmux session `epic-<EPIC-KEY>`, on the same cycle, judge and interrupt as build-release. The epic's description is its record: goals, audience, scoring and decisions. Before it starts chunks, build-epic plans each open issue that no label places yet, as "Set up a project" says. It files a sub-task per repo where the issue changes several repos. Otherwise it labels the issue with where it is worked, and asks you where that is unclear. It plans no issue your team filed a sub-task under: those sub-tasks run instead, each under a label of its own, and your team closes the issue. Then, where two or more issues may start, it scores each of them that holds no scores, and moves the issues that build-epic itself filed into order of score on the board. An open issue runs once a label names its repo or marks it as Claude's, in order of score, as many at once as a line such as `**Max parallel chunks:** 2` in the epic's description allows, 1 without it, and as each repo's `parallel-chunks` allows. A chunk whose pull request waits on a gate parks. An open task of yours that blocks another issue gets a window that DMs you once and reads the epic every minute; once you close the task, the issues it blocked may start. `build-epic <EPIC-KEY> --dry-run` prints what `build-epic <EPIC-KEY>` would write to Jira and which chunks it would start, and does neither; run it before the first real run on a team's epic. `--help` lists what it prints and leaves out. build-epic closes the epic only once you confirm every goal. Install → "Set up a project" says how to set it up; `build-epic --help` states the flags and the contract.
- `build-epic-e2e` runs `build-epic` against a sandbox epic on a real Jira site, as Test says.
@@ -254,7 +254,7 @@ build-release, build-epic and `task-bench gather` put the release's tools first
- `run-heavy <command>` runs a heavy command once it holds one of the machine's heavy slots, one per 4 CPUs, which every session shares; `run-heavy --help` states the slots, and the memory cap it gives a container that sets no limit.
- `run-tests [<pytest args>...]` runs this repo's test suite, as Test says.
- `score-outcomes [L E I S]` shows what each finished item's chunk measured beside the scores the item was guessed at, to score a new item by. Per chunk it also shows code health's two counter-signals, misread findings and later fixes, and how many of the human's answers reversed a worker's choice; `score-outcomes --help` states the report.
- `self-update` moves the clone of a release it ships in to the newest release, as Update says.
- `self-update` moves the clone it ships in, a clone of a release, to the newest release, as Update says.
- `settings_filter.py` is git's clean filter for `settings.json`: it drops `"model"` and sorts the keys. `.gitattributes` sets the filter `settings` on `settings.json`, and Install's `git config` line makes this script that filter.
- `statusline.py` renders Claude Code's status line; `settings.json` → `statusLine` runs it.
- `subagent-rung [--plan] <model> <L>` prints the Agent tool's model and effort for a subagent's task, picked by its L from the project's model on the project's routing ladder, and with `--plan` never below the project's rung; `subagent-rung --help` states the rule.
+1 -1
View File
@@ -4,7 +4,7 @@ usage: self-update
Run it by its path in a clone of a release, as in <clone>/bin/self-update. It fetches origin's
tags and checks out the newest v* tag, detached, so the clone holds only what a release holds.
Development happens in another clone, such as ~/code/claude-config. It prints the version it moved
Development happens in another clone, such as ~/code/claude-config. It prints the clone and the version it moved
from and to, then CHANGELOG.md's section for each version since, so you can do what each asks, such
as a new step under Install. Where the move changed settings.json, it asks you to pick the model
again with /model, since git's clean filter keeps the model out of every commit.
+2 -2
View File
@@ -14,7 +14,7 @@ def moved_to_newest(clone: str) -> str | Failure:
if isinstance(tag, Failure):
return tag
if tag is None:
return Failure("origin has no v* tag to move to")
return Failure(f"{clone}'s origin has no v* tag to move to")
# Re-reads each file through the clean filter, so a model pick alone leaves settings.json unchanged.
if isinstance(refreshed := git("update-index", "-q", "--refresh", cwd=clone), Failure):
return refreshed
@@ -33,7 +33,7 @@ def moved_to_newest(clone: str) -> str | Failure:
if not isinstance(at_tag, Failure) and at_tag.strip() == tag:
return f"{clone} is already on {tag}, the newest release."
if isinstance(git("merge-base", "--is-ancestor", "HEAD", tag, cwd=clone), Failure):
return Failure(f"{tag} doesn't hold the clone's commit, so the move would drop work no release holds: cut a release that holds it first")
return Failure(f"{tag} doesn't hold {clone}'s commit, so the move would drop work no release holds: cut a release that holds it first")
settings_changed = isinstance(git("diff", "--quiet", "HEAD", tag, "--", "settings.json", cwd=clone), Failure)
# The tag holds each uncommitted change, so undoing them doesn't lose anything, and lets the move below take the tag's copy.
# A settings.json the clean filter shows unchanged may still differ on disk, by a model pick or Claude Code's key order, which checkout refuses to overwrite; the pick is asked for again below.
+1 -1
View File
@@ -130,7 +130,7 @@ class SelfUpdate(unittest.TestCase):
self.git(self.target, "pull", "-q", "--ff-only")
ran = self.update()
self.assertEqual(ran.returncode, 1)
self.assertIn("v0.1.0 doesn't hold", ran.stderr)
self.assertIn(f"v0.1.0 doesn't hold {self.target}'s commit", ran.stderr)
self.assertEqual(self.git(self.target, "branch", "--show-current").strip(), "main")
def test_takes_a_model_picked_with_the_clean_filter_set_as_no_change(self):