Skip to content

test(adr): fail on a citation of a superseded record #5238

Closed

Description

@dan-petty

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/invariants test reads the status from the front matter and fails on 'ADR NNNN' of a superseded record in src/, tests/ and .github/. Archived changes and CHANGELOG.md are 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-pass run: the test fails before the move and passes after it.

Dependencies

Related

Source: #5233

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/test
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
    • Scope: none. The title has the scope adr, and .github/labels.yml declares no scope/adr label. Add the label to the file to give the scope to this item.
    • Related: docs(adr): add MADR front matter, a Status History and the ADR rules #5225, which asks for a different change. Both work on ADR structure, but #5225 adds front matter and rules while this candidate adds a test that enforces citation correctness.
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. added
    priority/p2-medium
    and removed
    priority/p2-medium
    on Nov 12, 2026
  6. added
    status/in-review
    and removed
    status/new
    on Nov 15, 2026
  7. removed
    status/in-review
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions