Files
Kamino/docs/adr/AGENTS.md
T
Defame1297 f31279f9f3 docs(adr): say how a later ADR that changes part of an earlier one is recorded
Neither `accepted` nor `superseded by NNNN` fits a partial change, so the
earlier ADR stays accepted with one sentence sending its reader on to the
later ADR. ADR 0002's sentence now names the part ADR 0003 changes.

Refs: #453
Assisted-by: Claude Code
2026-11-29 16:59:44 +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.
  • A later ADR that changes part of an earlier one leaves the earlier one accepted and as decided, except for one sentence naming the later ADR and the part 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 is sent on to what no longer holds. 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).