Skip to content

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

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.md

An 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.

shop/adr/0001-use-redis.md:

---
status: proposed
date: 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: proposed
date: 2026-03-02
---
# Use Redis for carts
We publish domain events on Kafka.

shop/adr/0001-use-redis.md: removed.

  • bad-adr-filename: A file in a Project’s adr/ folder isn’t named NNNN-slug.md (and isn’t template.md).

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.