Record architecture decisions as ADRs in the repo
This records a process decision: put the rationale beside the code. The trade-off is a small writing and review cost for each significant decision. A useful ADR explains why a wiki or PR comment alone was insufficient.
# ADR: Record architecture decisions as ADRs in the repo
**Status:** Accepted
**Date:** 2026-06-11
## Context
Important technical and process decisions are discussed in PRs, Slack threads, and meetings. Over time the rationale is lost. New engineers and future maintainers have no reliable way to understand why the current state exists.
## Decision
We will write short Architecture Decision Records (ADRs) as Markdown files inside the repository. Files live under docs/adr/ (or adrs/) and follow a consistent lightweight template. Each ADR captures context, the decision, and consequences.
## Consequences
Decisions become part of the permanent, searchable, versioned record. Onboarding is faster. Future refactors can reference prior ADRs instead of rediscovering rationale. The cost per decision is low and the long-term value is high for any team that maintains code over time.
## Alternatives considered
Keep decisions only in wiki pages or Confluence (rejected: pages go stale and live outside the code). Rely on tribal knowledge and PR comments (rejected: impossible to search or audit later). Use a dedicated heavy ADR tool (rejected: adds another system and access friction).