{"record":{"id":"940c2a1075d934b1","repo":"tinyhumansai/openhuman","slug":"memory-vector-search-list-chunks-failed-e","errorCode":null,"errorMessage":"memory_vector_search: list chunks failed: {e}","messagePattern":"memory_vector_search: list chunks failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tools/search/vector_search.rs","lineNumber":179,"sourceCode":"        //\n        // `None` for the scope is not \"unrestricted\": the guard intersects it\n        // with the ambient per-turn allowlist and passes the result down, so\n        // naming a scope here could only ever *narrow* what the turn may see.\n        let query = ChunkQuery {\n            source_kind,\n            source_id: None,\n            owner: None,\n            since_ms,\n            until_ms: None,\n            limit: Some(1000),\n            offset: None,\n            exclude_dropped: false,\n        };\n\n        let chunks = chunk_reader\n            .list_chunks(&query, None)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_vector_search: list chunks failed: {e}\"))?;\n\n        if chunks.is_empty() {\n            return Ok(ToolResult::success(\"No chunks found matching filters.\"));\n        }\n\n        // Get embeddings for these chunks\n        let chunk_ids: Vec<String> = chunks.iter().map(|c| c.id.clone()).collect();\n        let model_sig = embedder.signature();\n        let embeddings: std::collections::HashMap<String, Vec<f32>> = chunk_reader\n            .chunk_embeddings(&chunk_ids, &model_sig)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_vector_search: load embeddings failed: {e}\"))?\n            .into_iter()\n            .map(|embedding| (embedding.chunk_id, embedding.vector))\n            .collect();\n\n        // Score each chunk\n        let mut scored: Vec<(usize, f64, &[f32])> = Vec::new();","sourceCodeStart":161,"sourceCodeEnd":197,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tools/search/vector_search.rs#L161-L197","documentation":"Listing candidate chunks from the memory store through the chunk-reader driver failed during `memory_vector_search`. The ChunkQuery (source_kind/time window, limit 1000) was built and issued, but the underlying store call errored — typically a database/module transport fault rather than a bad query, since the query shape is constructed internally. `{e}` carries the store-side error.","triggerScenarios":"Thrown at src/openhuman/memory/tools/search/vector_search.rs:179 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect `{e}` for the store or module transport error","Retry — transient SQLite/module contention can cause this","Check memory store health and workspace path integrity","Relax filters (source_kind, time_window_days) that may scan excessive rows"],"exampleFix":null,"handlingStrategy":"retry","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"}