| 1 | # 1. Adopt ADRs (Architectural decision records) |
| 2 | |
| 3 | Date: 2024-01-29 |
| 4 | |
| 5 | ## Status |
| 6 | |
| 7 | Accepted. |
| 8 | |
| 9 | Options: |
| 10 | - Proposed - If a decision is still pending acceptance. |
| 11 | - Accepted - If a decision has been accepted by the maintaining team. |
| 12 | - Deprecated - If a decision is no longer relevant. |
| 13 | - Superseded - If a decision has been replaced with a newer one. Should include |
| 14 | link to the newer ADR. |
| 15 | |
| 16 | ## Context |
| 17 | |
| 18 | As the code and teams maintaining this repository change over time, the |
| 19 | knowledge of why certain decisions were made in the past may be lost or poorly |
| 20 | understood. In order to help future maintainers of this repository (as well as |
| 21 | our future selves) make sense of this code, we need to keep records of any |
| 22 | significant, atypical or otherwise notable decisions. |
| 23 | |
| 24 | Since architectural decisions are made gradually, these records should be easily |
| 25 | editable and added incrementally as changes arise. |
| 26 | |
| 27 | ## Decision |
| 28 | |
| 29 | We will adopt architecture decision records. This file serves as a template for |
| 30 | ADRs. ADRs will be numbered markdown files placed in the /adr directory. |
| 31 | The format will follow the Michael Nygard ARD style as described on the |
| 32 | following web page: |
| 33 | |
| 34 | https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions.html |
| 35 | |
| 36 | More guidance on how to write ADRS: |
| 37 | https://adr.github.io/ |
| 38 | |
| 39 | ## Consequences |
| 40 | |
| 41 | When any important, atypical or otherwise notable decision is made within this |
| 42 | codebase, an ADR should be created and placed inside this directory. It is up to |
| 43 | the person with the most context to create the ADR with regards to that decision. |
| 44 | The ADR should be brief and may link to Phabricator or other places that hold |
| 45 | more context around the decision. |
| 46 | |
| 47 | ADRs may also be used to propose changes by framing the ADR as a proposal and |
| 48 | marking the status as "proposed". If there is agreement to adopt the ADR, it's |
| 49 | status should be change to "accepted". |
| 50 | |
| 51 | ADRs can also be marked "deprecated" or "superseded". |
| 52 | |
| 53 |