Skip to content

bad-adr-filename

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

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/adr/use-kafka.md:1 error bad-adr-filename ADR file "use-kafka.md" must be named NNNN-slug.md, such as 0001-use-kafka.md

An ADR’s id is the number in its file name: shop/adr/0003-use-kafka.md is shop:0003. A file without the four-digit number has no id, so no supersedes can name it.

shop/adr/use-kafka.md:

---
status: accepted
date: 2026-03-01
---
# Use Kafka for events
We publish domain events on Kafka.

Rename it to the next free four-digit number and a lowercase slug, such as 0002-use-kafka.md.

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

---
status: accepted
date: 2026-03-01
---
# Use Kafka for events
We publish domain events on Kafka.

shop/adr/use-kafka.md: removed.

  • duplicate-adr-number: Two ADRs in a Project share a number, as when two pull requests each take the next free one.

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