Skip to content

Enhancement: coalesce identical parse-degrade warnings on large trees #312

Closed

Description

@vibgrate-team

Context

Large repos can emit the same parse-degrade warning hundreds of times (one per file), which buries actionable signal and slows CI logs. #289 asks for an actionable per-file warning when tree-sitter fails; #277 asks for structured warning codes. This ticket is the UX layer on top: coalesce identical warning codes (same code + same reason class) into a count + sample paths, while keeping machine-readable output deterministic and complete.

What to do

  1. Find where human stderr warnings are emitted for parse degrade / continue paths.
  2. Coalesce duplicates for human output (e.g. code, count, up to N sample paths, sorted stably). Do not drop detail from JSON/SARIF if those channels already list per-file events.
  3. Add a fixture or unit test with repeated identical degrade events; assert stable coalesced text.
  4. DCO (git commit -s); local-first; no secrets in sample paths (prefer repo-relative).

Acceptance

  • Repeated identical human warnings coalesce with a stable count and sample paths
  • Machine-readable streams remain complete and deterministically ordered
  • Tests cover coalescing
  • pnpm test, pnpm lint, pnpm typecheck pass

Activity

  1. added
    enhancement
    on Oct 1, 2026
  2. vibgrate-team commented on Oct 3, 2026

    @vibgrate-team
    ContributorAuthor

    Spec notes for implementers

    Problem. Large trees can emit many identical parse-degrade warnings (same code/message shape, different paths or the same path repeated). Noise drowns actionable signal.

    Approach. Coalesce identical warnings: group by stable warning code (see #277) + normalized message template; report a count and a small sample of paths (sorted) rather than one line per file. Preserve fail-closed behavior for hard errors — only coalesce degrade-and-continue warnings.

    Acceptance. Fixture with N identical degrade warnings → one coalesced summary (or bounded sample) with count N; output deterministic across runs; no secrets/home paths in the summary beyond the sampled relative paths.

    Out of scope. Changing which conditions are warnings vs errors; silencing unique warnings that differ by rule/code.

  3. added a commit that references this issue on Oct 12, 2026
    64c3eff
  4. added a commit that references this issue on Oct 12, 2026
    e77bffe
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions