Blocks A1 + INV-4 in [260526-kpoimj] (issue #35).
Package @ruvector/gnn resolves successfully at import('@ruvector/gnn') time (confirmed: node -e "import('@ruvector/gnn').then(() => console.log('ok'))" prints ok).
However, isGNNAvailable() at agentdb/src/wrappers/gnn-wrapper.ts:288-297 returns false inside the vitest process (confirmed via test stderr: [AgentDB] GNN backend construction failed: RuvectorGnnLearningBackend: GNN native module not available).
The probe calls a 2D Float32Array test operation against the NAPI binding, which fails with "Given napi value is not an array" against Node.js v22.22.1.
Consequence: A1 fails (learningBackend remains undefined). MUST M1 cannot be verified until the binding is stable in the vitest process context.
Recommended investigation: run node -e "const m = require('@ruvector/gnn'); console.log(m)" and compare NAPI version against Node.js v22.22.1 ABI table. Verify whether worker thread isolation in vitest interferes with NAPI module loading.
Source: docs/plans/260526-kpoimj-gnn-completion.md §8 Blocker 1.
Blocks A1 + INV-4 in [260526-kpoimj] (issue #35).
Package
@ruvector/gnnresolves successfully atimport('@ruvector/gnn')time (confirmed:node -e "import('@ruvector/gnn').then(() => console.log('ok'))"printsok).However,
isGNNAvailable()atagentdb/src/wrappers/gnn-wrapper.ts:288-297returnsfalseinside the vitest process (confirmed via test stderr:[AgentDB] GNN backend construction failed: RuvectorGnnLearningBackend: GNN native module not available).The probe calls a 2D Float32Array test operation against the NAPI binding, which fails with
"Given napi value is not an array"against Node.js v22.22.1.Consequence: A1 fails (
learningBackendremains undefined). MUST M1 cannot be verified until the binding is stable in the vitest process context.Recommended investigation: run
node -e "const m = require('@ruvector/gnn'); console.log(m)"and compare NAPI version against Node.js v22.22.1 ABI table. Verify whether worker thread isolation in vitest interferes with NAPI module loading.Source:
docs/plans/260526-kpoimj-gnn-completion.md§8 Blocker 1.