fix(opencode): allow repeated ADR supersession #243
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-221-repeated-adr-supersession"
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?
Summary
Accepted,Superseded, andPartially superseded.Superseded Bynotes when accepting later ADRs.Closes #221.
Verification
node --test --experimental-strip-types .opencode/plugins/auto-review-discipline-adr.test.tsnode --test --experimental-strip-types .opencode/plugins/auto-review-discipline-adr.test.ts .opencode/plugins/auto-review-context.test.ts tests/opencode-rgr-task-gate.test.mjsjust ciNotes
This changes an opencode plugin; running opencode sessions need to be restarted before the updated tool behavior is loaded.
The PR enhances the ADR supersession logic to allow repeated supersession and updates the test suite to cover these changes. The changes appear safe to merge, but ensure the logic aligns with the intended ADR lifecycle.
Walkthrough
.opencode/plugins/auto-review-discipline-adr.test.ts:
.opencode/plugins/auto-review-discipline.ts:
appendSupersededByfunction to handle appending supersession notes and updating ADR status.requireAcceptedSupersedesto allow ADRs in 'Accepted', 'Superseded', and 'Partially superseded' states to be superseded.🟡 Warning: The function
appendSupersededBymodifies the ADR status to 'Superseded' if it is 'Accepted'. Ensure this logic aligns with the intended ADR lifecycle and does not inadvertently alter ADRs that should remain 'Accepted'.