{"record":{"id":"137044ae9371285d","repo":"ruvnet/ruflo","slug":"exoticbridge-not-initialized","errorCode":null,"errorMessage":"ExoticBridge not initialized","messagePattern":"ExoticBridge not initialized","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/quantum-optimizer/src/bridges/exotic-bridge.ts","lineNumber":139,"sourceCode":"  }\n\n  /**\n   * Dispose of resources\n   */\n  async dispose(): Promise<void> {\n    this._module = null;\n    this._status = 'unloaded';\n  }\n\n  /**\n   * Solve a QUBO problem using simulated quantum annealing\n   */\n  async solveQubo(\n    problem: QUBOProblem,\n    config: Partial<AnnealingConfig> = {}\n  ): Promise<AnnealingResult> {\n    if (!this._module) {\n      throw new Error('ExoticBridge not initialized');\n    }\n\n    const mergedConfig = { ...DEFAULT_ANNEALING_CONFIG, ...config };\n    const startTime = performance.now();\n\n    // Validate problem\n    this.validateQuboProblem(problem);\n\n    // Run annealing\n    const samples: QUBOSolution[] = [];\n    const energyHistogram = new Map<number, number>();\n\n    for (let read = 0; read < mergedConfig.numReads; read++) {\n      const solution = this.simulatedAnnealing(problem, mergedConfig);\n      samples.push(solution);\n\n      const energyKey = Math.round(solution.energy * 1000) / 1000;\n      energyHistogram.set(energyKey, (energyHistogram.get(energyKey) ?? 0) + 1);","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/quantum-optimizer/src/bridges/exotic-bridge.ts#L121-L157","documentation":"solveQubo() was called while this._module is null — i.e. initialize() has not completed (or dispose() ran). It is a lifecycle sentinel guard: the WASM/annealing module handle is missing, so the problem cannot be dispatched to any solver. Problem contents are not yet validated at this point.","triggerScenarios":"Thrown at v3/plugins/quantum-optimizer/src/bridges/exotic-bridge.ts:139 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":"validation","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"}