Skip to content

Module 02 · Lesson 2.4

Architecture Decision Records

35 minUpdated 19 Nov 2026Part of Architecture Decisions · New Project Creation
On this page
  1. What you will learn
  2. What an architecture decision record is, and its format
  3. When to write an ADR, and when not to
  4. Worked scenario: Tidewell's three ADRs
  5. Step-by-step workflow: write an ADR
  6. Using an AI assistant to draft decision records
  7. Conclusion and your next step
  8. Reusable prompt
  9. Expected output
  10. Common errors and fixes
  11. Validation checklist
  12. Hands-on exercise
  13. Knowledge check
  14. Frequently asked questions
  15. References

A ship's captain keeps a log. When something goes wrong, the crew can read what was decided and why. A software project needs the same thing, because six months from now nobody remembers why the team picked one design over another.

In this lesson you learn to write an architecture decision record, or ADR: a short note that captures one decision. You write the three ADRs for Tidewell Physiotherapy, learn when a decision deserves a record and when it does not, and see how to change a decision without erasing history. You also use an assistant to draft, while you keep the facts honest.

What you will learn

  • Explain what an architecture decision record is and why a short, dated record beats a long design document.
  • Write an ADR with the eight standard fields, including options considered and a revisit condition.
  • Decide whether a choice needs a record, using a simple test.
  • Supersede an old decision by adding a new record, and use an assistant to draft a record without letting it invent facts.

Before you start

What an architecture decision record is, and its format

An architecture decision record (ADR) is a short document about one significant decision. It says what the situation was, what options were considered, what was chosen and what follows from it. Each record is one page at most, and it is dated.

The records are kept in the project's repository, in a folder such as docs/adr/. That keeps them next to the code, under version control, and visible to every new person and every assistant. A repository is the shared folder where a project's files and their history live.

FieldWhat it holdsPlain question it answers
TitleA short phrase that names the decision.What was decided?
StatusProposed, Accepted, Rejected or Superseded.Is it in force today?
DateThe day the status last changed.When?
ContextThe situation and the drivers that forced a choice.Why did we need to decide?
Options consideredTwo or three real options, including those rejected.What else could we have done?
DecisionThe choice, in one or two clear sentences.What did we pick?
ConsequencesThe good and bad results, including what you give up.What follows from it?
Revisit whenThe event or fact that would reopen the decision.When should we look again?
The eight fields used in this program. Other templates use similar fields with different names.

The format is a convention, not a law. Teams use many variants. What matters is that each record has context, options, a decision and consequences, so that a stranger can follow the reasoning.

Superseded
Replaced by a newer decision. The old record stays, marked as superseded, like a page in a ledger that has been closed and not torn out.
Consequence
A result of the decision, good or bad. Honest records list both.
Revisit condition
A fact or event that would make the team look at the decision again.

When to write an ADR, and when not to

Do not write a record for every choice. You would drown in paper. Write one when a decision is costly to reverse, affects several parts of the system, or is likely to be questioned later.

  • Write one for the system shape, the database, how data is held, the way users sign in, or a rule that cuts across the whole system.
  • Write one when you rejected a popular option for a reason that is not obvious.
  • Skip it for choices easily changed in an afternoon, such as a folder name or a button colour.
  • Skip it when a standard or a rule already decides the matter.

Worked scenario: Tidewell's three ADRs

Tidewell has made three significant decisions so far. Each is recorded in docs/adr/ with the date 2026-11-19. Here they are in full. Notice that each one cites the drivers (D1 to D6) and requirement IDs from earlier lessons.

Markdowndocs/adr/001-one-deployable-web-application.md
# ADR-001: One deployable web application for pages and API

Status: Accepted
Date: 2026-11-19

## Context
Patients and staff must share one diary (D3), and bookings must stay
correct when two people act at once (D1). One developer with an
assistant builds it, on a small budget, and a local contractor
maintains it later (D6).

## Options considered
A. One deployable web application serving pages and a REST API (Next.js).
B. A separate frontend app and a separate API service.
C. Configure an off-the-shelf booking service.

## Decision
Option A.

## Consequences
- One thing to build, test, deploy and understand.
- Pages and API release together, so they cannot drift apart.
- Option C was close but rejected: the two products the practice
  manager tried could not offer freed slots to the waiting list (FR-03),
  and neither let the owner choose where data is held (CON-01).
- Option B adds a second program to run, for no current need.

## Revisit when
A native app or a partner needs the API at a scale the single
application cannot serve.
Markdowndocs/adr/002-postgresql-system-of-record.md
# ADR-002: PostgreSQL as the system of record, with a database rule against double booking

Status: Accepted
Date: 2026-11-19

## Context
Two people changing the same slot must not produce two bookings
(NFR-01, D1). Staff and patients share one diary (D3). Every change
is recorded (D4). Patient data is held under the clinic's duties, and
the owner chooses the hosting region (D5, CON-01).

## Options considered
A. PostgreSQL, with the rule enforced by the database itself.
B. A spreadsheet or file store, with checks in application code only.
C. A document database, with checks in application code only.

## Decision
Option A. The database holds all bookings and their change history.
A rule inside the database lets only one live booking exist for a slot,
so a mistake in application code cannot double-book.

## Consequences
- Double booking is blocked at the lowest level, even if other code is wrong.
- We must run, back up and update a database server.
- The owner can choose the hosting region.
- Changes to the tables are made through numbered migration files.

## Revisit when
The clinic grows to several sites that need separate databases, or the
owner requires a hosting region we cannot obtain.
Markdowndocs/adr/003-mobile-friendly-web-pages.md
# ADR-003: Mobile-friendly web pages instead of a native app

Status: Accepted
Date: 2026-11-19

## Context
Patients use phones (D2, NFR-02). The budget is small and there is one
developer (D6). Payments and offline use are out of scope.

## Options considered
A. Web pages that work on a phone screen, opened in the browser.
B. A native app for each phone system, installed from an app store.
C. Web pages first, and a native app later if needed.

## Decision
Option A. Every step must work at 360 px wide without sideways scrolling.

## Consequences
- One codebase, nothing for patients to install, no app store to manage.
- Some phone features are harder or impossible to use from a web page.
- Option C stays open, because the API (ADR-001) is separate from the pages.

## Revisit when
Patients ask for an app, or a needed feature cannot be built as a web page.

Read ADR-001 again. In under a minute you know the problem, the three options, the choice, the cost and the trigger for a rethink. That is the point. A new contractor does not need the history of every meeting.

Changing a decision: supersede, do not edit

Suppose in two years Tidewell needs a native app, and the single application cannot serve it. Do not rewrite ADR-001. Rewriting history makes the record untrustworthy. Instead, write a new record, and mark the old one as superseded.

Markdown
docs/adr/001-one-deployable-web-application.md
  Status: Superseded by ADR-007

docs/adr/007-separate-api-for-native-app.md
  # ADR-007: Separate API service for the native app
  Status: Accepted
  Supersedes: ADR-001
  Context: ... (new situation and new drivers)

An example of the change, using a made-up future record. Only the Status line of the old record changes.

The old record stays, with its date and its reasons. A reader sees both what was decided then and why it changed.

Step-by-step workflow: write an ADR

  1. Step 1: Pick one decision

    Use the quick test. One record covers one decision. If you find two decisions, write two records.

    What you should see: A single decision with a working title.

  2. Step 2: Write the context from your drivers

    Name the drivers and requirement IDs that forced the choice. Keep to facts. Do not argue for the answer yet.

    What you should see: A context section a stranger can follow.

  3. Step 3: List real options, including the rejected ones

    Write two or three options. Include the one you reject most firmly, because a later reader will ask about it.

    What you should see: An options list with at least two honest entries.

  4. Step 4: State the decision and its consequences

    Write the choice in one or two sentences. Then list good and bad results, including what you give up.

    What you should see: A decision with its costs written down.

  5. Step 5: Add the revisit condition

    Write the event or fact that would reopen it. If you cannot name one, say so.

    What you should see: A line that tells a future reader when to look again.

  6. Step 6: Save, date and confirm

    Save the file in docs/adr/, number it, set the status and date, and ask the owner to confirm it. Change the status to Accepted only then.

    What you should see: A numbered, dated record in the repository.

The life of a decision record
  1. Proposed

    Drafted, not yet agreed

  2. Reviewed

    Owner and team read it

  3. Accepted

    In force

  4. Followed

    Code and diagrams match

  5. Revisit trigger

    A listed event happens

  6. Superseded

    New record replaces it

Records are added, not rewritten. Old ones stay as history.

Using an AI assistant to draft decision records

Assistants are good at turning your notes into a tidy record. They are also good at filling gaps with plausible facts. The record is a statement of what your team decided, so every fact in it must come from you or from a source you checked.

TaskAssistant's partYour part
Draft the recordTurns your notes into the eight fields.Supplies the facts, and checks every line against your notes.
Spot missing consequencesLists costs you did not mention.Decides which are real, and checks them against the drivers.
Check the wordingFinds vague phrases and contradictions.Fixes them, without changing the decision.
Spot a stale recordCompares a record with the current code, if you give it both.Decides whether to supersede, and writes the new record.

Conclusion and your next step

An ADR is a short, dated record of one significant decision, with its context, options, choice, consequences and revisit condition. Write one when a choice is costly to reverse. When a decision changes, add a new record and mark the old one superseded.

Your next step: write your first three ADRs for your capstone project, then continue to Diagramming the Design. There you draw pictures that match what the records say.

For a ready-made helper, try the Architecture Decision Record Draft prompt. For a longer read, see Writing Architecture Decision Records (ADRs) with AI.

Reusable prompt

ADR drafter

Turns your decision notes into a draft ADR in the eight-field format, without inventing options, reasons or facts.

You are helping me draft an architecture decision record. Use only the facts I give you. Do not add options, reasons, product facts, prices or numbers that are not in my notes. If something is missing, write "Missing: ..." in the place where it belongs.

Format: Title, Status, Date, Context, Options considered, Decision, Consequences, Revisit when. Use Status: Proposed and Date: 2026-11-19.

My notes (fictional clinic: Tidewell Physiotherapy):
- Decision: mobile-friendly web pages instead of a native app. Every step must work at 360 px wide without sideways scrolling.
- Drivers: patients use phones (NFR-02, D2); one developer, small budget, local contractor maintains it later (D6).
- Options: A web pages in the browser; B native app from an app store; C web pages first, native app later if needed.
- Good: one codebase, nothing to install, no app store to manage.
- Bad: some phone features are harder or impossible from a web page.
- Revisit when: patients ask for an app, or a needed feature cannot be built as a web page.

Tasks:
1. Write the record.
2. List any statement in the record that is not directly in my notes.
3. List questions a reviewer would ask that the record does not answer.
Show the reusable template

Replace each {{placeholder}} with your own details.

You are helping me draft an architecture decision record. Use only the facts I give you. Do not add options, reasons, product facts, prices or numbers that are not in my notes. If something is missing, write "Missing: ..." in the place where it belongs.

Format: Title, Status, Date, Context, Options considered, Decision, Consequences, Revisit when. Use Status: Proposed and Date: {{date}}.

My notes ({{organisation}}):
- Decision: {{decision}}
- Drivers: {{drivers_with_ids}}
- Options: {{options}}
- Good: {{benefits}}
- Bad: {{costs}}
- Revisit when: {{revisit_condition}}

Tasks:
1. Write the record.
2. List any statement in the record that is not directly in my notes.
3. List questions a reviewer would ask that the record does not answer.

Expected output and limitations

A draft record in the eight-field format using only your facts, then a list of any lines not found in your notes and a list of unanswered reviewer questions.

Sample responseIllustrative — your output will differ
# ADR-003: Mobile-friendly web pages instead of a native app
Status: Proposed
Date: 2026-11-19

## Context
Patients use phones (NFR-02, D2). One developer, small budget, a local contractor maintains it later (D6).

## Options considered
A. Web pages in the browser. B. Native app from an app store. C. Web pages first, native app later if needed.

## Decision
Option A. Every step works at 360 px wide without sideways scrolling.

## Consequences
Good: one codebase, nothing to install, no app store. Bad: some phone features are harder or impossible from a web page.

## Revisit when
Patients ask for an app, or a needed feature cannot be built as a web page.

Not in your notes: none.
Reviewer questions: What happens to patients who cannot use a web page? Who decides when "patients ask for an app" is true?

Limitations to keep in mind

  • The assistant may add a reason or option anyway. Always compare the draft with your notes, line by line.
  • It cannot know whether the decision was actually agreed. Only a person with the authority changes the status to Accepted.
  • A tidy record can feel more certain than the decision was. Keep the consequences honest, including the costs.

Common errors and how to fix them

A record lists only the chosen option.

Why it happens: The rejected options felt like wasted effort.

Fix: List at least one rejected option and say why. That is what a later reader will look for.

An old record is edited when the decision changes.

Why it happens: Editing felt tidier than adding a new file.

Fix: Mark the old record as superseded and write a new one. History stays readable.

The record and the actual code have drifted apart.

Why it happens: Nobody checked the records when the design changed.

Fix: Make 'update or supersede the affected ADR' part of the definition of done for design changes.

Validation checklist

Tick each item once you have confirmed it.

Hands-on exercise

Two ADRs for Ferngate Cycle Repairs

Write two decision records for Ferngate's parts and stock tool: one for the system shape and one for the data store. Then write the status change and the opening of a new record for one situation that would supersede the first.

You will need

  • Your Ferngate drivers, system shape and technology choices from the earlier lessons.
  • Note: the workshop connection is unreliable, and mechanics share one tablet.
  • Note: the owner reorders every Friday by counting shelves, and the low-stock threshold is 'to be agreed'.

Acceptance criteria

Your work is done when every one of these is true.

Hints (2)
  • Ask what a reader would want to know about the option you did not pick.
  • A growing workshop, such as a second site, is one reason a decision might be superseded.
Show a model answer

A strong answer keeps each record to one decision, with context that quotes drivers such as the unreliable connection and the shared tablet. It lists real options, such as one web application and a ready-made stock tool, and says why one was rejected. It states costs honestly, for example that a database server must be run and backed up. The supersede example leaves the old record's text unchanged except for the status. The low-stock threshold stays as 'to be agreed', with the owner named, because nobody has decided it.

Knowledge check

Choose an answer, then check it. Nothing is recorded — this is for you.

  1. 1.Why does an ADR list the options that were rejected?
    Show the answer and explanation

    Answer: B. Rejected options and their reasons let a future team check whether those reasons still hold. Length is tempting to chase but adds nothing, and there is no rule of exactly three; two honest options are enough.

  2. 2.Two years on, a decision in ADR-001 no longer fits. What should you do?
    Show the answer and explanation

    Answer: C. The old record shows what was decided and why at the time, and a new record shows what changed. Editing it is tempting because it keeps the folder small, but it rewrites history, so nobody can trust the dates. Deleting it loses the reasoning that explains the code you already have.

  3. 3.An assistant's draft ADR includes an option your team never discussed. What should you do?
    Show the answer and explanation

    Answer: B. A record states what your team did. An invented option makes the record look more thorough and makes it false. Changing the decision to match is worse, because it lets the assistant choose for you.

Frequently asked questions

What is an architecture decision record?

It is a short document that records one significant design decision, with its context, the options considered, the choice made, the results and when to revisit it. Teams keep them in the project repository so the reasons stay with the code.

Where should I store ADRs?

In the project's repository, usually in a folder such as docs/adr, one numbered file per decision. This keeps the records under version control and easy for new people and assistants to find.

How long should an ADR be?

One page is enough, and often half a page. If a record is much longer, it may hold more than one decision. Split it, or move the detail into a separate design note.

Can an AI assistant write my ADRs?

It can draft the record from your notes, which saves time. It must not invent options, reasons or facts, so compare its draft with your notes line by line. Only a person with authority should mark the record as Accepted.

Written by
PromptFable Editorial
Last updated 19 Nov 2026
Review
Reviewed by Waseem Nadir, Technical Reviewer
Last reviewed 27 Nov 2026

References

Primary sources for the technical details in this lesson. Vendor platforms change — check the official page if anything here looks different from what you see.

PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.