adr: add actions to decide and supersede a record #495
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
sixfold-space/madtea#495
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
A status change is a hand edit today. To decide a record, the author must:
To supersede a record, the author must also set "superseded by ADR-NNNN" on the old record and add a link back from the new one.
Each step is easy to miss, and
adr checkonly reports the miss afterward.Ask
CLI and MCP actions that change a record's status and do the related edits together:
Action and flag names follow
docs/contributing/naming-conventions.md. The issue part depends on how the linked-issue rule ships (the open decision in the same epic).Acceptance
adr checkpasses afterward.Prior art to borrow from: ADG (
adr/ad-guidance-tool, Go) hasdecide(writes an Outcome section and sets the status),link(precedes/succeeds links between decisions), andrevise(copies a decision and reopens it). ADG writes its own metadata, not MADR front matter, so these actions here write MADR fields:status,date, and the "superseded by ADR-NNNN" status with a link back from the new record.#494 is decided (on by default), so the issue-closing part of decide goes ahead: close the linked issues with a comment that names the record.