Name each file of the setup as the setup's, and a config's as setup:<path> #809

Merged
lilleman merged 12 commits from item-581 into main 2026-12-04 05:30:42 +01:00
12 changed files with 32 additions and 25 deletions
Showing only changes of commit 18fae1956e - Show all commits
+1 -1
View File
@@ -2,7 +2,7 @@
## Unreleased
- **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, write `setup:` in place of `~/.claude/` in each project config's `principles` and `standards`, and change each path into `~/.claude` that a crontab names to the new clone. The commands build the home from the clone they ship in, with links to its `CLAUDE.md`, `rules/`, `agents/`, `skills/`, `principles/` and `bin/`, 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: neither the loop nor `task-bench gather` runs a claude there. The settings filter and its Install step are gone, and `self-update` no longer asks you to pick a model with `/model`.
- **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, write `setup:` in place of `~/.claude/` in each project config's `principles` and `standards`, and change each path into `~/.claude` that a crontab names to the new clone. The commands build the home from the clone they ship in, with links to its `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` 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: neither the loop nor `task-bench gather` runs a claude there. 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.
- 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 `~/.config/build-release/do-epic/` to `~/.config/build-release/build-epic/`, and move `~/.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/build-epic-transcripts`; move `larv-review`, `project-record`, `run-heavy` and `deploy-release` from `~/.local/state/` into `~/.local/state/build-release/`, and `~/.local/state/do-epic` to `~/.local/state/build-release/build-epic`; 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.
+1 -1
View File
@@ -153,6 +153,6 @@ Claude Code reads this section by its heading when it compacts a conversation. K
- **scoring run** — each seat scores the project from 1 to 10, overall and on each dimension. `larv-review` §3 → "Comprehension check" says which seats score and when one is due.
- **seat** — one simulated reader of the comprehension panel, launched per the setup's `skills/comprehension-panel/SKILL.md`.
- **session** — a Claude Code session: one id, what `claude --resume` continues.
- **setup** — what this configuration ships: `CLAUDE.md`, `rules/`, `agents/`, `skills/`, `principles/` and `bin/`. Open a file of the setup in the loop's Claude home, `~/.local/share/build-release/claude-home/` (under `$XDG_DATA_HOME` instead of `~/.local/share`, where that holds an absolute path): it links to the clone whose `build-release` or `build-epic` started last.
- **setup** — the release of this repo that the machine runs, with every file in its clone. Open a file of the setup in the loop's Claude home, `~/.local/share/build-release/claude-home/` (under `$XDG_DATA_HOME` instead of `~/.local/share`, where that holds an absolute path): it links to the `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/` of the clone that built it last.
- **trigger** — the condition under which a review pass runs on a change it has not seen; `larv-review` §3 lists them.
- **worker** — the headless claude that runs the task in a cycle, in the chunk's session.
+3 -3
View File
@@ -63,12 +63,12 @@ Run `build-release` by its path, `~/build-release/bin/build-release`: no step in
build-release and build-epic run every claude in the loop's Claude home, `~/.local/share/build-release/claude-home`, which each of the two builds when it starts. Neither reads or writes your own `~/.claude`, and nothing in it loads in the loop's home. `task-bench gather` builds the home too, and runs its claude there. The loop's home holds:
- links to the clone's `CLAUDE.md`, `rules/`, `agents/`, `skills/`, `principles/` and `bin/`, so a claude opens every file of the setup there, and the rules name each as the setup's, as in the setup's `rules/todo-items.md`;
- links to the clone's `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/`, so a claude opens every file of the setup there, and the rules name each as the setup's, as in the setup's `rules/todo-items.md`;
- a `settings.json` generated from the clone's, whose hooks run the clone's tools;
- every plugin the clone's `settings.json` enables, which build-release or build-epic installs;
- what Claude Code keeps in its home: your sign-in there, the sessions and the memory files.
Sign in to the loop's home once. Until you have, build-release and build-epic stop and print the line to run, `CLAUDE_CONFIG_DIR=~/.local/share/build-release/claude-home claude`: type `/login` in the claude it opens. A model you pick there with `/model` stays in the generated `settings.json`. The loop's home has no theme or status line of yours: those stay in your own `~/.claude`, for the claude you start yourself. build-release or build-epic builds the home again once the clone holds another commit, as after `self-update`, and keeps the sign-in, the model and the sessions. The home follows the clone whose build-release or build-epic ran last, so run only the release clone's, never the development clone's: that one would point every running loop at unreleased rules.
Sign in to the loop's home once. Until you have, build-release and build-epic stop and print the line to run, `CLAUDE_CONFIG_DIR=~/.local/share/build-release/claude-home claude`: type `/login` in the claude it opens. A model you pick there with `/model` stays in the generated `settings.json`. The loop's home has no theme or status line of yours: those stay in your own `~/.claude`, for the claude you start yourself. build-release or build-epic builds the home again once the clone holds another commit, as after `self-update`, and keeps the sign-in, the model and the sessions. The home follows the clone whose build-release, build-epic or `task-bench gather` ran last, so run only the release clone's, never the development clone's: that one would point every running loop at unreleased rules.
The setup keeps each project's config, and what you choose for a project, in the config folder, `~/.config/build-release/`. Its tools keep their own state, such as transcripts, review reports and locks, in the state folder, `~/.local/state/build-release/`. The loop's Claude home is in the data folder, `~/.local/share/build-release/`, which holds what build-release builds again and what Claude Code writes. Where `XDG_CONFIG_HOME` holds an absolute path, the config folder is `build-release/` under that path instead, and likewise the state folder under `XDG_STATE_HOME` and the data folder under `XDG_DATA_HOME`; this README spells the defaults. Set such a variable in the environment Claude Code starts in, since rule-hook reads it there. `settings.json` names only the default review folder, `~/.local/state/build-release/larv-review`, in `additionalDirectories`: where `XDG_STATE_HOME` moves that folder, add it to the loop's home's `settings.json` yourself, and again each time build-release or build-epic builds the home, or an interactive session asks before a reviewer writes its report. Back up these four folders:
@@ -192,7 +192,7 @@ Move `~/build-release` to the newest release:
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 `~/build-release`'s copy, never the development clone's. The next build-release or build-epic builds the loop's Claude home again from the new release. `self-update --help` says what else it checks.
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.
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 six links lead into the clone, though, so a rule, an agent, a skill, a principle or a tool changed 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 `setup:` in place of `~/.claude/` in `principles` and `standards`, as in `setup:principles`, and write the new clone in place of `~/.claude` 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.
+1 -1
View File
@@ -61,7 +61,7 @@ FINISHED_RULES = (
"finished=true when the chunk is complete: merged, or nothing remains that the worker could do on "
"its own. Even then, it is finished only once {answers_recorded}.\n\n"
"An answer counts as recorded where the premises or the records above already hold it, the human's rules "
"(the setup's CLAUDE.md, the setup's rules/, the project's review standards, each headed by its path) included. "
"(the setup's CLAUDE.md, the setup's rules/, the project's review standards, each headed by its name) included. "
"It also counts where the transcript shows the worker writing it into {answer_destinations}, "
"but not into one of the human's rules.\n\n"
"finished=false when work remains that a further run can "
+4 -4
View File
@@ -18,8 +18,8 @@ HUMAN_RULE_DIR = "rules"
# How the judge's prompt names the records above, in the order it reads them.
RECORDS_NAMED = "the project's working rules and decisions, then the human's rules for every project"
# How prose names a file of the setup wherever its clone lies: the setup's CLAUDE.md → "Vocabulary", "setup".
SETUPS = "the setup's"
HUMAN_RULE_NAMES = (f"{SETUPS} {HUMAN_RULES_FILE}", f"{SETUPS} {HUMAN_RULE_DIR}/", "the project's review standards")
OF_THE_SETUP = "the setup's"
HUMAN_RULE_NAMES = (f"{OF_THE_SETUP} {HUMAN_RULES_FILE}", f"{OF_THE_SETUP} {HUMAN_RULE_DIR}/", "the project's review standards")
CONSEQUENCE = "the judge cannot read the records"
@@ -57,8 +57,8 @@ def file_text(path: pathlib.Path) -> str | Failure:
def named(rule: pathlib.Path, home: pathlib.Path, claude_dir: pathlib.Path) -> str:
"""rule's path as the human writes it: as the setup's where it lies in claude_dir, the loop's Claude home, or in the clone, or ~/ for the rest of home, or else in full."""
"""rule's path as the human writes it. A file in claude_dir, the loop's Claude home, or in the clone is the setup's. Any other is written from ~/ where it lies in home, else in full."""
for setup in (claude_dir, RELEASE_ROOT):
if rule.is_relative_to(setup):
return f"{SETUPS} {rule.relative_to(setup)}"
return f"{OF_THE_SETUP} {rule.relative_to(setup)}"
return f"~/{rule.relative_to(home)}" if rule.is_relative_to(home) else str(rule)
+12 -5
View File
@@ -11,6 +11,9 @@ from agent_cycle import judge
from chunk_driver.project import records
from loop_state.paths import RELEASE_ROOT
KIM = pathlib.Path("/home/kim")
CLAUDE_HOME = KIM / "share" / "claude-home"
class Records(unittest.TestCase):
def test_heads_each_record_by_its_name_the_humans_rules_last(self):
@@ -55,11 +58,15 @@ class Records(unittest.TestCase):
self.assertEqual(records.read_records(root, claude_md.parents[1], {}, claude_md.parent), Failure(f"no config names the checkout {root}: write {claude_md.parents[1]}/.config/build-release/<key>/config.toml, as `project-config --help` shows - the judge cannot read the records."))
def test_names_a_file_of_the_setup_alike_in_the_loops_home_and_in_the_clone(self):
home = pathlib.Path("/home/kim")
for rule in (home / "share" / "claude-home" / "rules" / "todo-items.md", RELEASE_ROOT / "rules" / "todo-items.md"):
self.assertEqual(records.named(rule, home, home / "share" / "claude-home"), "the setup's rules/todo-items.md")
self.assertEqual(records.named(home / "standards" / "prose.md", home, home / "share" / "claude-home"), "~/standards/prose.md")
self.assertEqual(records.named(pathlib.Path("/srv/standards/prose.md"), home, home / "share" / "claude-home"), "/srv/standards/prose.md")
for rule in (CLAUDE_HOME / "rules" / "todo-items.md", RELEASE_ROOT / "rules" / "todo-items.md"):
with self.subTest(rule):
self.assertEqual(records.named(rule, KIM, CLAUDE_HOME), "the setup's rules/todo-items.md")
def test_names_any_other_file_under_the_home_from_the_tilde(self):
self.assertEqual(records.named(KIM / "standards" / "prose.md", KIM, CLAUDE_HOME), "~/standards/prose.md")
def test_names_a_file_outside_the_home_in_full(self):
self.assertEqual(records.named(pathlib.Path("/srv/standards/prose.md"), KIM, CLAUDE_HOME), "/srv/standards/prose.md")
def test_puts_the_records_handed_in_first_and_reads_only_the_humans_rules_without_a_checkout(self):
with tempfile.TemporaryDirectory() as root:
+1 -1
View File
@@ -28,7 +28,7 @@ SETUP = "~/setup"
def write_config(home: pathlib.Path, checkout: pathlib.Path, goals: str = "checkout:README.md") -> pathlib.Path:
"""A config under home that names checkout, every setting inside it but goals-and-audience, principles and standards, which lie in SETUP; for the tests of each tool that reads the config."""
"""A config under home that names checkout, every setting inside it but principles and standards, which lie in SETUP, and goals-and-audience, which is goals; for the tests of each tool that reads the config."""
folder = config_folder({}, home) / checkout.name
folder.mkdir(parents=True, exist_ok=True)
(folder / "config.toml").write_text(CLIENT.replace('"~/code/acme-billing"', f'"{checkout}"').replace('"folder:', '"checkout:').replace('"setup:', f'"{SETUP}/').replace('"checkout:goals.md"', f'"{goals}"'), encoding="utf-8")
+1 -1
View File
@@ -475,7 +475,7 @@ def placed(value: object, top: pathlib.Path, folder: pathlib.Path, home: pathlib
"""The path a setting's value spells, or None where it doesn't spell one. A prefixed path stays inside its place."""
if not isinstance(value, str):
return None
# "setup:" is the clone this tool runs from, so a config holds wherever that clone lies. Five readers, seated as people who write a config and as claudes that read one, each picked the prefix over a path in the loop's Claude home and over the clone's path written out.
# "setup:" is the clone this tool runs from, so a config holds wherever that clone lies. docs/decisions.md → `setup files: …` holds the bench that picked the prefix.
for prefix, place in (("checkout:", top), ("folder:", folder), ("setup:", RELEASE_ROOT)):
if value.startswith(prefix):
inside = pathlib.PurePosixPath(value.removeprefix(prefix))
+2 -2
View File
@@ -4,7 +4,7 @@ import unittest
from git_cli.git_repo import git
from repo_checks import ROOT
# A file of the setup spelled by a place in the person's own Claude home, where no release lies: a tool, or an instruction file. A session the loop starts has the release's tools on PATH, so prose names a tool bare, and names any other file as the setup's `CLAUDE.md` → "Vocabulary", "setup" says. Both hold wherever the release is cloned.
# A file of the setup spelled by a place in the person's own Claude home, where no release lies: a tool, or an instruction file. A session the loop starts has the release's tools on PATH, so prose names a tool bare. It names any other file as the setup's: `CLAUDE.md` → "Vocabulary", "setup". Both hold wherever the release is cloned.
BY_ITS_FOLDER = re.compile(r"(?:~|\$HOME)/\.claude/(?:CLAUDE\.md|(?:agents|bin|principles|rules|skills)\b[\w.<>*/-]*)")
# The plan, the changelog and the records, then the dated benches and trials: their text names a file as it was spelled when the line was written, and nobody rewrites it.
HISTORY = ("CHANGELOG.md", "docs/", "todo.md", "reviewer-merge-trials/", "workflow-bench/")
@@ -22,7 +22,7 @@ class SetupFilesNamedWhereverTheCloneLies(unittest.TestCase):
for number, line in enumerate(path.read_text(encoding="utf-8", errors="replace").splitlines(), 1):
found += [f"{name}:{number}: {spelled}" for spelled in BY_ITS_FOLDER.findall(line)]
self.assertEqual(found, [], "name a tool bare, as in `todo-item`, and any other file as the setup's: the setup's `rules/todo-items.md`, never a path into `~/.claude`")
self.assertEqual(found, [], "name a tool bare, as in `todo-item`, and any other file as the setup's: the setup's `rules/todo-items.md`, never a path into `~/.claude`; in a line a person types, name the clone as the README does, `~/build-release/bin/<tool>`")
if __name__ == "__main__":
+1 -1
View File
@@ -11,7 +11,7 @@ from text_files.markdown_text import section
SECTIONS = ("Shared goal", "Prose", "Vocabulary")
# The text calls the file the setup's, the word that file uses for the release's rules, and names the loop's Claude home as the place to open one: a reviewer without a shell cannot learn where `XDG_DATA_HOME` puts that home.
# The text calls the file the setup's, as that file's "Vocabulary" does, and names the loop's Claude home as the place to open a file of the setup: a reviewer without a shell cannot learn where `XDG_DATA_HOME` puts that home.
def reviewer_context(claude_dir: pathlib.Path) -> str | Failure:
"""SECTIONS of the CLAUDE.md in claude_dir, the loop's Claude home, as a reviewer is told them; a Failure where the file or a section is missing."""
path = claude_dir / "CLAUDE.md"
+1 -1
View File
@@ -185,7 +185,7 @@ With --record-figures it also exits 1, saying why: before it plants a bug, where
cannot be read; and after the bench, where the history already holds that branch's bench of those two commits or cannot be
written. The folder then still holds the bench's results.
gather exits 1, saying why, outside a checkout, without a digest, where build-release has saved no model for the project or the
model is not on its routing ladder, and where the loop's Claude home is not ready or its claude fails or hits a usage limit.
model is not on its routing ladder, and where the loop's Claude home is not ready, and where gather's claude fails or hits a usage limit.
"""
import dataclasses
import functools
+4 -4
View File
@@ -140,7 +140,7 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b
## loop's Claude home: `bin/claude_home` generates it in the data folder from the clone it ships in, with links to the clone's instruction files and a `settings.json` whose `{clone}` it fills in
2026-12-04, lilleman's plan for 0.18.0. Serves goal 3. `bin/claude_home` builds the home in the data folder, `~/.local/share/build-release/claude-home`, so the clone stays a clean checkout: the files Claude Code keeps in its home never reach a commit. Only a change made through one of the four links below reaches the clone. `bin/claude_home` links `CLAUDE.md`, `rules/`, `agents/` and `skills/` to the clone's, and writes `settings.json` from the clone's with the clone's path in place of `{clone}`, since the clone may lie anywhere and the tracked file can't hold its path. It builds the home again when the clone's commit or path changes, which covers a release's tag and a development clone alike. Probed on 2.1.336, once, while the home was built: `claude plugin install` finds a plugin only after `claude plugin marketplace add` of its marketplace; each exits 0 where its work is already done; and an install rewrites the home's `settings.json` in Claude Code's key order. Not tested: that a session loads the four through links, which needs a model request.
2026-12-04, lilleman's plan for 0.18.0. Serves goal 3. `bin/claude_home` builds the home in the data folder, `~/.local/share/build-release/claude-home`, so the clone stays a clean checkout: the files Claude Code keeps in its home never reach a commit. Only a change made through one of the six links below reaches the clone. `bin/claude_home` links `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/` to the clone's, the last two since `setup files: …` below, and writes `settings.json` from the clone's with the clone's path in place of `{clone}`, since the clone may lie anywhere and the tracked file can't hold its path. It builds the home again when the clone's commit or path changes, which covers a release's tag and a development clone alike. Probed on 2.1.336, once, while the home was built: `claude plugin install` finds a plugin only after `claude plugin marketplace add` of its marketplace; each exits 0 where its work is already done; and an install rewrites the home's `settings.json` in Claude Code's key order. Not tested: that a session loads `agents/`, `CLAUDE.md`, `rules/` and `skills/` through links, which needs a model request.
## comprehension floor: every dimension and the overall at the project's readability floor or above is the target, and no score blocks a merge or release
@@ -848,11 +848,11 @@ Valid while Claude Code loads `~/.claude/rules/*.md` in every project, a path-sc
## setup files: prose names a file of the setup as the setup's `<path>`, a project's config names one as `setup:<path>`, and the loop's Claude home links each folder so named
2026-12-04, the chunk of the plan item that asked for one spelling. Serves goals 2 and 3, and applies project principle 7. Since 0.18.0 a release is cloned anywhere but `~/.claude`, so a path into `~/.claude` sends its reader to a file that doesn't exist, or to an old checkout's stale copy.
2026-12-04, the worker of the chunk whose plan item asked for one spelling, on the bench below. Serves goals 2 and 3, and applies project principle 7. Since 0.18.0 a release is cloned anywhere but `~/.claude`, so a path into `~/.claude` sends its reader to a file that doesn't exist, or to an old checkout's stale copy.
- **Prose:** the rules, agents, skills, principles and each tool's text write the setup's `rules/todo-items.md`. `CLAUDE.md` → "Vocabulary" defines the setup once, and says to open its files in the loop's Claude home. So `bin/claude_home` links `principles/` and `bin/` there beside the files Claude Code loads, and the hook that starts a reviewer names the home's path, since a reviewer without a shell cannot learn where `XDG_DATA_HOME` puts it. A tool is still named bare.
- **Prose:** the rules, agents, skills, principles and each tool's text name such a file as the setup's, as in the setup's `rules/todo-items.md`. `CLAUDE.md` → "Vocabulary" defines the setup once, and says to open its files in the loop's Claude home. So `bin/claude_home` links `principles/` and `bin/` there beside the files Claude Code loads, and the hook that starts a reviewer names the home's path, since a reviewer without a shell cannot learn where `XDG_DATA_HOME` puts it. A tool is still named bare where a claude runs it. A line a person types in their own shell names it in the clone, as the README does: `~/build-release/bin/run-heavy`.
- **Config:** `setup:<path>` is a path inside the clone whose tool reads the config, so `standards = "setup:skills/larv-review/standards"` holds on every machine.
- **The bench:** five fresh-context readers, seated as a first-time installer, a worker, a reviewer without a shell, the setup's maintainer and a consultant with three clones. Each resolved every candidate with the clone in `/opt/br`, and again with `XDG_DATA_HOME` set, then ranked them. All five ranked this prose spelling first, over the home's full path at each mention, `$CLAUDE_CONFIG_DIR/<path>` and the clone written as `~/build-release/<path>`. All five ranked `setup:` first for a config, over the home's path and the clone's path. The full path misled readers who skipped the note on `XDG_DATA_HOME`, the variable cost a shell step at each mention, and the clone's path was wrong wherever the clone lies elsewhere.
- **The bench:** five fresh-context readers, seated as a first-time installer, a worker, a reviewer without a shell, the setup's maintainer and a consultant with three clones. Each resolved every candidate with the clone in `/opt/br`, and again with `XDG_DATA_HOME` set, then ranked them. All five ranked this prose spelling first, over the home's full path at each mention, `$CLAUDE_CONFIG_DIR/<path>` and the clone written as `~/build-release/<path>`. All five ranked `setup:` first for a config, over the home's path and the clone's path. The full path misled readers who skipped the note on `XDG_DATA_HOME`, `$CLAUDE_CONFIG_DIR` cost a shell step at each mention, and the clone's path was wrong wherever the clone lies elsewhere.
- **Left as written:** `CHANGELOG.md`, `docs/`, `todo.md` and the dated trials under `workflow-bench/` and `reviewer-merge-trials/`. `~/.claude` still names the person's own Claude home, as in goal 3 and rule-hook's `.env` rule.
`bin/repo_checks/test_setup_files_named.py` fails on a path into `~/.claude` that names a file of the setup. Valid while every claude the setup starts runs in the loop's Claude home.