Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 89728ef9bd | |||
| 5da645bab6 | |||
| 174a07cb99 | |||
| 02c12f773e | |||
| 0dce89cc40 | |||
| c7c66ddc14 | |||
| e64666d206 | |||
| e7831d2c1e | |||
| 77b57f948d | |||
| 7265dd0dd7 | |||
| 76b5a7fb7e | |||
| 3ec8bf9436 | |||
| 3584890d71 |
@@ -8,3 +8,7 @@ reviewer-merge-trials/results/
|
||||
reviewer-merge-trials/runs.pkl
|
||||
workflow-bench/*-[0-9]*.md
|
||||
workflow-bench/*/
|
||||
|
||||
# The signed-in account's skills, which Claude Code would write into the clone should the loop's Claude home ever link the whole skills/ folder again.
|
||||
skills/.trash/
|
||||
skills/synced/
|
||||
|
||||
@@ -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** — 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.
|
||||
- **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/` and `rules/` of the clone that built it last, and, inside a `skills/` folder of the home's own, to each of that clone's skills.
|
||||
- **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.
|
||||
|
||||
@@ -77,13 +77,15 @@ 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 `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/`, so a claude opens there each file of the setup that the rules name, 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/` and `rules/`, and a `skills/` folder of its own with a link to each of the clone's skills, so a claude opens there each file of the setup that the rules name, 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. It builds the home again when you change `XDG_STATE_HOME`, too. The home follows the clone whose build-release, build-epic, `task-bench gather` or `claude-release` ran last, so run only the release clone's, never the development clone's: that one would point every running loop at unreleased rules.
|
||||
|
||||
From the account you sign in with, the loop's home keeps only the sign-in and the account's profile: its IDs, email, names, organization and plan. It keeps out the account's claude.ai connectors (such as mail, calendar and files), skills and plugins. This holds in `claude-release` too. The home shares one thing with your own Claude Code that it can't avoid: it signs in as an account, usually yours, so the loop's usage counts against that account's limits. Signing in can copy the account's skills into the home's `skills/synced/` before the home is built; the first claude there after the home is built moves them to `skills/.trash/` and doesn't load any of them.
|
||||
|
||||
To work in the loop's home yourself, for a manual `/larv-review` or a planning talk, run `~/build-release/bin/claude-release` in the project's checkout. It builds or refreshes the home first, as above, then runs claude there and passes every argument on, so `--resume`, `-p` and `--model` work as with plain claude. Where nobody has signed in to the home yet, type `/login` in the claude it opens. The home's `settings.json` bypasses permissions, and Claude Code may still ask you to trust the folder. The setup's hooks, such as `rule-hook`, which refuses a tool call that breaks a rule a program can check, run in every claude in the loop's home: the loop's sessions and `claude-release`. The claude you start from your own `~/.claude` loads neither the setup nor its hooks.
|
||||
|
||||
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. Back up these four folders:
|
||||
@@ -208,7 +210,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 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/dev-factory` 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 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. A new skill made there stays in the home, where no repo or backup holds it: make it in `~/code/dev-factory` instead. Carry such a change into `~/code/dev-factory` 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. 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.
|
||||
|
||||
|
||||
+17
-2
@@ -1,6 +1,6 @@
|
||||
"""Builds the loop's Claude home: the folder every claude the loop starts reads in place of the person's own `~/.claude`.
|
||||
|
||||
The home lies outside the clone, so the clone stays a clean checkout. It holds links to the clone's LINKED files, a `settings.json` generated from the clone's, and what Claude Code itself keeps in its home: the plugins, the sign-in and the transcripts. docs/decisions.md → `Claude Code in a home of its own` says what loads from such a home.
|
||||
The home lies outside the clone, so the clone stays a clean checkout. It holds links to the clone's LINKED files, a SKILLS folder of its own with a link to each of the clone's skills, a `settings.json` generated from the clone's, and what Claude Code itself keeps in its home: the plugins, the sign-in and the transcripts. docs/decisions.md → `Claude Code in a home of its own` says what loads from such a home.
|
||||
"""
|
||||
import collections.abc
|
||||
import fcntl
|
||||
@@ -14,7 +14,9 @@ from failure import Failure
|
||||
from text_files.file_writes import replace_file
|
||||
|
||||
# What the home links to in the clone: the instruction files Claude Code reads from its home, and the two folders those files name beside them. So a claude opens each file of the setup that they name in its own home: the setup's CLAUDE.md → "Vocabulary", "setup".
|
||||
LINKED = ("CLAUDE.md", "agents", "bin", "principles", "rules", "skills")
|
||||
LINKED = ("CLAUDE.md", "agents", "bin", "principles", "rules")
|
||||
# A folder of the home's own: Claude Code writes in it, such as the signed-in account's skills at sign-in, and a link to the whole folder would carry those writes into the clone.
|
||||
SKILLS = "skills"
|
||||
# Stands for the clone's folder in the clone's settings.json. Every value that holds it is a shell command, such as a hook's.
|
||||
CLONE = "{clone}"
|
||||
# Stands for the reports folder, which holds every chunk's review folder, in the clone's settings.json. Every value that holds it is a path, so unlike CLONE it isn't shell-quoted.
|
||||
@@ -96,6 +98,19 @@ def linked(home: pathlib.Path, clone: pathlib.Path) -> Failure | None:
|
||||
if link.is_symlink():
|
||||
link.unlink()
|
||||
link.symlink_to(clone / name)
|
||||
skills = home / SKILLS
|
||||
# A release before 0.18.1 linked the whole folder.
|
||||
if skills.is_symlink():
|
||||
skills.unlink()
|
||||
skills.mkdir(exist_ok=True)
|
||||
# Only links are replaced, so a skill the clone dropped loses its link, and what Claude Code wrote here stays.
|
||||
for entry in skills.iterdir():
|
||||
if entry.is_symlink():
|
||||
entry.unlink()
|
||||
# A skill is a folder that holds a SKILL.md, so the `synced/` and `.trash/` that a release before 0.18.1 let Claude Code write into the clone stay unlinked. A clone without skills/, as a test's may be, leaves the folder empty.
|
||||
for skill in sorted((clone / SKILLS).iterdir()) if (clone / SKILLS).is_dir() else []:
|
||||
if (skill / "SKILL.md").is_file():
|
||||
(skills / skill.name).symlink_to(skill)
|
||||
return None
|
||||
|
||||
|
||||
|
||||
@@ -26,8 +26,10 @@ class Home(unittest.TestCase):
|
||||
self.temp = pathlib.Path(tempfile.mkdtemp())
|
||||
self.addCleanup(subprocess.run, ["rm", "-rf", str(self.temp)])
|
||||
self.clone = self.temp / "the clone"
|
||||
for folder in ("agents", "bin", "principles", "rules", "skills"):
|
||||
for folder in ("agents", "bin", "principles", "rules", "skills/larv-review", "skills/comprehension-panel"):
|
||||
(self.clone / folder).mkdir(parents=True)
|
||||
for skill in ("larv-review", "comprehension-panel"):
|
||||
(self.clone / "skills" / skill / "SKILL.md").write_text(f"# {skill}\n", encoding="utf-8")
|
||||
(self.clone / "CLAUDE.md").write_text("# The setup's rules\n", encoding="utf-8")
|
||||
(self.clone / "settings.json").write_text(json.dumps(SETTINGS), encoding="utf-8")
|
||||
self.home = self.temp / "share" / "claude-home"
|
||||
@@ -55,11 +57,70 @@ class Home(unittest.TestCase):
|
||||
def test_a_new_home_links_each_folder_of_the_setup_that_an_instruction_file_names(self) -> None:
|
||||
self.assertIsNone(self.unready())
|
||||
|
||||
for name in ("CLAUDE.md", "agents", "bin", "principles", "rules", "skills"):
|
||||
for name in ("CLAUDE.md", "agents", "bin", "principles", "rules", "skills/larv-review", "skills/comprehension-panel"):
|
||||
self.assertTrue((self.home / name).is_symlink(), name)
|
||||
self.assertEqual((self.home / name).resolve(), (self.clone / name).resolve())
|
||||
self.assertEqual((self.home / "CLAUDE.md").read_text(encoding="utf-8"), "# The setup's rules\n")
|
||||
|
||||
def test_the_skills_folder_stands_in_the_home_so_what_claude_code_writes_there_stays_out_of_the_clone(self) -> None:
|
||||
self.assertIsNone(self.unready())
|
||||
|
||||
self.assertTrue((self.home / "skills").is_dir())
|
||||
self.assertFalse((self.home / "skills").is_symlink())
|
||||
|
||||
def test_a_skills_folder_claude_code_made_at_sign_in_is_kept_with_its_files(self) -> None:
|
||||
synced = self.home / "skills" / "synced" / "account" / "docx" / "SKILL.md"
|
||||
trashed = self.home / "skills" / ".trash" / "1-docx"
|
||||
synced.parent.mkdir(parents=True)
|
||||
synced.write_text("an account's skill\n", encoding="utf-8")
|
||||
trashed.mkdir(parents=True)
|
||||
|
||||
self.assertIsNone(self.unready())
|
||||
|
||||
self.assertEqual(synced.read_text(encoding="utf-8"), "an account's skill\n")
|
||||
self.assertTrue(trashed.is_dir())
|
||||
self.assertEqual((self.home / "skills" / "larv-review").resolve(), (self.clone / "skills" / "larv-review").resolve())
|
||||
self.assertEqual(sorted(path.name for path in (self.clone / "skills").iterdir()), ["comprehension-panel", "larv-review"])
|
||||
|
||||
def test_a_skills_link_an_older_release_made_becomes_a_folder(self) -> None:
|
||||
self.home.mkdir(parents=True)
|
||||
(self.home / "skills").symlink_to(self.clone / "skills")
|
||||
|
||||
self.assertIsNone(self.unready())
|
||||
|
||||
self.assertFalse((self.home / "skills").is_symlink())
|
||||
self.assertEqual((self.home / "skills" / "comprehension-panel").resolve(), (self.clone / "skills" / "comprehension-panel").resolve())
|
||||
|
||||
def test_what_an_older_release_let_claude_code_write_into_the_clones_skills_is_not_linked_as_a_skill(self) -> None:
|
||||
for leftover in ("synced/account/docx", ".trash/1-docx"):
|
||||
(self.clone / "skills" / leftover).mkdir(parents=True)
|
||||
(self.clone / "skills" / leftover / "SKILL.md").write_text("an account's skill\n", encoding="utf-8")
|
||||
signed_in = self.home / "skills" / "synced" / "account" / "pdf" / "SKILL.md"
|
||||
signed_in.parent.mkdir(parents=True)
|
||||
signed_in.write_text("an account's skill\n", encoding="utf-8")
|
||||
|
||||
self.assertIsNone(self.unready())
|
||||
|
||||
self.assertEqual(sorted(entry.name for entry in (self.home / "skills").iterdir() if entry.is_symlink()), ["comprehension-panel", "larv-review"])
|
||||
self.assertEqual(signed_in.read_text(encoding="utf-8"), "an account's skill\n")
|
||||
|
||||
def test_a_clone_without_skills_builds_a_home_with_an_empty_skills_folder(self) -> None:
|
||||
subprocess.run(["rm", "-r", str(self.clone / "skills")], check=True)
|
||||
|
||||
self.assertIsNone(self.unready())
|
||||
|
||||
self.assertEqual(list((self.home / "skills").iterdir()), [])
|
||||
|
||||
def test_a_skill_the_clone_dropped_loses_its_link_at_the_next_refresh(self) -> None:
|
||||
self.assertIsNone(self.unready())
|
||||
subprocess.run(["rm", "-r", str(self.clone / "skills" / "comprehension-panel")], check=True)
|
||||
self.commit = "4d5e6f\n"
|
||||
|
||||
self.assertIsNone(self.unready())
|
||||
|
||||
self.assertFalse((self.home / "skills" / "comprehension-panel").is_symlink())
|
||||
self.assertTrue((self.home / "skills" / "larv-review").is_symlink())
|
||||
|
||||
def test_the_generated_settings_name_the_clone_quoted_for_a_shell_and_leave_the_tracked_file_alone(self) -> None:
|
||||
self.unready()
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ DATA_HOME = ".local/share"
|
||||
XDG_DATA_HOME = "XDG_DATA_HOME"
|
||||
# The variable that names the home a claude runs in, in place of the person's own.
|
||||
CLAUDE_CONFIG_DIR = "CLAUDE_CONFIG_DIR"
|
||||
# Set to "false", the variable keeps the signed-in claude.ai account's connectors, such as its mail, out of a session: a second lock beside the home's disableClaudeAiConnectors, docs/decisions.md → `Claude Code in a home of its own`.
|
||||
CLAUDE_AI_CONNECTORS = "ENABLE_CLAUDEAI_MCP_SERVERS"
|
||||
|
||||
|
||||
# Only a claude started through this has the tools on PATH. One a person starts by hand lacks them, as their shell does: the plan keeps short names such as `wait-for` out of a person's shell. README.md → Tools says how to call a tool there.
|
||||
@@ -55,8 +57,8 @@ def claude_home(env: Mapping[str, str], home: pathlib.Path) -> pathlib.Path:
|
||||
|
||||
|
||||
def in_claude_home(env: Mapping[str, str], home: pathlib.Path) -> dict[str, str]:
|
||||
"""env with the loop's Claude home as the home a claude started in it runs in."""
|
||||
return {**env, CLAUDE_CONFIG_DIR: str(claude_home(env, home))}
|
||||
"""env with the loop's Claude home as the home a claude started in it runs in, and with the claude.ai connectors turned off."""
|
||||
return {**env, CLAUDE_CONFIG_DIR: str(claude_home(env, home)), CLAUDE_AI_CONNECTORS: "false"}
|
||||
|
||||
|
||||
# The XDG Base Directory Specification calls a relative path in one of its variables invalid, to be ignored: https://specifications.freedesktop.org/basedir-spec/latest/
|
||||
|
||||
@@ -60,7 +60,10 @@ class ClaudeHome(unittest.TestCase):
|
||||
self.assertEqual((found.claude_dir, found.claude_code_transcripts, found.model_catalog), (home, home / "projects", home / "cache" / "model-catalog"))
|
||||
|
||||
def test_a_claude_started_in_the_loops_home_is_told_so_and_keeps_every_other_variable(self):
|
||||
self.assertEqual(in_claude_home({"PATH": "/bin", "CLAUDE_CONFIG_DIR": "/elsewhere"}, HOME), {"PATH": "/bin", "CLAUDE_CONFIG_DIR": "/home/me/.local/share/build-release/claude-home"})
|
||||
self.assertEqual(in_claude_home({"PATH": "/bin", "CLAUDE_CONFIG_DIR": "/elsewhere"}, HOME), {"PATH": "/bin", "CLAUDE_CONFIG_DIR": "/home/me/.local/share/build-release/claude-home", "ENABLE_CLAUDEAI_MCP_SERVERS": "false"})
|
||||
|
||||
def test_a_claude_started_in_the_loops_home_loads_no_claude_ai_connector_whatever_the_environment_asked(self):
|
||||
self.assertEqual(in_claude_home({"ENABLE_CLAUDEAI_MCP_SERVERS": "true"}, HOME)["ENABLE_CLAUDEAI_MCP_SERVERS"], "false")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -27,6 +27,9 @@ class Settings(unittest.TestCase):
|
||||
self.assertTrue(command.startswith(f"{CLONE}/bin/"), command)
|
||||
self.assertTrue((ROOT / "bin" / command.split()[0].removeprefix(f"{CLONE}/bin/")).is_file(), command)
|
||||
|
||||
def test_the_signed_in_accounts_connectors_skills_and_plugins_stay_out_of_the_home(self) -> None:
|
||||
self.assertEqual((self.settings.get("disableClaudeAiConnectors"), self.settings.get("syncClaudeAiSkills"), self.settings.get("syncClaudeAiPlugins")), (True, False, False))
|
||||
|
||||
def test_the_persons_theme_and_status_line_are_not_set(self) -> None:
|
||||
self.assertNotIn("theme", self.settings)
|
||||
self.assertNotIn("statusLine", self.settings)
|
||||
|
||||
+5
-2
@@ -129,19 +129,22 @@ The cap is 5, `bin/plan/todo_table.py`'s `BUNDLE_MAX_R`, from the same chunks: b
|
||||
|
||||
## Claude Code in a home of its own: a `CLAUDE_CONFIG_DIR` home loads `CLAUDE.md`, rules, agents, skills, hooks and plugins, and `CLAUDE_CODE_OAUTH_TOKEN` signs in there, but never under `--bare`
|
||||
|
||||
2026-11-20, lilleman's standalone-install plan. Serves goal 3, which keeps the setup out of the human's `~/.claude`, and goal 5: a home of its own keeps the loop's transcripts and token apart from the human's. The plan therefore runs every claude the loop starts in a home of its own, and doesn't load the setup with `--plugin-dir`, `--settings` and `--append-system-prompt-file` over the human's home. The probes ran on Claude Code 2.1.330, on throwaway homes, never the human's. A mock Messages API at `ANTHROPIC_BASE_URL` recorded each request and answered the first with a tool call that reads a file, so the system prompt and the tool results show what loaded, with no real token. A bullet that names 2.1.336 was probed on that version instead. Each result holds for the version it was probed on; repeat the probes when the version changes.
|
||||
2026-11-20, lilleman's standalone-install plan. Serves goal 3, which keeps the setup out of the human's `~/.claude`, and goal 5: a home of its own keeps the loop's transcripts and token apart from the human's. The plan therefore runs every claude the loop starts in a home of its own, and doesn't load the setup with `--plugin-dir`, `--settings` and `--append-system-prompt-file` over the human's home. The probes ran on Claude Code 2.1.330, on throwaway homes, never the human's. A mock Messages API at `ANTHROPIC_BASE_URL` recorded each request and answered the first with a tool call that reads a file, so the system prompt and the tool results show what loaded, with no real token. A bullet that names another version or machine was probed there instead. Each result holds for the version it was probed on; repeat the probes when the version changes.
|
||||
|
||||
- **Loads from `$CLAUDE_CONFIG_DIR`:** `CLAUDE.md` (in the system prompt), `rules/*.md` (one with `paths:` entered the context after the model read a matching file, not before), `agents/`, `skills/`, the hooks of `settings.json` (a `SessionStart` hook ran) and plugins. `claude plugin marketplace add` and `claude plugin install` write to `<home>/plugins`, and the installed plugin's skill is listed. `.claude.json` lands in the home too, so the human's `~/.claude.json` stays theirs.
|
||||
- **The human's own `~/.claude/CLAUDE.md` and `~/.claude/rules/` load too, unless the home's settings exclude them.** 2026-12-04, found by `first-chunk-e2e/run` on Claude Code 2.1.336: claude reads `.claude/CLAUDE.md` and `.claude/rules/` in every folder above its working folder as project instructions, and the human's home folder is above each project they keep under it. Both reached the worker's request in the loop's home. A `SessionStart` hook in the human's `~/.claude/settings.json` didn't run. So `bin/claude_home` writes `claudeMdExcludes` into the home's `settings.json`, naming everything under the human's `~/.claude`, after which neither loads. The exclusion also drops a rule file the home reaches through a link, though not a linked `CLAUDE.md`, so `bin/claude_home` refuses a release cloned in the human's `~/.claude`: none of its `rules/` would load. Not tested: a `CLAUDE.md` in the human's home folder itself, which is outside their Claude home.
|
||||
- **The loop's home signs in by `/login`.** 2026-12-03, lilleman, planning 0.18.0: the human signs in once, in a claude started with `CLAUDE_CONFIG_DIR` naming the loop's home, and makes and keeps no long-lived token file. `bin/claude_home` asks `claude auth status` before a command starts a chunk. Probed on Claude Code 2.1.336 in a throwaway home: signed out, it prints JSON with `loggedIn: false` and exits 1. Not tested: where the home keeps the sign-in. The token below stays the way a container signs in, as task-bench does.
|
||||
- **Signs in by `CLAUDE_CODE_OAUTH_TOKEN`:** the request carried `Authorization: Bearer <token>` with the `oauth-2025-04-20` beta, and `claude auth status` said `loggedIn: true, authMethod: oauth_token`. The home didn't hold a credentials file. Without the variable the home is `loggedIn: false`. Not tested: that Anthropic accepts a real token, since `claude setup-token` needs the human's browser sign-in. The authentication docs say the token lasts one year and can only make model requests; neither is tested, and the first real run shows whether it signs in.
|
||||
- **`--bare` can't use that token.** With `CLAUDE_CODE_OAUTH_TOKEN`, it says `Not logged in · Please run /login` and doesn't send a request. With `ANTHROPIC_API_KEY` it signs in, but doesn't load anything from the home (`CLAUDE.md`, rules, agents or skills) and offers only Bash, Edit and Read. So a container that signs in by a long-lived token runs without `--bare`; its fresh home is empty, so nothing of the human's loads there either. The project's `CLAUDE.md` loads from the working folder, and its `AGENTS.md` only where the project has no `CLAUDE.md`.
|
||||
- **A claude.ai account signed in there brings its connectors, skills and plugins, unless the home's settings turn them off.** 2026-12-06, item 605, on the owner's machine with Claude Code 2.1.337: after `/login` in the loop's home, before any build, `claude mcp list` there listed the account's Claude Docs, Gmail, Google Calendar and Google Drive connectors, each connected, and the account's skills sat in `<home>/skills/synced/`. With `disableClaudeAiConnectors: true`, `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` in the home's `settings.json`, `claude mcp list` didn't list any server, the next `claude -p` moved the synced skills to `<home>/skills/.trash/` and loaded only Claude Code's built-in skills, and no `<home>/plugins/synced/` appeared. So the clone's `settings.json` holds all three, and `in_claude_home` sets `ENABLE_CLAUDEAI_MCP_SERVERS=false` as a second lock. Claude Code's docs name the keys (settings-reference, skills and plugins/loading at code.claude.com/docs/en) and the variable (env-vars); they don't say `--strict-mcp-config` keeps connectors out, so the loop doesn't rely on it. A long-lived token from `claude setup-token` can't fetch connectors at all, per the authentication docs; not tested. Two more points from the docs, not tested: an organisation's managed settings can't turn the account's skills or plugins back on, since a `true` in either sync key is "the same as unset", nor its connectors, since a `true` in `disableClaudeAiConnectors` applies from any file; and on macOS the sign-in's Keychain entry is keyed to `CLAUDE_CONFIG_DIR`, so the home's sign-in stays apart from the person's own.
|
||||
- **Transcripts** land in `<home>/projects/<working folder's path, with each / as ->/<session id>.jsonl`. `--no-session-persistence` doesn't write one, only an empty `memory` folder, so a bench that uses it reads the run from `--output-format stream-json`.
|
||||
- **The model catalog** sits in `<home>/cache/model-catalog/` on the human's machine, as `bin/loop_state/paths.py` expects. The throwaway homes didn't write one, since the mock was the only server they reached. Not tested: whether a long-lived-token session writes it. Where it doesn't, `bin/chunk_driver/project/model_choice.py` prints `no model catalog cached` and takes a typed model name.
|
||||
|
||||
## 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 six links below reaches the clone. `bin/claude_home` links `agents/`, `bin/`, `CLAUDE.md`, `principles/`, `rules/` and `skills/` to the clone's, `bin/` and `principles/` 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.
|
||||
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 links below reaches the clone. `bin/claude_home` links `agents/`, `bin/`, `CLAUDE.md`, `principles/` and `rules/` to the clone's, `bin/` and `principles/` since `setup files: …` below. It links each of the clone's skills inside a `skills/` folder of the home's own. It 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.
|
||||
|
||||
2026-12-06, the owner, through item 605 for patch release 0.18.1. Serves goal 2, and goal 1.3: every loop session loads the setup's skills and no account's. Claude Code writes the signed-in account's skills into `<home>/skills/synced/` at sign-in, which README → Install has the person do before the first build. The first build then failed, since a folder already stood where it makes the `skills` link. Had the link come first, Claude Code would have written through it into the clone. So `skills/` is a folder of the home's own, and each build replaces only the links in it: a skill the clone dropped loses its link, and what Claude Code wrote there stays in the home. A skill is a folder holding a `SKILL.md`, so a `synced/` or `.trash/` that 0.18.0 let Claude Code write into a clone isn't linked back. The clone's `.gitignore` also ignores `skills/synced/` and `skills/.trash/`.
|
||||
|
||||
2026-12-04, the release review of 0.18.0, declining the architect's finding that two clones can rebuild one home. Only the README keeps the development clone's build-release, build-epic, `task-bench gather` and `claude-release` from repointing a running loop's home. Serves goal 2. One home per machine is what lets the person sign in once. A program-held guard would have to know which clone is the development one and whether a loop is running, and pass both into `claude_home`. The cost of the README's rule is a chunk that runs on unreleased rules after someone ran the development clone's tool. Valid while one person runs the setup on a machine; two clones that run loops at once would each need a home.
|
||||
|
||||
|
||||
@@ -63,5 +63,7 @@
|
||||
},
|
||||
"skipDangerousModePermissionPrompt": true,
|
||||
"skipWorkflowUsageWarning": true,
|
||||
"syncClaudeAiPlugins": false,
|
||||
"syncClaudeAiSkills": false,
|
||||
"tui": "fullscreen"
|
||||
}
|
||||
|
||||
@@ -6,12 +6,13 @@
|
||||
|
||||
`Bar = 0.1`
|
||||
|
||||
`Next ID = 601`
|
||||
`Next ID = 606`
|
||||
|
||||
## Items
|
||||
|
||||
| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves | Score |
|
||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||
| 605 | 0.18.1 | | defect | **Keep the account's claude.ai skills, plugins and connectors out of the loop's Claude home and its clone: generate `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` beside `disableClaudeAiConnectors: true`, set `ENABLE_CLAUDEAI_MCP_SERVERS=false` for every claude the loop starts, and keep a `skills/` folder Claude Code made, linking each setup skill inside it.** | 2 | 2 | 3 | 5 | 3 | 2 by 6, 1.3 by 4 | 6.5 |
|
||||
| 586 | 0.19.0 | | | **Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink.** | 2 | 3 | 2 | 5 | 3 | 3 by 4 | 5.0 |
|
||||
| 599 | 0.19.0 | | principle | **Return a `Failure` from the loop's Claude home build where the clone's `settings.json` is malformed or lacks a marketplace, or a file stands where a link belongs, so `unready` prints one line instead of a traceback.** | 2 | 1 | 3 | 4 | 3 | code health by 3 | 3.8 |
|
||||
| 585 | 0.19.0 | | | **Give this repo an `AGENTS.md` like any project, and drop the decision and the rule that say it keeps none.** | 3 | 1 | 3 | 5 | 4 | code health by 3 | 3.1 |
|
||||
@@ -23,6 +24,7 @@
|
||||
| 594 | 0.19.0 | | | **Make the prose reviewer check each behavioural claim on a line the diff adds or rewrites against the code, script or sibling sentence it describes, and report a mismatch as a 🟡 at the changed line.** | 2 | 2 | 3 | 5 | 2 | 1.1 by 4 | 1.3 |
|
||||
| 589 | 0.19.0 | | | **Count every turn of a bench run in its figures: sum the tokens and turns of each `result` event in the stream, and time the run from its first event to its last.** | 2 | 2 | 1 | 3 | 2 | 1.1 by 3 | 1.0 |
|
||||
| 590 | 0.19.0 | 589 | | **Report beside each bench run how far its change reached: the files and lines it changed, the files it changed outside the bug's file, and, for a bug, whether it restored the line the mutant changed.** | 2 | 2 | 1 | 3 | 4 | 1.1 by 4 | 1.0 |
|
||||
| 603 | 0.19.0 | | owner | **Link `build-release` and `build-epic` from the release clone onto `PATH` with `bin/install`, and remove the links with `bin/uninstall`, so deleting the setup leaves nothing behind.** | 3 | 2 | 2 | 5 | 3 | 2 by 2 | 0.5 |
|
||||
| 487 | 0.20.0 | | owner | **Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 5, 1.4 by 5 | 0.4 |
|
||||
| 498 | 0.20.0 | 487 | owner | **Drive each chunk as a state machine in `build-release`, from preflight through implementing, review, the pull request and the merge to finishing its items, with the worker as one model step that ends in a result that code checks.** | 4 | 2 | 3 | 7 | 8 | 1.1 by 4, 1.4 by 4 | 0.3 |
|
||||
| 488 | 0.20.0 | 498 | owner | **Cut the larv-review skill, `CLAUDE.md` and rule-hook down to what `build-release` doesn't own: the judgement the model makes and the safety guards.** | 2 | 2 | 3 | 5 | 5 | 1.4 by 4, code health by 2 | 2.3 |
|
||||
@@ -67,6 +69,7 @@
|
||||
| 5 | 0.23.0 | | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 4 | 2 | 3 | 7 | 5 | 1.1 by 6 | 1.1 |
|
||||
| 291 | 0.23.0 | | owner | **Let `principles/technical-principles.md` → "Sane defaults" allow a library whose README goals ask that it work with no config to default the clock and randomness in its public constructor, where a documented option overrides each.** | 1 | 2 | 3 | 4 | 1 | 1.2 by 3 | 1.0 |
|
||||
| 156 | 0.23.0 | | decision | **Drop `rank_todo.py`'s ranking of an old-shape table once no project under `~/code` holds one.** | 2 | 1 | 3 | 4 | 4 | 1.1 by 4 | 1.0 |
|
||||
| 601 | 0.23.0 | | | **Make stability-reviewer accept a surviving hand-made mutant as equivalent only on a test or proof that no input tells it apart, and run the library calls a change uses to parse or convert a date, time or number at their boundaries.** | 1 | 2 | 2 | 3 | 2 | 1.1 by 3 | 1.0 |
|
||||
| 388 | 0.23.0 | | | **Refuse an agent's Write or Edit of a routing ladder file in rule-hook, since a change to the ladder is the human's.** | 1 | 1 | 3 | 3 | 2 | 1.2 by 3 | 1.0 |
|
||||
| 365 | 0.23.0 | | | **Have `score-outcomes` read the finished and dropped items of a plan outside the checkout, from the project repo's history or from Jira's issue changelogs.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 2, 1.1 by 2 | 0.9 |
|
||||
| 368 | 0.23.0 | | | **Call a release review due, call a release ready to cut, and tell whether a chunk owes a scoring run, for a plan outside the checkout, from the project repo's history or from Jira.** | 3 | 2 | 2 | 5 | 4 | 1.6 by 2, 1.1 by 2 | 0.9 |
|
||||
@@ -79,6 +82,7 @@
|
||||
| 201 | 0.23.0 | | owner | **Save the human's tmux setups and restore them after a reboot, so work is up and running again quickly.** | 3 | 2 | 1 | 4 | 4 | 1.5 by 4 | 0.9 |
|
||||
| 267 | 0.23.0 | | | **Keep waiting when an interrupt gets an empty answer, at the terminal or in the claude opened for it, in place of stopping the loop.** | 2 | 1 | 3 | 4 | 2 | 1.5 by 3 | 0.9 |
|
||||
| 4 | 0.23.0 | | | **Name each chunk's archive folder by the chunk's start time, so `<key>/` lists chunks in the order they ran.** | 3 | 2 | 3 | 6 | 3 | 1.1 by 3 | 0.9 |
|
||||
| 602 | 0.23.0 | | | **Make `chunk-pr ready` refuse while a commit on the branch is newer than the pull request's last description edit, naming those commits, so a fix pushed after review can't leave the description claiming what the head no longer does.** | 2 | 2 | 3 | 5 | 3 | 1.1 by 3 | 0.9 |
|
||||
| 324 | 0.23.0 | | | **Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.** | 2 | 2 | 1 | 3 | 3 | 1.1 by 2, 1.4 by 1 | 0.9 |
|
||||
| 187 | 0.23.0 | | | **Count the tokens a worker spends reading reviewers' reports, so goal 1.4's signal shows whether report files lowered what a review costs the worker's context.** | 2 | 2 | 1 | 3 | 3 | 1.4 by 3 | 0.8 |
|
||||
| 266 | 0.23.0 | | | **Move the chunks archived under the key `home/lilleman/.claude` to the key `dev-factory`, so the routing figures and `score-outcomes` count this repo's chunks as one project.** | 3 | 2 | 2 | 5 | 3 | 1.4 by 3 | 0.8 |
|
||||
@@ -111,6 +115,32 @@
|
||||
|
||||
## Details
|
||||
|
||||
### 605. Keep the account's claude.ai skills, plugins and connectors out of the loop's Claude home and its clone: generate `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` beside `disableClaudeAiConnectors: true`, set `ENABLE_CLAUDEAI_MCP_SERVERS=false` for every claude the loop starts, and keep a `skills/` folder Claude Code made, linking each setup skill inside it.
|
||||
|
||||
The owner chose to ship this as patch release 0.18.1, from the v0.18.0 tag, on 2026-12-06.
|
||||
|
||||
Found taking 0.18.0 on the owner's machine, Claude Code 2.1.337: `/login` in the loop's Claude home, which README → Install runs before any build, synced the claude.ai account's skills into the home's `skills/synced/`. The first build then stopped with `[Errno 17] File exists` at the `skills` link (`bin/claude_home/home.py`'s `linked`), so every person whose account syncs skills cannot run a first chunk (goal 2). Had the link been made first, Claude Code would have written through it into the clone, untracked, and the account's skills would load in every loop session (goal 1.3). In that home, before any settings were generated, `claude mcp list` also showed the account's Gmail, Google Drive, Google Calendar and Claude Docs connectors. `settings.json` has set `disableClaudeAiConnectors: true` since 2026-09-20, and a home that fails to build doesn't start any worker, so no worker could reach them; but no test keeps that key.
|
||||
|
||||
Probed the same day in that home: with `disableClaudeAiConnectors: true`, `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` in its `settings.json`, `claude mcp list` didn't list any server, the next `claude -p` moved 229 synced files into `skills/.trash/` and loaded only Claude Code's built-in skills, and no `plugins/synced/` appeared. Claude Code's docs name these keys in code.claude.com/docs/en/settings-reference.md, `/skills.md` and `/plugins/loading.md`, and `ENABLE_CLAUDEAI_MCP_SERVERS=false` in `/env-vars.md`; `--strict-mcp-config` is not documented to keep connectors out.
|
||||
|
||||
- Add `syncClaudeAiSkills: false` and `syncClaudeAiPlugins: false` to `settings.json`, beside `disableClaudeAiConnectors: true`.
|
||||
- Set `ENABLE_CLAUDEAI_MCP_SERVERS=false` in `in_claude_home`, which builds the environment of every claude the loop starts, as a second lock.
|
||||
- Have the home build keep a `skills/` folder that stands in the home, making one if none does, and link each of the clone's skills inside it, so whatever Claude Code writes under `skills/` stays in the home. Replace an old `skills` link with the folder.
|
||||
- Ignore `skills/synced/` and `skills/.trash/` in `.gitignore`, in case a clone is ever linked whole again.
|
||||
- Test that the generated settings hold the three keys, that the environment holds the variable, and that a home whose `skills/` folder Claude Code made builds and keeps that folder's files.
|
||||
- Say in README → Install what the home keeps from the account signed in there, the sign-in and its profile, and what it keeps out: the account's connectors, skills and plugins. Say plainly what the home shares with the person's own Claude Code and cannot avoid: it signs in as an account, usually theirs, so its usage counts against that account's limits and the account lists one more device signed in to it. Nothing in this item reads or writes the person's own `~/.claude` (goal 3).
|
||||
- Record the probe in the decision `Claude Code in a home of its own`, with the version it held on, and the skills folder in the decision on the loop's Claude home.
|
||||
|
||||
Touches:
|
||||
|
||||
- `settings.json`
|
||||
- `bin/loop_state/paths.py`: `in_claude_home` (small)
|
||||
- `bin/loop_state/test_paths.py`
|
||||
- `bin/claude_home/home.py`: `LINKED`, `linked`
|
||||
- `bin/claude_home/test_home.py`: `Home`
|
||||
- `.gitignore`
|
||||
- `README.md`: `## Install`
|
||||
|
||||
### 586. Keep the person's own skills, agents and commands out of the loop's Claude home where `HOME` names the home folder through a symlink.
|
||||
|
||||
Item 577's stability review probed Claude Code 2.1.336 in a throwaway config home: with `HOME` set to a symlink to the home folder, a skill, an agent and a command under the person's `.claude` reached the request; with `HOME` as the real path none did. `claudeMdExcludes` kept `CLAUDE.md` and the rules out both ways. The probe ran outside a checkout, so first repeat it in a project, in `first-chunk-e2e/first_chunk.py`'s container. Where it holds, have `bin/claude_home` or `bin/loop_effects` name the home folder by its real path, and exclude both spellings of the person's Claude home. Record the probe in the decision that the home's settings comment in `bin/claude_home/home.py` cites.
|
||||
@@ -130,6 +160,8 @@ Evidence, in `bin/claude_home/home.py`:
|
||||
- :104 `settings_written` and :134-137 `plugins_installed` call `json.loads` on the clone's `settings.json`, and the latter indexes `settings["extraKnownMarketplaces"][name]["source"]["repo"]`: a malformed file raises ValueError, a missing key KeyError.
|
||||
- :42 `unready` catches only `(OSError, subprocess.TimeoutExpired)`, so ValueError and KeyError escape as a traceback instead of the `Failure` its callers handle.
|
||||
|
||||
Item 605, in 0.18.1, makes `skills` a folder the build keeps, so the file-in-a-link's-place case remains for the five other links.
|
||||
|
||||
Return a `Failure` for each case, and make `linked`'s `Failure` real or drop it from the type. I 3, since every loop builds the home before it starts.
|
||||
|
||||
Touches:
|
||||
@@ -306,6 +338,23 @@ Touches:
|
||||
- `bin/task_bench/test_task_bench.py`
|
||||
- `bin/task_bench/main.py`: `(module)` (small)
|
||||
|
||||
### 603. Link `build-release` and `build-epic` from the release clone onto `PATH` with `bin/install`, and remove the links with `bin/uninstall`, so deleting the setup leaves nothing behind.
|
||||
|
||||
The owner asked for this on 2026-12-06, while taking 0.18.0 on their machine, so it is kept whatever it scores. They chose the names `bin/install` and `bin/uninstall`, and to link only `build-release` and `build-epic`: the two commands a person starts loops with.
|
||||
|
||||
Today README → Install runs each command by its path in the release clone, as in `~/build-release/bin/build-release`. 0.18.0 dropped the old `PATH` link, which led into `~/.claude`. Have `bin/install` link the clone's `build-release` and `build-epic` into `~/.local/bin`, or into `$XDG_BIN_HOME` where that holds an absolute path, and say where that folder isn't on `PATH`. Have it refuse to run from a clone that isn't on a release tag, such as the development clone: links there would point every loop at unreleased rules. A link already there that leads into this clone is left as it is; one that leads elsewhere is refused, naming its target. `bin/uninstall` removes only links that lead into the clone it ships in. README → Install runs `bin/install`, and a new section on removing the setup runs `bin/uninstall` before deleting the setup's folders: goal 3 rules out a link nothing removes.
|
||||
|
||||
List the new package in README → "Packages under `bin/`" in the group a reader looks in first, beside `self_update`: the comprehension seats found that flat map hard to navigate.
|
||||
|
||||
Touches:
|
||||
|
||||
- `bin/install`
|
||||
- `bin/uninstall`
|
||||
- `bin/install_links/__init__.py`
|
||||
- `bin/install_links/main.py`
|
||||
- `bin/install_links/test_install_links.py`
|
||||
- `README.md`: `## Install`, `## Update` (small), `#### The plan, the records and releases` (small)
|
||||
|
||||
### 487. Run larv-review's passes from a program that picks them from the diff and the item, counts rounds against the cap and decides each rerun, with each reviewer returning its findings as JSON against a schema.
|
||||
|
||||
Part of the standalone-install plan lilleman approved on 2026-11-20. It applies the decision `loop: a step whose result a program can check …` in `docs/decisions.md`. The reviewer briefs stay prose. Start here, since larv-review holds the most sequencing rules.
|
||||
@@ -610,6 +659,23 @@ The key names the project's session, archive folder and models entry. `project_k
|
||||
|
||||
While `rank_todo.py` ranks two shapes, projects follow two sets of scoring rules, against goal 1.3. Once every project has reshaped, drop `OLD_SHAPE`'s weighing from `bin/plan/ranking.py`, `RESHAPE`, and the old shape's lines in `rank_todo.py --help` and `rules/todo-items.md`. Keep `todo_table` reading old tables: `score_outcomes` reads every past merge's `todo.md`. PR #283's paired ruling found the old-shape path made `ranking.py`'s `score`, `Scoring.weights`, `unknown_columns` and `todo_table.py`'s `Moves` harder to read; leave each easier, with one shape and moves that are always moves, and the Moves cell's rules in one place. Release 0.3.0's seats named `ranking.py`'s `score`, `weigh` and `rank` and `todo_table.py`'s `OLD_SHAPE` for the same fork: "every rule exists twice for the old table shape" (Mid A). Make `weigh` and `rank` easier to read too.
|
||||
|
||||
### 601. Make stability-reviewer accept a surviving hand-made mutant as equivalent only on a test or proof that no input tells it apart, and run the library calls a change uses to parse or convert a date, time or number at their boundaries.
|
||||
|
||||
An outside reviewer raised two findings on a pull request in another project, a PHP project with no mutation tool, that parses ISO date-times. Neither the implementer nor stability-reviewer had caught them.
|
||||
|
||||
First, a regex's range check on an offset's hour, 00 to 23, was deleted because a hand-made mutant of it survived. The mutant was judged equivalent after one input, an hour of 25, which the language's own parser refused anyway. Hour 24, which the parser accepts, was never tried. Second, a library call that converted a fraction of a second with 16 digits rounded it up into the next second, and so moved a timestamp across midnight in a time zone. Nobody ran the conversion at its limits.
|
||||
|
||||
Chosen: two rules in stability-reviewer's brief, and one sentence in larv-review §2's "Mutation tests" where the implementer runs mutants by hand.
|
||||
- Where mutants are made by hand, a surviving one counts as equivalent only where no input can tell the two programs apart, shown by a test or a short proof. Trying one input never shows it. Otherwise it is a 🟡 asking for the test that kills it.
|
||||
- Where the change parses or converts a date, a time or a number through a library call, the reviewer runs that call at the boundaries: each end of a range and one step past it, a long fraction that rounds, trailing characters, and overflow next to a day, hour or offset limit. It reports each boundary whose behaviour no test pins, as a 🟡, or as a 🔴 where the value then crosses a limit, such as a day.
|
||||
|
||||
A deterministic fix is better where one exists: a mutation tool for the language, which `mutate-changes` runs and §2 already asks to file an item for where none covers it. That catches the first finding only where the tool runs, so the rules above still close the gap for languages without one, and the second finding has no tool.
|
||||
|
||||
Touches:
|
||||
|
||||
- `agents/stability-reviewer.md`: `## First Steps` (small), `### 5. Edge Cases & Input Validation` (small)
|
||||
- `skills/larv-review/SKILL.md`: `## 2. Ship the branch (idempotent — skip whatever already exists)` (small)
|
||||
|
||||
### 388. Refuse an agent's Write or Edit of a routing ladder file in rule-hook, since a change to the ladder is the human's.
|
||||
|
||||
Filed by PR #553, which made the routing ladder a file: `bin/model_routing/routing-ladder.json`, and a project's own `routing-ladder.json` in its config's folder. `CLAUDE.md` → "Working loop", "Ask, don't guess" reserves a change to the routing ladder for the human, and until PR #553 the ladder was code, which only a reviewed chunk changed. A worker can now write its project's file, and with it choose the rungs its own later cycles and reviews run on. The security pass of PR #553 noted that a ladder changed mid-cycle also makes rule-hook's `reviewer-rung` skip its check, since the rungs build-release handed are then off the ladder.
|
||||
@@ -708,6 +774,12 @@ Weigh the widely used tmux-resurrect and tmux-continuum plugins against a script
|
||||
|
||||
Today the folder is the SHA-256 of the transcript's first timestamped line, which tells the human nothing; that line carries the start time. Drop the fallback to the first line, which every chunk of a project shares, and give the tests' fake transcripts ISO timestamps. `bin/reading-cost` takes a chunk's id from the folder's first 12 characters and skips a chunk whose id `docs/reading-cost.md` holds, so give it a way to match a figure written under the old name.
|
||||
|
||||
### 602. Make `chunk-pr ready` refuse while a commit on the branch is newer than the pull request's last description edit, naming those commits, so a fix pushed after review can't leave the description claiming what the head no longer does.
|
||||
|
||||
An outside reviewer found a pull request whose description still claimed a change that the branch's last commit had reverted. No pass reads the description against the head: the prose pass reads the diff, and the description is written once, at `chunk-pr open`. A fix commit after the reviews leaves every claim in it unchecked.
|
||||
|
||||
Fix: in `chunk-pr ready` (and `push`, where it re-requests review), compare the time the description was last edited with the newest commit on the branch: GitHub's GraphQL `lastEditedAt`, or `createdAt` where it was never edited; Gitea's `updated_at` for the body. Where a commit is newer, refuse and name the commits, so the description is reread and edited, or accepted unchanged with a flag such as `--description-current`. A deterministic check, because a reviewer only catches this when it happens to read the description.
|
||||
|
||||
### 324. Count in the routing figures the finished chunks whose worker wrote no `Chunk items:` line.
|
||||
|
||||
`docs/decisions.md` → `routing: build-release reads the items a chunk takes …` holds only while workers write the line when asked, and nothing counts a chunk whose worker skipped it. There build-release scores no item beyond the one the chunk was routed on, so the route holds. Count in `bin/routing_figures/`, beside the chunks counted, those whose worker's transcript holds no such line, so the human sees when the decision's premise stops holding.
|
||||
|
||||
Reference in New Issue
Block a user