{"record":{"id":"e125c253bec07ec2","repo":"tinyhumansai/openhuman","slug":"memory-vector-search-memory-driver-does-not-suppo","errorCode":null,"errorMessage":"memory_vector_search: memory driver does not support the chunk family","messagePattern":"memory_vector_search: memory driver does not support the chunk family","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tools/search/vector_search.rs","lineNumber":135,"sourceCode":"            limit,\n            parsed.diverse,\n        );\n\n        let config = config_rpc::load_config_with_timeout()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_vector_search: load config failed: {e}\"))?;\n\n        // Chunks are read through the bound driver, not by opening the store\n        // in this process. Before the module port this called\n        // `list_chunks(&config, …)` directly, which resolved the workspace path\n        // and opened the same SQLite database the loaded module already had\n        // open — two engine instances over one file, with the module not\n        // authoritative. See `docs/specs/2026-08-13-memory-module-port.md` §2.1.\n        let guard = active_memory_guard()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_vector_search: {e}\"))?;\n        let chunk_reader = guard.as_chunks().ok_or_else(|| {\n            anyhow::anyhow!(\"memory_vector_search: memory driver does not support the chunk family\")\n        })?;\n\n        let embedder = provider_from_config(&config)\n            .map_err(|e| anyhow::anyhow!(\"memory_vector_search: embedding provider failed: {e}\"))?;\n\n        let query_vec = embedder\n            .embed_one(&parsed.query)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_vector_search: embedding query failed: {e}\"))?;\n\n        let source_kind = match parsed.source_kind.as_deref() {\n            Some(s) => Some(\n                SourceKind::parse(s).map_err(|e| anyhow::anyhow!(\"memory_vector_search: {e}\"))?,\n            ),\n            None => None,\n        };\n\n        let since_ms = parsed.time_window_days.map(|days| {","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tools/search/vector_search.rs#L117-L153","documentation":"The bound memory driver was acquired but does not expose the chunks capability family (`as_chunks()` returned None). Vector search reads raw chunks through the driver; a driver that only implements other capability families (e.g. a null or partial fallback provider when no memory module is loaded) makes chunk-based vector search structurally unavailable, and this guard fires before any query is issued.","triggerScenarios":"Thrown at src/openhuman/memory/tools/search/vector_search.rs:135 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the memory module is loaded and pinned in modules::registry","Check which memory driver is bound (module vs null fallback) via memory health/status","Use a retrieval path the driver does support, such as memory_recall or hybrid search","Rebuild/re-pin the memory module release if the capability family is missing"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}