Skip to content

fix(gate): wire check-retired-claims into CI — the AD-030 gate existed but never ran - #477

Merged
runyourempire merged 1 commit into
mainfrom
fix/ad030-gate-wiring
Aug 17, 2026
Merged

fix(gate): wire check-retired-claims into CI — the AD-030 gate existed but never ran#477
runyourempire merged 1 commit into
mainfrom
fix/ad030-gate-wiring

Conversation

@runyourempire

Copy link
Copy Markdown
Collaborator

The residual this closes

scripts/check-retired-claims.cjs + its 9 tests merged in #469 as the AD-030 enforcement gate — but nothing ever invoked them. Not test:scripts, not the validate chain, so the gate never ran in CI. Meanwhile .ai/RULES.md / AGENTS.md (via #431) already assert this enforcement exists. This was the priority residual of the AD-030 retirement arc (tracked in .claude/plans/PENDING-DECISION.md item 1); it was blocked on #470's lane holding package.json and is unblocked now that #470 merged.

Change (3 lines, package.json only)

  • validate:retired-claims script → node scripts/check-retired-claims.cjs
  • scripts/check-retired-claims.test.cjs added to test:scripts
  • Gate inserted at the front of the validate chain, right after the size check — it is sub-second, so it fails fast before the heavy steps

Verification

  • node scripts/check-retired-claims.cjs — OK repo-wide (0 violations)
  • node --test scripts/check-retired-claims.test.cjs — 9 pass / 0 fail
  • Pre-push gate (typecheck + suite) passed locally

🤖 Generated with Claude Code

https://claude.ai/code/session_01LBY5q2MskiKMkTm6NmB49L

…d but never ran

check-retired-claims.cjs and its 9 tests merged in #469, but nothing invoked
them: not test:scripts, not the validate chain. .ai/RULES.md and AGENTS.md
already assert this enforcement exists, so until now the gate was a script
anyone could regress past without CI noticing.

Three lines in package.json close it: validate:retired-claims script,
check-retired-claims.test.cjs in test:scripts, and the gate inserted at the
front of the validate chain (it is sub-second — fail fast before the heavy
steps).

Verified in this worktree: gate OK repo-wide, 9/9 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LBY5q2MskiKMkTm6NmB49L
@runyourempire
runyourempire enabled auto-merge (squash) August 17, 2026 02:40
@runyourempire
runyourempire merged commit c1b5ca5 into main Aug 17, 2026
10 checks passed
@runyourempire
runyourempire deleted the fix/ad030-gate-wiring branch August 17, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant