{"record":{"id":"fc94738f11770073","repo":"tinyhumansai/openhuman","slug":"call-memory-agent-agent-registry-not-initialised","errorCode":null,"errorMessage":"call_memory_agent: agent registry not initialised","messagePattern":"call_memory_agent: agent registry not initialised","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/agent/tools.rs","lineNumber":133,"sourceCode":"\n        let max_turns = args\n            .get(\"max_turns\")\n            .and_then(|v| v.as_u64())\n            .map(|v| v.clamp(1, 20) as usize);\n\n        let is_async = args.get(\"async\").and_then(|v| v.as_bool()).unwrap_or(false);\n\n        let parent = current_parent();\n        if parent.is_none() {\n            return Ok(ToolResult::error(\n                \"call_memory_agent: no parent agent context — this tool must be \\\n                 called from within an agent turn.\"\n                    .to_string(),\n            ));\n        }\n\n        let registry = AgentDefinitionRegistry::global()\n            .ok_or_else(|| anyhow::anyhow!(\"call_memory_agent: agent registry not initialised\"))?;\n\n        let definition = registry\n            .list()\n            .iter()\n            .find(|d| d.id == AGENT_ID)\n            .cloned()\n            .ok_or_else(|| {\n                anyhow::anyhow!(\n                    \"call_memory_agent: agent definition '{AGENT_ID}' not found in registry\"\n                )\n            })?;\n\n        let parent = parent.expect(\"checked above\");\n        if !parent.allowed_subagent_ids.contains(AGENT_ID) {\n            log::warn!(\n                \"[call_memory_agent] blocked memory subagent outside parent allowlist parent_agent={} requested_agent={} allowed={:?}\",\n                parent.agent_definition_id,\n                AGENT_ID,","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/agent/tools.rs#L115-L151","documentation":"AgentDefinitionRegistry::global() returned None when call_memory_agent tried to resolve its memory sub-agent — the process-global registry was never initialized in this process. The turn has a parent context, but the harness booted without registering agent definitions.","triggerScenarios":"Thrown at src/openhuman/memory/agent/tools.rs:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the host initializes the global agent registry during boot before dispatching agent turns","Retry after startup completes — the registry is populated during harness init","Check for a slim build/configuration that skips agent registry initialization"],"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-14T05:17:10.506Z"}