From 48e1f7fe5450b7a62773f99ff5906b80a87b1a11 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 4 Dec 2026 00:22:40 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20product-owner=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20name=20the?= =?UTF-8?q?=20clone=20in=20self-update's=20lines,=20and=20say=20in=20the?= =?UTF-8?q?=20README=20which=20copy=20to=20run=20and=20how=20a=20clone=20o?= =?UTF-8?q?n=200.17.0=20moves?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++----- bin/self_update/move.py | 4 ++-- bin/self_update/test_self_update.py | 6 +++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e90576c1..5d961fc9 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,9 @@ 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 is run from, so run it by its path in the clone that holds the release. `self-update --help` says what else it checks. +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 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. @@ -215,7 +217,7 @@ Once the next release holds no item in `todo.md` and its release review has land bin/cut-release ``` -It renames `## Unreleased` in `CHANGELOG.md` to the version and merges that through a pull request, since nobody can push to `main`. Then it tags the merged commit `v`, and pushes the tag. Where a step fails it stops with the reason, and a rerun continues where it stopped. A cut keeps each step it finished, with its time in UTC, in a file of its own under `~/.local/state/build-release/cut-release/`. `cut-release --help` lists the steps. Each machine takes the release with Update. +It renames `## Unreleased` in `CHANGELOG.md` to the version and merges that through a pull request, since nobody can push to `main`. Then it tags the merged commit `v` and pushes the tag. Where a step fails it stops with the reason, and a rerun continues where it stopped. A cut keeps each step it finished, with its time in UTC, in a file of its own under `~/.local/state/build-release/cut-release/`. `cut-release --help` lists the steps. Each machine takes the release with Update. A fix that must ship before `main`'s other unreleased work goes out as a patch release, such as 0.15.2 after v0.15.1. File its item under that release, merge its chunk, then cut it at once with the commits the chunk merged, as a range or one commit. A range leaves out its first commit, as git's `..` does, so start it at the commit before the chunk's first: @@ -227,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/`, from the project's checkout. 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/`, 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-epic ` runs the chunks of one Jira epic whose items span repos, or have none, each in its own window of the tmux session `epic-`, 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 --dry-run` prints what `build-epic ` 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. @@ -236,7 +238,7 @@ build-release, build-epic and `task-bench gather` put the release's tools first - `chunk-preflight` finds the mechanical facts a chunk starts from, and with `--worktree` makes its worktree; `build-release` runs it with `--worktree` before it routes each chunk, and `chunk-preflight --help` lists the facts. - `command-patterns [] [--calls ]` prints a table of the shell command patterns a release's archived chunks ran, such as `tea pr create`, for an audit of the release, and with `--calls ` saves each call as a JSON line; `command-patterns --help` states the columns and the line's keys. - `compress-archives` gzips each transcript in build-release's archive and each file in the review folders 30 days after it last changed, keeping all of them; Install's crontab line runs it daily. -- `cut-release [--patch ]` cuts the next release of the development clone it is run from, and with `--patch` a patch release of only the commits named, as Release says. +- `cut-release [--patch ]` cuts the next release of the development clone it ships in, and with `--patch` a patch release of only the commits named, as Release says. - `judge-replay [--offline]` replays build-release's judge on archived verdicts of the projects run on the model. It prints what each rung a review climbs to misses, and the lowest rung below those that returns every verdict, as each candidate above it does. With `--offline` it doesn't call a judge: it counts what a "?" rule, a decision table and a classifier trained on the archive decide of each verdict's kind from the worker's final message, and how many interrupts each misses. `judge-replay --help` states both replays. - `larv-review ` holds larv-review's mechanical rules: the chunk's review folder, the paired ruling's base and vote count, each pass's round count and the opening of its round commit's title, the scoring run's trigger and setup; the comprehension history's format, its latest places and its count of how often seats agree; and each reviewer's prompt header. `larv-review --help` states them. `settings.json` → `hooks` runs `larv-review reviewer-context` as each subagent starts. A reviewer under `agents/` whose frontmatter has `omitClaudeMd: true` starts without `CLAUDE.md`, and the command hands it that file's "Shared goal", "Prose" and "Vocabulary" sections. - `markdown-section ` prints the section of a markdown file under the first heading that holds the fragment, to the next heading of its level or a higher one, instead of a `grep -n` and a guessed `sed -n` range; `markdown-section --help` says what it does where several headings match. @@ -252,7 +254,7 @@ build-release, build-epic and `task-bench gather` put the release's tools first - `run-heavy ` 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 [...]` 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 is run from to the newest release, as Update says. +- `self-update` moves the clone of a release it ships in 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] ` 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. diff --git a/bin/self_update/move.py b/bin/self_update/move.py index dd622941..29370346 100644 --- a/bin/self_update/move.py +++ b/bin/self_update/move.py @@ -31,7 +31,7 @@ def moved_to_newest(clone: str) -> str | Failure: old_tag = None if isinstance(old, Failure) else old.strip() at_tag = git("describe", "--tags", "--exact-match", "--match", "v*", "HEAD", cwd=clone) if not isinstance(at_tag, Failure) and at_tag.strip() == tag: - return f"Already on {tag}, the newest release." + 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") settings_changed = isinstance(git("diff", "--quiet", "HEAD", tag, "--", "settings.json", cwd=clone), Failure) @@ -49,7 +49,7 @@ def moved_to_newest(clone: str) -> str | Failure: if isinstance(moved, Failure): return moved changelog = git("show", f"{tag}:CHANGELOG.md", cwd=clone) - lines = [f"Moved from {old_tag or 'an untagged commit'} to {tag}."] + lines = [f"Moved {clone} from {old_tag or 'an untagged commit'} to {tag}."] if settings_changed: lines.append("settings.json changed: pick the model again with /model.") if not isinstance(changelog, Failure): diff --git a/bin/self_update/test_self_update.py b/bin/self_update/test_self_update.py index e59454bd..363a858f 100644 --- a/bin/self_update/test_self_update.py +++ b/bin/self_update/test_self_update.py @@ -55,7 +55,7 @@ class SelfUpdate(unittest.TestCase): ran = subprocess.run([sys.executable, str(self.target / "bin" / "self-update")], capture_output=True, cwd=self.temp, env=isolated_env(), text=True) self.assertEqual((ran.returncode, self.head()), (0, "v0.2.0"), ran.stderr) - self.assertIn("Moved from v0.1.0 to v0.2.0.", ran.stdout) + self.assertIn(f"Moved {self.target} from v0.1.0 to v0.2.0.", ran.stdout) def test_refuses_an_argument_and_leaves_the_clone_as_it_was(self): self.release("0.2.0", "- Second.\n", '{"theme": "dark"}\n') @@ -72,7 +72,7 @@ class SelfUpdate(unittest.TestCase): ran = self.update() self.assertEqual(ran.returncode, 0, ran.stderr) self.assertEqual(self.head(), "v0.3.0") - self.assertIn("Moved from v0.1.0 to v0.3.0.", ran.stdout) + self.assertIn(f"Moved {self.target} from v0.1.0 to v0.3.0.", ran.stdout) self.assertIn("## 0.3.0\n\n- Third: run `make thing` once.", ran.stdout) self.assertIn("## 0.2.0\n\n- Second.", ran.stdout) self.assertNotIn("First.", ran.stdout) @@ -90,7 +90,7 @@ class SelfUpdate(unittest.TestCase): def test_says_so_where_the_clone_is_on_the_newest_tag_already(self): ran = self.update() - self.assertEqual((ran.returncode, ran.stdout), (0, "Already on v0.1.0, the newest release.\n")) + self.assertEqual((ran.returncode, ran.stdout), (0, f"{self.target} is already on v0.1.0, the newest release.\n")) def test_refuses_an_uncommitted_change_to_a_tracked_file_and_leaves_the_clone_as_it_was(self): self.release("0.2.0", "- Second.\n", '{"theme": "dark"}\n')