Appearance
0001: Document every fact once, in layers
Status: accepted
Date: 2026-12-04
PR: #14
Context
Humans and AI agents read this repository. They want to find a fact quickly and be sure that it is correct. Before this decision, nothing checked if a doc was available, if it continued to be correct, or if a fact was in two locations.
Options considered
- READMEs hold everything: docs would be next to the code, and the sites would hold only long guides.
- Sites hold everything: READMEs would become one-line pointers into the sites.
- When the code and a doc disagree, always ask the human, or only flag it: the agent would never fix a doc without the human.
- No opt-out from the drift rule: every behavior change would edit a doc, even when the doc is still true.
- Only new or removed behavior needs a doc change: a change to existing behavior could leave its docs wrong.
Decision
Each fact has one home in five layers: CLAUDE.md, folder READMEs, site indexes, pages and decision records. All other files give one line and a link. docs-check checks the layers, and the knowledge-manager agent corrects the problems before each pull request. When a commit changes behavior but all docs continue to be correct, the commit has a Docs: unchanged trailer.
Consequences
A reader reads only the layers that are necessary to answer the question. When a fact changes, the author edits only one file. A pull request that changes behavior also changes the docs, or it tells why a doc change is not necessary. The check starts in shadow mode. This gives time to adjust its rules before the check blocks a pull request.