ruvnet/ruflo · error · QEMemoryError
Failed to search patterns
Error message
Failed to search patterns
What it means
QEMemoryBridge.searchSimilarPatterns() failed during the vector search or while parsing results back into TestPattern objects. The catch logs and wraps in QEMemoryError — no (possibly partial) pattern list is returned.
Source
Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:267
namespace: QE_NAMESPACES.testPatterns.name,
filters: searchFilters,
});
// Parse results back to TestPattern objects
const patterns = results.map((result) => {
try {
return JSON.parse(result.content) as TestPattern;
} catch {
this.logger.warn(`Failed to parse pattern content: ${result.id}`);
return null;
}
}).filter((p): p is TestPattern => p !== null);
this.logger.debug(`Found ${patterns.length} similar patterns`);
return patterns;
} catch (error) {
this.logger.error('Failed to search similar patterns', error);
throw new QEMemoryError('Failed to search patterns', error as Error);
}
}
/**
* Store a coverage gap
*/
async storeCoverageGap(gap: CoverageGap): Promise<string> {
this.ensureInitialized();
try {
this.logger.debug(`Storing coverage gap: ${gap.file}:${gap.location.startLine}`);
// Generate embedding for semantic search
const embeddingText = `coverage gap ${gap.file} ${gap.type} ${gap.location.startLine} ${gap.reason}`;
const { embedding } = await this.embeddings.embed(embeddingText);
const id = await this.memory.store({
namespace: QE_NAMESPACES.coverageData.name,View on GitHub (pinned to fa13ee4ad6)
Solutions
- Check the search query and namespace exist.
- Inspect the underlying search error.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:267 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/daf351f8226dcc60.
Report an issue: GitHub.