How-to guide
How to write an architecture decision record
What belongs in an architecture decision record?
An architecture decision record (ADR) explains one significant choice, the constraints behind it, the alternatives considered and the consequences the team accepts. Keep it with the code so a future engineer can see what would justify revisiting the decision.
Start with the choice someone might question later
Write the decision in a sentence. If it only describes the implementation, explain which credible alternative the team passed over and why it would matter to choose differently.
- Name the design question and its status. Record the operational or user constraint that makes it important.
- Describe the viable options. For each, identify a cost or consequence specific to this system.
- Record the choice, its downside and an observation that would justify reconsideration. Number the record in the repository. Link a superseding record if the decision later changes.
Make an assumption observable
A sentence such as “requests are small” can become stale without anyone noticing. Give the reader a way to test it. A size distribution, a compatibility check or a recovery exercise can show when the original decision stops fitting.
Worked example
Decide how to generate a customer statement
A team chooses to generate a statement during the request because today's statements cover a single month and fit within its response-time budget. A background job would need a status screen and retry handling. The ADR records long reporting periods as a reason to revisit the choice. The PR adds a check using the largest supported month and documents which timing data to inspect.
Adapted by Cue April from The Engineering Handbook v1.0.0 by Tenhaw (© 2026 Tenhaw LTD). The examples and pull request checks are Cue April adaptations. Tenhaw on architecture decision records · CC BY 4.0
Try it on your pull request
On your own PR, take one assumption from the design decision and identify a check that would fail if it stopped being true.
Try Cue April on your repositoryCreate an account, connect your repository and review the test plan.