ci: decouple new regression jobs from broken workspace build

Two separate fixes for v3-ci.yml:

1. v3/pnpm-lock.yaml refresh
   The better-sqlite3 ^11.0.0 → ^12.9.0 bump in @claude-flow/memory
   (commit 966335022, fixing #1867) updated package.json but not the
   workspace lockfile. CI's `pnpm install --frozen-lockfile` rejected
   the divergence with ERR_PNPM_OUTDATED_LOCKFILE, blocking every
   downstream job — including the new regression guards.

2. New jobs no longer depend on `build`
   The workspace-wide `pnpm build` step has been failing on every
   commit for 3+ days due to a pre-existing TS error in
   @claude-flow/plugin-agent-federation (Record<FederationMessageType, ...>
   missing claim-event + agent-handoff keys). That's out of scope here,
   but it was transitively blocking the new regression guards from
   ever running.

   smoke-install-no-bsqlite, plugin-hooks-smoke, and witness-verify
   each now build only the specific packages whose dist files they
   exercise:
     - smoke-install-no-bsqlite: builds @claude-flow/memory
     - plugin-hooks-smoke:       pnpm --filter @claude-flow/cli...
     - witness-verify:           pnpm --filter cli... + memory... + security...

   Result: my regression guards run independently of unrelated
   workspace failures. `publish` still gates on `build` (and the
   guards), which is correct — full workspace must be healthy for a
   release, but PR CI shouldn't be held hostage to it.

Local validation against this branch:
  ✓ Job 1 smoke-install-no-bsqlite: 5/5 assertions pass
  ✓ Job 2 plugin-hooks-smoke:       7/7 assertions pass
  ✓ Job 3 witness-verify step 1:    81/81 fixes verified, signature valid
  ✓ Job 3 witness-verify step 2:    history.mjs summary, no regressions

Co-Authored-By: RuFlo <ruv@ruv.net>
This commit is contained in:
ReuvenandRuFlo committed 2026-05-08 21:11:17 -04:00
1 parent 76bd35943a
commit 2ac256afb5
2 files changed
+131 -31

No files matched your search

+19 -7
View File
@@ -124,9 +124,11 @@ jobs:
# installs and loads when better-sqlite3 fails to build (e.g. Node 26
# without prebuilds). Reproduces the user-visible failure mode by
# installing with --omit=optional.
#
# Independent of the workspace `build` job because we only need to
# build a single package (memory) — no workspace-wide dist required.
name: Smoke (no better-sqlite3) / Node ${{ matrix.node }}
runs-on: ubuntu-latest
needs: [test]
strategy:
fail-fast: false
matrix:
@@ -182,9 +184,11 @@ jobs:
# JSON against the locally built CLI. Catches:
# - hooks calling flags the CLI doesn't accept (#1862's --format true)
# - CLI parser ambiguity recording the wrong value (#1859's "true" filename)
#
# Independent of the workspace `build` job — only the cli package needs
# to be built. We use `pnpm --filter @claude-flow/cli...` to scope.
name: Plugin hooks smoke / Node ${{ matrix.node }}
runs-on: ubuntu-latest
needs: [build]
strategy:
fail-fast: false
matrix:
@@ -206,11 +210,11 @@ jobs:
cache: 'pnpm'
cache-dependency-path: v3/pnpm-lock.yaml
- name: Install + build v3
- name: Install + build cli (scoped, avoids unrelated workspace failures)
working-directory: v3
run: |
pnpm install --frozen-lockfile
pnpm build
pnpm --filter @claude-flow/cli... build
- name: Run plugin hooks smoke against local CLI build
run: |
@@ -226,9 +230,14 @@ jobs:
# The smoke jobs above (smoke-install-no-bsqlite, plugin-hooks-smoke)
# exercise *behavior*; this job validates *presence* — both layers
# combined are what gates `publish`.
#
# Builds the cli + memory + security packages specifically (the ones
# whose dist files are referenced by witness markers). Avoids depending
# on the workspace `build` job so unrelated package failures don't
# block this regression guard.
name: Witness verify (signed manifest)
runs-on: ubuntu-latest
needs: [build, smoke-install-no-bsqlite, plugin-hooks-smoke]
needs: [smoke-install-no-bsqlite, plugin-hooks-smoke]
steps:
- name: Checkout code
@@ -246,11 +255,14 @@ jobs:
cache: 'pnpm'
cache-dependency-path: v3/pnpm-lock.yaml
- name: Install + build v3 (so dist/ exists for marker checks)
- name: Install + build packages witness markers reference (scoped)
working-directory: v3
run: |
pnpm install --frozen-lockfile
pnpm build
pnpm --filter @claude-flow/cli... \
--filter @claude-flow/memory... \
--filter @claude-flow/security... \
build
- name: Verify witness manifest
run: |
+112 -24
View File
@@ -30,7 +30,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/aidefence':
dependencies:
@@ -96,7 +96,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/cli':
dependencies:
@@ -121,6 +121,9 @@ importers:
semver:
specifier: ^7.6.0
version: 7.7.3
yaml:
specifier: ^2.8.0
version: 2.8.2
optionalDependencies:
'@claude-flow/aidefence':
specifier: ^3.0.2
@@ -135,7 +138,7 @@ importers:
specifier: ^3.0.0-alpha.1
version: link:../guidance
'@claude-flow/memory':
specifier: ^3.0.0-alpha.12
specifier: ^3.0.0-alpha.14
version: link:../memory
'@claude-flow/plugin-gastown-bridge':
specifier: ^0.1.3
@@ -165,7 +168,7 @@ importers:
specifier: ^0.1.0
version: 0.1.0
'@ruvector/sona':
specifier: ^0.1.5
specifier: ^0.1.6
version: 0.1.6
agentdb:
specifier: ^3.0.0-alpha.13
@@ -179,7 +182,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)(yaml@2.8.2)
'@claude-flow/cli-core': {}
@@ -237,7 +240,7 @@ importers:
version: 25.0.2(typescript@5.9.3)
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/embeddings':
dependencies:
@@ -288,7 +291,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/hooks':
dependencies:
@@ -320,7 +323,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/integration':
dependencies:
@@ -365,19 +368,20 @@ importers:
version: 8.18.1
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/memory':
dependencies:
agentdb:
specifier: ^3.0.0-alpha.10
version: 3.0.0-alpha.10(@types/node@20.19.27)(better-sqlite3@11.10.0)(marked@11.2.0)
better-sqlite3:
specifier: ^11.0.0
version: 11.10.0
version: 3.0.0-alpha.10(@types/node@20.19.27)(better-sqlite3@12.9.0)(marked@11.2.0)
sql.js:
specifier: ^1.10.3
version: 1.13.0
optionalDependencies:
better-sqlite3:
specifier: ^12.9.0
version: 12.9.0
devDependencies:
'@types/better-sqlite3':
specifier: ^7.6.11
@@ -387,7 +391,7 @@ importers:
version: 1.4.9
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/neural':
dependencies:
@@ -413,7 +417,7 @@ importers:
devDependencies:
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/plugin-agent-federation':
dependencies:
@@ -479,7 +483,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/providers':
dependencies:
@@ -517,7 +521,7 @@ importers:
devDependencies:
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/shared':
dependencies:
@@ -551,7 +555,7 @@ importers:
version: 7.2.0
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
ws:
specifier: ^8.16.0
version: 8.19.0
@@ -563,7 +567,7 @@ importers:
devDependencies:
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
'@claude-flow/testing':
devDependencies:
@@ -581,7 +585,7 @@ importers:
version: 5.9.3
vitest:
specifier: ^4.0.16
version: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
version: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
packages:
@@ -2272,7 +2276,6 @@ packages:
resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}
engines: {node: '>=8.0.0'}
requiresBuild: true
dev: false
/@opentelemetry/api@1.9.1:
resolution: {integrity: sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==}
@@ -6358,7 +6361,7 @@ packages:
obug: 2.1.1
std-env: 3.10.0
tinyrainbow: 3.0.3
vitest: 4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27)
vitest: 4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27)
transitivePeerDependencies:
- supports-color
dev: true
@@ -6679,7 +6682,7 @@ packages:
- supports-color
dev: false
/agentdb@3.0.0-alpha.10(@types/node@20.19.27)(better-sqlite3@11.10.0)(marked@11.2.0):
/agentdb@3.0.0-alpha.10(@types/node@20.19.27)(better-sqlite3@12.9.0)(marked@11.2.0):
resolution: {integrity: sha512-Sk3yRRR44obOHRHKagD9svC5dYksVTMDB96+PeRTWcD9gPRPLhvGhVati8eS8cHW+RxPjfSzuQ7syuzlpY3BvQ==}
engines: {node: '>=18.0.0'}
hasBin: true
@@ -6699,7 +6702,7 @@ packages:
'@modelcontextprotocol/sdk': 1.27.1(zod@3.25.76)
'@ruvector/graph-transformer': 2.0.4
ajv: 8.18.0
better-sqlite3: 11.10.0
better-sqlite3: 12.9.0
ruvector: 0.1.100(zod@3.25.76)
sql.js: 1.13.0
zod: 3.25.76
@@ -7401,6 +7404,15 @@ packages:
prebuild-install: 7.1.3
dev: false
/better-sqlite3@12.9.0:
resolution: {integrity: sha512-wqUv4Gm3toFpHDQmaKD4QhZm3g1DjUBI0yzS4UBl6lElUmXFYdTQmmEDpAFa5o8FiFiymURypEnfVHzILKaxqQ==}
engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x}
requiresBuild: true
dependencies:
bindings: 1.5.0
prebuild-install: 7.1.3
dev: false
/bignumber.js@9.3.1:
resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==}
requiresBuild: true
@@ -8468,6 +8480,7 @@ packages:
/expand-template@2.0.3:
resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}
engines: {node: '>=6'}
requiresBuild: true
dev: false
/expect-type@1.3.0:
@@ -9060,6 +9073,7 @@ packages:
/github-from-package@0.0.0:
resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==}
requiresBuild: true
dev: false
/glob-parent@6.0.2:
@@ -10303,6 +10317,7 @@ packages:
/mkdirp-classic@0.5.3:
resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==}
requiresBuild: true
dev: false
/mkdirp@1.0.4:
@@ -10361,6 +10376,7 @@ packages:
/napi-build-utils@2.0.0:
resolution: {integrity: sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==}
requiresBuild: true
dev: false
/natural-compare@1.4.0:
@@ -10392,6 +10408,7 @@ packages:
/node-abi@3.85.0:
resolution: {integrity: sha512-zsFhmbkAzwhTft6nd3VxcG0cvJsT70rL+BIGHWVq5fi6MwGrHwzqKaxXE+Hl2GmnGItnDKPPkO5/LQqjVkIdFg==}
engines: {node: '>=10'}
requiresBuild: true
dependencies:
semver: 7.7.4
dev: false
@@ -12378,6 +12395,7 @@ packages:
/tar-fs@2.1.4:
resolution: {integrity: sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==}
requiresBuild: true
dependencies:
chownr: 1.1.4
mkdirp-classic: 0.5.3
@@ -12941,6 +12959,76 @@ packages:
fsevents: 2.3.3
dev: true
/vitest@4.0.16(@opentelemetry/api@1.9.0)(@types/node@20.19.27):
resolution: {integrity: sha512-E4t7DJ9pESL6E3I8nFjPa4xGUd3PmiWDLsDztS2qXSJWfHtbQnwAWylaBvSNY48I3vr8PTqIZlyK8TE3V3CA4Q==}
engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
'@opentelemetry/api': ^1.9.0
'@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
'@vitest/browser-playwright': 4.0.16
'@vitest/browser-preview': 4.0.16
'@vitest/browser-webdriverio': 4.0.16
'@vitest/ui': 4.0.16
happy-dom: '*'
jsdom: '*'
peerDependenciesMeta:
'@edge-runtime/vm':
optional: true
'@opentelemetry/api':
optional: true
'@types/node':
optional: true
'@vitest/browser-playwright':
optional: true
'@vitest/browser-preview':
optional: true
'@vitest/browser-webdriverio':
optional: true
'@vitest/ui':
optional: true
happy-dom:
optional: true
jsdom:
optional: true
dependencies:
'@opentelemetry/api': 1.9.0
'@types/node': 20.19.27
'@vitest/expect': 4.0.16
'@vitest/mocker': 4.0.16(vite@7.3.0)
'@vitest/pretty-format': 4.0.16
'@vitest/runner': 4.0.16
'@vitest/snapshot': 4.0.16
'@vitest/spy': 4.0.16
'@vitest/utils': 4.0.16
es-module-lexer: 1.7.0
expect-type: 1.3.0
magic-string: 0.30.21
obug: 2.1.1
pathe: 2.0.3
picomatch: 4.0.3
std-env: 3.10.0
tinybench: 2.9.0
tinyexec: 1.0.2
tinyglobby: 0.2.15
tinyrainbow: 3.0.3
vite: 7.3.0(@types/node@20.19.27)(tsx@4.21.0)
why-is-node-running: 2.3.0
transitivePeerDependencies:
- jiti
- less
- lightningcss
- msw
- sass
- sass-embedded
- stylus
- sugarss
- terser
- tsx
- yaml
dev: true
/vitest@4.0.16(@opentelemetry/api@1.9.1)(@types/node@20.19.27):
resolution: {integrity: sha512-E4t7DJ9pESL6E3I8nFjPa4xGUd3PmiWDLsDztS2qXSJWfHtbQnwAWylaBvSNY48I3vr8PTqIZlyK8TE3V3CA4Q==}
engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}