{"record":{"id":"1872ae1c8b548136","repo":"tinyhumansai/openhuman","slug":"memory-tree-search-entities-e","errorCode":null,"errorMessage":"memory_tree_search_entities: {e}","messagePattern":"memory_tree_search_entities: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/query/search_entities.rs","lineNumber":76,"sourceCode":"        })?;\n        // `kinds` is **not** validated here any more, and that is a deliberate\n        // move rather than an omission.\n        //\n        // Entity kinds are an open vocabulary on the wire (see\n        // `memory::api::provider::retrieval`): the engine's own `EntityKind` is\n        // `#[non_exhaustive]` and has grown twice, so a closed host-side copy\n        // would either reject a kind the engine understands or drift silently\n        // out of date. The driver owns the vocabulary and rejects an unknown\n        // kind with `Invalid`.\n        //\n        // The cost is real and worth naming: a bad `kinds` value used to fail\n        // without a workspace, and now needs a bound driver to fail. The\n        // alternative — duplicating an open vocabulary host-side — is the\n        // failure mode this contract was shaped to avoid.\n        let limit = req.limit.unwrap_or(5).min(100);\n        let guard = active_memory_guard()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_tree_search_entities: {e}\"))?;\n        let matches = guard\n            .as_retrieval()\n            .ok_or_else(|| {\n                anyhow::anyhow!(\n                    \"memory_tree_search_entities: memory driver does not support the \\\n                     retrieval family\"\n                )\n            })?\n            .search_entities(&req.query, req.kinds.as_deref(), limit)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_tree_search_entities: {e}\"))?;\n        log::debug!(\n            \"[tool][memory_tree] search_entities returning matches={}\",\n            matches.len()\n        );\n        let json = serde_json::to_string(&matches)?;\n        Ok(ToolResult::success(json))\n    }","sourceCodeStart":58,"sourceCodeEnd":94,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/query/search_entities.rs#L58-L94","documentation":"Wrapper around active_memory_guard() in search_entities: driver acquisition failed. Notably kinds validation is deferred to the driver (open vocabulary), so this path is about the guard itself, not entity-kind arguments.","triggerScenarios":"Thrown at src/openhuman/memory/query/search_entities.rs:76 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry once the memory subsystem has bound","Check the chained error for the binding failure cause","Verify the memory driver configuration"],"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"}