{"record":{"id":"5ae7ef351ff990ee","repo":"ruvnet/ruflo","slug":"sync-failed","errorCode":"SYNC_FAILED","errorMessage":"Failed to sync from AgentDB","messagePattern":"Failed to sync from AgentDB","errorType":"exception","errorClass":"SyncBridgeError","httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/bridges/sync-bridge.ts","lineNumber":551,"sourceCode":"        }\n\n        offset += entries.length;\n        hasMore = entries.length === this.config.batchSize;\n      }\n\n      // Update sync state\n      this.syncState.lastSyncTime = new Date().toISOString();\n      await this.saveSyncState();\n\n      const durationMs = Date.now() - startTime;\n      this.logger.info('Sync from AgentDB complete', {\n        beads: beads.length,\n        durationMs,\n      });\n\n      return beads;\n    } catch (error) {\n      throw new SyncBridgeError(\n        'Failed to sync from AgentDB',\n        'SYNC_FAILED',\n        undefined,\n        error as Error\n      );\n    }\n  }\n\n  /**\n   * Perform full bidirectional sync\n   */\n  async syncBidirectional(): Promise<{\n    toAgentDB: SyncResult;\n    fromAgentDB: Bead[];\n  }> {\n    this.ensureInitialized();\n\n    this.logger.info('Starting bidirectional sync');","sourceCodeStart":533,"sourceCodeEnd":569,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/bridges/sync-bridge.ts#L533-L569","documentation":"syncFromAgentDB() failed while paging entries out of the AgentDB namespace (query error or connection issue). The SYNC_FAILED wrapper carries the original error; sync state was not advanced, so the next run retries from the old watermark.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/bridges/sync-bridge.ts:551 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check connectivity and credentials for AgentDB, then retry the sync.","Ensure both sides are initialized and schema versions match before syncing."],"exampleFix":null,"handlingStrategy":"retry","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-14T00:17:10.932Z"}