Skip to content

Commit 6b93241

Browse files
authored
Merge pull request #21 from Relequestual/introduce-adrs
Add first Architecture Decision Record!
2 parents 8799865 + 4fd66c6 commit 6b93241

File tree

3 files changed

+123
-0
lines changed

3 files changed

+123
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Use Markdown Architectural Decision Records
2+
3+
* Status: accepted
4+
* Deciders: @gregsdennis, @Julian, @jdesrosiers, @karenetheridge
5+
* Date: 2021-06-17
6+
7+
## Context and Problem Statement
8+
9+
We want to record architectural decisions made in this project.
10+
Which format and structure should these records follow?
11+
12+
## Considered Options
13+
14+
* [MADR](https://adr.github.io/madr/) 2.1.2 – The Markdown Architectural Decision Records
15+
* [Michael Nygard's template](http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions) – The first incarnation of the term "ADR"
16+
* [Sustainable Architectural Decisions](https://www.infoq.com/articles/sustainable-architectural-design-decisions) – The Y-Statements
17+
* Log4Brains <https://github.com/thomvaill/log4brains>
18+
* Other templates listed at <https://github.com/joelparkerhenderson/architecture_decision_record>
19+
* Formless – No conventions for file format and structure
20+
21+
## Decision Outcome
22+
23+
Chosen option: "MADR 2.1.2", because
24+
25+
* Implicit assumptions should be made explicit.
26+
Design documentation is important to enable people understanding the decisions later on.
27+
See also [A rational design process: How and why to fake it](https://doi.org/10.1109/TSE.1986.6312940).
28+
* The MADR format is lean and fits our development style.
29+
* The MADR structure is comprehensible and facilitates usage & maintenance.
30+
* Version 2.1.2 is the latest one available when starting to document ADRs.
31+
32+
We agreed to not require the use of any specific tooling.
33+
Using MADR can be done manually by manually copying the template and manually updating the index.md file. Doing both of these manually is arguably easier, and there are not many well maintained tools.
34+
35+
## Links
36+
37+
* Proposal: [GitHub Discussion - We should adopt Architecture Decision Records #15 ](https://github.com/json-schema-org/community/discussions/15)
38+
* Issue: [Set up Architecture Decision Records #20](https://github.com/json-schema-org/community/issues/20)

docs/adr/index.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Architectural Decision Log
2+
3+
This log lists the architectural decisions for JSON Schema Community.
4+
5+
<!-- adrlog -- Regenerate the content by using "adr-log -i". You can install it via "npm install -g adr-log" -->
6+
7+
* [ADR-2021-05-17](2021-05-17-use-markdown-architectural-decision-records.md) - Use Markdown Architectural Decision Records
8+
9+
<!-- adrlogstop -->
10+
11+
For new ADRs, please use [template.md](template.md) as basis.
12+
More information on MADR is available at <https://adr.github.io/madr/>.
13+
General information about architectural decision records is available at <https://adr.github.io/>.

docs/adr/template.md

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# [short title of solved problem and solution]
2+
3+
* Status: [proposed | rejected | accepted | deprecated | … | superseded by [ADR-0005](0005-example.md)] <!-- optional -->
4+
* Deciders: [list everyone involved in the decision] <!-- optional -->
5+
* Date: [YYYY-MM-DD when the decision was last updated] <!-- optional -->
6+
7+
Technical Story: [description | ticket/issue URL] <!-- optional -->
8+
9+
## Context and Problem Statement
10+
11+
[Describe the context and problem statement, e.g., in free form using two to three sentences. You may want to articulate the problem in form of a question.]
12+
13+
## Decision Drivers <!-- optional -->
14+
15+
* [driver 1, e.g., a force, facing concern, …]
16+
* [driver 2, e.g., a force, facing concern, …]
17+
*<!-- numbers of drivers can vary -->
18+
19+
## Considered Options
20+
21+
* [option 1]
22+
* [option 2]
23+
* [option 3]
24+
*<!-- numbers of options can vary -->
25+
26+
## Decision Outcome
27+
28+
Chosen option: "[option 1]", because [justification. e.g., only option, which meets k.o. criterion decision driver | which resolves force force | … | comes out best (see below)].
29+
30+
### Positive Consequences <!-- optional -->
31+
32+
* [e.g., improvement of quality attribute satisfaction, follow-up decisions required, …]
33+
*
34+
35+
### Negative Consequences <!-- optional -->
36+
37+
* [e.g., compromising quality attribute, follow-up decisions required, …]
38+
*
39+
40+
## Pros and Cons of the Options <!-- optional -->
41+
42+
### [option 1]
43+
44+
[example | description | pointer to more information | …] <!-- optional -->
45+
46+
* Good, because [argument a]
47+
* Good, because [argument b]
48+
* Bad, because [argument c]
49+
*<!-- numbers of pros and cons can vary -->
50+
51+
### [option 2]
52+
53+
[example | description | pointer to more information | …] <!-- optional -->
54+
55+
* Good, because [argument a]
56+
* Good, because [argument b]
57+
* Bad, because [argument c]
58+
*<!-- numbers of pros and cons can vary -->
59+
60+
### [option 3]
61+
62+
[example | description | pointer to more information | …] <!-- optional -->
63+
64+
* Good, because [argument a]
65+
* Good, because [argument b]
66+
* Bad, because [argument c]
67+
*<!-- numbers of pros and cons can vary -->
68+
69+
## Links <!-- optional -->
70+
71+
* [Link type] [Link to ADR] <!-- example: Refined by [ADR-0005](0005-example.md) -->
72+
*<!-- numbers of links can vary -->

0 commit comments

Comments
 (0)