From b65c23582fd3df935c0fc00d1c63b7304e228023 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 20:31:14 +0200 Subject: [PATCH 1/6] Check Claude Code's settings.json changes for a credential before committing them, and give Install the checkout commands --- AGENTS.md | 2 +- CHANGELOG.md | 2 ++ README.md | 12 +++++++++++- todo.md | 10 ---------- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 13fdbfc3..bb4c4006 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,7 +26,7 @@ Decisions live in `docs/decisions.md`: ## Working rules -- When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. +- When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. Read their diff before committing: when it holds a credential, such as a token in `env` or `mcpServers`, commit nothing and ask the human. ## Scoring run diff --git a/CHANGELOG.md b/CHANGELOG.md index 77769351..7b2c5c3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- README โ†’ Install gives the commands that check the latest tag out into the `~/.claude` Claude Code has already created. +- Before committing changes Claude Code made to `settings.json`, a session reads their diff, and when it holds a credential commits nothing and asks you. - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose ๐Ÿ”ด or ๐ŸŸก the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names, `Architecture` and `Full scan`. Each round's commit is titled with its pass's name in lower case: `Answer full scan round 1: โ€ฆ`. diff --git a/README.md b/README.md index 255c5376..f9a5dc74 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,17 @@ Me, on my own machines, which take tagged releases. Nobody else depends on it. ## Install -Check out the latest tag in `~/.claude`, with Python 3.11 or newer as `python3` on `PATH`, and for Rust projects `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs. Install every plugin `settings.json` enables: +Check out the latest tag in `~/.claude`, which Claude Code creates on its first run, so `git clone` refuses it: + +```sh +cd ~/.claude +git init +git remote add origin ssh://git@gitea.larvit.se:21022/lilleman/claude-config.git +git fetch --tags origin +git checkout -f "$(git tag --sort=-v:refname | head -n 1)" +``` + +`-f` overwrites the `settings.json` Claude Code wrote. Have Python 3.11 or newer as `python3` on `PATH`, and for Rust projects `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs. Install every plugin `settings.json` enables: ```sh claude plugin marketplace add anthropics/claude-plugins-official diff --git a/todo.md b/todo.md index b93161c0..90d519f2 100644 --- a/todo.md +++ b/todo.md @@ -24,9 +24,7 @@ | ID | Release | Exempt | Item | R | S | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---| -| 64 | 0.1.0 | security | **Check the `settings.json` diff for secrets before `AGENTS.md`'s working rule pushes it.** | 2 | 2 | 6 | 7 | 3 | 20.4 | | 1 | 0.1.0 | question | **Say in README โ†’ Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | -| 63 | 0.1.0 | | **Give README โ†’ Install a command that checks the repo out into the `~/.claude` that Claude Code has already created.** | 2 | 2 | 7 | 8 | 1 | 27.5 | | 60 | 0.1.0 | | **Rerun the scoring run before merge whenever a fix landed after the last scoring run, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด.** | 3 | 3 | 6 | 7 | 4.1 | 16.1 | | 62 | 0.1.0 | defect | **Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name.** | 4 | 6 | 6 | 8 | 4.1 | 15.5 | | 65 | 0.1.0 | | **Archive each judge reply the loop rejects.** | 3 | 4 | 4 | 5 | 2 | 12.9 | @@ -48,10 +46,6 @@ ## Details -### 64. Check the `settings.json` diff for secrets before `AGENTS.md`'s working rule pushes it. - -Goal 3, raised by the principles audit of PR #215. Exposure: Claude Code writes `env` and `mcpServers` into `settings.json`, where a token can land. Path: `AGENTS.md` โ†’ "Working rules" commits uncommitted changes to that file on a branch, and larv-review ยง2 pushes it and opens the PR before `/security-review` runs, so a token reaches the remote unchecked. - ### 1. Say in README โ†’ Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume. It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost disk loses every unattended run's record. Back it up only to a destination private to me and encrypted at rest: the worker runs with permissions bypassed, so the archived tool results can hold credentials it read. @@ -60,10 +54,6 @@ It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost The README line covers the bench's transcripts in `workflow-bench/logs/` too (goal 2). -### 63. Give README โ†’ Install a command that checks the repo out into the `~/.claude` that Claude Code has already created. - -Goal 1, raised by the principles audit of PR #215: Claude Code creates `~/.claude` on its first run, `git clone` refuses a directory that is not empty, and Install names neither the remote nor another way in. - ### 60. Rerun the scoring run before merge whenever a fix landed after the last scoring run, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด. Raised by the systems-architect review of PR #215. A stability, product-owner, prose or auto-reviewer fix reruns no scoring run unless it carries an architectural decision or answers an architecture ๐Ÿ”ด or ๐ŸŸก. It merges unscored, so the `comprehension floor:` entry records scores for an earlier commit, and the next chunk's ratchet inherits a fall it did not cause. "Round cap" โ†’ "Done" and "Re-entry" โ†’ "Rerun" count only ๐Ÿ”ด and ๐ŸŸก, and nothing makes a score under the floor one. A commit that only edits `docs/decisions.md`, `todo.md` or `CHANGELOG.md` needs no rerun. -- 2.52.0 From bdf081aadd8f00cbb83dd0618ddd14ae8cba237c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 20:33:02 +0200 Subject: [PATCH 2/6] Answer product-owner round 1: ask the human to move the credential out, mkdir before cd, release tags only, file item 71 --- AGENTS.md | 2 +- CHANGELOG.md | 2 +- README.md | 8 ++++---- todo.md | 7 ++++++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index bb4c4006..757ef3d1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,7 +26,7 @@ Decisions live in `docs/decisions.md`: ## Working rules -- When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. Read their diff before committing: when it holds a credential, such as a token in `env` or `mcpServers`, commit nothing and ask the human. +- When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. Read their diff before committing: when it holds a credential, such as a token in `env` or `mcpServers`, commit nothing and ask the human to move it out, then commit the rest. An `env` token moves to the shell profile; an MCP server is added again with `claude mcp add --scope user`. ## Scoring run diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b2c5c3d..cb55f22e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Unreleased - README โ†’ Install gives the commands that check the latest tag out into the `~/.claude` Claude Code has already created. -- Before committing changes Claude Code made to `settings.json`, a session reads their diff, and when it holds a credential commits nothing and asks you. +- Before committing changes Claude Code made to `settings.json`, a session reads their diff, and when it holds a credential commits nothing and asks you to move it out of the file. - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose ๐Ÿ”ด or ๐ŸŸก the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names, `Architecture` and `Full scan`. Each round's commit is titled with its pass's name in lower case: `Answer full scan round 1: โ€ฆ`. diff --git a/README.md b/README.md index f9a5dc74..5a421974 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,17 @@ Me, on my own machines, which take tagged releases. Nobody else depends on it. ## Install -Check out the latest tag in `~/.claude`, which Claude Code creates on its first run, so `git clone` refuses it: +Check out the latest tag in `~/.claude`, which Claude Code may already have created, so `git clone` would refuse it: ```sh -cd ~/.claude +mkdir -p ~/.claude && cd ~/.claude git init git remote add origin ssh://git@gitea.larvit.se:21022/lilleman/claude-config.git git fetch --tags origin -git checkout -f "$(git tag --sort=-v:refname | head -n 1)" +git checkout -f "$(git tag -l 'v*' --sort=-v:refname | head -n 1)" ``` -`-f` overwrites the `settings.json` Claude Code wrote. Have Python 3.11 or newer as `python3` on `PATH`, and for Rust projects `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs. Install every plugin `settings.json` enables: +`-f` overwrites every tracked file already there, such as the `settings.json` Claude Code wrote. Have Python 3.11 or newer as `python3` on `PATH`, and for Rust projects `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs. Install every plugin `settings.json` enables: ```sh claude plugin marketplace add anthropics/claude-plugins-official diff --git a/todo.md b/todo.md index 90d519f2..985d21a6 100644 --- a/todo.md +++ b/todo.md @@ -6,7 +6,7 @@ `Bar = 9` -`Next ID = 71` +`Next ID = 72` | Goal | W | |---|---| @@ -25,6 +25,7 @@ | ID | Release | Exempt | Item | R | S | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---| | 1 | 0.1.0 | question | **Say in README โ†’ Install how the transcript archive is backed up, once bender-infra backs up ai-sandbox's data volume.** | 3 | 5 | 8 | 9 | 2, 3 | 27.8 | +| 71 | 0.1.0 | | **Give README a command that moves a machine's checkout to a newer tag.** | 2 | 2 | 6 | 7 | 1 | 23.5 | | 60 | 0.1.0 | | **Rerun the scoring run before merge whenever a fix landed after the last scoring run, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด.** | 3 | 3 | 6 | 7 | 4.1 | 16.1 | | 62 | 0.1.0 | defect | **Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name.** | 4 | 6 | 6 | 8 | 4.1 | 15.5 | | 65 | 0.1.0 | | **Archive each judge reply the loop rejects.** | 3 | 4 | 4 | 5 | 2 | 12.9 | @@ -54,6 +55,10 @@ It lives under `~/.claude`, which `.gitignore` keeps from the remote, so a lost The README line covers the bench's transcripts in `workflow-bench/logs/` too (goal 2). +### 71. Give README a command that moves a machine's checkout to a newer tag. + +Goal 1, raised by the product-owner review of PR #216: the audience's machines take tagged releases, but README โ†’ Install covers only the first checkout, and a plain `git checkout ` refuses while Claude Code has changed a `settings.json` that differs between the two tags. + ### 60. Rerun the scoring run before merge whenever a fix landed after the last scoring run, and count a score under the floor or the ratchet as the scoring run's ๐Ÿ”ด. Raised by the systems-architect review of PR #215. A stability, product-owner, prose or auto-reviewer fix reruns no scoring run unless it carries an architectural decision or answers an architecture ๐Ÿ”ด or ๐ŸŸก. It merges unscored, so the `comprehension floor:` entry records scores for an earlier commit, and the next chunk's ratchet inherits a fall it did not cause. "Round cap" โ†’ "Done" and "Re-entry" โ†’ "Rerun" count only ๐Ÿ”ด and ๐ŸŸก, and nothing makes a score under the floor one. A commit that only edits `docs/decisions.md`, `todo.md` or `CHANGELOG.md` needs no rerun. -- 2.52.0 From de6d218ca15bd3878b44de8ce76b7e5c0e67d39a Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 20:33:37 +0200 Subject: [PATCH 3/6] Answer product-owner round 2: the changelog line covers a ~/.claude Claude Code has not created --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb55f22e..5c7b7866 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- README โ†’ Install gives the commands that check the latest tag out into the `~/.claude` Claude Code has already created. +- README โ†’ Install gives the commands that check the latest tag out into `~/.claude`, whether or not Claude Code has already created it. - Before committing changes Claude Code made to `settings.json`, a session reads their diff, and when it holds a credential commits nothing and asks you to move it out of the file. - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose ๐Ÿ”ด or ๐ŸŸก the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. -- 2.52.0 From fb329763368733ca0478fe150aa7221d604bab26 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 20:33:49 +0200 Subject: [PATCH 4/6] Answer product-owner round 3: nothing to change -- 2.52.0 From 22c3dbfa33353f35b395180782f7f0ef5fa9d068 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 20:35:03 +0200 Subject: [PATCH 5/6] Answer prose round 1: one order of steps in the settings.json rule, one idea per sentence in Install --- AGENTS.md | 2 +- CHANGELOG.md | 2 +- README.md | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 757ef3d1..5b2bc3f6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -26,7 +26,7 @@ Decisions live in `docs/decisions.md`: ## Working rules -- When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. Read their diff before committing: when it holds a credential, such as a token in `env` or `mcpServers`, commit nothing and ask the human to move it out, then commit the rest. An `env` token moves to the shell profile; an MCP server is added again with `claude mcp add --scope user`. +- When `~/.claude/settings.json` has uncommitted changes, commit them on a branch of their own and merge them through a PR: Claude Code writes that file from any session. Read their diff first. When it holds a credential, such as a token in `env` or `mcpServers`, ask the human to move it out of the file, and commit only once it is gone. A token in `env` moves to the shell profile; a server in `mcpServers` moves to `~/.claude.json` with `claude mcp add --scope user`. ## Scoring run diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c7b7866..2ab531a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## Unreleased - README โ†’ Install gives the commands that check the latest tag out into `~/.claude`, whether or not Claude Code has already created it. -- Before committing changes Claude Code made to `settings.json`, a session reads their diff, and when it holds a credential commits nothing and asks you to move it out of the file. +- A session commits changes Claude Code made to `settings.json` only once their diff holds no credential, and asks you to move any credential out of the file first. - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose ๐Ÿ”ด or ๐ŸŸก the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names, `Architecture` and `Full scan`. Each round's commit is titled with its pass's name in lower case: `Answer full scan round 1: โ€ฆ`. diff --git a/README.md b/README.md index 5a421974..ceb565aa 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Me, on my own machines, which take tagged releases. Nobody else depends on it. ## Install -Check out the latest tag in `~/.claude`, which Claude Code may already have created, so `git clone` would refuse it: +Claude Code may already have created `~/.claude`, where `git clone` refuses to run, so check the latest tag out in place: ```sh mkdir -p ~/.claude && cd ~/.claude @@ -30,7 +30,9 @@ git fetch --tags origin git checkout -f "$(git tag -l 'v*' --sort=-v:refname | head -n 1)" ``` -`-f` overwrites every tracked file already there, such as the `settings.json` Claude Code wrote. Have Python 3.11 or newer as `python3` on `PATH`, and for Rust projects `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs. Install every plugin `settings.json` enables: +`-f` overwrites every tracked file already there, such as the `settings.json` Claude Code wrote. + +Have Python 3.11 or newer as `python3` on `PATH`, and for Rust projects `rust-analyzer` on `PATH`, which the `rust-analyzer-lsp` plugin needs. Install every plugin `settings.json` enables: ```sh claude plugin marketplace add anthropics/claude-plugins-official -- 2.52.0 From 9e984572c26c07d19b7e2936d194cd2d345de10d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 20:35:26 +0200 Subject: [PATCH 6/6] Answer prose round 2: nothing to change -- 2.52.0