adr-new accepts more than one --supersedes ID #715

Open
opened 2026-09-25 15:01:23 +00:00 by jared · 0 comments
Owner

Problem

The adr-new CLI accepts one supersedes ID. ADR-0219 superseded three ADRs (0198, 0201, 0216). The agent superseded one through the CLI and two through Adr::Repository and Record#supersede_with by hand. A by-hand path is easy to skip and leaves index state wrong.

Reproduce

n/a: process gap

Approach

Required work:

  1. Accept a comma-separated or repeated --supersedes value
  2. Mark every listed ADR Superseded with superseded-by set to the new number
  3. Regenerate the index once

Acceptance criteria

  1. adr-new ... --supersedes 0001,0002 marks both ADRs Superseded

Origin

Session: ecfe6e11-0810-4431-88e5-8e24d34a239e
Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/ecfe6e11-0810-4431-88e5-8e24d34a239e.jsonl
Where: plugins/os-adr (the new.rb command and Adr::Record supersedes field)
ADR: 0219

VERDICT: CREATE — adr-new supports only a single --supersedes ID; ADR-0219 needed three and two had to be marked by hand via Repository/Record internals.

## Problem The adr-new CLI accepts one supersedes ID. ADR-0219 superseded three ADRs (0198, 0201, 0216). The agent superseded one through the CLI and two through Adr::Repository and Record#supersede_with by hand. A by-hand path is easy to skip and leaves index state wrong. ## Reproduce n/a: process gap ## Approach Required work: 1. Accept a comma-separated or repeated --supersedes value 2. Mark every listed ADR Superseded with superseded-by set to the new number 3. Regenerate the index once ## Acceptance criteria 1. `adr-new ... --supersedes 0001,0002` marks both ADRs Superseded ## Origin Session: ecfe6e11-0810-4431-88e5-8e24d34a239e Transcript: /home/jared/.claude/projects/-home-jared-dev-cc-os/ecfe6e11-0810-4431-88e5-8e24d34a239e.jsonl Where: plugins/os-adr (the new.rb command and Adr::Record supersedes field) ADR: 0219 VERDICT: CREATE — adr-new supports only a single --supersedes ID; ADR-0219 needed three and two had to be marked by hand via Repository/Record internals.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#715
No description provided.