{"record":{"id":"ec51c554fd702433","repo":"tinyhumansai/openhuman","slug":"memory-recall-e","errorCode":null,"errorMessage":"memory_recall: {e}","messagePattern":"memory_recall: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tools/recall.rs","lineNumber":93,"sourceCode":"        }\n\n        #[allow(clippy::cast_possible_truncation)]\n        let limit = args\n            .get(\"limit\")\n            .and_then(serde_json::Value::as_u64)\n            .map_or(5, |v| v as usize);\n\n        // Search with the user query only. Prefixing `namespace` into the query\n        // string would add a redundant token matching almost every row. Instead,\n        // namespace scoping belongs in RecallOpts so the backend restricts the\n        // search to the correct namespace column.\n        let recall_opts = crate::openhuman::memory::api::recall::OwnedRecallOpts {\n            namespace: Some(namespace.to_string()),\n            ..Default::default()\n        };\n        let guard = active_memory_guard()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_recall: {e}\"))?;\n        // `None` scope: the guard intersects it with the ambient per-turn\n        // allowlist, so this can only ever be narrowed, never widened.\n        match guard.recall(query, limit, &recall_opts, None).await {\n            Ok(entries) if entries.is_empty() => Ok(ToolResult::success(\n                \"No memories found matching that query.\",\n            )),\n            Ok(entries) => {\n                let mut output = format!(\"Found {} memories:\\n\", entries.len());\n                for entry in &entries {\n                    let score = entry\n                        .score\n                        .map_or_else(String::new, |s| format!(\" [{s:.0}%]\"));\n                    let _ = writeln!(\n                        output,\n                        \"- [{}] {}: {}{score}\",\n                        entry.category, entry.key, entry.content\n                    );\n                }","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tools/recall.rs#L75-L111","documentation":"The driver's recall search failed after namespace/query/limit parsing. The search runs with the user query only (namespace rides in RecallOpts, not the query string); the chained {e} is the backend's reason.","triggerScenarios":"Thrown at src/openhuman/memory/tools/recall.rs:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry transient backend failures","Check the chained error for store/embedding faults","Verify the namespace exists in the recall store"],"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"}