diff --git a/CHANGELOG.md b/CHANGELOG.md index 53870da2..a35e126e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,4 +21,4 @@ - `larv-review`'s comprehension floor has its own heading under the architecture pass; why a project under it is fixed at the capping dimension is a decision in `docs/decisions.md`. - `review-protocol.md` says only what a reviewer records; the decision log's home and shape stay under `CLAUDE.md`. - `loop-claude`'s no-premises exit names what is wrong: `README.md` the OS cannot open, a `## Goals` or `## Audience` heading missing or repeated, or nothing under one. -- `CLAUDE.md` spells the false-claim rule once, covering what a program prints: the claim is corrected unless consumers rely on what it promises, then the code. +- `CLAUDE.md` spells the false-claim rule once, covering what a program prints: the claim is corrected, or the code where consumers already rely on what the claim promises. diff --git a/CLAUDE.md b/CLAUDE.md index d7619a05..aae99b7e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -98,7 +98,7 @@ How work proceeds in any repo, unless that repo's `AGENTS.md` says otherwise. **One bar for all of it.** A comment or a paragraph earns its place by saying what a competent reader of THIS codebase could not infer and the repo cannot say for itself: a surprising WHY, a footgun, an invariant, an external constraint. The fix for a redundant one is deletion, not trimming — two copies drift, and the doc copy is the one nobody updates. Once it has earned its place, make it short and information-dense. GOOD: `// Loud-fail: missing amount used to coerce to '0' = phantom "0 SEK reversal" in api-4.` — records a past prod bug the code can't show. -**A false claim is a bug — fix it where you find it.** Docs, comments and what a program prints — `--help`, an error, a log line — assert checkable things: a command, a resolution rule, a path, a limit. Verify one before you repeat or build on it. When it is wrong, correct it in the same change, on the claim's side unless consumers already rely on what it promises, then on the code's. Never work around it, and never record the discrepancy somewhere else instead. +**A false claim is a bug — fix it where you find it.** Docs, comments and what a program prints — `--help`, an error, a log line — assert checkable things: a command, a resolution rule, a path, a limit. Verify one before you repeat or build on it. When it is wrong, correct it in the same change: the claim, or the code where consumers already rely on what the claim promises. Never work around it, and never record the discrepancy somewhere else instead. **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**.