From d1d80d806937611be70300ba6dc05c87050ce25f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 23:26:54 +0200 Subject: [PATCH 1/2] Keep each project's model per machine, and merge a settings.json change through its own PR --- AGENTS.md | 4 ++++ docs/decisions.md | 2 +- todo.md | 5 ----- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index cc88cd8a..624c9d8b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,6 +22,10 @@ Decisions live in `docs/decisions.md`: - workflow-bench/: the remote may show the bench cases' names and commit SHAs - todo.md: one table of items scored by the formula and goal weights it states, held to its bar, ranked by `bin/rank_todo.py` +## Working rules + +- When the main checkout's `settings.json` has changes, commit them on a branch of their own and merge them through a PR: Claude Code and other sessions write that file, and `main` is protected on the remote. + ## Scoring run The project values for `skills/comprehension-panel/scoring-run.md`: diff --git a/docs/decisions.md b/docs/decisions.md index 0a4026aa..3920f950 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -34,7 +34,7 @@ ## loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes -2026-09-26, lilleman. Serves goal 4. Claude Code rewrites the user settings' `model` whenever one is picked inside a session, so a loop reading settings runs whatever was picked last; `~/.claude/loop-claude-models.json` has loop-claude as its one writer, and every claude it starts gets that model as `--model`. The file is per machine, outside the synced allowlist, since a tracked file the loop writes would dirty the checkout. 2026-10-02, lilleman: goal 1 shares the setup across machines, and a project's model is not part of it, so each new machine asks once per project. Stands until `todo.md` item 35 settles it. Valid while Claude Code keeps rewriting the settings' model from inside a session. +2026-09-26, lilleman. Serves goal 4. Claude Code rewrites the user settings' `model` whenever one is picked inside a session, so a loop reading settings runs whatever was picked last; `~/.claude/loop-claude-models.json` has loop-claude as its one writer, and every claude it starts gets that model as `--model`. The file is per machine, outside the synced allowlist, since a tracked file the loop writes would dirty the checkout. 2026-10-02, lilleman: goal 1 shares the setup across machines, and a project's model is not part of it, so each new machine asks once per project. 2026-10-02, lilleman: keep it per machine; a project's model is each machine's own choice, so a new machine asking once does not repeat a question under goal 4.2. Valid while Claude Code keeps rewriting the settings' model from inside a session. ## review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human diff --git a/todo.md b/todo.md index 41363b0a..dcb59b67 100644 --- a/todo.md +++ b/todo.md @@ -34,7 +34,6 @@ | 21 | 0.1.0 | | **Give `settings.json`'s model one writer, and sort its keys.** | 3 | 3 | 6 | 7 | 4.3 | 12.9 | | 36 | 0.1.0 | | **Ask the user once before a full security scan, folding larv-review's ask into the plugin's cost prompt.** | 2 | 2 | 5 | 5 | 4.2 | 11.9 | | 12 | 0.1.0 | | **Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough.** | 2 | 4 | 4 | 6 | 4.1 | 11.7 | -| 35 | 0.1.0 | question | **Decide whether each project's model choice syncs between machines, so a new machine does not ask again.** | 3 | 3 | 5 | 6 | 4.2 | 11.5 | | 5 | 0.1.0 | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 5 | 5 | 5 | 6 | 4.1 | 10.5 | | 4 | 0.1.0 | | **Name each chunk's archive folder by the chunk's start time, so `/` lists chunks in the order they ran.** | 3 | 2 | 4 | 3 | 2 | 9.8 | | 29 | 0.1.0 | | **Make the contributor a standing member of every project's audience, unless its `## Audience` says maintainability does not matter.** | 2 | 2 | 3 | 5 | 4.1, 4.4 | 9.1 | @@ -85,10 +84,6 @@ When the full scan fires, "Record, then ask" rule 3 asks whether to run it, and The repo has no CI, so larv-review's gate is the local run, and larv-review's Gate skips even that when the last stability round left the suite green: an unattended chunk can merge on the worker's own word. -### 35. Decide whether each project's model choice syncs between machines, so a new machine does not ask again. - -The decision "loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes" keeps the choice per machine, so every new machine asks once per project; goal 4.2 says never ask the same thing twice. Syncing it means a tracked file `loop-claude` writes, which dirties the checkout. - ### 5. Key a project on its checkout's full path, and refuse to start while another session uses that key. The key names the project's session, archive folder and models entry. `project_key` drops the leading `/`, so `~/code/a` and `/a` share all three, and one loop can resume or delete the other's session. -- 2.52.0 From 4c0c28f888a8d607cf5b456a7c1bf4d2db3da4e6 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 23:27:59 +0200 Subject: [PATCH 2/2] Answer the first prose round: name the settings file, one sentence for the per-machine answer --- AGENTS.md | 2 +- docs/decisions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 624c9d8b..2b829f35 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,7 +24,7 @@ Decisions live in `docs/decisions.md`: ## Working rules -- When the main checkout's `settings.json` has changes, commit them on a branch of their own and merge them through a PR: Claude Code and other sessions write that file, and `main` is protected on the remote. +- 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. ## Scoring run diff --git a/docs/decisions.md b/docs/decisions.md index 3920f950..b2627f9f 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -34,7 +34,7 @@ ## loop-claude: each project's model lives in `~/.claude/loop-claude-models.json`, which only loop-claude writes -2026-09-26, lilleman. Serves goal 4. Claude Code rewrites the user settings' `model` whenever one is picked inside a session, so a loop reading settings runs whatever was picked last; `~/.claude/loop-claude-models.json` has loop-claude as its one writer, and every claude it starts gets that model as `--model`. The file is per machine, outside the synced allowlist, since a tracked file the loop writes would dirty the checkout. 2026-10-02, lilleman: goal 1 shares the setup across machines, and a project's model is not part of it, so each new machine asks once per project. 2026-10-02, lilleman: keep it per machine; a project's model is each machine's own choice, so a new machine asking once does not repeat a question under goal 4.2. Valid while Claude Code keeps rewriting the settings' model from inside a session. +2026-09-26, lilleman. Serves goal 4. Claude Code rewrites the user settings' `model` whenever one is picked inside a session, so a loop reading settings runs whatever was picked last; `~/.claude/loop-claude-models.json` has loop-claude as its one writer, and every claude it starts gets that model as `--model`. The file is per machine, outside the synced allowlist, since a tracked file the loop writes would dirty the checkout. 2026-10-02, lilleman: goal 1 shares the setup across machines, and a project's model is each machine's own choice, so a new machine asks once per project, which is not asking the same thing twice (goal 4.2). Valid while Claude Code keeps rewriting the settings' model from inside a session. ## review: a pass gets at most three rounds per chunk; instead of a fourth, the run asks the human -- 2.52.0