Skip to content

invalid-adr-frontmatter

An ADR has no frontmatter, frontmatter that isn’t valid YAML, or a field that is unknown, missing (status, date) or invalid, such as a status outside proposed, accepted, rejected, deprecated and superseded.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/adr/0001-use-kafka.md:2:9 error invalid-adr-frontmatter Invalid value for "status": expected one of "proposed"|"accepted"|"rejected"|"deprecated"|"superseded"

The frontmatter ties an ADR to the Model: status says whether the decision stands, and elements and views say what it affects. If it can’t be read, a Proposed decision can’t be told from an accepted one, and the ADR can’t be shown on the Elements it is about.

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

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

Start the file with ---, status and date (YYYY-MM-DD), then ---; use only the MADR fields and the elements, views and supersedes links.

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

---
status: accepted
date: 2026-03-01
---
# Use Kafka for events
We publish domain events on Kafka.
  • missing-adr-title: An ADR’s body has no # heading to take its title from.
  • hand-written-superseded: An ADR’s status is written as superseded; that status is derived once an accepted ADR lists it in supersedes.
  • yaml-syntax: A file can’t be parsed as YAML.

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