Skip to content

fix(watcher): no way to permanently exclude or backoff from persistently-failing files #733

Closed

Description

@Sinity

Problem

If a source file consistently fails to parse (corrupt JSONL, etc.), the cursor entry is never written. The daemon retries on every inotify event and every restart — infinite retry loop. There is no mechanism for the user to say "I know this file is broken, leave it alone" or for the daemon to back off on repeated failures.

Additionally, parser fingerprint changes trigger sequential re-ingestion of ALL files with no parallelism, no progress indicator, and no cancellation. For 10,000 files this could take hours.

Acceptance criteria

  • Add exclusion mechanism: mark a file as permanently skipped (cursor entry with excluded=TRUE)
  • Add exponential backoff: after N consecutive failures, retry interval increases
  • Add progress reporting and cancellation to catch-up loop
  • Surface persistently-failing files in polylogue status

Found by

2026-05-03 red team state machine review (wave 6)

Activity

  1. Sinity commented on May 3, 2026

    @Sinity
    OwnerAuthor

    Scope absorbed into #620 (live cursor/freshness). File exclusion, pending dict eviction, and cursor table pruning are all watcher robustness concerns.

  2. ghost closed this as completedon May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions