Skip to content

feat(audit-engine): the publish cap keeps coverage-gap skip rows (or tallies them by reason) #1775

Closed

Description

@nc9

The publish capper (capReportForPublish, packages/audit-engine/src/publish-cap.ts) drops per-page rows and keeps tallies. It protects only the skip reasons in NOT_CHECKED_SKIP_REASONS; a scan-truncated or unread-page skip (a coverage gap: the rule did not look at everything on that page) is cut like any other row, and the tally only counts skipped without a reason.

A reader of a capped report (cloud resolution: compare_audits, triage) therefore cannot tell a coverage gap from a "does not apply" skip, and has to treat every tallied skip as no gap. A real gap row that was cut then reads as a clean pass, and a finding in it can be called fixed.

Acceptance Criteria

  • A capped report keeps every skipped row whose classifyRuleOutcome is coverage_gap, timed_out or errored (per page, with its pageUrl), within a bounded count per rule.
  • When that bound is hit, the rule's tally carries an explicit gap marker (a count of gap skips by reason), so a reader sees a gap even when no row survives.
  • A "does not apply" skip (not-applicable, noindex, page-type, free text) is still dropped and never marked as a gap.
  • A test builds a large report with a scan-truncated row on one page and a not-applicable skip on many, caps it, and shows the gap survives and the not-applicable skips do not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions