Skip to content

engine: carried pages earn ttfb passes a full audit skips (capped re-audit scores 1 point high) #2099

Closed

Description

@nc9

On a capped re-audit, carried pages earn ttfb passes that a full audit of the same site skips, so the re-audit's score sits about 1 point above the full audit (47 vs 46 in packages/audit-engine/tests/capped-rescore.test.ts). This predates pub#2008; that PR set the test's tolerance to 1 and names this cause in a comment.

Acceptance Criteria

nik

Activity

  1. added
    bug
    size: S
    engine
    on Nov 17, 2026
  2. added theissue type on Nov 17, 2026
  3. nc9 commented on Nov 20, 2026

    @nc9
    ContributorAuthor

    Cause confirmed (AC1). Capped re-audits put the previous audit's pages back into scoring. A carried-over page with no stored finding counts as a clean pass. The store only keeps fail and warn rows, so a check the page skipped (for example perf/ttfb with no timing) looks the same as one it passed. A full audit counts a skipped check as neither. In the test that is pages 11, 22, 33, 44 and 55: 50 ttfb passes on the re-audit against 45 on the full audit.

    The fix: store a "not evaluated" record per page and check, so carried-over pages score exactly as they would in a full audit, and the test asserts equality (AC2 as written). That changes the stored-results contract, and the cloud store needs a matching migration, so size goes from S to M.

    nik

  4. added
    size: M
    and removed
    size: S
    on Nov 20, 2026
  5. nc9 commented on Nov 20, 2026

    @nc9
    ContributorAuthor

    Reworded AC2. With the "not evaluated" record, perf/ttfb now matches exactly (45 = 45, was 45 vs 50). The remaining 1 point has a second cause: rules whose checks are all info, such as content/word-count, earn a pass on each carried page while a full audit scores them as nothing. That needs its own design and a check that CLI and cloud versions stay compatible, so it is tracked in #2167. This issue ships the ttfb fix, and the overall test keeps its tolerance of 1 with a comment pointing at #2167.

    nik

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

    bugenginesize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions