Repository navigation
test(adr): Fail on a citation of a superseded record - #5810
Merged
Merged
Conversation
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.
ADR 0003, ADR 0011 and ADR 0012 are superseded, and code, tests and workflows still cited them. A new invariant test reads the status from the front matter of each docs/adr record and fails on an ADR number of a superseded record in src, tests or .github; archived changes, CHANGELOG.md and docs/adr stay out as history. The citations moved to the record in force: ADR 0003 to ADR 0017 or ADR 0021, ADR 0012 to AGENTS.md rule 1, ADR 0004 or ADR 0021, and ADR 0002 to ADR 0016, its successor for the job record and the rule against reverting a person's change.
Closes #5238
Change:
openspec/changes/archive/2026-11-15-5238-cite-no-superseded-adr/