Skip to content

fix(ci): run npm ci before verification gates so omp-extension smoke resolves typebox - #120

Merged
danielvm-git merged 1 commit into
mainfrom
fix/omp-gate-npm-ci
Sep 6, 2026
Merged

danielvm-git merged 1 commit into
mainfrom
fix/omp-gate-npm-ci

Conversation

@danielvm-git

Copy link
Copy Markdown
Owner

Context

CI run 33981866073 failed verification-gates on main (39/40): [omp-extension] FAIL (.26s, exit 1).

Follow-up to the #119 fix (a487565 / v2.88.1): that PR hardened scripts/validate-omp-extension.sh to execute node scripts/omp-smoke.ts as a runtime regression gate. The smoke imports extensions/omp-hooks.ts, which does import { Type } from "typebox". Under plain Node ESM (not pi's aliased loader) that import must resolve from node_modules — which does not exist on the CI runner, because golden-suite.yml never installed node deps (every other gate is bash/python only).

Fix

Add one step to the verification-gates job:

      - name: Install Node deps
        run: npm ci

Full npm ci (no --omit=dev) — typebox is a devDependency. Precedent: docs-site.yml and publish.yml already run npm ci.

Rejected: skipping the smoke when deps are absent (vacuous gate — violates the anti-vacuity doctrine this suite enforces); importing via pi's loader (same install requirement, no gain).

Verification

  • RED: CI run 33981866073 (ERR_MODULE_NOT_FOUND: Cannot find package 'typebox'); reproduced locally pre-npm ci.
  • GREEN locally: post-npm ci, bash scripts/run-verification-gates.sh → 40/40 PASS incl. omp-extension (81 commands + bigpowers_skill tool + 2 handlers, 0 load errors).
  • Preflight: npm run compliance ✓, gates ✓, sync-skills.sh ✓, trace-stories.sh --strict ✓.
  • The PR itself is the only remaining unknown: CI is the one environment that lacked node_modules, so gh pr checks green on this PR (and the next push-triggered golden suite on main) is the true validation.

RCA + rejected alternatives + lesson: specs/bugs/BUG-2026-09-05-golden-gate-missing-node-deps.md

…resolves typebox

Golden Anti-Vacuity Suite run 33981866073 failed verification-gates on main
(39/40): the omp-extension gate executes scripts/omp-smoke.ts, which imports
extensions/omp-hooks.ts -> typebox. Plain-node ESM resolution needs
node_modules, but golden-suite.yml never installed node deps (every other
gate is bash/python). Full npm ci added (typebox is a devDependency, so
--omit=dev would not work). Local preflight after the change: compliance,
40/40 golden gates incl. omp-extension, sync-skills, trace --strict.

Follow-up to the #119 fix (a487565), which introduced the runtime smoke
gate but only verified it in environments that already had TypeBox
(local node_modules; pi's bundled copy).
Bug file: specs/bugs/BUG-2026-09-05-golden-gate-missing-node-deps.md
@danielvm-git
danielvm-git merged commit 9a457e6 into main Sep 6, 2026
4 checks passed
@danielvm-git
danielvm-git deleted the fix/omp-gate-npm-ci branch September 6, 2026 02:12
github-actions Bot pushed a commit that referenced this pull request Sep 6, 2026
## [2.88.2](v2.88.1...v2.88.2) (2026-09-06)

### Bug Fixes

* **ci:** run npm ci before verification gates so omp-extension smoke resolves typebox ([#120](#120)) ([9a457e6](9a457e6))
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.88.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

danielvm-git added a commit that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant