{"record":{"id":"fb304a6f04a1b216","repo":"ruvnet/ruflo","slug":"memory-backend-not-available","errorCode":null,"errorMessage":"Memory backend not available","messagePattern":"Memory backend not available","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/src/task-execution/application/WorkflowEngine.ts","lineNumber":329,"sourceCode":"\n    return {\n      executionTrace: execution.executionOrder.map((taskId, index) => ({\n        taskId,\n        timestamp: execution.taskTimings[taskId]?.start || Date.now(),\n        action: 'execute'\n      })),\n      taskTimings: execution.taskTimings,\n      memorySnapshots: execution.memorySnapshots,\n      eventLog: execution.eventLog\n    };\n  }\n\n  /**\n   * Restore a workflow from persisted state\n   */\n  async restoreWorkflow(workflowId: string): Promise<WorkflowState> {\n    if (!this.memoryBackend) {\n      throw new Error('Memory backend not available');\n    }\n\n    const stateMemory = await this.memoryBackend.retrieve(`workflow-state-${workflowId}`);\n    if (!stateMemory) {\n      // Try alternate key\n      const result = await this.memoryBackend.retrieve('workflow-state');\n      if (result) {\n        return JSON.parse(result.content);\n      }\n      throw new Error(`Workflow state not found for ${workflowId}`);\n    }\n\n    return JSON.parse(stateMemory.content);\n  }\n\n  // ============================================================================\n  // Private Helper Methods\n  // ============================================================================","sourceCodeStart":311,"sourceCodeEnd":347,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/src/task-execution/application/WorkflowEngine.ts#L311-L347","documentation":"restoreWorkflow() requires a persistence backend, but this.memoryBackend is null/undefined — the engine was constructed without one. Workflow state cannot be retrieved from persistence, so restoration is impossible regardless of workflowId.","triggerScenarios":"Thrown at v3/src/task-execution/application/WorkflowEngine.ts:329 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the module/bridge/plugin initialize() method has been called and awaited before invoking this operation.","Guard against calls made during startup: await the initialization promise or check the initialized flag and fail fast with a clear setup hint."],"exampleFix":null,"handlingStrategy":"validation","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-14T05:17:10.506Z"}