{"record":{"id":"86c4062d15e029cb","repo":"tinyhumansai/openhuman","slug":"memory-store-e","errorCode":null,"errorMessage":"memory_store: {e}","messagePattern":"memory_store: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tools/store.rs","lineNumber":129,"sourceCode":"            return Ok(ToolResult::error(\"key cannot be empty\".to_string()));\n        }\n\n        if safety::has_likely_secret(content) {\n            log::warn!(\n                \"[memory:safety] memory_store rejected secret-like content namespace_chars={} key_chars={} content_chars={}\",\n                namespace.chars().count(),\n                key.chars().count(),\n                content.chars().count()\n            );\n            return Ok(ToolResult::error(\n                \"Refusing to store content that looks like a secret. Remove credentials or tokens and try again.\".to_string(),\n            ));\n        }\n\n        let display_key = format!(\"{namespace}/{key}\");\n        let guard = active_memory_guard()\n            .await\n            .map_err(|e| anyhow::anyhow!(\"memory_store: {e}\"))?;\n        match guard\n            .store(\n                namespace,\n                key,\n                content,\n                category,\n                None,\n                // Requested provenance; the guard stamps the effective value.\n                MemoryTaint::default(),\n            )\n            .await\n        {\n            Ok(()) => Ok(ToolResult::success(format!(\"Stored memory: {display_key}\"))),\n            Err(e) => Ok(ToolResult::error(format!(\"Failed to store memory: {e}\"))),\n        }\n    }\n}\n","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tools/store.rs#L111-L147","documentation":"Generic wrapper around the actual memory-store write for `memory_store`: inputs passed all guards (non-empty key, content not secret-like) but persisting the entry through the memory driver failed. The `{e}` detail identifies the failing layer — store I/O, module transport, or category handling.","triggerScenarios":"Thrown at src/openhuman/memory/tools/store.rs:129 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect `{e}` for the store-layer cause","Retry once for transient store/module faults","Check memory store health and workspace permissions","Use a standard category ('core', 'daily', 'conversation') if the detail implicates category handling"],"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"}