ruvnet/ruflo · error · QEMemoryError
Failed to get prioritized gaps
Error message
Failed to get prioritized gaps
What it means
QEMemoryError raised by getPrioritizedGaps when collecting, parsing, or priority-sorting stored coverage gaps fails — e.g. AgentDB query errors or unparseable gap entries — after which unparseable entries are filtered out or the error is surfaced.
Source
Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:375
} catch {
return null;
}
}).filter((g): g is CoverageGap => g !== null);
// Sort by priority (critical > high > medium > low) then by risk score
const priorityOrder = { critical: 0, high: 1, medium: 2, low: 3 };
gaps.sort((a, b) => {
const priorityDiff = priorityOrder[a.priority] - priorityOrder[b.priority];
if (priorityDiff !== 0) return priorityDiff;
return b.riskScore - a.riskScore;
});
const prioritizedGaps = gaps.slice(0, limit);
this.logger.debug(`Returning ${prioritizedGaps.length} prioritized gaps`);
return prioritizedGaps;
} catch (error) {
this.logger.error('Failed to get prioritized gaps', error);
throw new QEMemoryError('Failed to get prioritized gaps', error as Error);
}
}
/**
* Store a learning trajectory for ReasoningBank
*/
async storeTrajectory(trajectory: LearningTrajectory): Promise<string> {
this.ensureInitialized();
try {
this.logger.debug(`Storing learning trajectory: ${trajectory.id}`);
// Generate embedding from trajectory steps
const embeddingText = trajectory.steps.map((s) => s.action).join(' ');
const { embedding } = await this.embeddings.embed(embeddingText);
const id = await this.memory.store({
namespace: QE_NAMESPACES.learningTrajectories.name,View on GitHub (pinned to fa13ee4ad6)
Solutions
- Verify gap data exists and the prioritization function is available.
- Inspect the underlying error.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:375 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/422909f229d3fe13.
Report an issue: GitHub.