Skip to content

docs(adr): introduce ADR system and backfill Phase 0 decisions - #12

Merged
gonzafg2 merged 2 commits into
mainfrom
docs/adr-adoption
May 11, 2026
Merged

gonzafg2 merged 2 commits into
mainfrom
docs/adr-adoption

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

Introduces Architecture Decision Records (ADRs) under docs/adr/ as a complement to the existing RFC process, and backfills the 11 non-obvious Phase 0 decisions as ADR-0001 through ADR-0011. docs/infrastructure.md is refactored to cite the ADRs rather than inline the rationale paragraphs, and GOVERNANCE.md documents the RFC-vs-ADR boundary.

Why

The 11 rationale paragraphs that previously lived in docs/infrastructure.md were already ADR-shaped (decision, context, alternatives, consequences) but embedded in a narrative document. That made individual decisions hard to cite, hard to supersede when the project changes its mind, and impossible to discover except by reading the parent doc end-to-end.

ADRs address that. Each decision now lives in its own file with a permanent number, can be cited with a stable URL, and can be superseded by a later ADR with full historical preservation. The split:

Process Purpose Weight Example
RFC (docs/rfcs/) Propose a substantial design change Heavy, multi-section, comment-period "Adopt ML-KEM-768 + X25519 as default KEX"
ADR (docs/adr/) Record a decision that has been taken Light, single-decision, immutable after accept "We use Python tomllib in CI guards"

The two are explicitly designed to coexist. Accepted RFCs typically land as ADRs that cite them; smaller decisions that do not warrant the RFC process land as ADRs directly.

What's in this PR

Commit 1 (c8b2189 — docs(adr): introduce ADR system and backfill Phase 0 decisions):

  • docs/adr/README.md — process, when ADR vs RFC, lifecycle, numbering
  • docs/adr/0000-template.md — MADR-style template
  • docs/adr/0001-...md through 0011-...md — backfilled Phase 0 decisions
  • GOVERNANCE.md — new "RFCs and ADRs" subsection

Commit 2 (09930f2 — docs(infra): cite ADRs from infrastructure.md, record in CHANGELOG):

  • docs/infrastructure.md — 11 rationale paragraphs replaced by short fact + ADR cross-reference; intro updated; doc shrinks from ~421 to ~382 lines
  • CHANGELOG.md — [Unreleased] -> Changed entry

ADRs backfilled

# Title
0001 DNS host: Cloudflare
0002 Registrar: Namecheap
0003 HSTS preload directive set, list submission deferred
0004 DMARC published as p=none during observation window
0005 Project PGP key expires after two years
0006 Commit signing via SSH (not GPG)
0007 CAA whitelist keeps Cloudflare's auto-injected pool
0008 Branch protection: required signatures, zero approving reviews
0009 Virtual workspace with no member crates during Phase 0
0010 Toolchain pinning: resolver 3, edition 2024, MSRV 1.92
0011 CI workspace-empty guards use Python tomllib

Each ADR has Context, Decision, Consequences (positive/negative/neutral), Alternatives considered, and Links sections per MADR convention.

Verification

Performed locally before pushing:

  • All 13 new ADR files committed; no git add . used (targeted adds only).
  • MANIFIESTO.es.md (pre-existing authorial edit) NOT staged in either commit.
  • Both commits signed (SSH Ed25519) and DCO sign-off present.
  • No gh-leakage patterns (FIF/FTC/FIFTECH/Falabella/gaflemingg) in any new file.
  • No personal home-directory paths in any new file.
  • docs/infrastructure.md refactor preserves all factual claims; only rationale paragraphs were replaced by ADR cross-references.

Risks

  • Discoverability shift: readers used to finding rationale inline in infrastructure.md must now follow links to ADRs. Mitigation: each ADR cross-reference is right where the rationale paragraph used to be, with a clear "Decision rationale: see ADR-NNNN" sentence.
  • Process duplication concern: now there are RFCs and ADRs. Mitigation: the new GOVERNANCE.md subsection plus docs/adr/README.md explicitly document when each applies.

Checklist

  • Commits signed and DCO sign-off present.
  • CHANGELOG.md updated under [Unreleased] → Changed.
  • Cross-references between infrastructure.md and docs/adr/* consistent in both directions.
  • docs/adr/README.md explains process; 0000-template.md is the authoritative template.

gonzafg2 added 2 commits May 11, 2026 01:10
Adds `docs/adr/` with a process README, a MADR-style template, and 11
backfilled Architecture Decision Records covering the Phase 0
operational and infrastructure choices that previously lived as inline
paragraphs in `docs/infrastructure.md`:

  0001  DNS host: Cloudflare
  0002  Registrar: Namecheap
  0003  HSTS preload directive set, list submission deferred
  0004  DMARC published as p=none during observation window
  0005  Project PGP key expires after two years
  0006  Commit signing via SSH (not GPG)
  0007  CAA whitelist keeps Cloudflare's auto-injected pool
  0008  Branch protection: required signatures, zero approving reviews
  0009  Virtual workspace with no member crates during Phase 0
  0010  Toolchain pinning: resolver 3, edition 2024, MSRV 1.92
  0011  CI workspace-empty guards use Python `tomllib`

The ADR system complements (does not replace) the existing RFC process
in `docs/rfcs/`. RFCs propose substantial changes; ADRs record
decisions actually taken, with one decision per file, immutable after
acceptance. An accepted RFC typically lands as one or more ADRs that
cite it; smaller decisions that do not warrant the RFC process land
directly as ADRs.

`GOVERNANCE.md` gains a short subsection ("RFCs and ADRs") describing
the boundary so future contributors know which mechanism to use when.

This commit adds the ADR directory only. The corresponding refactor of
`docs/infrastructure.md` (which now cites these ADRs in place of the
inline rationale paragraphs) lands in the next commit on this branch.

Signed-off-by: Gonzalo Fleming <[email protected]>
Refactors `docs/infrastructure.md` so each non-obvious configuration is
followed by a one-line cross-reference to its Architecture Decision
Record (ADR-0001 through ADR-0011, introduced in the previous commit on
this branch) instead of an inline rationale paragraph.

Effects:

- The document becomes more navigable: a reader looking up *what* is
  configured finds the fact in two or three sentences; a reader
  looking for *why* follows the ADR link and gets one focused
  document with context, alternatives, and consequences.
- Length drops from ~421 to ~382 lines as the eleven rationale
  paragraphs are replaced by terse cross-references.
- Future changes that affect rationale (e.g., switching DNS host)
  produce a new ADR superseding the old one; `infrastructure.md`
  follows by updating the citation, not by editing prose in place.

Also updates `CHANGELOG.md` with a `[Unreleased] -> Changed` entry
recording both the ADR system introduction and the refactor.

No content removed — every rationale claim now lives in its
corresponding ADR. The intro paragraph of `infrastructure.md` is
updated to point readers at `docs/adr/` as the authoritative source
for decision context.

Signed-off-by: Gonzalo Fleming <[email protected]>
Copilot AI review requested due to automatic review settings May 11, 2026 05:11
@gonzafg2
gonzafg2 merged commit 4e4bd8e into main May 11, 2026
8 checks passed
@gonzafg2
gonzafg2 deleted the docs/adr-adoption branch May 11, 2026 05:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces an Architecture Decision Record (ADR) system under docs/adr/ to complement the existing RFC process, backfills Phase 0 decisions as ADR-0001 through ADR-0011, and refactors docs/infrastructure.md to cite those ADRs instead of embedding rationale inline.

Changes:

  • Add ADR process docs (docs/adr/README.md) and a MADR-style template (docs/adr/0000-template.md).
  • Add ADRs 0001–0011 capturing Phase 0 infra/governance/tooling decisions.
  • Update GOVERNANCE.md, docs/infrastructure.md, and CHANGELOG.md to document and reference the new ADR system.

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
GOVERNANCE.md Documents the RFC vs ADR boundary and how they coexist.
docs/infrastructure.md Replaces embedded rationale paragraphs with inline citations to ADRs.
docs/adr/README.md Defines the ADR purpose, lifecycle, numbering, and process.
docs/adr/0000-template.md Provides the authoritative ADR template.
docs/adr/0001-dns-host-cloudflare.md Records the DNS host decision and rationale.
docs/adr/0002-registrar-namecheap.md Records the registrar decision and rationale.
docs/adr/0003-hsts-preload-deferred.md Records the HSTS preload directive/submission decision.
docs/adr/0004-dmarc-p-none-monitoring.md Records the DMARC observation-window policy decision.
docs/adr/0005-pgp-key-two-year-expiry.md Records the project PGP key expiry decision.
docs/adr/0006-commit-signing-ssh-not-gpg.md Records the SSH-based git commit signing decision.
docs/adr/0007-caa-whitelist-includes-cloudflare-pool.md Records the CAA whitelist approach with Cloudflare auto-injects.
docs/adr/0008-branch-protection-zero-required-reviews.md Records branch protection posture during solo maintainership.
docs/adr/0009-workspace-no-members-during-phase-0.md Records the “virtual workspace with no members” Phase 0 choice.
docs/adr/0010-toolchain-pinning-resolver-3-edition-2024-msrv-1-92.md Records resolver/edition/MSRV/toolchain pinning decisions.
docs/adr/0011-ci-guards-python-tomllib.md Records the CI guard implementation choice (Python tomllib).
CHANGELOG.md Adds an Unreleased entry noting the ADR system introduction and refactor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +43 to +44
- The header is preload-eligible, so when we choose to submit, no
configuration change is required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants