{"record":{"id":"318a87000b498984","repo":"tinyhumansai/openhuman","slug":"memory-tree-cover-window-memory-driver-does-not-s","errorCode":null,"errorMessage":"memory_tree_cover_window: memory driver does not support the retrieval family","messagePattern":"memory_tree_cover_window: memory driver does not support the retrieval family","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/query/cover_window.rs","lineNumber":104,"sourceCode":"        };\n        log::trace!(\n            \"[tool][memory_tree] cover_window dispatch limit={}\",\n            req.limit.unwrap_or(0)\n        );\n        let guard = active_memory_guard()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_tree_cover_window: {e}\"))?;\n        let window = CoverWindowQuery {\n            since_ms: req.since_ms,\n            until_ms: req.until_ms,\n            source_id: req.source_id.clone(),\n            source_kind,\n            limit: req.limit,\n        };\n        let resp = guard\n            .as_retrieval()\n            .ok_or_else(|| {\n                anyhow::anyhow!(\n                    \"memory_tree_cover_window: memory driver does not support the retrieval family\"\n                )\n            })?\n            .cover_window(&window, None)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_tree_cover_window: {e}\"))?;\n        log::debug!(\n            \"[tool][memory_tree] cover_window returning hits={} total={}\",\n            resp.hits.len(),\n            resp.total\n        );\n        let json = serde_json::to_string(&resp)?;\n        Ok(ToolResult::success(json))\n    }\n}\n\n#[cfg(test)]\nmod tests {","sourceCodeStart":86,"sourceCodeEnd":122,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/query/cover_window.rs#L86-L122","documentation":"After acquiring the memory guard, as_retrieval() returned None — the bound driver lacks the retrieval family, so CoverWindowQuery cannot be dispatched. Capability mismatch on the driver, not a bad query.","triggerScenarios":"Thrown at src/openhuman/memory/query/cover_window.rs:104 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a driver implementing MemoryRetrieval (the tinymemory module)","Diagnose why a retrieval-less driver (e.g. null) got bound","Avoid cover_window queries against backends without retrieval support"],"exampleFix":null,"handlingStrategy":"type-guard","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"}