Skip to content

cli: local incremental re-audit still counts carried findings in pre-#3360 units #2097

Closed

Description

@nc9

After pub#2008 (repo#3360), the audit engine scores carried findings in the full audit's check units, but the local CLI's incremental re-audit path still counts in the old units:

  • apps/cli/src/audit/smart-audits.ts:321 passes no carriedChecksPerPage to the estimator.
  • The smart-merge totals loop in apps/cli/src/reports/reconstruct.ts (around line 1081) counts every carried row, including extra item rows.

So a local incremental re-audit moves toward the full audit's score but not all the way.

Acceptance Criteria

  • A local incremental re-audit (squirrel audit over an existing store) of a site where nothing changed reports the same passed/warnings/failed totals and score as a full local audit of that site.
  • smart-audits.ts passes the checks-per-page figure the engine uses, and reconstruct.ts totals skip extra item rows the way the engine's totals do.
  • A test covers a multi-check rule (e.g. img-alt) with multi-item findings on carried pages and asserts parity with the full audit.

nik

Activity

  1. added
    bug
    size: S
    on Nov 17, 2026
  2. added theissue type on Nov 17, 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

    bugclisize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions