From b20dc28f5b5759b1e5e9415f580c6f1119ae6849 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 21 Oct 2026 19:19:59 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20principles=20round=201:=201=20?= =?UTF-8?q?=F0=9F=94=B4,=206=20=F0=9F=9F=A1;=20correct=20the=20OVERRIDE=20?= =?UTF-8?q?comment,=20scope=20the=20floor=20title=20to=20the=20chunk=20and?= =?UTF-8?q?=20file=20the=20citation=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 2 +- CLAUDE.md | 12 ++++++------ bin/rule_hook/rules.py | 2 +- docs/decisions.md | 2 +- todo.md | 13 +++++++++---- 5 files changed, 18 insertions(+), 13 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f15753ee..522a3988 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ Decisions live in `docs/decisions.md`: -- larv-review: a chunk lifting a project towards the comprehension floor works first on the project's lowest-scoring dimension, and the floor blocks nothing +- larv-review: within a chunk lifting a project towards the comprehension floor, work on the project's lowest-scoring dimension comes first, and the floor doesn't block anything - loop-claude: a judge decides each interrupt and each quoted answer from the transcript, the README's premises, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md`, `~/.claude/rules/` and larv-review's standards, and holds a chunk open while an answer the human typed in it is recorded nowhere; the worker's own account of which goal settles a choice decides nothing - loop-claude: one session per project, its id derived from the checkout's path relative to `~/code`, or to `/` outside it - loop-claude: before it opens claude on the terminal, it marks the checkout and each of its worktrees trusted in `~/.claude.json` diff --git a/CLAUDE.md b/CLAUDE.md index 3dabd138..f9eba8c8 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -105,22 +105,22 @@ The rules only reviewers apply, for quality, comments, READMEs and prose, live i ## Vocabulary - **chunk** — the unit of work, shipped as one PR; "Working loop" says what it holds. -- **cycle** — in `loop-claude`, worker runs and the judge's verdict on each, until the chunk closes or is left for the next cycle. In between, the human answers any interrupt, or the worker resumes with an answer the judge quoted from `README.md`, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md`, `~/.claude/rules/` or `~/.claude/skills/larv-review/standards/`. +- **cycle** — in `loop-claude`, worker runs and the judge's verdict on each, until the chunk closes or is left for the next cycle. In between, the human answers any interrupt, or the worker resumes with an answer the judge quoted from `README.md` or the judge's records. - **gate** — the merge gate: the checks a PR passes before it merges. - **interrupt** — `loop-claude` asking the human, on its terminal, for a decision that is theirs. They type a one-line answer, or `/talk` to open the worker's session with `claude --resume`; a release ready to cut opens that session at once, and a routing call opens claude in `~/.claude`. - **judge** — the headless claude that reads a worker's transcript each cycle and decides whether to interrupt and whether the chunk is finished. -- **judge's records** — the files the judge reads beside the README's premises: the project's `AGENTS.md` and `docs/decisions.md`, then the human's `CLAUDE.md` and the `.md` files in `rules/` and `skills/larv-review/standards/`. -- **paired ruling** — each simulated reader votes whether the project reads better, the same or worse at the branch's head than at the base commit, the last measured one. A ruling needs a lead of two or more votes, else it is same. +- **judge's records** — the files the judge reads beside the README's premises: the project's `AGENTS.md` and `docs/decisions.md`, then the human's `~/.claude/CLAUDE.md` and the `.md` files in `~/.claude/rules/` and `~/.claude/skills/larv-review/standards/`. +- **paired ruling** — the seats vote whether the project reads better, the same or worse at the branch's head than at the base, the commit `larv-review ruling-base` prints; `larv-review --help` says how the votes make the ruling. - **pass** — one kind of review a chunk may take, run in rounds by its reviewers until clean; `larv-review` §3 lists them. -- **place** — the smallest unit a simulated reader names as hard to read: a function or a section heading, with its `path:line`. +- **place** — the smallest addressable unit, such as a function or a section heading, that a seat names with its `path:line` when it judges how hard the project is to read there. - **plan** — `todo.md`. - **premises** — the goals and audience under `## Goals` and `## Audience` in the project's `README.md`, with code health ("Shared goal") first among the goals unless the README voids it. - **project's rung** — the cheapest rung on loop-claude's routing ladder of the project's model, which is the model loop-claude's prompt names as the project's, or else your own. - **release** — a semver version the human cuts. - **reviewer** — a reporter of findings: an agent under `~/.claude/agents/`, `/security-review` or a forge's auto-reviewer. - **round cap** — the rounds one pass may take per chunk; `larv-review` §3 → "Round cap". -- **scoring run** — four simulated readers (Junior A, Mid A, the maintainability senior and the inherited architect) each score the project from 1 to 10, overall and on four dimensions: Navigation, Locality, Shape and Self-sufficiency. `larv-review needs-scoring-run` says when one is due. -- **seat** — one simulated reader of the comprehension panel, launched per `~/.claude/skills/comprehension-panel/SKILL.md`, that reads the whole project, not the diff. +- **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 `~/.claude/skills/comprehension-panel/SKILL.md`. - **session** — a Claude Code session: one id, what `claude --resume` continues. - **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. diff --git a/bin/rule_hook/rules.py b/bin/rule_hook/rules.py index 0fd2f4d7..9a3c9a81 100644 --- a/bin/rule_hook/rules.py +++ b/bin/rule_hook/rules.py @@ -61,7 +61,7 @@ RULES: dict[RuleName, Rule] = { "a git commit in a checkout whose todo.md has changes", ), } -# The lookahead ends each reason at the next marker on its line, or at the line's end. The reason is lazy, so it stops there rather than at the last marker. +# The lookahead ends each reason at the next marker on its line, or at the line's end. The reason is lazy, so it stops at the next marker instead of running on and swallowing the markers after it. # An HTML marker's closing `-->` stays in its reason; `overrides` strips it. OVERRIDE = re.compile(r"(?:#|