Repository navigation
docs(adr): introduce ADR system and backfill Phase 0 decisions - #12
Merged
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
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–0011capturing Phase 0 infra/governance/tooling decisions. - Update
GOVERNANCE.md,docs/infrastructure.md, andCHANGELOG.mdto 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. |
This was referenced May 11, 2026
8 of 12 tasks
This was referenced Sep 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asADR-0001throughADR-0011.docs/infrastructure.mdis refactored to cite the ADRs rather than inline the rationale paragraphs, andGOVERNANCE.mddocuments the RFC-vs-ADR boundary.Why
The 11 rationale paragraphs that previously lived in
docs/infrastructure.mdwere 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:
docs/rfcs/)docs/adr/)tomllibin 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, numberingdocs/adr/0000-template.md— MADR-style templatedocs/adr/0001-...mdthrough0011-...md— backfilled Phase 0 decisionsGOVERNANCE.md— new "RFCs and ADRs" subsectionCommit 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 linesCHANGELOG.md—[Unreleased] -> ChangedentryADRs backfilled
p=noneduring observation windowtomllibEach ADR has Context, Decision, Consequences (positive/negative/neutral), Alternatives considered, and Links sections per MADR convention.
Verification
Performed locally before pushing:
git add .used (targeted adds only).MANIFIESTO.es.md(pre-existing authorial edit) NOT staged in either commit.gh-leakagepatterns (FIF/FTC/FIFTECH/Falabella/gaflemingg) in any new file.docs/infrastructure.mdrefactor preserves all factual claims; only rationale paragraphs were replaced by ADR cross-references.Risks
infrastructure.mdmust 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.GOVERNANCE.mdsubsection plusdocs/adr/README.mdexplicitly document when each applies.Checklist
[Unreleased] → Changed.infrastructure.mdanddocs/adr/*consistent in both directions.docs/adr/README.mdexplains process;0000-template.mdis the authoritative template.