{"record":{"id":"e97d1bcc3689a995","repo":"ruvnet/ruflo","slug":"swarm-coordination-failed","errorCode":null,"errorMessage":"Swarm coordination failed","messagePattern":"Swarm coordination failed","errorType":"exception","errorClass":"QEHiveError","httpStatus":null,"severity":"error","filePath":"v3/plugins/agentic-qe/src/bridges/QEHiveBridge.ts","lineNumber":287,"sourceCode":"      const results = await this.collectResults(task);\n\n      // 4. Aggregate results\n      const success = results.filter((r) => r.success).length >= Math.ceil(task.agents.length / 2);\n\n      const swarmResult: QESwarmResult = {\n        taskId: task.id,\n        agentResults: results,\n        completedAgents: results.length,\n        totalAgents: task.agents.length,\n        success,\n        aggregatedOutput: this.aggregateResults(results),\n      };\n\n      this.logger.info(`QE swarm task complete: ${task.id} (success: ${success})`);\n      return swarmResult;\n    } catch (error) {\n      this.logger.error(`QE swarm task failed: ${task.id}`, error);\n      throw new QEHiveError('Swarm coordination failed', error as Error);\n    }\n  }\n\n  /**\n   * Execute operation with Byzantine fault tolerance\n   */\n  async executeWithBFT<T>(\n    operation: () => Promise<T>,\n    replicaCount: number = 3\n  ): Promise<T> {\n    this.ensureInitialized();\n\n    this.logger.debug(`Executing operation with BFT (replicas: ${replicaCount})`);\n\n    const results: T[] = [];\n    const errors: Error[] = [];\n\n    // Execute operation on multiple replicas","sourceCodeStart":269,"sourceCodeEnd":305,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/agentic-qe/src/bridges/QEHiveBridge.ts#L269-L305","documentation":"The swarm coordination pipeline (dispatch, result collection, aggregation) aborted with an exception before a QESwarmResult could be produced — this is a hard failure, not a below-quorum partial result.","triggerScenarios":"Thrown at v3/plugins/agentic-qe/src/bridges/QEHiveBridge.ts:287 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check hive connectivity and worker health before coordinating.","Inspect the underlying coordination error."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}