Architecture decision records
The index of the records is generated: every record's number, title, status and the first sentence of its opening prose line (up to 140 bytes) is a row of the docs and ADR map, which task map:gen writes from each record. This page keeps no index: it holds the rules every record follows.
One decision per file, named NNN-kebab-title.md, where NNN is the next free number. The number is the record's identifier: it is cited from code comments, commit messages, pull requests and other ADRs, and from places this repository cannot reach — a chat thread, a ticket on another forge, someone's notes. That is why a number, once published, is never reassigned and never renumbered: doing so repairs the links inside this tree by silently breaking every citation outside it.
Header grammar
A record's header is everything above its first ## section. The map generator reads it (pkg/repomap/adrheader.go) and refuses a header it cannot read, naming the file and the line: task map:gen and task map:check fail until the header is fixed.
One status line, exactly once:
markdown- **Status**: <Word><Word>is one ofProposed,Accepted,Deprecated,Superseded, written so:Proposed— under review: the decision is not taken yet, or a condition the record sets for its own acceptance is unmet.Accepted— the decision is taken and in force; slices the record names as owed may still be open.Deprecated— still in force, and a later record, named in the note, decides its retirement.Superseded— replaced whole by the record itsSuperseded byline names.
A note may follow the word after a non-letter — a date in parentheses, a dash and a sentence — and the next lines may continue it; a status or a relation declared with a colon inside the note (
Accepted — Superseded by: x) is refused. The word follows the colon after one space: none, two, a tab or a no-break space is refused. Any other spelling of a status (Status: accepted,- Status:,**Status:**,_Status_:, a status after blockquote markers, spaced or not, or list markers, stacked or not, a status inside the date sentence) is refused.Relation lines, optional, one key per line, as many lines as needed:
markdown- **Supersedes**: [ADR-NNN](NNN-slug.md) - **Superseded by**: [ADR-NNN](NNN-slug.md) - **Amends**: [ADR-NNN](NNN-slug.md) - **Amended by**: [ADR-NNN](NNN-slug.md)The value opens with links to the records' files, separated by
,,andor, and; a link after one of these separators is read as a target, so a note that follows opens otherwise (—, a parenthesis). An inline link to a record's file anywhere else in the bullet's paragraph — the note or a line continuing the bullet; by file name,./, a path through anadr/directory or a URL of this repository through one, with a scheme orwww., dot segments resolved; markdown, HTML, an autolink or a bare URL — is refused, so a record the line names is a record it checks. Another repository'sdocs/adr/is not this tree's. A link quoted in a code span is text; a backslash-escaped backtick opens no code span, nor does a backtick inside an HTML tag, an autolink or a link destination that opens before it. Reference-style links and a later paragraph of the bullet are not read: targets never go there. Any other spelling of a relation is refused: another key spelling (Superseded-by,superseded_by,AmendedBy), aSuperseded … byorAmended … bykey with words inside it, bare or emphasised (Superseded in part by:,**Superseded in part by**:), the key opening a-or*bullet (- Supersedes: x,- amends the flow), an emphasised key followed by anything but a letter, by a record number or by nothing (*Amends*: x,_Amends_ [x](y),**Supersedes** — [x](y),**Amended by** ADR-9,**Superseded by** → [x](y)), a key and a colon after+, numbered or blockquote markers (>xtoo), stacked or not, or inside a sentence (Date: …. Supersedes: x). Prose that merely opens with a relation's verb — emphasised, quoted or numbered — is not a field and is not read, nor is text a code span quotes or the page's#title (its first#line; a later one is header prose). A relation is keyed on the file name, never on the number: the numbers below are used twice, soADR-098alone names no record.Relations are reciprocal.
Supersedespairs withSuperseded by, andAmendswithAmended by: when one record names another, the other names it back, so a reader on either side finds the link.Superseded means replaced whole. A record's status is
Supersededexactly when it carries aSuperseded byline. A record that stays in force in part isAmended bythe newer one, and keeps its status.
Other header bullets (- **Date**:, - **Authors**:, - **Code**:, - **Relates to**:, …) are free metadata the grammar does not read.
Numbers used twice
Eight numbers were nevertheless taken twice, by decisions written in parallel. They are listed here so an ambiguous ADR-NNN stays resolvable: a reader who follows one of these numbers reaches this table, and picks the subject they meant. TestADRNumberCollisionsAreDeclared keeps the table honest in both directions — a new collision that is not listed fails, and a listed number that no longer collides fails too.
Do not add a row to this table to make a build pass. A new record takes a free number; this table only records what was already published.
| Number | Record | Subject |
|---|---|---|
002 | 002-desktop-assetserver-proxy.md | Desktop studio hosted via the Wails AssetServer handler |
002 | 002-editor-runview-separation.md | Separating the Run console from the Workflow editor |
075 | 075-irref-fallback-for-oversized-cloud-queue-ir.md | IRRef fallback: offloading an oversized compiled IR at cloud dispatch |
075 | 075-nexie-roadmap-study-cycle-skill-level.md | Nexie v3: the roadmap-study cycle as a skill-level behaviour |
076 | 076-pipeline-hard-blockers-and-waiting-deps.md | Pipeline hard blockers, waiting_deps, unified launch admission |
076 | 076-scoped-config-share-editor.md | Scoped config-share editor (self-service, per-field, per-repo) |
090 | 090-model-registry-and-operator-model-choice.md | A model registry, and letting the operator choose the model |
090 | 090-runtime-operational-settings-db-backed.md | Runtime-configurable operational settings, DB-backed |
091 | 091-fallback-skip-route-and-plan-peer-review.md | action: skip terminal route, when: route gate, cross-model plan phase |
091 | 091-ubiquitous-assistant-chat-dock.md | The assistant is a shell-level dock, not a route |
093 | 093-bot-vars-runtime-settings.md | Bot-var overrides resolved from the DB before the pod env |
093 | 093-model-spec-registry-as-a-leaf-package.md | The model-spec registry is a leaf package; its prices are a cost tier |
094 | 094-shared-subbot-bundles-bot-uri.md | Shared subbot bundles: the bot:// dependency URI |
094 | 094-trigger-effect-outbox.md | Durable effect outbox for cloud board triggers |
098 | 098-connector-catalog.md | The connector catalog: MCP for agents, deterministic nodes for workflows |
098 | 098-dsl-versioning-and-authoring-surface.md | DSL versioning, explicit imports, and the authoring surfaces |
Citing one of these: name the file, not the number — docs/adr/098-connector-catalog.md rather than ADR-098.
