Repository navigation
ci: spec-numbering - Add allocation ledger and validator - #4065
Conversation
Apply the draft patch approved on GIT-2676 (4 November 2026) on top of the Spec Kit v1.4.4 scripts. Specification numbers are now checked against .github/specs/ALLOCATIONS.json instead of directory contiguity, so 020 (pending) and 021/022 (retired) no longer fail the audit. Changes beyond the approved draft: - Tests read a frozen copy of the bootstrap ledger, so adding an allocation does not break them. - Add the materialised row for 025 (Spec Kit upgrade). - Re-apply the catalogue hunks by hand; they did not apply because the catalogue now lists 025. - Use the landing date for the "last updated" fields. Refs GIT-2676
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 30 minutes. View limit details
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
AI Feedback Validation Report❌ No issue link found: the PR must include Required actions
|
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
|
This pull request is merged. |
Build/CI Pull Request
Linked issues
Relates to #3891
Refs GIT-2676
Stacked on #4064. The base is that pull request's branch, so this diff shows only the ledger work. GitHub retargets this pull request to
developwhen #4064 merges.Build/CI change
.github/specs/ALLOCATIONS.json, instead of requiring an unbroken run of directories. One shared helper,scripts/validation/spec-allocations.cjs, serves both the audit (audit-specs.sh) and the generator (create-new-feature.sh).Differences from the approved draft:
scripts/validation/__fixtures__/spec-allocations-bootstrap.json)spec-kit-upgrade, materialisedCATALOG.mdhunks re-applied by hand, with 026 as the next numberThe patch applied without change to the v1.4.4
create-new-feature.sh.Baseline & Target
developand aiops: spec-kit - Upgrade to v1.4.4 and keep local changes #4064):audit-specs.shexits 1 withGap detected: expected 20 but found 23.Allocation consistency verified: 22 real directories; 25 allocations; snapshot-only, exit 0.Checks run locally on this branch:
bash .specify/scripts/bash/audit-specs.shSPEC_ALLOCATION_BASELINEset to the frozen bootstrap ledgerbaseline-comparedbash .specify/scripts/bash/validate-catalog.shbats tests/bashspec-allocations.test.js--number 21(retired)markdownlint-cli2on changed Markdown, repository configp/security-audit,p/secrets) on changed codespecify integration statusNot reformatted: Prettier would reflow the two JavaScript files and the two JSON files. They are kept as approved.
Rollback
Notes
--timestampis rejected in the numbered root. A--numberthat conflicts now fails instead of being silently replaced. Node.js is required.Changelog
Added
Checklist (Global DoD / PR)