Define "a pointer is not a definition" once, in CLAUDE.md
This commit was merged in pull request #11.
This commit is contained in:
@@ -101,7 +101,7 @@ The bar is `~/.claude/CLAUDE.md` → "Comments and documentation"; per paragraph
|
||||
|
||||
- **Delete** — a type, a test name, a spec or the code already says it. In this chunk.
|
||||
- **Move** — a decision goes to `docs/decisions.md` with its one-line index; a goal goes to the README. In this chunk.
|
||||
- **Move back** — the opposite fault, and the one a deletion-only pass never catches. A comment that points at a definition (`see AGENTS.md §11` for what a unit counts, what a term means, what invariant a cache rests on) has put the wrong half in the record: definitions belong at the code in one line, reasoning belongs in the record. Inline the definition and leave the reasoning where it is.
|
||||
- **Move back** — the opposite fault, and the one a deletion-only pass never catches: a pointer standing where a definition belongs ("A pointer is not a definition", same section). Inline the definition and leave the reasoning where it is.
|
||||
- **Split or index** — load-bearing but unfindable: a section long enough that a reader who knows the answer is inside it still has to search for it. Sub-headings, or an index at its head. Bigger than the chunk → a `todo.md` item naming the section and what the hunt costs.
|
||||
|
||||
When §2's gate says the architecture pass is warranted, this pass widens with it: the fresh-context agent reads every prose file the repo owns rather than only the cited sections. That is the only sweep that catches accretion, since no diff shows a file that grew a paragraph per chunk.
|
||||
|
||||
Reference in New Issue
Block a user