{"record":{"id":"d5507cda2d085fa8","repo":"ruvnet/ruflo","slug":"hyperbolicbridge-not-initialized","errorCode":null,"errorMessage":"HyperbolicBridge not initialized","messagePattern":"HyperbolicBridge not initialized","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/plugins/hyperbolic-reasoning/src/bridges/hyperbolic-bridge.ts","lineNumber":146,"sourceCode":"\n  /**\n   * Dispose of resources\n   */\n  async dispose(): Promise<void> {\n    this._indices.clear();\n    this._module = null;\n    this._status = 'unloaded';\n  }\n\n  /**\n   * Embed a hierarchy into hyperbolic space\n   */\n  async embedHierarchy(\n    hierarchy: Hierarchy,\n    config: Partial<EmbedHierarchyInput['parameters']> = {}\n  ): Promise<EmbeddedHierarchy> {\n    if (!this._module) {\n      throw new Error('HyperbolicBridge not initialized');\n    }\n\n    const mergedConfig = { ...DEFAULT_EMBED_CONFIG, ...config };\n    this.validateHierarchy(hierarchy);\n\n    // Initialize embeddings\n    const embeddings = new Map<string, HyperbolicPoint>();\n    const nodeIndex = new Map<string, number>();\n    const parentMap = new Map<string, string | null>();\n\n    hierarchy.nodes.forEach((node, idx) => {\n      nodeIndex.set(node.id, idx);\n      parentMap.set(node.id, node.parent);\n    });\n\n    // Find root(s) and compute depths\n    const depths = new Map<string, number>();\n    const computeDepth = (nodeId: string): number => {","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/hyperbolic-reasoning/src/bridges/hyperbolic-bridge.ts#L128-L164","documentation":"HyperbolicBridge.embedHierarchy() found this._module null — initialize() has not succeeded (or dispose() cleared it). The embedding computation is refused up front, before hierarchy validation or embedding math begins.","triggerScenarios":"Thrown at v3/plugins/hyperbolic-reasoning/src/bridges/hyperbolic-bridge.ts:146 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"}