{"record":{"id":"afaad2d5e69d3c42","repo":"ruvnet/ruflo","slug":"failed-to-store-trajectory","errorCode":null,"errorMessage":"Failed to store trajectory","messagePattern":"Failed to store trajectory","errorType":"exception","errorClass":"QEMemoryError","httpStatus":null,"severity":"error","filePath":"v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts","lineNumber":412,"sourceCode":"        content: JSON.stringify(trajectory),\n        embedding,\n        metadata: {\n          taskType: trajectory.taskType,\n          agentId: trajectory.agentId,\n          success: trajectory.success,\n          reward: trajectory.reward,\n          verdict: trajectory.verdict,\n          stepCount: trajectory.steps.length,\n          durationMs: trajectory.durationMs,\n        },\n        type: 'procedural',\n      });\n\n      this.logger.debug(`Stored learning trajectory with ID: ${id}`);\n      return id;\n    } catch (error) {\n      this.logger.error('Failed to store learning trajectory', error);\n      throw new QEMemoryError('Failed to store trajectory', error as Error);\n    }\n  }\n\n  /**\n   * Search trajectories by similarity\n   */\n  async searchTrajectories(\n    query: string,\n    k: number = 10,\n    filters?: { taskType?: string; success?: boolean }\n  ): Promise<LearningTrajectory[]> {\n    this.ensureInitialized();\n\n    try {\n      this.logger.debug(`Searching trajectories: \"${query.slice(0, 50)}...\"`);\n\n      const { embedding } = await this.embeddings.embed(query);\n","sourceCodeStart":394,"sourceCodeEnd":430,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts#L394-L430","documentation":"QEMemoryBridge.storeTrajectory() failed to persist the learning trajectory into the learning-trajectories namespace. The catch logs the failure and wraps in QEMemoryError; the trajectory was not stored for future learning.","triggerScenarios":"Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:412 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate the trajectory payload before storing.","Inspect the underlying store error."],"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-14T05:17:10.506Z"}