Skip to content
Like what we’re building? Star on GitHub

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 of Proposed, 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 its Superseded by line 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 , , and or , 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 an adr/ directory or a URL of this repository through one, with a scheme or www., 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's docs/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), a Superseded … by or Amended … by key 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 (>x too), 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, so ADR-098 alone names no record.

  • Relations are reciprocal. Supersedes pairs with Superseded by, and Amends with Amended 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 Superseded exactly when it carries a Superseded by line. A record that stays in force in part is Amended by the 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.

NumberRecordSubject
002002-desktop-assetserver-proxy.mdDesktop studio hosted via the Wails AssetServer handler
002002-editor-runview-separation.mdSeparating the Run console from the Workflow editor
075075-irref-fallback-for-oversized-cloud-queue-ir.mdIRRef fallback: offloading an oversized compiled IR at cloud dispatch
075075-nexie-roadmap-study-cycle-skill-level.mdNexie v3: the roadmap-study cycle as a skill-level behaviour
076076-pipeline-hard-blockers-and-waiting-deps.mdPipeline hard blockers, waiting_deps, unified launch admission
076076-scoped-config-share-editor.mdScoped config-share editor (self-service, per-field, per-repo)
090090-model-registry-and-operator-model-choice.mdA model registry, and letting the operator choose the model
090090-runtime-operational-settings-db-backed.mdRuntime-configurable operational settings, DB-backed
091091-fallback-skip-route-and-plan-peer-review.mdaction: skip terminal route, when: route gate, cross-model plan phase
091091-ubiquitous-assistant-chat-dock.mdThe assistant is a shell-level dock, not a route
093093-bot-vars-runtime-settings.mdBot-var overrides resolved from the DB before the pod env
093093-model-spec-registry-as-a-leaf-package.mdThe model-spec registry is a leaf package; its prices are a cost tier
094094-shared-subbot-bundles-bot-uri.mdShared subbot bundles: the bot:// dependency URI
094094-trigger-effect-outbox.mdDurable effect outbox for cloud board triggers
098098-connector-catalog.mdThe connector catalog: MCP for agents, deterministic nodes for workflows
098098-dsl-versioning-and-authoring-surface.mdDSL 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.