From 779d98e67c9fd1d41fba93366300b14701a79ba0 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 24 Sep 2026 23:41:37 +0200 Subject: [PATCH] Define the concept words once under Vocabulary and cite it from where they are used --- CHANGELOG.md | 2 +- CLAUDE.md | 23 ++++++++++++++++++++--- README.md | 2 +- agents/review-protocol.md | 2 ++ bin/loop-claude | 10 +++++----- skills/comprehension-panel/SKILL.md | 2 ++ skills/larv-review/SKILL.md | 4 ++-- todo.md | 1 - 8 files changed, 33 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2560c7c2..f7a4697f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ - Reviewers share one protocol for verdicts, severities, rounds and declines: `agents/review-protocol.md`. - Skills and agents cite `CLAUDE.md` by heading; the comment and documentation bar lives there alone. - Update a main checkout with `git pull --ff-only`, never `--autostash`. -- One word per concept across `CLAUDE.md`, the agents, the skills and `loop-claude`: the README's goals and audience are the premises, the architecture pass has a trigger, the merge gate is the gate, the stability reviewer is a reviewer, `loop-claude` runs cycles and interrupts, a handoff is the document under `~/code/claude-handoffs/`, a chunk is the unit of work, a session is a Claude Code session, and memory is a memory file. +- One word per concept across `CLAUDE.md`, the agents, the skills and `loop-claude`, each defined once under `CLAUDE.md` → "Vocabulary" and cited from where it is used. - `settings.json`, the agents and the status line name no machine-specific path; the status line shows reset times in the host's time zone. - `README.md`'s first line says what the repo holds, `principles/README.md` names the reviewer agents as the principles' audience, and every decision title in `docs/decisions.md` names its subject. - `larv-review` states its re-entry rules once: a fix made in a later pass re-enters the passes it fires, and a re-entered loop takes a fresh round cap. diff --git a/CLAUDE.md b/CLAUDE.md index 2a9facff..db5a2d76 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,6 +2,23 @@ Shorter is better, none is best — chat output, commit messages, comments, docs and code alike. Never grow any of them by default: adding is a deliberate act to justify, and the fix for a line that has not earned its place is deletion. If the information is already in the code or the project `README.md`, skip it. Use **English** everywhere. +## Vocabulary + +One word per concept, across this file, the agents, the skills and `loop-claude`: + +- **chunk** — the unit of work: the smallest PR-able change, one `todo.md` item or a sub-item of one. +- **cycle** — one iteration of `loop-claude`, per its `--help`. +- **gate** — the merge gate: the checks a PR passes before it merges, CI where configured, local tests otherwise. +- **handoff** — the per-project document under `~/code/claude-handoffs/`. +- **interrupt** — `loop-claude` handing the terminal to the human, per its `--help`. +- **memory** — a memory file, the harness's own notes; project knowledge goes in the repo. +- **plan** — `todo.md`. +- **premises** — the goals and audience under `## Goals` and `## Audience` in the project's `README.md`. +- **release** — a semver version the human cuts; `CHANGELOG.md`'s `## Unreleased` holds what waits for it. +- **reviewer** — an agent under `~/.claude/agents/` that reports findings and changes nothing. +- **session** — a Claude Code session, one transcript. +- **trigger** — the signals in `larv-review` §2 that say the architecture pass is warranted. + ## Prose - **Write the thing, not an introduction to it.** A sentence announcing what follows, or flagging that it deserves attention, carries nothing — if it matters, it is in what follows. A bare label is fine. BANNED: `Here's the new audience text, which is the part that needs your eye:`, `One thing I changed that deserves your attention.`, `One judgment call I'd flag rather than bury.`, `Three things came along that would otherwise have been left false.` GOOD: `New audience text:`, or the list alone. @@ -38,11 +55,11 @@ Apply it as a question to any design that routes A through B, or has A reach int How work proceeds in any repo, unless that repo's `AGENTS.md` says otherwise. -- **`README.md` states the goals and the audience under literal `## Goals` and `## Audience` headings — and until it does, nothing else proceeds.** Two different things, both required, both public: an outside reader judges the project by where it is heading and who it is for. Goals are priority-ordered and specific enough that a design decision can be derived from them; the audience names who depends on this and what they may rely on. These are the premises. The check is those two headings in `README.md`, run at the start of every chunk: the same content in `AGENTS.md`, in `docs/`, or in a decision log does not satisfy it, and neither does an earlier chunk having passed it. A repo missing either, or holding a version too vague to settle a decision, has no premises and gets one chunk that writes them and takes approval **before any planned work**, `todo.md` included. +- **`README.md` states the goals and the audience under literal `## Goals` and `## Audience` headings — and until it does, nothing else proceeds.** Two different things, both required, both public: an outside reader judges the project by where it is heading and who it is for. Goals are priority-ordered and specific enough that a design decision can be derived from them; the audience names who depends on this and what they may rely on. The check is those two headings in `README.md`, run at the start of every chunk: the same content in `AGENTS.md`, in `docs/`, or in a decision log does not satisfy it, and neither does an earlier chunk having passed it. A repo missing either, or holding a version too vague to settle a decision, has no premises and gets one chunk that writes them and takes approval **before any planned work**, `todo.md` included. - **Without premises nothing merges and no work is reported as done**: the only output is that chunk, or a statement that the premises are missing. Without them only: a security fix — which passes even where it alters an interface — a bot's dependency bump, and a repair restoring behaviour the repo already claims: a red gate, a failing build, a false doc, where it is the doc that gets corrected unless consumers already rely on what the doc promises. None of them decides direction. Anything else that adds capability, alters an interface, or picks between options is planned work and waits. Once written they stand; a later question they do not settle is the ask rule below, never reopened premises. -- **`todo.md` is the plan, ordered as semver releases** — every item sits under the release that ships it. Where the earliest unreleased release names no items and nothing has shipped toward it, that chunk is planning it: weigh the unscheduled items against the goals, write the order, take approval before any code. A `todo.md` in any other shape gets that shape as this chunk, approval taken. +- **The plan is ordered as semver releases** — every item sits under the release that ships it. Where the earliest unreleased release names no items and nothing has shipped toward it, that chunk is planning it: weigh the unscheduled items against the goals, write the order, take approval before any code. A `todo.md` in any other shape gets that shape as this chunk, approval taken. - **A release is the human's, and a finished one stops all work.** The version bump and the publishing credentials are the human's whatever any other rule says; prepare everything around it so the release is one decision. Open every chunk with one line: the last version cut, what is unreleased (`CHANGELOG.md`'s `## Unreleased`, else the log since the last tag), and the release this chunk ships into; a repo that publishes nothing says so once. Where the earliest unreleased release has no items left and work has shipped toward it, that is the terminal state: report what it holds and that it is ready to cut, and stop. A security fix still lands, into the waiting release. Never roll forward into a later release's items, and never plan a new release, while a finished one waits — the bump is the next decision. Under `/loop`, that stop ends the loop. -- **One chunk at a time**, the smallest PR-able unit; split a milestone into sub-items in `todo.md` before starting it. A finding inside the chunk is fixed in the chunk; outside it, it becomes a `todo.md` item under a release. +- **One chunk at a time**; split a milestone into sub-items in `todo.md` before starting it. A finding inside the chunk is fixed in the chunk; outside it, it becomes a `todo.md` item under a release. - **A done item leaves `todo.md`; its release heading stays until the version is cut.** Where the repo publishes something a consumer takes — a package, an image, an API — the line is reworded for that consumer and moves to `CHANGELOG.md` under `## Unreleased`; a CHANGELOG is written for the public, never for the next agent. Everywhere else the line is simply deleted, because git history is already the record. - **Ship every chunk with `/larv-review`.** - **Ask, don't guess — and fix the goals rather than the question.** Before asking, check whether the goals already settle it; where they nearly do, propose the goal change and show what falls out of it for the instance, because one answered question settles one instance and a goal settles the class. Every answer lands where its kind belongs, and nowhere else: a goal in `README.md`, a working rule in `AGENTS.md`, a standing choice in `docs/decisions.md`. Where an answer is more than one of these, the goal wins — write the goal, and record a decision only for what it still leaves open. Never in chat alone. diff --git a/README.md b/README.md index a2f0f576..9452d0c5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Claude Code configuration -My personal `~/.claude`, version controlled: `CLAUDE.md` and `AGENTS.md` for instructions; `agents/` and `skills/`; `principles/` for what the reviewer agents hold every project to; `docs/` for decisions; `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo; `statusline.sh`; `CHANGELOG.md` and `todo.md`; and the tools in `bin/`. +My personal `~/.claude`, version controlled, its words defined once under `CLAUDE.md` → "Vocabulary": `CLAUDE.md` and `AGENTS.md` for instructions; `agents/` and `skills/`; `principles/` for what the reviewer agents hold every project to; `docs/` for decisions; `settings.json` for the harness and `.claude/settings.json` for the harness inside this repo; `statusline.sh`; `CHANGELOG.md` and `todo.md`; and the tools in `bin/`. ## Goals diff --git a/agents/review-protocol.md b/agents/review-protocol.md index 41cfd5a5..9021b299 100644 --- a/agents/review-protocol.md +++ b/agents/review-protocol.md @@ -1,5 +1,7 @@ # Review protocol +Words: `~/.claude/CLAUDE.md` → "Vocabulary". + ## Verdict A review's first line, derived mechanically from the findings: diff --git a/bin/loop-claude b/bin/loop-claude index eea96ac8..50d446c1 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -3,11 +3,11 @@ usage: loop-claude -Run it in a project checkout whose README.md has ## Goals and ## Audience (the premises). Each cycle a -worker runs the task; a judge then reads the transcript against the premises. A question only the -human can answer, or a release ready to cut, is an interrupt: `claude --resume` on the terminal. An -unfinished chunk resumes the same session next cycle; a finished one starts a fresh session. Cycles -continue until that interrupt or Ctrl-C. +Words: ~/.claude/CLAUDE.md, "Vocabulary". Run it in a project checkout whose README.md has ## Goals +and ## Audience, the premises. Each cycle a worker runs the task; a judge then reads the transcript +against them. A question only the human can answer, or a release ready to cut, is an interrupt: +`claude --resume` on the terminal. An unfinished chunk resumes the same session next cycle; a +finished one starts a fresh session. Cycles continue until that interrupt or Ctrl-C. Exit 1: no task, no premises, claude leaves no transcript, or the worker or the judge fails three times running, a verdict missing a field or quoting nothing in the transcript being a judge failure. diff --git a/skills/comprehension-panel/SKILL.md b/skills/comprehension-panel/SKILL.md index 032d9c5c..48812a36 100644 --- a/skills/comprehension-panel/SKILL.md +++ b/skills/comprehension-panel/SKILL.md @@ -5,6 +5,8 @@ description: Judge how hard a project is to understand by running a panel of nin # comprehension-panel — what readers find hard, versus what a metric says +Words: `~/.claude/CLAUDE.md` → "Vocabulary". + A metric ranks functions; readers rank understanding. The panel exists because those rankings diverge, and when they do the readers win — a number that flags code seven readers call clear, and misses the one they all call hardest, is measuring something else. diff --git a/skills/larv-review/SKILL.md b/skills/larv-review/SKILL.md index 18946467..6fa6d91d 100644 --- a/skills/larv-review/SKILL.md +++ b/skills/larv-review/SKILL.md @@ -9,7 +9,7 @@ You orchestrate, fix, and ship; the reviewer agents only report. Run every revie **Forge-neutral.** Five PR operations recur below: read a PR's diff, open a draft PR, read check status, mark ready, merge. Resolve the tooling from the remote per `~/.claude/CLAUDE.md` → "Git, commits, and PRs"; on any other forge, achieve the same intents through its CLI or API — discover how rather than assuming. A forge without a native draft state gets the closest equivalent (a `WIP:`/`Draft:` title prefix); note any approximation in the summary. -Verdicts, severities, round caps, declining a finding and where decisions are recorded: ~/.claude/agents/review-protocol.md. Its Declining section also binds `/security-review` and the external reviewer in §9. +Words: `~/.claude/CLAUDE.md` → "Vocabulary". Verdicts, severities, round caps, declining a finding and where decisions are recorded: ~/.claude/agents/review-protocol.md. Its Declining section also binds `/security-review` and the external reviewer in §9. ## Re-entry @@ -28,7 +28,7 @@ A re-entry is a new loop with its own round cap. - Someone else's PR, or the user asked for opinions only → single stability pass, report findings, done (skip shipping, fixing, the loops and the merge). - Prose only — markdown, docs, comments, no code — → the reviewer loops add nothing: ship the branch (§1), the prose pass (§7), green gate (§8), merge (§10). Say so in the summary. Prose an outside reader lands on — public API docs, README, CHANGELOG, error or deprecation text — still takes §6's product-owner pass. - Issue trackers are project-specific — the project's own docs say whether it has one. When it does and the work has a ticket, follow that tracker's conventions for assignment and status. -- **Nothing merges and nothing is reported done without premises**: the goals and audience under literal `## Goals` and `## Audience` headings in `README.md`, which `~/.claude/CLAUDE.md` → "Working loop" holds all planned work on. Neither heading present, or a version too vague to settle a decision → this chunk cannot be judged: stop, say so, and write them with the user as the chunk instead. That chunk's whole review is the human's approval, since a reviewer's findings on it could only be declined by citing the goals it exists to write; a later change to a goal takes the full review. The same content in `AGENTS.md`, in `docs/` or in a decision log does not satisfy it, and neither does an earlier chunk having passed it. Only what that section lets through without them reaches review. +- **Nothing merges and nothing is reported done without premises**, which `~/.claude/CLAUDE.md` → "Working loop" holds all planned work on. Neither heading present, or a version too vague to settle a decision → this chunk cannot be judged: stop, say so, and write them with the user as the chunk instead. That chunk's whole review is the human's approval, since a reviewer's findings on it could only be declined by citing the goals it exists to write; a later change to a goal takes the full review. The same content in `AGENTS.md`, in `docs/` or in a decision log does not satisfy it, and neither does an earlier chunk having passed it. Only what that section lets through without them reaches review. ## 1. Ship the branch (idempotent — skip whatever already exists) diff --git a/todo.md b/todo.md index 20fcea01..4543b9b2 100644 --- a/todo.md +++ b/todo.md @@ -4,7 +4,6 @@ Ordered by how many seats of the 2026-09-24 scoring panel (`docs/decisions.md`) named the place; each is one chunk. -- Give the concept words one definition a reader lands on, cited from where they are used; today three seats found them only in `CHANGELOG.md`'s one-word-per-concept entry. - Keep `###` sub-headings inside their `##` section in `sections`, pinned by a test; today a sub-heading under `## Goals` silently drops the rest of the goals. - Merge `project` and `project_path` into one name and one shape for the project's path. - Name the session, the archive folder and its env var `loop-claude`; today they say `auto-mode`.