Skip to content

chore(ci): add stub debt gate (ADR 0005 H5)#2353

Merged
alexey-pelykh merged 1 commit intomainfrom
chore/stub-debt-ci-gate
Apr 14, 2026
Merged

chore(ci): add stub debt gate (ADR 0005 H5)#2353
alexey-pelykh merged 1 commit intomainfrom
chore/stub-debt-ci-gate

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

How it works

The script scans src/, extensions/, ui/ for @ts-expect-error comments (excluding vendor/ and node_modules/). It compares the count against the baseline file. If the count grows, CI fails with instructions for the author.

To add a new suppression: increment .stub-debt-baseline and justify in the PR description.

Current inventory (12 entries)

Category Count Files
Fork stub typing mismatch 6 agent-runner.runreplyagent.e2e.test.ts
Legitimate test guards 3 security.test.ts, profiles.test.ts
Test infrastructure 1 integration.test.ts
UUID test 2 uuid.test.ts

Companion PR

  • remoteclaw/hq#28: ADR 0005 H5 completion + skill update

Test plan

  • node scripts/check-stub-debt.mjs passes with baseline 12
  • Script correctly skips vendor/ directory
  • Script reports when count decreases
  • Pre-commit hooks pass (lint, format, rebrand check)

Refs: remoteclaw/hq#25

🤖 Generated with Claude Code

… 0005 H5)

Add scripts/check-stub-debt.mjs that inventories @ts-expect-error
suppressions in source files and fails CI if the count exceeds the
baseline in .stub-debt-baseline (currently 12). New suppressions
require updating the baseline with justification in the PR.

Implements the CI enforcement half of ADR 0005 H5 (Build Stabilization
Protocol reform). Existing fork-stub debt tracked in #2352.

Refs: remoteclaw/hq#25

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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