MADR Decision Record Template
MADR 4 decision record: context, decision drivers, considered options, outcome, consequences, confirmation, pros and cons
How to use: Use it for significant decisions where several options must be compared against explicit drivers. Fill the problem statement, drivers and options before the outcome. The main pitfall is writing the outcome first and then decorating it with one-sided pros and cons.
Preview
[MADR-NNNN]: [Short title, representative of the solved problem and the chosen solution]
Architecture decision record in the MADR 4 format (Markdown Architectural Decision Records, version 4.0.0, released September 2024). MADR adds decision drivers and a structured comparison of options to the plain ADR. Adapted from MADR (https://adr.github.io/madr/), which is dual-licensed MIT OR CC0-1.0.
| Field | Value |
|---|---|
| Status | [proposed / rejected / accepted / deprecated / superseded by MADR-NNNN] |
| Date | YYYY-MM-DD (when the decision was last updated) |
| Decision-makers | [@name, @name] (everyone involved in making the decision) |
| Consulted | [@name] (subject-matter experts asked for input; two-way communication) |
| Informed | [@team] (kept up to date on progress; one-way communication) |
| Tags | [storage, api, security] |
Equivalent YAML front matter, if your tooling reads it:
---
status: proposed
date: YYYY-MM-DD
decision-makers: [name, name]
consulted: [name]
informed: [team]
---
Context and Problem Statement
[Describe the context and the problem in two to three sentences. You may phrase the problem as a question and link to the issue or discussion.]
Example: The orders service stores data in a self-managed PostgreSQL 12 cluster that reaches end of life in November. The team spends about two days a month on database maintenance, and backups are nightly dumps with a 24 hour recovery point. Where should order data live from next quarter so that we meet a 5 minute recovery point without adding operations work?
Decision Drivers
The decision is judged against these drivers:
- [Driver 1, for example a force or facing concern]
- [Driver 2]
Example:
- DD-1: Recovery point objective of 5 minutes or better.
- DD-2: No more than 2 hours per month of database operations for the team.
- DD-3: Compatibility with existing SQL and ORM code; no application rewrite.
- DD-4: Monthly cost within EUR 1,500 for current volume (1.8 TB, 950 writes per second at peak).
- DD-5: Data must stay in EU regions.
Considered Options
- [Title of option 1]
- [Title of option 2]
- [Title of option 3]
Example:
- Managed PostgreSQL 16 from our cloud provider
- Self-managed PostgreSQL 16 on Kubernetes with an operator
- Distributed SQL database (PostgreSQL-compatible)
- Stay on PostgreSQL 12 with extended support
Decision Outcome
Chosen option: "[title of option 1]", because [justification, for example: only option that meets the k.o. criterion decision driver, resolves force X, or comes out best in the comparison below].
Example: Chosen option: "Managed PostgreSQL 16 from our cloud provider", because it is the only option that meets DD-1 and DD-2 together without an application rewrite (DD-3), at an estimated EUR 1,100 per month (DD-4) in an EU region (DD-5).
Consequences
- Good, because [positive consequence, for example improvement of one or more desired qualities].
- Bad, because [negative consequence, for example compromising one or more desired qualities].
Example:
- Good, because point-in-time recovery gives a 5 minute recovery point and automated minor upgrades.
- Good, because the team stops patching database hosts.
- Bad, because we depend on the provider's maintenance windows and extension list.
- Bad, because superuser access is not available, so two maintenance scripts must be rewritten.
Confirmation
[Describe how the implementation of and compliance with this decision is confirmed, for example by a design or code review, an automated test or a monitoring check.]
Example: The migration plan MIG-ORDERS-001 includes a restore drill proving a 5 minute recovery point. A monthly automated check verifies that point-in-time recovery is enabled and that the instance region is in the EU. The decision is reviewed after 6 months of operation against DD-2 and DD-4.
Pros and Cons of the Options
Each option is assessed against the decision drivers.
[Title of option 1]
[Example | description | pointer to more information]
- Good, because [argument a]
- Good, because [argument b]
- Neutral, because [argument c]
- Bad, because [argument d]
[Title of option 2]
[Example | description | pointer to more information]
- Good, because [argument a]
- Neutral, because [argument b]
- Bad, because [argument c]
[Title of option 3]
[Example | description | pointer to more information]
- Good, because [argument a]
- Bad, because [argument b]
Example of a completed option:
Self-managed PostgreSQL 16 on Kubernetes with an operator
- Good, because full control over extensions and configuration.
- Good, because no per-instance licence or managed-service premium.
- Neutral, because the team already runs Kubernetes for stateless services.
- Bad, because it keeps database operations with the team, failing DD-2.
- Bad, because stateful workloads on the shared cluster need new on-call skills.
An optional summary matrix helps when there are many drivers:
| Driver | [Option 1] | [Option 2] | [Option 3] | [Option 4] |
|---|---|---|---|---|
| Example: DD-1 RPO 5 min | Meets | Meets | Meets | Fails |
| Example: DD-2 Ops under 2 h per month | Meets | Fails | Meets | Fails |
| Example: DD-3 No rewrite | Meets | Meets | Partly | Meets |
| Example: DD-4 Cost | EUR 1,100 | EUR 700 | EUR 2,600 | EUR 900 |
More Information
[Additional evidence or confidence for the decision outcome, how the team agreed on it, links to other decisions and resources, and conditions under which the decision should be revisited.]
Example:
- Benchmark of production query replay: [link].
- Cost estimate spreadsheet: [link].
- Agreed in the architecture review on YYYY-MM-DD; minutes: [link].
- Related: [MADR-0012 Use the cloud provider's secrets manager]. Supersedes: [none].
- Revisit if write volume exceeds 5,000 writes per second or if the provider changes EU region availability.
Standard and licence note
Structure follows MADR 4.0.0 (Markdown Architectural Decision Records, https://adr.github.io/madr/): metadata (status, date, decision-makers, consulted, informed), Context and Problem Statement, Decision Drivers, Considered Options, Decision Outcome with Consequences and Confirmation, Pros and Cons of the Options, and More Information. MADR is dual-licensed under MIT and CC0-1.0 (SPDX: MIT OR CC0-1.0); this adaptation is used under the MIT option, with attribution to the MADR project. Guidance text and examples are original to this collection. Template licence: MIT.
Related templates
Architecture Decision Record (ADR) Template
Lightweight Nygard-style ADR: status, context, decision, consequences, alternatives, related decisions, lifecycle and log
Software & EngineeringAGENTS.md Template for AI Coding Agents
Repository instructions for AI coding agents: setup, build and test commands, conventions, architecture map, PR and security rules
Software & EngineeringAI Coding Assistant Policy Template
Policy for AI coding assistants and agents: autonomy levels, tool register, secrets, sandboxing, review of generated code, provenance, OWASP ASI and SSDF mapping