{"record":{"id":"4e21bcd611b21d2e","repo":"ruvnet/ruflo","slug":"gnn-bridge-not-initialized","errorCode":null,"errorMessage":"GNN bridge not initialized","messagePattern":"GNN bridge not initialized","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/plugins/healthcare-clinical/src/bridges/gnn-bridge.ts","lineNumber":387,"sourceCode":"      } else {\n        this.logger.warn('WASM module not available, using fallback implementation');\n      }\n\n      this.initialized = true;\n    } catch (error) {\n      this.logger.warn('Failed to initialize WASM, using fallback', {\n        error: error instanceof Error ? error.message : String(error),\n      });\n      this.initialized = true;\n    }\n  }\n\n  /**\n   * Load a graph into the GNN\n   */\n  async loadGraph(nodes: GNNNode[], edges: GNNEdge[]): Promise<void> {\n    if (!this.initialized) {\n      throw new Error('GNN bridge not initialized');\n    }\n\n    // Clear existing graph\n    this.nodes.clear();\n    this.edges = [];\n    this.nodeIdToIndex.clear();\n\n    // Index nodes\n    let idx = 0;\n    for (const node of nodes) {\n      this.nodes.set(node.id, node);\n      this.nodeIdToIndex.set(node.id, idx++);\n    }\n\n    // Store edges\n    this.edges = edges;\n\n    if (this.wasmModule) {","sourceCodeStart":369,"sourceCodeEnd":405,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/healthcare-clinical/src/bridges/gnn-bridge.ts#L369-L405","documentation":"GNNBridge.loadGraph() found this.initialized still false — initialize() (WASM load or fallback setup) has not completed. The load is refused before mutating the node/edge stores; every public bridge method carries the same readiness guard.","triggerScenarios":"Thrown at v3/plugins/healthcare-clinical/src/bridges/gnn-bridge.ts:387 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the module/bridge/plugin initialize() method has been called and awaited before invoking this operation.","Guard against calls made during startup: await the initialization promise or check the initialized flag and fail fast with a clear setup hint."],"exampleFix":null,"handlingStrategy":"type-guard","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-14T05:17:10.506Z"}