ruvnet/ruflo · error

[sanitizers] ${errors.length} bead(s) failed to parse:

Error message

[sanitizers] ${errors.length} bead(s) failed to parse:

What it means

Log warning in sanitizeBeadsListOutput: some JSONL lines failed sanitization/parsing; the first few errors are logged while the successfully parsed beads are still returned (errors are collected, not thrown).

Source

Thrown at v3/plugins/gastown-bridge/src/sanitizers.ts:451

  const beads: Bead[] = [];
  const errors: string[] = [];

  for (let i = 0; i < lines.length; i++) {
    const line = lines[i]?.trim();
    if (!line) continue;

    try {
      const bead = sanitizeBeadOutput(line);
      beads.push(bead);
    } catch (error) {
      // Collect errors but continue processing
      errors.push(`Line ${i + 1}: ${error instanceof Error ? error.message : 'Unknown error'}`);
    }
  }

  // Log errors if any
  if (errors.length > 0) {
    console.warn(`[sanitizers] ${errors.length} bead(s) failed to parse:`, errors.slice(0, 3));
  }

  return beads;
}

// ============================================================================
// Helper Functions
// ============================================================================

/**
 * Recursively redact sensitive fields from an object
 */
function redactSensitiveFields(obj: Record<string, unknown>): void {
  for (const key of Object.keys(obj)) {
    // Check if field name is sensitive
    if (REDACTED_FIELDS.has(key) || SENSITIVE_FIELD_PATTERNS.some(p => p.test(key))) {
      obj[key] = '[REDACTED]';
      continue;

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Review the listed beads that failed to parse and fix their format at the source; invalid beads are skipped.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at v3/plugins/gastown-bridge/src/sanitizers.ts:451 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/27c2b1f5f5aae9eb. Report an issue: GitHub.