From b1d16be44c28dfd5d9d6c10fa2d84bf1ddd169fa Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 08:08:06 +0200 Subject: [PATCH] Scope the negation rule to prose describing the code as it stands --- CHANGELOG.md | 1 + CLAUDE.md | 2 +- todo.md | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6640020b..7b405c32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,3 +17,4 @@ - `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. - `CLAUDE.md`'s comment rules say once what a comment keeps: one line for what the code cannot show, with doc comments a tool consumes outside them. +- `CLAUDE.md`'s negation rule opens with its scope: prose describing the code as it stands. diff --git a/CLAUDE.md b/CLAUDE.md index 25014822..1697c33a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -100,7 +100,7 @@ How work proceeds in any repo, unless that repo's `AGENTS.md` says otherwise. **A false claim is a bug — fix it where you find it.** Docs and comments assert checkable things: a command, a resolution rule, a path, a limit. Verify one before you repeat or build on it, and when it turns out to be wrong, correct it in the same change — never work around it, and never record the discrepancy somewhere else instead. -**Negation and history: name the action, or say nothing.** Narrating what is *not* done — a removed step, a call we don't make, a rejected approach, a superseded version (`we used to X, now Y`), a limitation — only makes sense to a reader who first imagined the missing code. Whoever wonders has `git log`/blame. It is allowed in one shape: where a reader would otherwise **do** something harmful, and the sentence names that action. GOOD: `wrap a direct ./tests/run.sh to put it under the same lock`. BANNED: `run.sh takes no host lock`. Two disqualifiers that look like diligence: a caveat that exists because an earlier version behaved differently is a historic artifact, deleted along with that behaviour; and recording that we know about a limitation names no action — it belongs in the PR or ticket, because **documenting a limitation is not fixing it**. +**Negation and history: name the action, or say nothing.** Prose describing the code as it stands — a comment, a README, an `AGENTS.md`, an API spec — may narrate what is *not* done (a removed step, a call we don't make, a superseded version `we used to X, now Y`, a limitation) in one shape only: where a reader would otherwise **do** something harmful, and the sentence says what to do instead. GOOD: `wrap a direct ./tests/run.sh to put it under the same lock`. BANNED: `run.sh takes no host lock`. A limitation with nothing to do instead belongs in the PR or ticket, because **documenting a limitation is not fixing it**. **The inversion: a decision record owns what a call site may not say.** A rejected alternative, or what something deliberately does not cover, is banned beside the code precisely because the decision record holds it — a standing choice a future reader would otherwise relitigate, where a `CHANGELOG` holds what changed in a release. **The decision log has one home: `docs/decisions.md`**, or `docs/decisions/` split by area once it outgrows one file. `AGENTS.md` carries a one-line index of the titles, so a session or a reviewer sees that a decision exists without loading its reasoning. An entry states the decision, its date, who made it, and the premise it rests on ("valid while X") so it can expire honestly when that premise dies. A decision found anywhere else — an `AGENTS.md` body, a comment, or a README section that is not a goal — moves there and leaves its index line behind. A goal stays a goal in the README; the log records only what the goal leaves open. diff --git a/todo.md b/todo.md index 6001c9dd..b4f80cbf 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. -- Open `CLAUDE.md` → "Comments and documentation", "Negation and history", with its scope, comments and docs beside code, and cut its two restatements of the section bar; today a reviewer cites it against a `CHANGELOG.md` line, which the next paragraph governs. - Give the comprehension floor in `larv-review` its own heading and move its six-project calibration sentence to `docs/decisions.md`; today it sits under §2 "Trigger". - Cut what `review-protocol.md` → "Documenting decisions" restates from `CLAUDE.md`: the decision kinds, the create-or-fix line and the record-nothing default. - Make the missing-premises exit name what is missing: `README.md` itself, a `## Goals` or `## Audience` heading, or a body under one; today all three print the same line.