{"record":{"id":"3894ec8bd0f65c92","repo":"ruvnet/ruflo","slug":"attention-module-not-initialized","errorCode":null,"errorMessage":"Attention module not initialized","messagePattern":"Attention module not initialized","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/ruvector-upstream/src/bridges/attention.ts","lineNumber":98,"sourceCode":"\n  isReady(): boolean {\n    return this._status === 'ready';\n  }\n\n  getModule(): AttentionModule | null {\n    return this._module;\n  }\n\n  /**\n   * Compute flash attention\n   */\n  flashAttention(\n    query: Float32Array,\n    key: Float32Array,\n    value: Float32Array,\n    config?: Partial<AttentionConfig>\n  ): Float32Array {\n    if (!this._module) throw new Error('Attention module not initialized');\n    const mergedConfig = { ...this.config, ...config };\n    return this._module.flashAttention(query, key, value, mergedConfig);\n  }\n\n  /**\n   * Compute multi-head attention\n   */\n  multiHeadAttention(\n    query: Float32Array,\n    key: Float32Array,\n    value: Float32Array,\n    config?: Partial<AttentionConfig>\n  ): Float32Array {\n    if (!this._module) throw new Error('Attention module not initialized');\n    const mergedConfig = { ...this.config, ...config };\n    return this._module.multiHeadAttention(query, key, value, mergedConfig);\n  }\n","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/ruvector-upstream/src/bridges/attention.ts#L80-L116","documentation":"flashAttention() was called while this._module is null: the attention WASM module was never initialized or was destroyed. It is a lifecycle sentinel guard — the computation cannot be delegated to the native module; inputs are not the problem.","triggerScenarios":"Thrown at v3/plugins/ruvector-upstream/src/bridges/attention.ts:98 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"}