Repository navigation
ci(adr): ratchet — a new decision record must close a proposed one - #5
Merged
Merged
Conversation
The 2026-09-21 planning cycle (Track A item 4) forbids new ADRs that do not close a proposed one; 25 landed across the estate in the cycle's first week because the frontmatter checker validates format and cannot see the rule. scripts/adr-ratchet.sh counts ADR files added over the push or PR range against ADRs that left decision_status: proposed, and fails when more were added than closed. Enforced until 2026-10-20 (ADR_RATCHET_UNTIL), reported after. Identical script in every ledger-keeping repository. Co-Authored-By: jjohare <github@thedreamlab.uk>
The rule admits a new record that documents the cycle's own work. Claim it per record with 'ADR-Ratchet: ADR-NNNN documents <track item>' in a commit of the range; the script exempts exactly the named record and prints it. Co-Authored-By: jjohare <github@thedreamlab.uk>
Under set -o pipefail the trailer grep's no-match status killed the script silently, so every ordinary range failed. Tolerate the empty match. Co-Authored-By: jjohare <github@thedreamlab.uk>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
scripts/adr-ratchet.shand runs it in the ADR ledger CI on push and pull requests: a change that adds more ADR files than it moves out ofdecision_status: proposedfails, until 2026-10-20 (the planning cycle's end;ADR_RATCHET_UNTIL). Tested against real history: agentbox added 12 ADRs since 22 Sep and closed none from proposed.🤖 Generated by Claude Code