ruvnet/ruflo · error · QEMemoryError

Failed to store coverage gap

Error message

Failed to store coverage gap

What it means

QEMemoryBridge.storeCoverageGap() failed to write the gap record into the coverage-data namespace (with its TTL). The catch logs and wraps in QEMemoryError; the coverage gap was not persisted for later prioritization.

Source

Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:304

        content: JSON.stringify(gap),
        embedding,
        metadata: {
          filePath: gap.file,
          type: gap.type,
          riskScore: gap.riskScore,
          priority: gap.priority,
          startLine: gap.location.startLine,
          endLine: gap.location.endLine,
        },
        type: 'episodic',
        ttl: QE_NAMESPACES.coverageData.ttl,
      });

      this.logger.debug(`Stored coverage gap with ID: ${id}`);
      return id;
    } catch (error) {
      this.logger.error('Failed to store coverage gap', error);
      throw new QEMemoryError('Failed to store coverage gap', error as Error);
    }
  }

  /**
   * Get coverage gaps for a specific file
   */
  async getCoverageGaps(file: string): Promise<CoverageGap[]> {
    this.ensureInitialized();

    try {
      this.logger.debug(`Getting coverage gaps for file: ${file}`);

      const results = await this.memory.query({
        namespace: QE_NAMESPACES.coverageData.name,
        filters: { filePath: file },
        limit: 100,
      });

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Validate the coverage gap payload before storing.
  2. Inspect the underlying store error.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at v3/plugins/agentic-qe/src/bridges/QEMemoryBridge.ts:304 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/d2ebbe268cf5717e. Report an issue: GitHub.