{"record":{"id":"4acb0bfbd344c258","repo":"ruvnet/ruflo","slug":"memory-load-failed","errorCode":"MEMORY_LOAD_FAILED","errorMessage":"Failed to load memory for ${teammateId}","messagePattern":"Failed to load memory for (.+?)","errorType":"exception","errorClass":"TeammateError","httpStatus":null,"severity":"error","filePath":"v3/plugins/teammate-plugin/src/teammate-bridge.ts","lineNumber":1784,"sourceCode":"    try {\n      const memory = JSON.parse(fs.readFileSync(memoryPath, 'utf-8')) as TeammateMemory;\n\n      // Parse dates\n      memory.createdAt = new Date(memory.createdAt);\n      memory.updatedAt = new Date(memory.updatedAt);\n      memory.transcript = memory.transcript.map(m => ({\n        ...m,\n        timestamp: new Date(m.timestamp),\n      }));\n\n      const memoryKey = `${teamName}:${teammateId}`;\n      this.teammateMemories.set(memoryKey, memory);\n\n      this.emit('memory:loaded', { team: teamName, teammateId });\n\n      return memory;\n    } catch {\n      throw new TeammateError(\n        `Failed to load memory for ${teammateId}`,\n        TeammateErrorCode.MEMORY_LOAD_FAILED,\n        teamName,\n        teammateId\n      );\n    }\n  }\n\n  /**\n   * Share transcript between teammates\n   */\n  async shareTranscript(\n    teamName: string,\n    fromId: string,\n    toId: string,\n    options?: { start?: number; end?: number }\n  ): Promise<void> {\n    this.ensureAvailable();","sourceCodeStart":1766,"sourceCodeEnd":1802,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/teammate-plugin/src/teammate-bridge.ts#L1766-L1802","documentation":"The teammate-memory loader caught an exception while reading/parsing the memory file for the teammate (missing file, unreadable JSON, or invalid date fields) and rethrew as a TeammateError. The persisted memory state is corrupt or absent, so the transcript/history cannot be reconstructed.","triggerScenarios":"Thrown at v3/plugins/teammate-plugin/src/teammate-bridge.ts:1784 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the memory store for the teammate; verify the store backend is reachable and the teammate id is correct."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}