How-To: Supersede Architectural Decision Records with Evolution Engine

This guide demonstrates how to supersede legacy Architectural Decision Records (ADRs) with replacement decisions using spec-ops adr supersede, governed by ADR-0001, ADR-0002, and ADR-0007.


Overview

As software architectures evolve, established decisions are replaced or augmented by newer technical standards (e.g. migrating from flat file storage to an embedded database). Manually editing ADRs can lead to broken references, inconsistent status fields, and orphaned task citations.

The ADR Supersession Engine provides:


Superseding an ADR by Title

To retire an existing ADR and scaffold a new replacement ADR in a single step:


uv run spec-ops adr supersede --old ADR-0001 --title "SQLite Storage Engine"

Output:


✨ Superseded ADR-0001 by ADR-0018
📄 Updated docs/project/adrs/accepted/adr-0001-flat-json.md status to 'Superseded'
📄 Generated docs/project/adrs/accepted/adr-0018-sqlite-storage-engine.md status as 'Accepted'
📋 Synchronized docs/project/adrs/REGISTRY.md
⚠️ Warning: Task TASK-0022 cites superseded ADR-0001; requires architectural re-refinement

Superseding with an Existing Proposed ADR

If a proposed ADR has already been authored and is ready to replace an accepted decision:


uv run spec-ops adr supersede ADR-0001 --by ADR-0015

The engine promotes the superseding ADR to Accepted, moves it to docs/project/adrs/accepted/, marks the old ADR as Superseded, and updates the registry table.


Simulating Supersession (Dry Run)

To verify the impact and inspect downstream task citations without modifying any files:


uv run spec-ops adr supersede --old ADR-0001 --title "PostgreSQL Database Engine" --dry-run

Output:


✨ [Simulated] Superseded ADR-0001 by ADR-0019
📄 Updated docs/project/adrs/accepted/adr-0001-flat-json.md status to 'Superseded'
📄 Generated docs/project/adrs/accepted/adr-0019-postgresql-database-engine.md status as 'Accepted'
📋 Synchronized docs/project/adrs/REGISTRY.md

Cycle Prevention Guardrail

The supersession engine validates existing and candidate relationships to prevent circular lineages (e.g. ADR-0001 superseded by ADR-0002 which is then superseded by ADR-0001):


uv run spec-ops adr supersede ADR-0002 --by ADR-0001

Output:


❌ Error: Circular ADR supersession detected: ADR-0001 -> ADR-0002 -> ADR-0001

When a cycle is detected, no files are modified and the command exits with code 1.