ruvnet/ruflo · error · QEMemoryError
Failed to store trajectory
Error message
Failed to store trajectory
What it means
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.
Source
Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:412
content: JSON.stringify(trajectory),
embedding,
metadata: {
taskType: trajectory.taskType,
agentId: trajectory.agentId,
success: trajectory.success,
reward: trajectory.reward,
verdict: trajectory.verdict,
stepCount: trajectory.steps.length,
durationMs: trajectory.durationMs,
},
type: 'procedural',
});
this.logger.debug(`Stored learning trajectory with ID: ${id}`);
return id;
} catch (error) {
this.logger.error('Failed to store learning trajectory', error);
throw new QEMemoryError('Failed to store trajectory', error as Error);
}
}
/**
* Search trajectories by similarity
*/
async searchTrajectories(
query: string,
k: number = 10,
filters?: { taskType?: string; success?: boolean }
): Promise<LearningTrajectory[]> {
this.ensureInitialized();
try {
this.logger.debug(`Searching trajectories: "${query.slice(0, 50)}..."`);
const { embedding } = await this.embeddings.embed(query);
View on GitHub (pinned to fa13ee4ad6)
Solutions
- Validate the trajectory payload before storing.
- Inspect the underlying store error.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:412 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/afaad2d5e69d3c42.
Report an issue: GitHub.