Skip to content

Record an ADR

Record an ADR, one architecture decision in the Project that owns it, so the reasoning shows beside the Elements it affects.

  • The Elements and Saved Views the decision affects are in the Model. See Add a Service.
  • You know how ADRs are numbered and superseded. See Decisions.

Add <project>/adr/NNNN-slug.md, numbered one past the Project’s last ADR. Set status: proposed and today’s date, and link what it affects in elements and views:

payments/adr/0002-hold-payments-on-a-high-fraud-score.md
---
status: proposed
date: 2026-03-02
decision-makers: [payments]
elements: [fraud-detection, payments-service]
---
# Hold payments on a high fraud score
## Context and Problem Statement
Fraud Detection scores payments after they are initiated, but a payment can
settle before the score arrives.
## Considered Options
- Keep scoring after the fact and claw back
- Hold a payment until it is scored, when its amount is above a threshold
## Decision Outcome
Proposed: hold payments above £1,000 until Fraud Detection has scored them.

The body is yours, under one # title. To start from a template, keep one in the Project’s adr/template.md, or the Workspace’s adr-template.md. Every frontmatter field is in the ADR frontmatter reference.

Skip this step unless the ADR replaces one. List the earlier ADR in supersedes: "0001" in this Project, or "project:0001" in another:

digital/adr/0002-delegate-sign-in-to-the-identity-platform.md
---
status: accepted
date: 2025-07-21
decision-makers: [digital-banking, identity]
consulted: [platform]
elements: [security-component, identity:auth-service]
supersedes: ["0001"]
---
# Delegate sign-in to the Identity Platform
## Context and Problem Statement
The mobile app, the web app and the call center each needed customer sign-in,
and credentials in the API database could not be shared safely.
## Considered Options
- Keep credentials in the API database and expose a sign-in API
- Delegate sign-in to a central OpenID Connect provider
## Decision Outcome
Chosen option: delegate to `identity:auth-service`. The Security Component now
only validates tokens, and the API database keeps sessions, not credentials.

Leave the old ADR’s status as it is. Archidocs marks it superseded once the new one is accepted.

Commit the ADR with any Model changes it brings, and open a pull request. Reviewers discuss the decision there.

Before merging, set status: accepted and the date. If the decision is turned down, set status: rejected and merge it anyway, so the reasoning is kept.

Terminal window
archidocs check
0 errors, 0 warnings

Run archidocs dev and select an Element the ADR links. The Element panel lists the ADR, and opens it in the ADR reader.

Writing superseded by hand is refused:

shop/adr/0001-use-rabbitmq.md · fails check: hand-written-superseded
---
status: superseded
date: 2025-01-10
elements: [api]
---
# Use RabbitMQ for order events
archidocs/shop/adr/0001-use-rabbitmq.md:2:9 error hand-written-superseded `superseded` is derived, never written: give this ADR the status it had, and list it in the new ADR's `supersedes`
1 error, 0 warnings
Rule docs:
hand-written-superseded https://archidocs.dev/docs/reference/rules/hand-written-superseded/

That is hand-written-superseded. Put back status: accepted, and add supersedes: ["0001"] to the new ADR.

check reports duplicate-adr-number when two ADRs in a Project share a number. Renumber yours one past the last.

propose_adr writes a proposed ADR with the next free number, today’s date and the template, ready for the pull request.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.