{"record":{"id":"59650af5d93d53c9","repo":"ruvnet/ruflo","slug":"some-beads-failed-to-parse","errorCode":null,"errorMessage":"Some beads failed to parse","messagePattern":"Some beads failed to parse","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts","lineNumber":662,"sourceCode":"      if (!line) continue;\n\n      try {\n        const parsed = JSON.parse(line);\n        const validated = BeadSchema.parse(parsed);\n        beads.push(validated);\n\n        // Also cache individual beads\n        singleBeadCache.set(validated.id, validated);\n      } catch (error) {\n        errors.push({\n          line: i + 1,\n          error: error instanceof Error ? error.message : String(error),\n        });\n      }\n    }\n\n    if (errors.length > 0) {\n      this.logger.warn('Some beads failed to parse', {\n        totalLines: lines.length,\n        parsed: beads.length,\n        errors: errors.length,\n        firstErrors: errors.slice(0, 3),\n      });\n    }\n\n    // Cache the parsed result\n    parsedCache.set(cacheKey, beads);\n\n    return beads;\n  }\n\n  /**\n   * Parse single bead from JSON output\n   */\n  parseSingleBead(output: string): Bead {\n    if (!output || output.trim() === '') {","sourceCodeStart":644,"sourceCodeEnd":680,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts#L644-L680","documentation":"Log warning in parseBdOutput: some JSONL lines failed JSON.parse or BeadSchema validation; the malformed lines are recorded with line numbers and errors, while successfully parsed beads are still returned.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts:662 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the sanitizers log for which beads failed to parse; fix or remove the malformed entries in the beads source."],"exampleFix":null,"handlingStrategy":"fallback","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"}