- Category: B. Software Architecture
- English term: Architecture Decision Record (ADR)
- Related: Architectural Decision Numbers (K-numbers) · Source of Truth (System of Record) · Receipt and Definition of Done · Architecture Characteristics (-ilities) · Separation of Concerns (SoC) and Role Boundaries
General Meaning
Proposed by Michael Nygard, an Architecture Decision Record (ADR) captures important architectural choices—such as framework selection, data structures, or communication protocols—together with the context and reasoning behind them.
While source code shows what was built, it does not preserve why it was built that way or which alternatives were considered and rejected. Recording one decision per document allows future developers and autonomous agents to understand the original judgment criteria accurately.
Why It Matters
- Preventing loss of context and rationale: Preserves why a configuration was chosen over time, preventing misguided rollbacks or repeating past mistakes.
- Increasing autonomy for new members and AI agents: Clear historical criteria allow agents to make aligned implementation choices without repeatedly asking the human operator.
- Enabling sound reassessment when assumptions change: When environments or technologies evolve, teams can check which assumptions changed and explicitly update or supersede the decision.
How the Site Factory Uses It
In the Site Factory, operator-approved policies and design changes are appended chronologically to decisions.md as the source of truth. Operational rules are also assigned K-numbers (from K01 upward, where K stands for *Kimari* or rule) and cataloged in ops/rules_index.json alongside rules.md.
AI agents read these records before starting work and proceed autonomously without asking the operator whenever a matching decision exists. When a policy is revised (such as updating fixed model selection in K07 to benchmark-based selection in K100), the old rule is not deleted; instead, its expiration and superseding K-number are explicitly recorded.
Caveats & Operational Rules
- Not an immutable decree: ADRs are meant to be updated when underlying assumptions change; the Site Factory explicitly marks superseded decisions and points to new K-numbers after hardware verification.
- Keep records concise, not encyclopedic: Summarize context, decision, rationale, and consequences in a few paragraphs rather than writing a sprawling specification.
- Do not treat summary indexes as the sole source of truth: A summary ledger alone loses background context, so
ops/rules_index.jsonmust be managed together with the full text indecisions.md.
Related Terms
- Architectural Decision Numbers (K-numbers)
- Source of Truth (System of Record)
- Receipt and Definition of Done
- Architecture Characteristics (-ilities)
- Separation of Concerns (SoC) and Role Boundaries
References
- Book: Mark Richards & Neal Ford, *Fundamentals of Software Architecture*, Chapter 19 (Architecture Decisions)
Verified: 2026-11-08