Skip to content

supersedes-cycle

ADRs supersede each other in a cycle, directly or through others. Reported once, at the cycle’s last file.

Severity: error · Since: v1.0.0

For the failing example below, archidocs check prints:

shop/adr/0002-use-kafka.md:4:14 error supersedes-cycle ADRs supersede each other in a cycle: shop:0001, shop:0002

supersedes runs from a newer decision to the older one it replaces. In a cycle every ADR is replaced by another, so none of them is the decision that stands.

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

---
status: accepted
date: 2025-01-10
supersedes: ["0002"]
---
# Use RabbitMQ
We publish domain events on Kafka.

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

---
status: accepted
date: 2026-03-01
supersedes: ["0001"]
---
# Use Kafka for events
We publish domain events on Kafka.

Remove the supersedes entry that points back to a newer ADR.

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

---
status: accepted
date: 2025-01-10
---
# Use RabbitMQ
We publish domain events on Kafka.
  • superseded-twice: An ADR is superseded by more than one accepted ADR. Reported at the last of them.
  • supersedes-unaccepted: An ADR supersedes one that isn’t accepted or deprecated, such as a proposed or rejected ADR.

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