Compare commits

...

23 Commits

Author SHA1 Message Date
lilleman c7af0ff900 Answer product-owner round 4: nothing to fix 2026-10-07 00:45:09 +02:00
lilleman 4d4abd208f Merge remote-tracking branch 'origin/main' into update-command
# Conflicts:
#	CHANGELOG.md
2026-10-07 00:44:40 +02:00
lilleman 8c082eec1c Merge pull request 'Let a project decision suspend larv-review's scoring run for the plan items it names' (#219) from suspend-scoring-run into main 2026-10-04 23:41:18 +02:00
lilleman f54d6b5ff8 Answer prose round 3 and stability round 3: a suspended chunk is one shipping only named items, and a release's last item is measured even then 2026-10-04 23:39:02 +02:00
lilleman b5637320fc Answer prose round 2 and stability round 2: only a scoring run ends a suspension, and only the scoring run is suspended 2026-10-04 23:37:37 +02:00
lilleman 673165d650 Answer prose round 1 and stability round 1: a suspension names the item that ends it, a release's last item is always measured, and CLAUDE.md says so 2026-10-04 23:35:34 +02:00
lilleman 7e54a67b87 Let a project decision suspend larv-review's scoring run for the plan items it names 2026-10-04 23:32:24 +02:00
lilleman 2cbf57cbd5 Answer prose round 3: nothing to fix 2026-10-04 22:32:09 +02:00
lilleman c6930745a3 Answer prose round 2: name the latest tag 2026-10-04 22:31:51 +02:00
lilleman f5e3f7f10c Answer prose round 1: lead with the action to keep a change, and say which files git status lists 2026-10-04 22:31:23 +02:00
lilleman 0047b8c624 Answer product-owner round 3: nothing to fix 2026-10-04 22:30:17 +02:00
lilleman f735a8ad80 Answer product-owner round 2: show the old tag, push the release tag, scope what git status lists 2026-10-04 22:29:41 +02:00
lilleman 57e67f8f0a Answer product-owner round 1: list what the move discards, keep a change through a release, follow the changelog 2026-10-04 22:28:32 +02:00
lilleman 95e613380b Give README an Update section that moves a machine's checkout to the latest tag 2026-10-04 22:26:45 +02:00
lilleman 26fb73f8eb Merge pull request 'Check Claude Code's settings.json changes for a credential before committing them, and give Install the checkout commands' (#216) from settings-secret-check into main 2026-10-04 22:24:45 +02:00
lilleman 54bc5df401 Merge remote-tracking branch 'origin/main' into settings-secret-check
# Conflicts:
#	CHANGELOG.md
2026-10-04 22:23:55 +02:00
lilleman 83df315f48 Merge pull request 'Add sane defaults as a technical principle, at the edge beside explicit over implicit' (#217) from sane-defaults-principle into main 2026-10-04 21:53:38 +02:00
lilleman 9e984572c2 Answer prose round 2: nothing to change 2026-10-04 20:35:26 +02:00
lilleman 22c3dbfa33 Answer prose round 1: one order of steps in the settings.json rule, one idea per sentence in Install 2026-10-04 20:35:03 +02:00
lilleman fb32976336 Answer product-owner round 3: nothing to change 2026-10-04 20:33:49 +02:00
lilleman de6d218ca1 Answer product-owner round 2: the changelog line covers a ~/.claude Claude Code has not created 2026-10-04 20:33:37 +02:00
lilleman bdf081aadd Answer product-owner round 1: ask the human to move the credential out, mkdir before cd, release tags only, file item 71 2026-10-04 20:33:02 +02:00
lilleman b65c23582f Check Claude Code's settings.json changes for a credential before committing them, and give Install the checkout commands 2026-10-04 20:31:14 +02:00
7 changed files with 45 additions and 17 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ Decisions live in `docs/decisions.md`:
- loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes
- review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human
- review: a fix for a 🟢 or ❓ re-enters review like any fix
- review: a project decision may suspend the scoring run for the plan items it names
- review: a pass skips only on a precedent: a decision, or a plan item crediting the pass, that the repo held before the chunk began
- loop-claude: the archive keeps the raw transcript, and a failed archive stops the loop
- loop-claude: a `claude` that cannot start is a failed worker run, retried
@@ -26,7 +27,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 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
+3
View File
@@ -2,6 +2,9 @@
## Unreleased
- larv-review skips the comprehension scoring run for a chunk whose plan items a project decision names. The decision also names the later item whose scoring run ends the suspension. Neither the comprehension floor nor the ratchet can block a skipped chunk, its summary cites the decision, and a chunk shipping its release's last item is always measured.
- README → Install and Update give the commands that check the latest tag out into `~/.claude`: on a new machine, whether or not Claude Code has already created the directory, and on one already on an older tag.
- 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.
- A technical principle, "Sane defaults, where a default serves better than an explicit ask". A default suits a value most callers want, does no harm when wrong, and can be seen and changed. It lives at the program's edge, such as a CLI; a library still asks for data, the clock and randomness.
- 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.
+1 -1
View File
@@ -34,7 +34,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The
## Quality
Quality is proven by review. Every change is reviewed as a diff. The whole project is measured when a change carries an architectural decision, and before each release, because a project can drift from the principles one clean diff at a time. `larv-review` §3 says which review runs when. Quality has three parts. When two pull against each other, the earlier one wins.
Quality is proven by review. Every change is reviewed as a diff. The whole project is measured when a change carries an architectural decision, and before each release, because a project can drift from the principles one clean diff at a time. A project decision may suspend only the comprehension panel's scoring run (`larv-review` §3 → "Architecture" → "Suspended"). `larv-review` §3 says which review runs when. Quality has three parts. When two pull against each other, the earlier one wins.
1. **Correct.** The work does what the goals and the plan say, and tests prove it.
2. **True to the technical principles** (`~/.claude/principles/technical-principles.md`). The `comprehension-panel` skill scores KISS; a score under the comprehension floor (`larv-review` §3 → "Architecture") blocks a merge. **Comprehension never falls:** a chunk starts from the last panel recorded on the default branch, and when its own panel scores any dimension or the overall lower, even within the panel's noise, improve what the readers named and score again. An equal score passes. After three such rounds, stop and ask the human.
+30 -2
View File
@@ -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:
Claude Code may already have created `~/.claude`, where `git clone` refuses to run, so make the repository in place:
```sh
mkdir -p ~/.claude && cd ~/.claude
git init
git remote add origin ssh://git@gitea.larvit.se:21022/lilleman/claude-config.git
```
Then run Update's commands.
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
@@ -31,9 +41,27 @@ claude plugin install rust-analyzer-lsp@claude-plugins-official
Link `loop-claude` onto `PATH`: `ln -s ~/.claude/bin/loop-claude ~/.local/bin/loop-claude`. Run `loop-claude` only in a sandbox with no direct access to a production environment, such as a dedicated VM: every claude it starts, the interrupt included, skips every permission prompt.
## Update
Move a machine that takes tagged releases to the latest tag. The move discards every uncommitted change to a file the latest tag tracks, such as a `settings.json` Claude Code wrote. List the uncommitted changes to files the checkout tracks, and the tag it is on:
```sh
cd ~/.claude
git fetch --tags origin
git status
```
To keep an uncommitted change, merge it per `AGENTS.md` → "Working rules" and cut a release ("Release") before moving: a machine gets only what a tag holds. Then move:
```sh
git checkout -f "$(git tag -l 'v*' --sort=-v:refname | head -n 1)"
```
Then do what `CHANGELOG.md` asks of each version since the old tag, such as a new step under Install.
## Release
Rename `## Unreleased` in `CHANGELOG.md` to the version, commit, and tag that commit `v<version>`.
Rename `## Unreleased` in `CHANGELOG.md` to the version, commit, tag that commit `v<version>`, and push both.
## Tools
+4
View File
@@ -63,6 +63,10 @@ lilleman decided to ship each of these under the floor on the day listed. Each l
2026-09-30, lilleman. Serves goal 4: no human reads an unattended chunk before it merges, so every change it makes, a nit's wording included, is reviewed. In the 2026-09-30 bench this cost four of nine rounds in one run and drove two passes to the round cap. Valid while a pass is the only reader of a fix before merge.
## review: a project decision may suspend the scoring run for the plan items it names
2026-10-04, lilleman. Serves goal 4.4. In a restructure, each step's scoring run measures code the next step deletes. It costs a run and, below the floor, blocks the step, yet says nothing about what the restructure buys. The scoring run after the last step measures that. Valid while such a decision names its items and the plan item that ends it.
## review: a pass skips only on a precedent: a decision, or a plan item crediting the pass, that the repo held before the chunk began
2026-09-30, lilleman. Serves goal 4: a decision the chunk writes is the chunk's own and unreviewed, and an unattended run has no human to catch it. Valid while a pass is the only reader of a chunk before merge.
+4 -2
View File
@@ -46,12 +46,12 @@ Give a reviewer without Bash the branch diff and `git ls-files`'s output in its
- **Skip.** A precedent is a `docs/decisions.md` entry, or a plan item crediting the pass, that the repo held before the chunk began. Where one holds the decision this change executes, skip the pass and cite that entry or item.
- **Departure.** A change that departs from the precedent is unreviewed, however thorough the precedent is.
- **Ask.** Fired and not skipped → ask the user whether to run it, with the evidence and your recommendation; no user reachable → run it. For the full scan, give the evidence and your recommendation, then launch it: the plugin asks the user to confirm its cost, and that prompt is the ask.
- **Audit.** A precedent or the user's no skips only the architect, never the principles audit or the scoring run: no precedent checked the code this chunk writes.
- **Audit.** A precedent or the user's no skips only the architect, never the principles audit: no precedent checked the code this chunk writes. The scoring run skips only as "Architecture" → "Suspended" says.
**Round cap.**
- **Round.** A round is one launch of a pass's reviewer: the first, each re-entry, and the rerun after the architect returns Stage 0 questions ("Architecture" below).
- **Architecture round.** The architecture pass's first round is the architect (unless skipped), the principles audit and the scoring run. A later round relaunches the scoring run and each reviewer whose 🔴 or 🟡 the previous round's fixes answer. Where those fixes carry an architectural decision, the whole round runs again, the architect included.
- **Architecture round.** The architecture pass's first round is the architect (unless skipped), the principles audit and the scoring run, which "Architecture" → "Suspended" may skip. A later round relaunches the scoring run, where one ran, and each reviewer whose 🔴 or 🟡 the previous round's fixes answer. Where those fixes carry an architectural decision, the whole round runs again, the architect included.
- **Auto-reviewer.** The external auto-reviewer (§4) is a pass of its own, each review it posts a round.
- **Count.** Close each round with one commit that holds the round's fixes and is titled `Answer <pass> round <n>: …`, `<pass>` being the pass's name in lower case, such as `full scan`. A round that changed nothing gets an empty commit (`git commit --allow-empty`). Push the commits when §4 runs next, where there is a remote. A pass's count is the highest `<n>` among titles holding `Answer <pass> round <n>:` in `git log origin/<default branch>..HEAD` after a `git fetch`, or in `git log <default branch>..HEAD` with no remote. The auto-reviewer's count is the number of its reviews on the PR.
- **Later rounds.** From round 2, prompt an agent under `~/.claude/agents/` with its own last round's findings verbatim and what changed since: `git diff <the commit that round reviewed> HEAD`, since the fixes may be unpushed.
@@ -96,6 +96,8 @@ Fix the places the seats name under the lowest dimension and under each dimensio
Put each run's five scores in the summary, and replace the entry's last scoring run with them on this branch. List in the entry each decision to ship under the floor, and file its places in `todo.md` per `~/.claude/CLAUDE.md` → "Todo items". A project without the entry gets it at its first scoring run, titled `comprehension floor: every dimension and the overall at 7.0 or above` and applying KISS (`~/.claude/principles/technical-principles.md`).
**Suspended.** A decision in the project's `docs/decisions.md`, held before the chunk began, may name plan items to ship without a scoring run. A named item counts as `todo.md` worded it before the chunk began. The decision must name the later plan item whose chunk ends the suspension with a scoring run. A chunk may ship named items only with each other. Such a chunk skips the scoring run, so neither the floor nor the ratchet can block it, and its summary cites the decision. A chunk shipping its release's last item runs the scoring run, even when every item it ships is named.
### Security
`/security-review` over the branch diff is the pass of record. Launch a general-purpose subagent that invokes it through the Skill tool, edits nothing, and replies with the skill's report, or that the skill is unavailable. Invoked in your own context, the skill ends your turn on that report.
+1 -11
View File
@@ -6,7 +6,7 @@
`Bar = 9`
`Next ID = 71`
`Next ID = 72`
| Goal | W |
|---|---|
@@ -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.