From b02c2a464c393d352d1513122b285221d09daceb Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:08:27 +0200 Subject: [PATCH 01/10] Record the reading cost of chunk 3c24e750f1ba and reset the trend --- docs/reading-cost.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/reading-cost.md b/docs/reading-cost.md index 6b435ad5..5936530e 100644 --- a/docs/reading-cost.md +++ b/docs/reading-cost.md @@ -229,3 +229,22 @@ Read most (opens and searches): - `bin/comprehension_history.py` 2 - `bin/larv_review/record.py` 2 - `bin/larv_review/ruling.py` 2 + +## Reading cost, chunk 3c24e750f1ba, finished 2026-10-13T15:05:38Z + +70488 new input tokens before the first commit. + +Read most (opens and searches): + +- `todo.md` 5 +- `README.md` 4 +- `docs/decisions.md` 4 +- `agents/systems-architect.md` 3 +- `agents/stability-reviewer.md` 2 +- `skills/larv-review/SKILL.md` 2 +- `AGENTS.md` 1 +- `CHANGELOG.md` 1 +- `CLAUDE.md` 1 +- `agents/principles-auditor.md` 1 + +## Reading cost reset, 2026-10-13T15:08:08Z From dc5cd6ce6559f793c27651f6d66fad9a9485a8c0 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:08:27 +0200 Subject: [PATCH 02/10] Read the plan and the records only as far as the chunk needs --- CHANGELOG.md | 1 + CLAUDE.md | 1 + rules/decisions.md | 2 +- todo.md | 5 ----- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c1ff570..22b6227d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- A session reads `todo.md`'s items table and the details of only the items its chunk takes, counts `CHANGELOG.md`'s unreleased entries for the chunk's opening line instead of reading them, and reads a `docs/decisions.md` entry only to question, revise or add that decision, as `CLAUDE.md` now says. The last rule moved from `rules/decisions.md`, which loads only once a session opens that file. Expect fewer tokens read before a chunk's first commit. - larv-review's stability and product-owner reviewers report only a defect, a requirement of the plan or the goals that the change breaks, a breach of a technical principle, or for stability a hard place the change touches; the stability reviewer leaves the style of comments to the prose reviewer, which now also reads help and error text. Each architect finding names a concrete later change the PR makes harder, and one that names none is dropped. The prose pass runs only on a chunk that changes prose a reader reads, such as docs, comments, help text or `todo.md`, and skips a code-only chunk. Expect fewer findings and fewer review rounds. - Every `todo.md` item carries a C score, how hard the change is to get right, from 1 to 10, in a column after S. C stays out of the score. `rank_todo.py` fails on an items table without the column, and the rule hook then blocks committing that `todo.md`. Before the next commit that changes a project's `todo.md`, add the column and score every item's C, as `rank_todo.py --help` shows. - The new `bin/score-outcomes` shows what finished chunks measured beside the R, S and C their items were guessed at: lines and files changed, review rounds, and ๐Ÿ”ด and ๐ŸŸก findings. It reads them from the default branch's merge commits, so a project that merges by squash or fast-forward shows none. Given a guess, it lists the 5 finished items guessed nearest. It always reports, for each score, the median outcome at each guessed value, once 10 chunks that each shipped one item record it: R against ๐Ÿ”ด findings, S against lines changed, C against review rounds past each pass's first. A session filing or editing an item runs it and scores R, S and C from what it shows. diff --git a/CLAUDE.md b/CLAUDE.md index 45f6fba2..aa6d6c84 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,6 +10,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **When the next release has no items left and work has landed towards it, it is finished: stop.** Report what it holds and that it is ready to cut. Under `/loop`, this ends the loop. Until the human cuts it, only a security fix lands, into that release; never start a later release's items or plan a new one. - **Open every chunk with one line:** the last version cut, what is unreleased (`CHANGELOG.md` โ†’ `## Unreleased`, or else the log since the last tag), and the release this chunk ships into. A repo that publishes nothing says so once. - **Read the README's `## Goals` and `## Audience` before starting a chunk, unless your prompt quotes them.** The chunk's items set its scope. The goals choose between ways to deliver those items, and never add to them. +- **Read the plan and the records only as far as the chunk needs.** Of `todo.md`, read the `## Items` table, `sed -n '/^## Items/,/^## Details/p' todo.md`, then the details of only the items the chunk takes. Of `CHANGELOG.md`, the opening line needs only how many entries `## Unreleased` holds. Read an entry of `docs/decisions.md` only to question, revise or add the decision under its title; `AGENTS.md` lists every title. - **Work one chunk at a time, and make it as large as one purpose allows.** Every review has a fixed cost, so a chunk takes the next plan item plus every other item for which three things hold: one PR title states what they achieve together, without listing them; they name one release; and they fire the same review passes (`larv-review` ยง3). Tiny items, a few lines of change each, need neither a shared purpose nor the same passes: bundle up to ten that name one release into one chunk. Split a milestone into items in `todo.md` before starting it. Fix a finding in the chunk's own change within the chunk. File a finding about anything else in `todo.md`. An item marked `question` waits for the human; take the next item. - **Ask, don't guess.** First check whether the goals already answer the question. If they nearly do, propose a change to the goals and show how it answers this case: an answer settles one question, a goal settles every question like it. Write every answer once, where it belongs, never only in chat: a goal in `README.md`, a working rule in `AGENTS.md`, a standing choice in a comment at the one place it governs, or in `docs/decisions.md` once made in more than one place. When an answer holds a goal and a choice, write the goal in the README, and record as a choice only what the goal leaves open. - **Bench a syntax with the people who write it.** Before a new or changed spelling of something users read or write ships โ€” markdown, HTML, a config key, a CLI flag โ€” a panel of fresh-context readers, seated as those users from the README's `## Audience`, picks it. diff --git a/rules/decisions.md b/rules/decisions.md index 8cffaa71..98ed37ee 100644 --- a/rules/decisions.md +++ b/rules/decisions.md @@ -6,6 +6,6 @@ paths: # Decisions: one home, each linked to a goal or a technical principle -**The decision log has one home: `docs/decisions.md`**. A title states the whole decision in one line: what holds at the commit it ships in, in words a reader finds in the code or the plan. `AGENTS.md` lists every title, so a session works by the decisions without loading their background. A session reads the entry under a title only to question, revise or add a decision. The entry holds the background: its date, who made it, the reasoning, and the premise it rests on ("valid while X") so it can expire honestly when that premise dies. +**The decision log has one home: `docs/decisions.md`**. A title states the whole decision in one line: what holds at the commit it ships in, in words a reader finds in the code or the plan. `AGENTS.md` lists every title, so a session works by the decisions without loading their background. The entry holds the background: its date, who made it, the reasoning, and the premise it rests on ("valid while X") so it can expire honestly when that premise dies. **Every decision links to a goal or a technical principle.** An entry names the goal it serves or the technical principle under `~/.claude/principles/` it applies; one that can do neither is a missing goal, and an entry already in the repo with neither behind it is a finding. Propose the goal, never a reason of your own โ€” `~/.claude/CLAUDE.md` โ†’ "Working loop", "Ask, don't guess" says how. An entry working against a goal or a technical principle stands only while it names the `todo.md` item that ends it. diff --git a/todo.md b/todo.md index 33e98b6e..2871568b 100644 --- a/todo.md +++ b/todo.md @@ -24,7 +24,6 @@ | ID | Release | Exempt | Item | R | S | C | A | G | Goals | Score | |---|---|---|---|---|---|---|---|---|---|---| -| 109 | 0.1.0 | | **Lower the reading cost of the files a chunk reads most before its first commit.** | 2 | 4 | 4 | 5 | 6 | 1.4 | 18.5 | | 93 | 0.2.0 | | **Let a chunk's worker start below the project's model, once the archive shows chunks on a lower rung took no more review rounds than chunks on the project's model.** | 3 | 2 | 6 | 6 | 7 | 1.1, 1.4 | 22.4 | | 94 | 0.2.0 | | **Every 20th cycle, have loop-claude measure token spend and routing outcomes, file them here, and interrupt the human only when they call for a routing change.** | 3 | 5 | 6 | 6 | 7 | 1.1, 1.4 | 21.6 | | 88 | 0.2.0 | | **Define one routing ladder of (model, effort) rungs ordered by a published ranking of their competence, and map a task's R + C to a rung relative to the project's model.** | 3 | 4 | 5 | 6 | 7 | 1.4 | 21.4 | @@ -72,10 +71,6 @@ ## Details -### 109. Lower the reading cost of the files a chunk reads most before its first commit. - -`bin/reading-cost` found a rise: the last 5 chunks' median is 136132 new input tokens before their first commit, the 5 before them 56802. Files read most in those 5 chunks (opens and searches): `todo.md` 31, `docs/decisions.md` 20, `CHANGELOG.md` 11, `README.md` 11, `bin/larv_review/test_larv_review.py` 10, `skills/larv-review/SKILL.md` 9, `CLAUDE.md` 7, `agents/stability-reviewer.md` 5, `bin/loop_claude/loop/main.py` 5, `bin/test_rank_todo.py` 5. The chunk that ships this item runs `reading-cost --reset`. - ### 93. Let a chunk's worker start below the project's model, once the archive shows chunks on a lower rung took no more review rounds than chunks on the project's model. Goal 1.1 asks for proven quality, so stepping down waits on the archive's evidence. From 8e9870887b558c9e4b970244c64c3e3fa1bdd6a6 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:12:40 +0200 Subject: [PATCH 03/10] =?UTF-8?q?Answer=20security=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20no=20vulnerabilities=20in?= =?UTF-8?q?=20the=20markdown=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 02d9751b3d98334cece6d2cfb9b058c1504b3c8b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:12:40 +0200 Subject: [PATCH 04/10] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1;=20read=20todo.md=20with=20the?= =?UTF-8?q?=20Read=20tool=20up=20to=20##=20Details,=20whole=20without=20on?= =?UTF-8?q?e,=20and=20read=20a=20decision=20entry=20only=20where=20its=20t?= =?UTF-8?q?itle=20leaves=20the=20need=20open?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- CLAUDE.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22b6227d..193630b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- A session reads `todo.md`'s items table and the details of only the items its chunk takes, counts `CHANGELOG.md`'s unreleased entries for the chunk's opening line instead of reading them, and reads a `docs/decisions.md` entry only to question, revise or add that decision, as `CLAUDE.md` now says. The last rule moved from `rules/decisions.md`, which loads only once a session opens that file. Expect fewer tokens read before a chunk's first commit. +- A session reads `todo.md` up to `## Details`, and the details of only the items its chunk takes. It reads a `docs/decisions.md` entry only where the entry's title leaves open what it needs. Both rules are in `CLAUDE.md`; the second moved there from `rules/decisions.md`, which loads only once a session has opened `docs/decisions.md` or `AGENTS.md`. A chunk's opening line now counts the unreleased changes instead of listing them. Expect fewer tokens read before a chunk's first commit. - larv-review's stability and product-owner reviewers report only a defect, a requirement of the plan or the goals that the change breaks, a breach of a technical principle, or for stability a hard place the change touches; the stability reviewer leaves the style of comments to the prose reviewer, which now also reads help and error text. Each architect finding names a concrete later change the PR makes harder, and one that names none is dropped. The prose pass runs only on a chunk that changes prose a reader reads, such as docs, comments, help text or `todo.md`, and skips a code-only chunk. Expect fewer findings and fewer review rounds. - Every `todo.md` item carries a C score, how hard the change is to get right, from 1 to 10, in a column after S. C stays out of the score. `rank_todo.py` fails on an items table without the column, and the rule hook then blocks committing that `todo.md`. Before the next commit that changes a project's `todo.md`, add the column and score every item's C, as `rank_todo.py --help` shows. - The new `bin/score-outcomes` shows what finished chunks measured beside the R, S and C their items were guessed at: lines and files changed, review rounds, and ๐Ÿ”ด and ๐ŸŸก findings. It reads them from the default branch's merge commits, so a project that merges by squash or fast-forward shows none. Given a guess, it lists the 5 finished items guessed nearest. It always reports, for each score, the median outcome at each guessed value, once 10 chunks that each shipped one item record it: R against ๐Ÿ”ด findings, S against lines changed, C against review rounds past each pass's first. A session filing or editing an item runs it and scores R, S and C from what it shows. diff --git a/CLAUDE.md b/CLAUDE.md index aa6d6c84..cecbeeec 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -8,9 +8,9 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **Plan `todo.md` as one scored table**: every item names the release that ships it. If `todo.md` has another shape, reshaping it is the chunk, and the human approves it. - **When the next release has no items and no work has landed towards it, plan it as this chunk.** Move the highest-scoring items of later releases into it, and get the human's approval of that set before writing any code. - **When the next release has no items left and work has landed towards it, it is finished: stop.** Report what it holds and that it is ready to cut. Under `/loop`, this ends the loop. Until the human cuts it, only a security fix lands, into that release; never start a later release's items or plan a new one. -- **Open every chunk with one line:** the last version cut, what is unreleased (`CHANGELOG.md` โ†’ `## Unreleased`, or else the log since the last tag), and the release this chunk ships into. A repo that publishes nothing says so once. +- **Open every chunk with one line:** the last version cut, how many changes are unreleased (the entries under `CHANGELOG.md` โ†’ `## Unreleased`, or else the commits since the last tag), and the release this chunk ships into. A repo that publishes nothing says so once. - **Read the README's `## Goals` and `## Audience` before starting a chunk, unless your prompt quotes them.** The chunk's items set its scope. The goals choose between ways to deliver those items, and never add to them. -- **Read the plan and the records only as far as the chunk needs.** Of `todo.md`, read the `## Items` table, `sed -n '/^## Items/,/^## Details/p' todo.md`, then the details of only the items the chunk takes. Of `CHANGELOG.md`, the opening line needs only how many entries `## Unreleased` holds. Read an entry of `docs/decisions.md` only to question, revise or add the decision under its title; `AGENTS.md` lists every title. +- **Read the plan and the records only as far as the chunk needs.** Read `todo.md` with the Read tool up to the line `grep -n '^## Details' todo.md` finds, or whole when there is none, then the details of only the items the chunk takes. The Read tool, unlike `sed`, loads the rules for `todo.md`. Read an entry of `docs/decisions.md` only where its title leaves open what the chunk or the review needs; `AGENTS.md` lists every title. - **Work one chunk at a time, and make it as large as one purpose allows.** Every review has a fixed cost, so a chunk takes the next plan item plus every other item for which three things hold: one PR title states what they achieve together, without listing them; they name one release; and they fire the same review passes (`larv-review` ยง3). Tiny items, a few lines of change each, need neither a shared purpose nor the same passes: bundle up to ten that name one release into one chunk. Split a milestone into items in `todo.md` before starting it. Fix a finding in the chunk's own change within the chunk. File a finding about anything else in `todo.md`. An item marked `question` waits for the human; take the next item. - **Ask, don't guess.** First check whether the goals already answer the question. If they nearly do, propose a change to the goals and show how it answers this case: an answer settles one question, a goal settles every question like it. Write every answer once, where it belongs, never only in chat: a goal in `README.md`, a working rule in `AGENTS.md`, a standing choice in a comment at the one place it governs, or in `docs/decisions.md` once made in more than one place. When an answer holds a goal and a choice, write the goal in the README, and record as a choice only what the goal leaves open. - **Bench a syntax with the people who write it.** Before a new or changed spelling of something users read or write ships โ€” markdown, HTML, a config key, a CLI flag โ€” a panel of fresh-context readers, seated as those users from the README's `## Audience`, picks it. From c914afbfc55facad54eda8664464c2a5ef53ff2a Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:12:40 +0200 Subject: [PATCH 05/10] =?UTF-8?q?Answer=20product-owner=20round=201:=200?= =?UTF-8?q?=20=F0=9F=94=B4,=203=20=F0=9F=9F=A1;=20fixed=20in=20the=20stabi?= =?UTF-8?q?lity=20round's=20commit:=20the=20Read=20tool=20loads=20the=20to?= =?UTF-8?q?do.md=20rules,=20the=20opening=20line=20counts=20unreleased=20c?= =?UTF-8?q?hanges=20in=20one=20place,=20and=20a=20todo.md=20of=20another?= =?UTF-8?q?=20shape=20reads=20whole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From 3b08bacf931b715685fe975df9d02c8d5d39534f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:13:29 +0200 Subject: [PATCH 06/10] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20every=20round-1=20answer=20?= =?UTF-8?q?holds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From af0e69709df2f016827b60285d1f44c5f8bb0e96 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:13:29 +0200 Subject: [PATCH 07/10] =?UTF-8?q?Answer=20product-owner=20round=202:=200?= =?UTF-8?q?=20=F0=9F=94=B4,=200=20=F0=9F=9F=A1;=20every=20round-1=20answer?= =?UTF-8?q?=20holds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From d471377d3d99257bed7b30fd782fd78f900cf79c Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:15:01 +0200 Subject: [PATCH 08/10] =?UTF-8?q?Answer=20prose=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=203=20=F0=9F=9F=A1;=20say=20which=20reads=20load?= =?UTF-8?q?=20a=20rule,=20order=20the=20todo.md=20steps,=20say=20the=20dec?= =?UTF-8?q?isions=20rule=20replaces=20the=20old=20one,=20and=20name=20the?= =?UTF-8?q?=20decisions=20in=20the=20tagline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- CLAUDE.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 193630b9..66af7808 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- A session reads `todo.md` up to `## Details`, and the details of only the items its chunk takes. It reads a `docs/decisions.md` entry only where the entry's title leaves open what it needs. Both rules are in `CLAUDE.md`; the second moved there from `rules/decisions.md`, which loads only once a session has opened `docs/decisions.md` or `AGENTS.md`. A chunk's opening line now counts the unreleased changes instead of listing them. Expect fewer tokens read before a chunk's first commit. +- A session reads `todo.md` up to `## Details`, and the details of only the items its chunk takes. It reads a `docs/decisions.md` entry only where the entry's title leaves open what it needs. Both rules are in `CLAUDE.md`, so they hold from a session's start. The decisions rule replaces one in `rules/decisions.md`, which loads only once a session has opened `docs/decisions.md` or `AGENTS.md`. A chunk's opening line now counts the unreleased changes instead of listing them. Expect fewer tokens read before a chunk's first commit. - larv-review's stability and product-owner reviewers report only a defect, a requirement of the plan or the goals that the change breaks, a breach of a technical principle, or for stability a hard place the change touches; the stability reviewer leaves the style of comments to the prose reviewer, which now also reads help and error text. Each architect finding names a concrete later change the PR makes harder, and one that names none is dropped. The prose pass runs only on a chunk that changes prose a reader reads, such as docs, comments, help text or `todo.md`, and skips a code-only chunk. Expect fewer findings and fewer review rounds. - Every `todo.md` item carries a C score, how hard the change is to get right, from 1 to 10, in a column after S. C stays out of the score. `rank_todo.py` fails on an items table without the column, and the rule hook then blocks committing that `todo.md`. Before the next commit that changes a project's `todo.md`, add the column and score every item's C, as `rank_todo.py --help` shows. - The new `bin/score-outcomes` shows what finished chunks measured beside the R, S and C their items were guessed at: lines and files changed, review rounds, and ๐Ÿ”ด and ๐ŸŸก findings. It reads them from the default branch's merge commits, so a project that merges by squash or fast-forward shows none. Given a guess, it lists the 5 finished items guessed nearest. It always reports, for each score, the median outcome at each guessed value, once 10 chunks that each shipped one item record it: R against ๐Ÿ”ด findings, S against lines changed, C against review rounds past each pass's first. A session filing or editing an item runs it and scores R, S and C from what it shows. diff --git a/CLAUDE.md b/CLAUDE.md index cecbeeec..fe99a419 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,7 +10,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The - **When the next release has no items left and work has landed towards it, it is finished: stop.** Report what it holds and that it is ready to cut. Under `/loop`, this ends the loop. Until the human cuts it, only a security fix lands, into that release; never start a later release's items or plan a new one. - **Open every chunk with one line:** the last version cut, how many changes are unreleased (the entries under `CHANGELOG.md` โ†’ `## Unreleased`, or else the commits since the last tag), and the release this chunk ships into. A repo that publishes nothing says so once. - **Read the README's `## Goals` and `## Audience` before starting a chunk, unless your prompt quotes them.** The chunk's items set its scope. The goals choose between ways to deliver those items, and never add to them. -- **Read the plan and the records only as far as the chunk needs.** Read `todo.md` with the Read tool up to the line `grep -n '^## Details' todo.md` finds, or whole when there is none, then the details of only the items the chunk takes. The Read tool, unlike `sed`, loads the rules for `todo.md`. Read an entry of `docs/decisions.md` only where its title leaves open what the chunk or the review needs; `AGENTS.md` lists every title. +- **Read the plan and the decisions only as far as the chunk needs.** Run `grep -n '^## Details' todo.md`, then read `todo.md` with the Read tool up to the line it prints, or whole when it prints none. Then read the details of only the items the chunk takes. `AGENTS.md` lists every decision's title. Read the entry under a title in `docs/decisions.md` only where the title leaves open what the chunk or the review needs. - **Work one chunk at a time, and make it as large as one purpose allows.** Every review has a fixed cost, so a chunk takes the next plan item plus every other item for which three things hold: one PR title states what they achieve together, without listing them; they name one release; and they fire the same review passes (`larv-review` ยง3). Tiny items, a few lines of change each, need neither a shared purpose nor the same passes: bundle up to ten that name one release into one chunk. Split a milestone into items in `todo.md` before starting it. Fix a finding in the chunk's own change within the chunk. File a finding about anything else in `todo.md`. An item marked `question` waits for the human; take the next item. - **Ask, don't guess.** First check whether the goals already answer the question. If they nearly do, propose a change to the goals and show how it answers this case: an answer settles one question, a goal settles every question like it. Write every answer once, where it belongs, never only in chat: a goal in `README.md`, a working rule in `AGENTS.md`, a standing choice in a comment at the one place it governs, or in `docs/decisions.md` once made in more than one place. When an answer holds a goal and a choice, write the goal in the README, and record as a choice only what the goal leaves open. - **Bench a syntax with the people who write it.** Before a new or changed spelling of something users read or write ships โ€” markdown, HTML, a config key, a CLI flag โ€” a panel of fresh-context readers, seated as those users from the README's `## Audience`, picks it. @@ -39,7 +39,7 @@ Reviewers hold prose to the full rules, with examples: `~/.claude/skills/larv-re ## Topic rules -Claude Code loads a rule file when a session reads or writes a file its `paths:` frontmatter matches, and after a write only once the write is done. Read a rule file before you create a file it covers. +Claude Code loads a rule file when a session writes a file its `paths:` frontmatter matches, or reads one with the Read tool or `head -n`, never `sed`. After a write, it loads only once the write is done. Read a rule file before you create a file it covers. - The decision log: `~/.claude/rules/decisions.md`. - README goals and audience: `~/.claude/rules/goals-and-audience.md`. From 445425da3bf4ae5e209a85cc6cbb77e31a2bac80 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:24:27 +0200 Subject: [PATCH 09/10] Record the comprehension check: scoring run at release 0.1.0's end, overall 6.50 --- docs/comprehension-history.md | 53 +++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/docs/comprehension-history.md b/docs/comprehension-history.md index 314163e2..1bb3b904 100644 --- a/docs/comprehension-history.md +++ b/docs/comprehension-history.md @@ -1560,3 +1560,56 @@ Inherited architect, decided by: - Locality, Overall: `skills/larv-review/SKILL.md:101` "Comprehension check": runs once, blocks nothing, no pass; at 4cc9953 "Fresh" made a prose fix in ยง3 change what ยง5 must do - Locality: `bin/comprehension_history.py:126` `worse_votes`: recovers votes by re-parsing table rows by cell count, relying on the votes table coming first, which matters only for legacy rulings - Locality: `bin/rule_hook/git.py:11` `git`: same name as `bin/git_repo.py:8` `git` with a different contract, beside two more git-named units + +## 2026-10-13T15:24:20Z, PR #257 at d471377 + +| Seat | Navigation | Locality | Shape | Self-sufficiency | Overall | +|---|---|---|---|---|---| +| Junior A | 7 | 6 | 6 | 6 | 6 | +| Mid A | 7 | 7 | 6.5 | 6.5 | 6.5 | +| Maintainability senior | 7 | 6.5 | 6.5 | 7.5 | 7 | +| Inherited architect | 7 | 7 | 6 | 6.5 | 6.5 | +| Mean | 7.00 | 6.63 | 6.25 | 6.63 | 6.50 | + +Junior A, hardest first: + +- `skills/larv-review/SKILL.md:63` "Round cap" and `:74` "Re-entry": seven interlocking rules on reruns, caps and exceptions, each pointing elsewhere; what a fix to a stability ๐ŸŸก that touches a comment reruns stayed unclear +- `bin/comprehension_history.py:106` `latest_places`: a 70-word docstring, an index rule resting on a pre-PR #255 history quirk, and `worse_votes` keeping the first row by `setdefault` +- `bin/loop_claude/cycle/judge.py:16` `JUDGE_RULES` and `:127` `run_judge`: behaviour in a prose prompt, and three text normalisations held at once +- `bin/rule_hook/override_log.py:36` `this_chunks`: reflog and branch-name rules that need git knowledge +- `bin/shell_command.py:31` `segments`: dense regexes and a second lexing path for unbalanced quotes +- `bin/loop_claude/cycle/states.py:69` `transition`: the quoted-answers counter threads through three states +- `bin/larv_review/plan.py:9` `scoring_run_due`: "landed", "next release" and "emptied" mix two plans +- `bin/transcript_archive/write.py:13` `archive`: three invariants on folder naming and write order + +Mid A, hardest first: + +- `skills/larv-review/SKILL.md:63` "Round cap": about 30 interlocking rules across the trigger table, the fix clauses, the cap and later rounds; only the count is enforced in code +- `bin/comprehension_history.py:106` `latest_places`: parses its own markdown by label regexes, resting on table order and a legacy case +- `bin/loop_claude/cycle/judge.py:16` `JUDGE_RULES`: the prompt is assembled from constants in three modules +- `bin/rule_hook/override_log.py:36` `this_chunks`: reflog semantics trusted, not verifiable by reading +- `bin/shell_command.py:31` `segments`: a hand-rolled tokenizer two unrelated tools depend on +- `bin/larv_review/ruling.py:8` `votes`: the vote-counting rule spread over four modules and an 80-line help, with a ruling decision inside a parser +- `bin/rank_todo.py:378` `rank_details`: regex split and string splicing whose newline round-trip needs running to trust +- `bin/transcript_archive/write.py:13` `archive`: the why lives in `loop_claude/loop/main.py`'s docstring + +Maintainability senior, hardest first: + +- `skills/larv-review/SKILL.md:63` "Round cap" and `:74` "Re-entry": a state machine written as prose, re-derived on each read +- `bin/comprehension_history.py:106` `latest_places`: dense comprehensions, a seat name recovered by splitting a label, and table-order dependence +- `bin/loop_claude/cycle/judge.py:16` `JUDGE_RULES` and `:127` `run_judge`: one prompt spliced from three files, and two misquotes treated differently +- `bin/rule_hook/override_log.py:36` `this_chunks`: four branches over reflog behaviour +- `bin/reading_cost/measure.py:27` `measure`: timestamps compared as strings with the format assumption unstated +- `bin/rule_hook/rules.py:49` `OVERRIDE`: a lazy reason with a lookahead and a suffix strip, explained nowhere in the code +- `bin/larv_review/plan.py:9` `scoring_run_due`: the "work has landed" rule, written three times +- `bin/loop_claude/loop/reload.py:50` `exec_if_edited`: editing any `bin/**/*.py` re-execs a running loop + +Inherited architect, would restructure first: + +- `bin/round_titles.py:5` `PASSES`: repeats the pass table at `skills/larv-review/SKILL.md:33` with no check tying them, and omits the auto-reviewer +- `skills/larv-review/SKILL.md:71` "Cap": the round cap is prose; no code stops a fourth round, so the 3am path takes 20 to 40 minutes +- `bin/git_repo.py:8` `git`: one of five git runners with four signatures +- `bin/larv_review/git.py:6` `history_changes`: a module named git that holds history logic +- `bin/reading_cost/measure.py:16` `Reading`: "places" also names comprehension places, and "record" and "outcome" each carry three meanings +- `bin/loop_claude/cycle/judge.py:16` `JUDGE_RULES`: says "the agent" where the code says "worker", and restates the working loop unchecked +- `bin/loop_claude/loop/reload.py:38` `fingerprint`: covers every `bin/**/*.py`, so editing `statusline.py` reloads the loop From a2caf1187f2d243f8453028fe7b3a64b2a7bcf1f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 13 Oct 2026 17:24:32 +0200 Subject: [PATCH 10/10] Name Shape in the comprehension-floor item, from release 0.1.0's scoring run --- todo.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/todo.md b/todo.md index 2871568b..22c6de3a 100644 --- a/todo.md +++ b/todo.md @@ -45,7 +45,7 @@ | 59 | 0.3.0 | | **Bound a run of unfinished verdicts on one chunk, so a worker and judge that disagree cannot cycle unattended without end.** | 3 | 3 | 5 | 6 | 6 | 1.4 | 19.8 | | 12 | 0.3.0 | | **Run the test suite in CI on every PR, or record in `docs/decisions.md` why the local run is enough.** | 2 | 4 | 3 | 4 | 6 | 1.1 | 16.9 | | 80 | 0.3.0 | | **State in README โ†’ Install that every machine taking this checkout must be a sandbox, as `settings.json`'s auto mode assumes.** | 1 | 1 | 1 | 5 | 5 | 4 | 16.8 | -| 62 | 0.3.0 | | **Lift Locality, Self-sufficiency and the overall to the comprehension floor, at the places the seats name.** | 4 | 6 | 6 | 5 | 6 | 1.1 | 16.4 | +| 62 | 0.3.0 | | **Lift Locality, Shape, Self-sufficiency and the overall to the comprehension floor, at the places the seats name.** | 4 | 6 | 6 | 5 | 6 | 1.1 | 16.4 | | 5 | 0.3.0 | decision | **Key a project on its checkout's full path, and refuse to start while another session uses that key.** | 5 | 5 | 7 | 5 | 6 | 1.1 | 15.6 | | 84 | 0.3.0 | | **Check, at each release's scoring run, that seats in a paired ruling agree more often than two scoring runs on near-identical code do, as the paired-ruling decision assumes.** | 2 | 2 | 5 | 4 | 5 | 1.4 | 15.1 | | 67 | 0.3.0 | principle | **Point stability-reviewer at the technical principles in place of its own restatement of them.** | 2 | 3 | 2 | 4 | 5 | 1.3 | 14.9 | @@ -175,12 +175,14 @@ When CI runs a rule check, such as one of `bin/rule-hook`'s, let `