{"record":{"id":"6c97dbd281c77b1c","repo":"ruvnet/ruflo","slug":"wasm-gnn-module-not-available-using-js-fallback","errorCode":null,"errorMessage":"WASM GNN module not available, using JS fallback","messagePattern":"WASM GNN module not available, using JS fallback","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/code-intelligence/src/bridges/gnn-bridge.ts","lineNumber":101,"sourceCode":"  private readonly embeddingDim: number;\n\n  constructor(embeddingDim = 128) {\n    this.embeddingDim = embeddingDim;\n  }\n\n  /**\n   * Initialize the WASM module\n   */\n  async initialize(): Promise<void> {\n    if (this.initialized) return;\n\n    try {\n      // Dynamic import of WASM module\n      this.wasmModule = await this.loadWasmModule();\n      this.initialized = true;\n    } catch {\n      // Fallback to pure JS implementation\n      console.warn('WASM GNN module not available, using JS fallback');\n      this.wasmModule = null;\n      this.initialized = true;\n    }\n  }\n\n  /**\n   * Check if initialized\n   */\n  isInitialized(): boolean {\n    return this.initialized;\n  }\n\n  /**\n   * Build code graph from files\n   */\n  async buildCodeGraph(\n    files: string[],\n    _includeCallGraph: boolean","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/code-intelligence/src/bridges/gnn-bridge.ts#L83-L119","documentation":"Fallback path in GnnBridge.initialize(): dynamic import of the WASM GNN module failed, so the bridge sets wasmModule to null and continues with the pure-JavaScript implementation. Correct but slower results.","triggerScenarios":"The GNN WASM binary is missing, fails to instantiate, or the runtime lacks WASM support; bridge transparently falls back to the pure-JS GNN implementation with lower throughput.","commonSituations":"See trigger scenarios.","solutions":["Ensure the WASM GNN artifact is built and its path is correctly resolved so the native module loads.","Check the runtime supports WebAssembly and required WASM features (SIMD/threads) if used.","If JS fallback is acceptable, no action needed; otherwise fix the module loading error logged at init."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}