duplicate-adr-number
Two ADRs in a Project share a number, as when two pull requests each take the next free one.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/adr/0001-use-redis.md:1 error duplicate-adr-number ADR number 0001 is already used in Project "shop" by shop/adr/0001-use-kafka.mdAn ADR’s number is its id in the Project, so two files numbered 0001 would both be shop:0001, and a supersedes naming it could mean either. It happens when two pull requests each take the next free number.
Failing example
Section titled “Failing example”shop/adr/0001-use-redis.md:
---status: proposeddate: 2026-03-02---
# Use Redis for carts
We publish domain events on Kafka.Renumber the later ADR to the next free number, and update any supersedes that meant it.
shop/adr/0002-use-redis.md:
---status: proposeddate: 2026-03-02---
# Use Redis for carts
We publish domain events on Kafka.shop/adr/0001-use-redis.md: removed.
Related rules
Section titled “Related rules”bad-adr-filename: A file in a Project’sadr/folder isn’t namedNNNN-slug.md(and isn’ttemplate.md).
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.