Files
claude-config/rules/decisions.md
T

1.7 KiB

paths
paths
**/AGENTS.md
**/docs/decisions.md

Decisions: one home, each linked to a goal or a technical principle

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. A decision's rejected alternative, or what it deliberately does not cover, stays out of every call site. The decision log has one home: docs/decisions.md. 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 away from the code it governs, or a README section that is neither a goal nor how one is met — moves: to a comment at its one place, or, once made in more than one place, to the log, leaving its title in AGENTS.md's list.

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 — ~/.claude/CLAUDE.md → "Working loop", "Ask, don't guess" says how. An entry working against a goal or a technical principle stands only while it names the todo.md item that ends it.