ruvnet/ruflo · error · QEHiveError

Result broadcast failed

Error message

Result broadcast failed

What it means

broadcastResult() failed to publish the completed task's result to the hive via hiveMind.broadcast (connection loss or hive error). The catch logs the task id and re-raises wrapped in QEHiveError, since downstream agents missed the result notification.

Source

Thrown at v3/plugins/agentic-qe/src/bridges/QEHiveBridge.ts:409

      await this.hiveMind.broadcast({
        message: JSON.stringify({
          type: 'qe-result',
          taskId,
          result: {
            success: result.success,
            completedAgents: result.completedAgents,
            totalAgents: result.totalAgents,
            aggregatedOutput: result.aggregatedOutput,
          },
        }),
        priority: result.success ? 'normal' : 'high',
        fromId: this.queenId,
      });

      this.logger.debug(`Result broadcast complete for task: ${taskId}`);
    } catch (error) {
      this.logger.error(`Failed to broadcast result: ${taskId}`, error);
      throw new QEHiveError('Result broadcast failed', error as Error);
    }
  }

  /**
   * Store QE state in hive memory
   */
  async storeQEState(key: string, value: unknown): Promise<void> {
    this.ensureInitialized();

    try {
      const qeKey = `qe:${key}`;
      this.logger.debug(`Storing QE state: ${qeKey}`);

      await this.hiveMind.memory({
        action: 'set',
        key: qeKey,
        value: JSON.stringify(value),
      });

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Check that result subscribers are connected before broadcasting.
  2. Inspect the underlying broadcast error.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at v3/plugins/agentic-qe/src/bridges/QEHiveBridge.ts:409 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/037bf0a366d3982e. Report an issue: GitHub.