Say one spelling in two places is the same case, its copy rejected by naming the place that keeps it #65
@@ -46,7 +46,8 @@ Apply it as a question to any design that routes A through B, or has A reach int
|
||||
- When two spellings reach the same result, make one work and reject the other. Supporting both needs a stated reason, written down.
|
||||
- Reject the redundant spelling as early as possible — at load, parse or compile, not at use — and have the error name the spelling to use instead: `token {p} renders a level that {p.first} reads a path into; name the fields you want instead`.
|
||||
- Where the two spellings can *disagree*, this is a correctness rule. A caveat in the README does not close it.
|
||||
- Applies to data formats, config, CLI flags and public APIs alike.
|
||||
- One spelling in two places is two spellings: reject the copy — at load for a value, by deletion for prose — and name the place that keeps it.
|
||||
- Applies to data formats, config, CLI flags, public APIs and prose alike.
|
||||
|
||||
## Working loop
|
||||
|
||||
@@ -110,7 +111,7 @@ How work proceeds in any repo, unless that repo's `AGENTS.md` says otherwise.
|
||||
|
||||
**Every decision links to a goal.** An entry names the goal it serves; one that cannot is a missing goal, and an entry already in the repo with no goal behind it is a finding. Propose the goal, never a reason of your own — the ask rule above says how.
|
||||
|
||||
**Link, don't inline — and keep the link bare.** A mechanism identical across call sites or repos is documented once in the canonical source and pointed at with a one-line bare link; N copies drift, whether they are comments or READMEs. Don't summarize what's behind the link or restate the identifier's own name.
|
||||
**Link, don't inline — and keep the link bare.** A mechanism identical across call sites or repos is documented once in the canonical source and pointed at with a one-line bare link. Don't summarize what's behind the link or restate the identifier's own name.
|
||||
|
||||
**A pointer is not a definition.** A definition the reader needs to follow the code — what a unit counts, what a term means, what invariant a cache rests on — sits at the code in one line. A pointer to it (`see AGENTS.md §11`) cannot be checked against the code beside it, so it rots invisibly. A pointer carrying rationale — a rejected alternative, the premise behind a standing choice — is correct and stays.
|
||||
|
||||
|
||||
@@ -4,6 +4,5 @@
|
||||
|
||||
Ordered by how many seats of the 2026-09-25 scoring panel (`docs/decisions.md`) named the place; each is one chunk.
|
||||
|
||||
- Say under `CLAUDE.md` → "One spelling per goal" that one spelling in two places is the same case, and what its rejection names.
|
||||
- Say `could not read` when `~/.claude.json` parses to anything but an object whose `projects` maps paths to objects, today a traceback before the interrupt.
|
||||
- State in `docs/decisions.md` the oldest Python `bin/` must parse on, today unstated and 3.11 by the last review.
|
||||
|
||||
Reference in New Issue
Block a user