Appearance
Documentation
Each fact in the repository has one home, and all other files link to that home.
Layers
A reader starts at the top layer and stops at the first layer that answers the question.
AGENTS.mdimports the READMEs that each agent session reads, as decision 0014 explains.- A
README.mdsays what its folder is for and links each file in it. - An
index.mdin a docs site links each page below it. - A page gives information about one topic, and its first sentence is a summary of that topic.
- A decision record tells why the repository follows one lasting rule.
The knowledge-manager agent gives the accurate shape of each layer.
The check
docs-check runs on each pull request in the Docs workflow and posts a comment that lists the problems it finds. It checks coverage, shape, duplicate sentences, references, drift and decision records. A pull request with a gap cannot merge, as decision 0017 explains. docs-map.yml holds its settings, and the tool README lists its parts.
A page in a docs site links to a file outside the site by its GitHub address, because the site cannot serve that file.
A folder in the vendored list of docs-map.yml holds files that a tool copied from another project, such as a skill. Its README lists the folder in one line, and docs-check does not check the files in it. A path under node_modules/ names an installed file, so docs-check does not look for it in Git. See decision 0016 for why.
Run it from the root of the repository:
sh
node tools/docs-check/cli.ts --base origin/main --head HEADDrift
A commit can change the behavior of a tool, a workflow, a hook or an agent. When this occurs, the same pull request updates a doc that links to that item. When all docs about the change continue to be correct, the commit adds a Docs: unchanged trailer and the pull request does not update a doc.
Decisions
A change to the rules of the repository, such as risk-map.yml, docs-map.yml or a workflow, must have a decision record in the same pull request. A commit that follows an existing record instead adds a Decision: NNNN trailer that names it. The reason for a one-off change stays in the body of its commit.
Each record gives the date, a link to its pull request, the options that lost and links to the code that implements its rule. docs-check checks those code links while the record has the status accepted. The decision index lists all decision records of the repository.
The URN Forge product has its own records in products/urn-forge/decisions/, numbered from 0001, as decision 0020 explains. docs-check and the why check check them the same way.