How to supersede or deprecate an architecture decision¶
We don't rewrite accepted architecture decision records (ADRs). When a decision changes, we record a new one and mark the old one as superseded. When a decision stops applying altogether, we mark it as deprecated. This guide covers both, and the small edits that are allowed on an accepted ADR. The explanation of ADRs says why the log works this way.
Prerequisites¶
- The number of the ADR you want to replace or retire, for example ADR-0003.
- Agreement from the people or body that made the original decision, or that would make it today.
Supersede a decision¶
- Write a new ADR by following Propose an architecture decision. In its context section, link to the ADR it replaces and say what has changed since.
- Leave the old ADR alone while the proposal is open. Its decision still stands until the new one is accepted.
-
Once the new ADR is approved and numbered, change the old ADR's status in the same merge request:
status: "superseded by ADR-0007" -
Under "More Information" in the old ADR, add a link to the new one. Don't change anything else in it.
- Merge both changes together, so the log is never left with two decisions that both claim to be current.
Deprecate a decision¶
Deprecate an ADR when its decision no longer applies and nothing replaces it. A typical case is a decision about a service that has been decommissioned.
- On a branch, set the ADR's status to
"deprecated". - Under "More Information", add a sentence saying why and when it stopped applying.
- Open a merge request and ask the decision makers to approve it.
Correct an accepted ADR¶
Typos, broken links and formatting can be fixed through an ordinary merge request at any time.
To correct a wrong assumption or inaccuracy in the context, decision drivers or considered options, edit them in place on a branch. Open a merge request and ask the decision makers to approve it. This only works when the decision still stands after the correction. In the decision itself, keep to typos and small fixes that leave its meaning intact.
Anything that changes what was decided needs a new ADR that supersedes the old one.
See also¶
- Architecture decision record conventions lists what can change after acceptance and who approves it.