{"record":{"id":"9c95a047f71a6e7f","repo":"headroomlabs-ai/headroom","slug":"memory-system-not-initialized","errorCode":null,"errorMessage":"Memory system not initialized","messagePattern":"Memory system not initialized","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"headroom/evals/memory/runner.py","lineNumber":361,"sourceCode":"        except Exception as e:\n            logger.warning(f\"Memory extraction failed: {e}\")\n\n        return []\n\n    async def _store_conversation(\n        self,\n        conversation: LoCoMoConversation,\n    ) -> int:\n        \"\"\"Store a conversation's dialogues as memories.\n\n        Args:\n            conversation: The LoCoMo conversation to store.\n\n        Returns:\n            Number of memories stored.\n        \"\"\"\n        if self.memory is None:\n            raise RuntimeError(\"Memory system not initialized\")\n\n        memories_data: list[dict[str, Any]] = []\n        user_id = f\"locomo_{conversation.sample_id}\"\n\n        if self.config.extract_memories:\n            # Use LLM to extract facts from each session\n            for session in conversation.sessions:\n                session_id = f\"session_{session.session_num}\"\n\n                # Get full session text\n                session_text = session.text\n\n                # Extract memories using LLM\n                extracted = self._extract_memories_from_session(\n                    session_text=session_text,\n                    session_datetime=session.datetime,\n                    speaker_a=conversation.speaker_a,\n                    speaker_b=conversation.speaker_b,","sourceCodeStart":343,"sourceCodeEnd":379,"githubUrl":"https://github.com/headroomlabs-ai/headroom/blob/322425c43bffde1ed0b64fecf3cf5951565dd82b/headroom/evals/memory/runner.py#L343-L379","documentation":"Error \"Memory system not initialized\" thrown in headroomlabs-ai/headroom.","triggerScenarios":"Raised when the memory eval runner is asked to use the memory system before it has been initialized, usually because setup was skipped or failed earlier.","commonSituations":"See trigger scenarios.","solutions":["Initialize the memory system before running the eval (call the runner's setup/init step or pass an initialized memory instance)","Check earlier initialization errors — a failed backend or missing dependency can leave the memory system uninitialized","Verify memory backend configuration (storage path, embedder) is valid"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"322425c43bffde1ed0b64fecf3cf5951565dd82b","analyzedAt":"2026-08-15T01:03:05.481Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}