You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: carried pages earn ttfb passes a full audit skips (capped re-audit scores 1 point high) #2099
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
The cause is confirmed: which rule path awards ttfb passes to carried pages, and why the full audit does not.
A capped re-audit and a full audit of the same unchanged site give the same perf/ttfb tallies (carried pages no longer pass checks they skipped), on both the single-POST and chunked publish paths, and capped-rescore.test.ts asserts that equality exactly.
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.
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.
Activity
nc9 commentedon Nov 20, 2026
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/ttfbwith 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
nc9 commentedon Nov 20, 2026
Reworded AC2. With the "not evaluated" record,
perf/ttfbnow matches exactly (45 = 45, was 45 vs 50). The remaining 1 point has a second cause: rules whose checks are allinfo, such ascontent/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
fix(crawler): persist site_pages.not_evaluated in the local sqlite st…
test(cli): compose #2099 and #2159 on one carried run, fix typecheck …
fix(audit-engine): record not-evaluated page checks on site_pages so …
fix(crawler): persist site_pages.not_evaluated in the local sqlite st…
test(cli): compose #2099 and #2159 on one carried run, fix typecheck …
fix(audit-engine): record not-evaluated page checks so carried pages …