Repository navigation
Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/testType test: a new or changed testvalue/mediumValue Medium
Description
Problem or Motivation
Child 4 of the ADR modernization (#5233). Bookkeeping, with no decision.
The review of each record that this item changes:
- ADR 0003 (supersede (bookkeeping mark in docs(adr): add MADR front matter, a Status History and the ADR rules #5225: superseded by 0017 and 0021; no new record)): Its board reason has been false since ADR 0016. The sweep (0021), the scoped updates (0017) and the one public path (0009 'Exposure is pinned') hold its live rules. The mark also returns ADR 0001 to the check.
- ADR 0011 (retire): It is superseded by 0012 and then by 0013. No towncrier, version milestone, Release Gate or tag deploy exists. It stays frozen as the evidence record of docs(adr): decide the release model: branches and cuts, versioning and changelog, and testing the release tip #1751, and its rejections go into the release record.
- ADR 0012 (retire): It is superseded by 0013, and it got two notes after the supersession. Its live points move: the squash settings and the release-please keys to the release record, the required checks to the merge-gate record, and its Pages note to Status History.
Proposed Solution & Architectural Design
A tests/invariants test reads the status from the front matter and fails on 'ADR NNNN' of a superseded record in src/, tests/ and .github/. Move the other citations: 7 of 0003 (to 0021 or 0017), 2 of 0011, and the 0012 citation at intake/intake.py:12 (to AGENTS.md rule 1).
Rules of the ADR process (docs/adr/README.md, #5225) that apply:
- Code, tests and workflows cite the record in force. A test fails on a citation of a superseded record in src/, tests/ and .github/ (archived changes and CHANGELOG.md are history). Each superseding PR moves the citations of the records that it supersedes. Rename sweeps do not change docs/adr/.
Keep these constraints on purpose. The review found a reason for each one:
- ADR 0003/0017/0021, the sweep is the source of truth and 'webhooks as the only trigger' stays rejected: 25 of 100 deliveries got 403, and about 116 s are lost at each rollout.
- ADR 0003/0009, one public path with HMAC (401 before the body is parsed), the 413 cap and a rate limit: they stay when the IP list goes.
Target Subsystem
tests/invariants/; citation lines in src/, tests/ and .github/.
Existing Tool Considered
The tests/invariants tests of the project and the front matter reader of #5225. No new tool.
Acceptance Criteria
- A
tests/invariantstest reads the status from the front matter and fails on 'ADR NNNN' of a superseded record insrc/,tests/and.github/. Archived changes andCHANGELOG.mdare history and stay out. - The 7 citations of ADR 0003 (to ADR 0021 or ADR 0017), the 2 of ADR 0011 and the ADR 0012 citation at
intake/intake.py:12(to AGENTS.md rule 1) move. - The pull request cites its
devops ci fail-to-passrun: the test fails before the move and passes after it.
Dependencies
Related
- Tracker: docs(adr): track the ADR modernization #5233. Review source:
docs/adr/at e413c40.
Source: #5233
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/testType test: a new or changed testvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 12, 2026
adr, and .github/labels.yml declares no scope/adr label. Add the label to the file to give the scope to this item.Both work on ADR structure, but #5225 adds front matter and rules while this candidate adds a test that enforces citation correctness.test(adr): fail on a citation of a superseded record (#5238)
docs(testing): list the superseded-citation invariant (#5238)