Documentation standard
Which files a conforming project has, what belongs in each, and the conventions that keep them honest.
The organising rule: the diff says what changed; documentation says why. Anything a future reader would otherwise have to re-derive belongs in prose.
The required set
Section titled “The required set”| File | Holds | Missing means |
|---|---|---|
README.md |
What this is, how to run it, where to go next, project status, LLM use | Nobody can start |
LICENSE |
The licence, from the first commit | All rights reserved by accident |
AGENTS.md |
Working agreement for AI agents in this repo | Every session re-derives the conventions |
docs/STATE.md |
What is true right now, including what’s broken | Status lives in someone’s head |
docs/decisions.md |
Numbered decisions with reasoning and cost | Settled questions get re-litigated |
docs/architecture.md* |
How the pieces fit and why each is where it is | Structure is only legible by reading all the code |
docs/ownership.md* |
For each thing the project manages: who controls it, how, and why | Someone overwrites a setting the app’s own UI owns |
docs/security.md* |
The project’s instance of the security posture | Trust boundaries are implicit |
docs/credits.md* |
Dependencies, licences, and what was rejected | Obligations are unknown at release |
CHANGELOG.md |
What changed and why, including reverts | History is only in git log |
Projects with contributors add CONTRIBUTING.md. Projects with a long-range
shape add VISION.md, distinct from architecture.md in that it covers what
the project is and is not, rather than how it’s built.
* Conditional on having something to say. A project with no running
components, no trust boundaries to describe, and no adopted dependencies
can skip these four (ownership.md follows the same test as architecture.md: it applies when the project manages anything that is running) rather than write a near-empty file for the sake of
the table. Record the skip in docs/decisions.md, the way conformIT’s own
does at #10, so a reader can tell “not applicable” apart from “overlooked.”
docs/ownership.md is one table, with a row for each managed thing:
| Column | Says |
|---|---|
| Thing | The service, setting, dashboard, or file set |
| Owner | This repo, the app’s own UI, the user, or an external system |
| Mechanism | Rewritten every run, seeded once, synced both ways, or read-only |
| Why | The reason it is owned that way |
| Where to change it | The one place an edit should be made |
| Backup | How it is backed up and how it is restored |
Where state is synced both ways, the row also states the direction, what
triggers the sync (manual or automatic), and what wins in a conflict. A
manual pull and push, so that an edit made in an app’s UI is never
overwritten silently, is a legitimate answer; an unstated one is not.
Every module README opens with the same short contract block (what it does,
who owns its settings, the state it keeps, how it rolls back, what it
exposes), and the project README links to ownership.md. The template is
templates/docs/ownership.md. The cost is
one more file to keep honest; the alternative, leaving ownership implicit in
the code, is how a rerun clobbers a hand edit. See
decisions.md #24.
docs/security.md is this project’s own security posture and is distinct
from a top-level SECURITY.md, which GitHub gives special handling
(“Report a vulnerability”) and which covers how to report a vulnerability,
not what the trust model is. A project with both should have each point at
the other so nobody conflates them.
AGENTS.md is the Linux Foundation-stewarded, tool-
agnostic convention, not a Claude-specific one, and is what’s actually
loaded into an agent’s context: terse, operative, no fixed schema. If a
tool needs its own filename (Claude Code reads CLAUDE.md, not
AGENTS.md, as of this writing), that file is a one-line pointer,
@AGENTS.md, not a second copy of the content. See
decisions.md #15 and
templates/AGENTS.md /
templates/CLAUDE.md.
docs/README.md is an index of the above. A directory listing is not
navigation.
What a README opens with
Section titled “What a README opens with”Before any of the disclosures below, a README opens with what the project actually is, in a form a stranger can use without reading the code:
- Name and a one-line description. What it’s called and what it does, in one sentence.
- Function. A short paragraph on what it actually does, mechanically: what it takes as input, what it produces, what it’s for.
- Use case(s). At least one concrete scenario where someone would reach for this instead of something else. If none comes to mind easily, that’s worth noticing before writing the rest of the README.
README order
Section titled “README order”After that opening, every README runs in the same order, so a reader who has seen one knows where to look in the next:
- What it does, then Use cases
- Getting started (install, first run)
- Usage
- Configuration
- How it works (architecture), which may instead come right after Use cases when the shape is what a newcomer needs first, as in Consigliere’s README
- Documentation, the index of everything else
- Development (or Contributing)
- Licence
Usage, Configuration and How it works are dropped when they have nothing to add; the others are not. The README also carries one picture under the status block, described in visual-style.md, and its relative links must point at something. The audit warns on a missing required section (What it does, Getting started, Licence), an out-of-order heading, no picture, and a broken relative link. It matches headings by meaning, not exact wording (“Install” counts as Getting started), so the names above are a guide, not a straitjacket.
Project-specific sections are allowed. The check orders only the sections named above and ignores any other heading, so a project may add its own, most naturally between How it works and Documentation. A heading that reads like a standard one (“Design”, “Options”) is treated as that one.
The order applies to the repository’s root README, which is the only one
the audit reads. A module README (a role, a component, a package) is not
held to it and needs no status blockquote of its own, since the root’s
applies. It opens with its title, one sentence, and then the contract block
from templates/docs/ownership.md. Nothing
checks module READMEs.
A short, real file beats a recorded skip. The conditional files above may be skipped when there is nothing to say. Where a small project has a few true paragraphs to put in one, write them.
Forks of other people’s projects are exempt. A fork kept to carry a fix
is not ours to restyle. Mark it with
<!-- conformit: exempt fork of OWNER/REPO --> in its README, or leave it
out of the audit registry. See decisions.md #28.
Deprecated or moved repositories get a different, much shorter README:
the title, Status: Deprecated, one line on where it went, and a link to
the replacement. No install steps, no old content; the history is in git.
The template is
templates/docs/README-deprecated.md,
and the audit accepts it without holding it to the order above. It does
warn if the notice links nowhere.
Private repositories. A repository that is not public is not licensed
for reuse, and its README says so in the Licence section (“Private, not
licensed for reuse”) instead of leaving it blank or inventing a licence. It
still carries a LICENSE file stating the same, so the file set is the same
for every repo. A repository whose purpose is to be copied, such as a
template, is the exception: it needs a real licence, chosen by the
maintainer, because without one nobody may legally reuse it. Consigliere’s
fleet template was found without a LICENSE for this reason; picking one is
the maintainer’s decision and is not made here.
Status, warranty and LLM use go in one blockquote directly under the title, as in the template. Earlier guidance and the first template put them in separate paragraphs; the Consigliere and Novak READMEs had already settled on a single blockquote, which reads better, so that is the standard.
A template for this whole structure, including the disclosures below,
lives at templates/docs/README.md; copy
it rather than reconstructing the shape from this description each time.
Status, warranty, and LLM disclosure
Section titled “Status, warranty, and LLM disclosure”Every README.md states three things near the top, before the rest of
the content, not buried in a footer.
Project status
Section titled “Project status”A status line, one of:
- In testing (the default; see below)
- Stable
- Deprecated, with a pointer to the replacement if there is one
A project defaults to “in testing” from its first commit. It stays there until the maintainer deliberately marks it otherwise. This exists because “stable” is the claim that needs justifying, not the other way around. A reader who finds no status line should assume “in testing” rather than assume the author forgot to write one, but every conforming project writes one anyway so nobody has to guess.
Moving a project to “stable” is itself worth a line in docs/decisions.md:
what made it stable, and what would knock it back to testing.
No warranty
Section titled “No warranty”A short, plain disclaimer that the project comes with no warranty or
guarantee of fitness for any purpose. This isn’t legal advice and isn’t a
substitute for a real licence’s own warranty language (MIT and most
open-source licences already include one, in LICENSE); it’s a plain-
language line in the README itself, where a reader actually looks, rather
than something that only exists in a licence file most people don’t open:
This project comes with no warranty or guarantee of fitness for any purpose. Use it at your own risk.
Pairs naturally with the status line: a project explicitly “in testing” disclaiming warranty is a coherent, honest pair of statements; a project claiming “stable” while also disclaiming all warranty is a much stranger thing to read, and is itself a signal something’s off.
LLM use
Section titled “LLM use”State plainly whether an LLM was used to build the project, maintain it, or both, and roughly how. A short paragraph is enough:
This project is built and maintained with substantial AI assistance (Claude Code). Architectural decisions and reviews are by a human; generated code is reviewed before merge.
The point is that a reader deciding whether to trust or adopt the code should not have to guess how it was produced. This is a repo-level disclosure, separate from the per-commit trailer described in commit-and-history.md: the commit trailer says who wrote a given change, and this says how the project as a whole is built.
What goes outside docs/
Section titled “What goes outside docs/”Content the system consumes at runtime is not documentation about the
system, and does not live in docs/. novak separates prompts/
(personas the software loads) and registry/ (declarative input a
reconciler applies) on this basis: data, not prose.
The test is simple. Does something read this file while running? Then it isn’t documentation.
chats/ is the other kind of exclusion: not data the system reads, but
a record no one but the project’s own contributors should read, and
never through git. See
security-posture.md rule 1 and
decisions.md #20.
Session logs (chats/)
Section titled “Session logs (chats/)”A continuous, human-readable record of AI-assisted work on the project, one file per session:
chats/{tool}/YYYY-MM-DD-{project}-{shortened-topic}.md{tool} is the coding tool (claude, opencode, codex, whichever
was actually used; a project using more than one tool gets more than
one subdirectory, not a merged one). {project} and {shortened-topic}
are short, filesystem-safe slugs. Markdown, not the tool’s own raw
transcript format (JSONL, or whatever else): the point is something a
human, or a different tool’s next session, can open and read directly,
not a re-export of what the tool already stores for itself elsewhere.
What it’s for: continuity across sessions and across tools. A new
session, possibly in a different tool than the last one, can read what
was actually discussed and decided without re-deriving it, the same
argument AGENTS.md makes for not re-inferring
conventions every time. It’s a supplement to docs/decisions.md, not a
replacement: decisions.md is the curated, durable record of what was
chosen and why; chats/ is the fuller, unedited trace of how the
conversation got there, useful when the summary in decisions.md isn’t
enough.
Never committed. Gitignored by default, in every project, no
exceptions carved out per-repo. A session transcript can contain
anything that came up in conversation: pasted output, a stray secret
someone meant to redact and didn’t, a private URL, exactly the class of
content security-posture.md rule 1 already warns
against letting reach anywhere it shouldn’t. The audit checks that a
chats/ directory, if one exists, is actually excluded, not just that
a .gitignore file happens to exist somewhere in the repo; see
decisions.md #20.
Conventions that keep documents honest
Section titled “Conventions that keep documents honest”VERIFY for unchecked claims
Section titled “VERIFY for unchecked claims”A claim believed true but unverified is marked VERIFY inline. It gets
grepped before release. See
licensing-and-provenance.
STATE.md is allowed to be unflattering
Section titled “STATE.md is allowed to be unflattering”It records what is actually true, including the parts that don’t work:
No models are loaded.
/v1/modelsreturns an empty list, so chat will connect and offer nothing until a model is added.
It also carries a section along the lines of “what the previous notes got wrong,” preserved rather than deleted, because the wrong guesses are plausible and someone will make them again.
STATE.md is the one document with an expiry. It says at the top when it
should be deleted, and it gets deleted then, rather than decaying into a
misleading historical record.
Decisions are numbered and referenced by number
Section titled “Decisions are numbered and referenced by number”decisions.md entries are numbered and cited from elsewhere as (#14). The
numbers are stable and never reused. A reversed decision gets a new entry
that supersedes the old one, and the old one stays in place.
Each entry carries what was chosen, what it cost, what was rejected, and what would justify revisiting. An entry can end with a “still open” section. An unresolved question that’s written down is worth more than a resolved one implied.
Dates are absolute
Section titled “Dates are absolute”Write “split out of the rmrg monorepo into its own repo on 2026-08-11,”
not “recently” or “last month.” Relative dates in a document with no visible
edit date go stale within a quarter and nobody can tell.
Changelog entries survive the retelling
Section titled “Changelog entries survive the retelling”If a change is one a user would notice, it needs a changelog entry in the same commit. The developer-facing changelog carries the why and includes reverts and course-corrections; don’t sand those down after the fact.
Where a project has both an in-app changelog and a repository one, update both together, and bump the version marker that tells a returning user something is new.
Write for someone who is not you
Section titled “Write for someone who is not you”The target, borrowed from an existing commit message in this codebase: write the README for people who are not you. Assume the reader has the repo, no context, and no access to the author.
- Write like a technical person explaining something to a colleague, not like marketing copy and not like an AI chat response. See writing-style.md for the specific rules and why they exist.
- Prose, not bullet fragments, wherever a reason is being given. Use tables for lookups and prose for reasoning.
- Bold the one sentence in a long section that actually carries the point. A reader skimming should land on it.
- Link between documents by relative path.
- State the cost of a thing in the same paragraph as its benefit.