{"record":{"id":"85c5702b670eb727","repo":"ruvnet/ruflo","slug":"reasoningbank-agentdb-not-available-using-in-me","errorCode":null,"errorMessage":"[ReasoningBank] AgentDB not available, using in-memory mode","messagePattern":"\\[ReasoningBank\\] AgentDB not available, using in-memory mode","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/hooks/src/reasoningbank/index.ts","lineNumber":276,"sourceCode":"            console.warn('[ReasoningBank] Real embeddings unavailable, using hash-based fallback');\n          }\n        }\n\n        await this.loadPatterns();\n        console.log(`[ReasoningBank] Initialized with AgentDB + HNSW (M=${this.config.hnswM}, efConstruction=${this.config.hnswEfConstruction})`);\n      } else {\n        throw new Error('Dependencies not available');\n      }\n\n      this.initialized = true;\n      this.emit('initialized', {\n        shortTermCount: this.shortTermPatterns.size,\n        longTermCount: this.longTermPatterns.size,\n        useRealBackend: this.useRealBackend,\n      });\n    } catch (error) {\n      // Fallback to in-memory only mode\n      console.warn('[ReasoningBank] AgentDB not available, using in-memory mode');\n      this.useRealBackend = false;\n      this.initialized = true;\n    }\n  }\n\n  /**\n   * Load optional dependencies\n   */\n  private async loadDependencies(): Promise<void> {\n    // Try to load optional peer dependencies at runtime\n    const dynamicImport = async (moduleName: string): Promise<any> => {\n      try {\n        return await import(/* webpackIgnore: true */ moduleName);\n      } catch {\n        return null;\n      }\n    };\n","sourceCodeStart":258,"sourceCodeEnd":294,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/hooks/src/reasoningbank/index.ts#L258-L294","documentation":"Log warning in initialize: AgentDB (with HNSW persistence) is unavailable, so the ReasoningBank runs in pure in-memory mode — patterns are not persisted and searches are in-memory scans.","triggerScenarios":"Thrown at v3/@claude-flow/hooks/src/reasoningbank/index.ts:276 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install/enable AgentDB for persistent pattern storage; in-memory mode loses patterns on restart."],"exampleFix":null,"handlingStrategy":"fallback","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"}