{"record":{"id":"cabc8fe816b26e67","repo":"ruvnet/ruflo","slug":"failed-to-send-message","errorCode":null,"errorMessage":"Failed to send message","messagePattern":"Failed to send message","errorType":"exception","errorClass":"QECoreError","httpStatus":null,"severity":"error","filePath":"v3/plugins/agentic-qe/src/bridges/QECoreBridge.ts","lineNumber":500,"sourceCode":"\n  async terminate(): Promise<void> {\n    try {\n      this.logger.debug(`Terminating agent: ${this.id}`);\n      await this.agentService.terminate(this.id);\n      this._status = 'terminated';\n    } catch (error) {\n      this.logger.error(`Failed to terminate agent: ${this.id}`, error);\n      throw new QECoreError('Failed to terminate agent', error as Error);\n    }\n  }\n\n  async send(message: Record<string, unknown>): Promise<void> {\n    try {\n      this.logger.debug(`Sending message to agent: ${this.id}`);\n      await this.agentService.sendMessage(this.id, message);\n    } catch (error) {\n      this.logger.error(`Failed to send message to agent: ${this.id}`, error);\n      throw new QECoreError('Failed to send message', error as Error);\n    }\n  }\n}\n\n/**\n * Task Handle Implementation\n */\nclass TaskHandleImpl implements TaskHandle {\n  readonly id: string;\n  readonly type: string;\n  private _status: TaskHandle['status'];\n  private taskService: ITaskService;\n  private logger: QELogger;\n\n  constructor(\n    task: CreatedTask,\n    taskService: ITaskService,\n    logger: QELogger","sourceCodeStart":482,"sourceCodeEnd":518,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/agentic-qe/src/bridges/QECoreBridge.ts#L482-L518","documentation":"AgentHandleImpl.send caught an error from agentService.sendMessage for this agent id and rethrew as QECoreError. The message could not be delivered (agent terminated, mailbox closed, or service failure); the payload itself is only the vehicle, not the cause.","triggerScenarios":"Thrown at v3/plugins/agentic-qe/src/bridges/QECoreBridge.ts:500 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the message target exists and the transport is connected.","Inspect the underlying send 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"}