{"record":{"id":"1c1093c0478802bf","repo":"ruvnet/ruflo","slug":"pr-wasm-not-initialized","errorCode":"PR_WASM_NOT_INITIALIZED","errorMessage":"PR_WASM_NOT_INITIALIZED","messagePattern":"PR_WASM_NOT_INITIALIZED","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/prime-radiant/src/plugin.ts","lineNumber":116,"sourceCode":"  isInitialized(): boolean {\n    return this.initialized;\n  }\n\n  async dispose(): Promise<void> {\n    // Cleanup WASM resources\n    this.cohomologyEngine = null;\n    this.spectralEngine = null;\n    this.causalEngine = null;\n    this.quantumEngine = null;\n    this.categoryEngine = null;\n    this.hottEngine = null;\n    this.wasmModule = null;\n    this.initialized = false;\n  }\n\n  private ensureInitialized(): void {\n    if (!this.initialized) {\n      throw new Error(PrimeRadiantErrorCodes.WASM_NOT_INITIALIZED);\n    }\n  }\n\n  /**\n   * Load the WASM module\n   * In production, this loads from 'prime-radiant-advanced-wasm'\n   */\n  private async loadWasmModule(): Promise<unknown> {\n    // Attempt to load the actual WASM module\n    try {\n      // Specifier behind a string var so tsc doesn't statically resolve this\n      // optionalDependency at build time (TS2307 when it isn't installed).\n      const pkg: string = 'prime-radiant-advanced-wasm';\n      const module = await import(pkg);\n      if (module.default) {\n        await module.default();\n      }\n      return module;","sourceCodeStart":98,"sourceCodeEnd":134,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/prime-radiant/src/plugin.ts#L98-L134","documentation":"ensureInitialized() found this.initialized false — a PrimeRadiant operation was invoked before initialize() completed or after dispose(). The sentinel (PrimeRadiantErrorCodes.WASM_NOT_INITIALIZED) guards every engine-touching entry point.","triggerScenarios":"Thrown at v3/plugins/prime-radiant/src/plugin.ts:116 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying cause in logs, fix the root issue, and retry the operation.","Validate inputs and preconditions before invoking this code path so the error is avoided."],"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-14T00:17:10.932Z"}