# Architecture decision records

Short records of decisions that are hard to reverse. One file each, numbered, never deleted.

## When an ADR is needed

| Change | ADR? |
|---|---|
| New datastore, queue or cache | Yes |
| New external service or vendor | Yes |
| New or changed public API contract | Yes |
| New framework or major dependency | Yes |
| Changes to authentication, permissions or data retention | Yes |
| Choosing between two libraries for one feature | Only if it's hard to reverse |
| Refactoring inside one module | No |

Not sure? Write a short one. Five lines beat none.

## How to add one

1. Copy `0000-template.md` to `NNNN-short-title.md` with the next free number.
2. Fill it in as part of the pull request that makes the change.
3. Add it to the index below.
4. If it replaces an earlier record, change that record's status to "Superseded by NNNN".

## Index

| No. | Title | Status | Date |
|---|---|---|---|
| [0001](0001-record-architecture-decisions.md) | Record architecture decisions in this folder | Accepted | YYYY-MM-DD |
