{"record":{"id":"88a0c59f9c18d505","repo":"ruvnet/ruflo","slug":"cognitive-module-not-initialized","errorCode":null,"errorMessage":"Cognitive module not initialized","messagePattern":"Cognitive module not initialized","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/cognitive-kernel/src/bridges/cognitive-bridge.ts","lineNumber":142,"sourceCode":"\n  async destroy(): Promise<void> {\n    this._module = null;\n    this._status = 'unloaded';\n  }\n\n  isReady(): boolean {\n    return this._status === 'ready';\n  }\n\n  getModule(): CognitiveModule | null {\n    return this._module;\n  }\n\n  /**\n   * Store item in working memory\n   */\n  store(item: CognitiveItem): boolean {\n    if (!this._module) throw new Error('Cognitive module not initialized');\n    return this._module.store(item);\n  }\n\n  /**\n   * Retrieve item from working memory\n   */\n  retrieve(id: string): CognitiveItem | null {\n    if (!this._module) throw new Error('Cognitive module not initialized');\n    return this._module.retrieve(id);\n  }\n\n  /**\n   * Search working memory\n   */\n  search(query: Float32Array, k: number): CognitiveItem[] {\n    if (!this._module) throw new Error('Cognitive module not initialized');\n    return this._module.search(query, k);\n  }","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/cognitive-kernel/src/bridges/cognitive-bridge.ts#L124-L160","documentation":"CognitiveBridge.store() was called while the underlying cognitive WASM module is not loaded (this._module is null — initialize() not run, failed, or destroy() was called). The same not-initialized sentinel guards every module-backed operation on this bridge.","triggerScenarios":"Thrown at v3/plugins/cognitive-kernel/src/bridges/cognitive-bridge.ts:142 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-14T00:17:10.932Z"}