Skip to content

docs(adr): introduce errata mechanism and apply Copilot review fixes - #16

Merged
gonzafg2 merged 1 commit into
mainfrom
docs/adr-errata-and-accuracy-fixes
May 11, 2026
Merged

gonzafg2 merged 1 commit into
mainfrom
docs/adr-errata-and-accuracy-fixes

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

Reconciles the ADR process with what the project has already done (in-place edits on accepted ADRs for factual corrections) and applies the remaining accuracy fixes Copilot's automated reviews raised on PR #13 and PR #14.

Why

Two coupled problems:

  1. Process violation surfaced in PR docs: fix two accuracy issues caught in Copilot PR reviews #13 review. Copilot raised that the project's strict ADR-immutability rule was being violated by in-place edits to ADR-0003 and ADR-0011 (corrections of factual errors). The substance of those edits was right; the meta-process was not.

  2. Several accuracy issues in PR docs: tighten DMARC to p=reject and bump HSTS max-age to one year #14 (DMARC Receivers reject overclaim in three locations; Records reference table out of sync with the Authentication posture section) and the residual PR docs: fix two accuracy issues caught in Copilot PR reviews #13 findings (file slug doesn't match content; Cargo.lock description is imprecise; earlier Changed CHANGELOG bullet stale).

What this PR does

New ADR-0015: errata mechanism

Permits in-place edits on accepted ADRs only for factual errata, with a Post-acceptance errata banner near the top of the affected ADR documenting the date, the PR or CHANGELOG entry, and what was corrected. Decision changes still require a new ADR that supersedes the old one. docs/adr/README.md updated to reflect the new lifecycle rule.

Retroactive annotation

  • ADR-0003 — Post-acceptance errata banner added for the PR docs: fix two accuracy issues caught in Copilot PR reviews #13 correction of the HSTS preload-eligibility wording. Status field is also rewrapped across multiple lines (the Status field has always been editable, so this is cosmetic, not errata).
  • ADR-0011 — Post-acceptance errata banner added covering: (a) PR docs: fix two accuracy issues caught in Copilot PR reviews #13's two-predicate restructure, (b) this PR's Cargo.lock wording refinement, (c) the filename rename from 0011-ci-guards-python-tomllib.md to 0011-ci-guards-workspace-state.md (git mv to preserve history). Inbound links updated in docs/infrastructure.md, docs/adr/0009-workspace-no-members-during-phase-0.md, and the earlier CHANGELOG entry.
  • ADR-0013 — Post-acceptance errata banner added for this PR's qualification of the absolute "Receivers reject" wording. DMARC p=reject is a policy request; major mailbox providers honour it but some legacy receivers ignore DMARC.

Non-ADR accuracy fixes

  • docs/infrastructure.md "Records reference" table: DMARC row updated from p=none to p=reject (was out of sync with the Authentication posture section below it).
  • docs/infrastructure.md "Authentication posture" prose: "Receivers reject" → "DMARC-compliant receivers are instructed to reject", with explicit acknowledgement of varying enforcement.
  • CHANGELOG.md PR docs: tighten DMARC to p=reject and bump HSTS max-age to one year #14 entry: same qualification applied.
  • CHANGELOG.md earlier [Unreleased] -> Changed bullet about ADR introduction: "CI guards via Python tomllib" → "CI workflow gating via two narrow workspace-state predicates" with both predicates named.
  • New [Unreleased] -> Fixed entries documenting all of the above.

Verification

  • Single signed commit (SSH Ed25519) + DCO sign-off.
  • Rename used git mv (preserves history).
  • All inbound links to the renamed ADR updated; grep -r "0011-ci-guards-python-tomllib" returns empty in repo working tree.
  • Three errata banners follow the Post-acceptance errata blockquote pattern formalised in ADR-0015.
  • No leakage patterns and no personal paths in any modified file.
  • MANIFIESTO.es.md (which has an unrelated pre-existing authorial edit) is not in the diff of this PR.

Risks

  • The errata mechanism opens a small abuse vector: a maintainer could call a decision change an "errata". Mitigation: ADR-0015 defines errata narrowly (factual corrections, not revisions of the decision); code review can challenge any in-place edit that revises the decision rather than correcting a factual claim; the banner's "what was corrected" field makes drift visible.

Files changed

  • docs/adr/0015-permit-annotated-errata-in-adrs.md — new (errata mechanism)
  • docs/adr/README.md — lifecycle rule updated
  • docs/adr/0003-hsts-preload-deferred.md — errata banner + Status wrap
  • docs/adr/0011-ci-guards-workspace-state.md — renamed (was 0011-ci-guards-python-tomllib.md) + errata banner + Cargo.lock wording
  • docs/adr/0013-dmarc-tightened-to-p-reject.md — errata banner + Receivers qualification
  • docs/adr/0009-workspace-no-members-during-phase-0.md — inbound link updated
  • docs/infrastructure.md — Records ref table + Receivers prose + ADR-0011 link
  • CHANGELOG.md — multiple updates (ADR rename, qualification, new Fixed entries)

Reconciles the ADR process with what the project has already done,
and applies the remaining accuracy fixes Copilot's automated reviews
raised on PRs #13 and #14.

ADR-0015 formalises a `Post-acceptance errata` mechanism. The original
process in `docs/adr/README.md` declared accepted ADRs immutable
except for the Status field. In PR #13 the project corrected factual
errors in ADR-0003 (preload-eligibility wording) and ADR-0011
(two-predicate description) by editing the ADRs in place, against the
strict reading of the process. Copilot's review of PR #13 flagged the
violation explicitly. ADR-0015 is the considered response: permit
in-place edits **only** for factual errata, with a `Post-acceptance
errata` banner near the top of the ADR documenting the date, the PR
or CHANGELOG entry, and what was corrected. Decision changes still
require a new ADR that supersedes the old one. The README is updated
to reflect the new rule.

ADR-0003, ADR-0011, and ADR-0013 are retroactively annotated with
their errata banners under the new rule. The substance of the past
edits is unchanged; only the meta-record of how they happened is
added.

ADR-0011 file is renamed from `0011-ci-guards-python-tomllib.md` to
`0011-ci-guards-workspace-state.md` (git mv to preserve history) so
the filename slug reflects the corrected scope — the ADR is about
two narrow workspace-state predicates, not a single `tomllib`
predicate. Inbound links in `docs/infrastructure.md`, ADR-0009, and
CHANGELOG are updated in the same commit.

Accuracy fixes from Copilot's PR #14 review:

- The `Records reference` table in `docs/infrastructure.md` listed the
  DMARC TXT record as `p=none` while the "Authentication posture"
  section already described `p=reject`. Internal inconsistency. Table
  row updated to `p=reject`.
- DMARC-related claims in `docs/infrastructure.md`, `CHANGELOG.md`,
  and `docs/adr/0013-dmarc-tightened-to-p-reject.md` stated absolutely
  that "Receivers reject mail". `p=reject` is a policy request and
  enforcement varies across the receiver ecosystem (major mailbox
  providers honour it; some legacy mailservers ignore DMARC). Wording
  qualified to "DMARC-compliant receivers" / "receivers are instructed
  to reject" in all three places.

Additional accuracy fixes from Copilot's PR #13 review:

- ADR-0011's description of when `Cargo.lock` appears at the repo
  root is refined: the previous wording implied a build event, but
  the workflow predicate checks for the file in the repository
  checkout. The corrected wording makes the commit step explicit.
- The earlier `[Unreleased] -> Changed` CHANGELOG bullet about ADR
  introduction still said "CI guards via Python `tomllib`", which
  did not match the two-predicate description in the subsequent
  `[Unreleased] -> Fixed` entry. The earlier bullet is updated to
  describe the two-predicate split.

Cosmetic:

- ADR-0003's Status field is rewrapped across multiple lines to match
  the line-wrapping style used in other ADRs. The Status field is the
  one field the original process always permitted to be edited, so
  this is not an errata edit.

Signed-off-by: Gonzalo Fleming <[email protected]>
Copilot AI review requested due to automatic review settings May 11, 2026 08:07
@gonzafg2
gonzafg2 merged commit bbe3ac5 into main May 11, 2026
8 checks passed
@gonzafg2
gonzafg2 deleted the docs/adr-errata-and-accuracy-fixes branch May 11, 2026 08:09

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 updates the project’s ADR governance to allow narrowly-scoped, auditable post-acceptance factual corrections (“errata”), and applies a set of documentation accuracy/linking fixes (DMARC wording, ADR-0011 rename, and related cross-references) across ADRs, infrastructure docs, and the changelog.

Changes:

  • Introduces ADR-0015 and updates the ADR lifecycle rules to permit annotated factual errata edits on accepted ADRs.
  • Adds “Post-acceptance errata” banners to affected ADRs and applies DMARC enforcement-qualification wording consistently.
  • Renames ADR-0011 to match its corrected scope and updates inbound links; syncs the infrastructure DMARC record table with the described posture.

Reviewed changes

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

Show a summary per file
File Description
docs/infrastructure.md Updates DMARC record/table and qualifies DMARC enforcement language; updates ADR-0011 link after rename.
docs/adr/README.md Updates ADR lifecycle rules to add an errata exception (with required banner).
docs/adr/0015-permit-annotated-errata-in-adrs.md Adds a new ADR defining/justifying the annotated errata mechanism.
docs/adr/0013-dmarc-tightened-to-p-reject.md Adds errata banner and qualifies “receiver rejection” wording to reflect DMARC’s best-effort enforcement.
docs/adr/0011-ci-guards-workspace-state.md Adds errata banner, refines Cargo.lock description, and reflects the ADR-0011 rename/scope.
docs/adr/0009-workspace-no-members-during-phase-0.md Updates references to the renamed ADR-0011 filename.
docs/adr/0003-hsts-preload-deferred.md Wraps Status field and adds errata banner documenting prior factual correction.
CHANGELOG.md Updates prior entries for ADR-0011 rename and DMARC wording qualification; adds new Fixed items documenting the corrections.

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

Comment thread docs/adr/README.md
Comment on lines +69 to +89
ADRs are **never edited in place** after acceptance, with two narrow
exceptions:

1. **The Status field**, when the ADR is superseded or deprecated.
2. **Factual errata** — corrections to factual claims that were wrong
at the time of acceptance (typographical, numerical, descriptive,
or logical errors). Errata edits **must** add a
`Post-acceptance errata` banner near the top of the ADR documenting
the date, the PR or CHANGELOG entry that records the edit, and a
short description of what was corrected. The full pre-edit wording
remains in git history; the banner is what makes the editing event
discoverable from the file itself.

Errata are explicitly **not** a mechanism for decision changes. If
you want to change the decision the ADR records — revise it, narrow
it, broaden it, reverse it — write a new ADR that supersedes the old
one. Errata are for "we said X but X is incorrect"; supersession is
for "we decided X, now we decide Y".

The errata mechanism was introduced by [ADR-0015](0015-permit-annotated-errata-in-adrs.md);
that ADR is the authoritative reference for the rule and its rationale.
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