Usage: rebar fsck [--output json] [--repair [--dry-run] [--limit=N]]

Store integrity validator. Checks JSON validity, CREATE presence, stale
index.lock, and SNAPSHOT source_event_uuids consistency.

  --repair             Drive the store to fsck-zero (A3 remediation): retire
                       still-present folded sources (SNAPSHOT_INCONSISTENT) and
                       rebuild snapshots that dropped an AUTO-RECOVER orphan.
                       Pre-tags pre-a3-remediation, commits+pushes per batch, and
                       aborts on a push failure. Order-sensitive orphans are
                       surfaced for human triage, not auto-rebuilt.
  --dry-run            With --repair: print the per-ticket plan; write nothing.
  --limit=N            With --repair: repair at most N tickets this run (resumable).
  --repair-snapshots   Rebuild only snapshots with a merged-in pre-snapshot orphan.
