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
What check reports
Section titled “What check reports”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:0002supersedes 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.
Failing example
Section titled “Failing example”shop/adr/0001-use-rabbitmq.md:
---status: accepteddate: 2025-01-10supersedes: ["0002"]---
# Use RabbitMQ
We publish domain events on Kafka.shop/adr/0002-use-kafka.md:
---status: accepteddate: 2026-03-01supersedes: ["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: accepteddate: 2025-01-10---
# Use RabbitMQ
We publish domain events on Kafka.Related rules
Section titled “Related rules”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.