Answer the prose review's first round

This commit is contained in:
2026-10-02 15:19:29 +02:00
parent f6f4b41739
commit ffcdfeaefd
4 changed files with 6 additions and 8 deletions
+1 -3
View File
@@ -79,9 +79,7 @@ Prose describing the code as it stands — a comment, a README, an `AGENTS.md`,
### Decisions: one home, each linked to a goal or a technical principle
**A choice confined to one place is a comment there, with its reason.** One line at the code it governs. Once the same choice is made a second time it is a pattern, and it moves to the decision log.
**A decision record owns a choice made in more than one place.** Its rejected alternative, or what it deliberately does not cover, stays out of every call site because the 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. A title states the whole decision in one line: what holds at the commit it ships in, in words a reader finds in the code or the plan. `AGENTS.md` lists every title, so a session works by the decisions without loading their background. A session reads the entry under a title only to question, revise or add a decision. The entry holds the background: its date, who made it, the reasoning, and the premise it rests on ("valid while X") so it can expire honestly when that premise dies. A recurring choice found anywhere else — an `AGENTS.md` body, a comment at each site, or a README section that is neither a goal nor how one is met — moves there and leaves its title in `AGENTS.md`'s list. A goal stays a goal in the README; the log records only what the goal leaves open.
**A choice that shapes what the code does, made in one place, is a comment there, with its reason. Made in more than one place, it is a decision, and the decision log owns it.** Its rejected alternative, or what it deliberately does not cover, stays out of every call site. **The decision log has one home: `docs/decisions.md`**, or `docs/decisions/` split by area once it outgrows one file. A title states the whole decision in one line: what holds at the commit it ships in, in words a reader finds in the code or the plan. `AGENTS.md` lists every title, so a session works by the decisions without loading their background. A session reads the entry under a title only to question, revise or add a decision. The entry holds the background: its date, who made it, the reasoning, and the premise it rests on ("valid while X") so it can expire honestly when that premise dies. A choice found anywhere else — an `AGENTS.md` body, a comment, or a README section that is neither a goal nor how one is met — moves: to a comment at its one place, or, once it recurs, to the log, leaving its title in `AGENTS.md`'s list. A goal stays a goal in the README; the log records only what the goal leaves open.
**Every decision links to a goal or a technical principle.** An entry names the goal it serves or the technical principle under `~/.claude/principles/` it applies; one that can do neither is a missing goal, and an entry already in the repo with neither behind it is a finding. Propose the goal, never a reason of your own — "Ask, don't guess" under "Working loop" says how. An entry working against a goal or a technical principle stands only while it names the `todo.md` item that ends it.