Skip to content

Commit db834ca

Browse files
committed
Introduce ADR format for RAG decisions
Signed-off-by: Anastas Stoyanovsky <[email protected]>
1 parent d4d1fb9 commit db834ca

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ dictionary.dic
55

66
# python virtualenv
77
venv
8+
9+
# Emacs
10+
*~
11+
\#*\#
12+
.\#*
13+
.projectile
14+
.dir-locals.el

docs/rag/adrs/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Architecture Decision Records
2+
3+
The ADR is a lightweight record format intended to capture individual architecturally important decisions. They are meant to be easy to write - 10 minutes or less. They should be stored in the codebase they affect, go through peer review, and have a commit history.
4+
5+
This simple format, which is described below, has a surprising number of functions:
6+
7+
* **Decision making process**: by going through peer review, it includes the entire team and gives all perspectives a chance to be heard. There is a clear decision making process with a clear lifecycle - once an ADR meets whatever approval criteria the team chooses, it is merged and the decision is done. If new information comes to light that causes the team to reconsider the decision, then that is simply a new ADR.
8+
* **Institutional knowledge and transparency**: Not everyone will comment on every ADR, but the transparency of the mechanism should serve to keep everyone informed and encode tribal knowledge into writing. This also builds resilience - there should ideally never be decision making that is blocked by someone being sick or on vacation. The team should always be able to make significant decisions.
9+
* **Distribute design authority**: As a team becomes familiar and comfortable with the ADR mechanism, every team member has an equal tool to bring design decisions to the team. This encourages autonomy, accountability, and ownership.
10+
* **Onboarding and training material**: A natural consequence of it being easy to write an ADR and getting into the habit of doing so is that new team members can simply read the record of ADRs to onboard.
11+
* **Knowledge sharing**: The peer review phase allows sharing of expertise between team members.
12+
* **Fewer meetings**: As decision making becomes asynchronous and as the team forms its social norms around the process, there should be less time required in meetings.
13+
14+
# When to write an ADR
15+
16+
* A decision is being made that required discussion between two or more people.
17+
* A decision is being made that required significant investigation.
18+
* A decision is being proposed for feedback / discussion.
19+
* A decision is being proposed that affects multiple teams.
20+
21+
# Template
22+
23+
[Here](template.md).
24+
25+
# Related Reading
26+
27+
* [Suggestions for writing good ADRs](https://github.com/joelparkerhenderson/architecture-decision-record?tab=readme-ov-file#suggestions-for-writing-good-adrs)
28+
* [ADRs at RedHat](https://www.redhat.com/architect/architecture-decision-records)
29+
* [ADRs at Amazon](https://docs.aws.amazon.com/prescriptive-guidance/latest/architectural-decision-records/adr-process.html)
30+
* [ADRs at GitHub](https://adr.github.io/)
31+
* [ADRs at Google](https://cloud.google.com/architecture/architecture-decision-records)
32+

docs/rag/adrs/template.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ADR 00x: Succinct title
2+
3+
## Context
4+
5+
_What is the context of this decision? What are the technical, social, and political factors? For example, the decision to use a particular library might be simply because most of the team is familiar with it; that is a social context. A political factor might be influences from other teams or executive decisions_
6+
7+
## Decision
8+
9+
_a single decision statement, written in active voice, stated in a single sentence_
10+
11+
## Status
12+
13+
[Proposed | Accepted | Rejected ]
14+
15+
## Consequences
16+
17+
_A bulleted list and might be the most important section. What are the consequences of this decision? Does it introduce design constraints into a codebase? Does it require further decisions or investigations to be made? Will it require training/onboarding for team members? Does it impact performance? What about cost? Does it impact development processes? What else? As a rule of thumb, there should usually be 4-6 identified consequences_

0 commit comments

Comments
 (0)