Files
Kamino/docs/adr/AGENTS.md
T
Defame1297 2d338d4764
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 4m37s
Molecule / molecule (pull_request) Successful in 17s
docs(adr): say where the pointer to a later ADR goes
Assisted-by: Claude Code
2026-11-29 17:00:45 +00:00

2.3 KiB

ADR rules

Every rule for the architecture decision records in docs/adr/, in full. Each gives its reason (Why) and how it is held (Held): a control names its check; review means a person other than the author sees the change before it merges; aspirational means nothing checks it.

  • An ADR only for a decision that is hard to reverse, surprising without context, and the result of a real trade-off (all three). Anything else is a rule in the contributor docs or a directory's AGENTS.md, or a commit message. Why: an ADR is read as binding, so one per small choice buries the few that matter. Held: review.
  • Status is accepted or superseded by NNNN, nothing else. A proposal lives in an issue or a pull request and is never committed as "proposed". Why: a committed ADR is either in force or replaced; a draft in the tree reads as a decision. Held: review.
  • When a later ADR changes part of an earlier one, the earlier one stays accepted and as decided, except for one sentence beside that part naming the later ADR and what it changes; the later ADR names the earlier one in its Context. Why: neither status fits a partial change, and a reader of the earlier ADR learns which part no longer holds and where it went. Held: review.
  • An ADR is accepted on the maintainer's approval of its pull request, which sets status accepted. Why: an ADR binds every contributor, so the maintainer decides it. Held: control: the CODEOWNERS entry for docs/adr/, which requires the maintainer's code-owner approval.
  • One screen at most: context, decision and reason first; considered options only when a rejection is not obvious. Why: a decision nobody reads to the end does not guide anyone. Held: review.
  • No infrastructure detail: no hostnames, addresses, runner sizing, account or secret names. Why: this repository is public, and an ADR outlives the infrastructure it would name. Held: review.
  • An accepted risk is an entry in the "Accepted risks" section of SECURITY.md (risk, why accepted, trigger, planned reduction), not an amendment to an ADR; a later decision that accepts a risk adds an entry there. Why: one register shows every risk the repository carries, and an accepted ADR stays as decided. Held: review (SECURITY.md is under CODEOWNERS).