docs: ADR template (#536)

* docs: ADR template

* update
This commit is contained in:
Federico Kunze 2020-09-24 17:36:29 +02:00 committed by GitHub
parent 1339c174d7
commit 39c34900a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<!--
order: false
parent:
order: false
--->
# Architecture Decision Records (ADR)
This is a location to record all high-level architecture decisions in Ethermint.
You can read more about the ADR concept in this blog posts:
- [GitHub - Why Write ADRs](https://github.blog/2020-08-13-why-write-adrs/)
- [Reverb - Documenting architecture decisions, the Reverb way](https://product.reverb.com/documenting-architecture-decisions-the-reverb-way-a3563bb24bd0#.78xhdix6t)
An ADR should provide:
- Context on the relevant goals and the current state
- Proposed changes to achieve the goals
- Summary of pros and cons
- References
- Changelog
Note the distinction between an ADR and a spec. The ADR provides the context, intuition, reasoning, and
justification for a change in architecture, or for the architecture of something
new. The spec is much more compressed and streamlined summary of everything as
it stands today.
If recorded decisions turned out to be lacking, convene a discussion, record the new decisions here, and then modify the code to match.
Note the context/background should be written in the present tense.
Please add a entry below in your Pull Request for an ADR.
## ADR Table of Contents
<!--
Add an entry in the following format:
- [ADR XXX: ADR Title](./adr-XXX-adr-title.md)
-->

View File

@ -0,0 +1,40 @@
# ADR {XXX}: {TITLE}
## Changelog
- {date}: {changelog}
## Status
> A decision may be "proposed" if the project stakeholders haven't agreed with it yet, or "accepted" once it is agreed. If a later ADR changes or reverses a decision, it may be marked as "deprecated" or "superseded" with a reference to its replacement.
> {Deprecated|Proposed|Accepted} {Implemented|Not Implemented}
## Context
> This section describes the forces at play, including technological, political, social, and project local. These forces are probably in tension, and should be called out as such. The language in this section is value-neutral. It is simply describing facts.
> {context body}
## Decision
> This section describes our response to these forces. It is stated in full sentences, with active voice. "We will ..."
> {decision body}
## Consequences
> This section describes the resulting context, after applying the decision. All consequences should be listed here, not just the "positive" ones. A particular decision may have positive, negative, and neutral consequences, but all of them affect the team and project in the future.
### Positive
{positive consequences}
### Negative
{negative consequences}
### Neutral
{neutral consequences}
## References
- {reference link}