Repository navigation
fix(rules,audit-engine): an info result on a re-crawled page resolves the rule's old findings #1031 - #1349
fix(rules,audit-engine): an info result on a re-crawled page resolves the rule's old findings #1031#1349nc9 wants to merge 4 commits into
Conversation
|
Review of #1031 (info and rule-level verdicts resolve carried findings). The approach matches the root cause in the description. I read the diff only and did not run the tests.
|
… the rule's old findings; coverage pagesWithStaleCarry #1031 Signed-off-by: Nik Cubrilovic <[email protected]>
…; chunked path coverage; stale carry excludes reconfirmed rows #1031 Signed-off-by: Nik Cubrilovic <[email protected]>
63a94e4 to
eb332ae
Compare
|
Review of #1031 fix. I read the diff only and did not run the tests.
The failing-first test and the controls (explicit skip still carries, coverage omits the field when 0) are good. The docs and CHANGELOG are updated. |
…e infos marked; signal-level scan-truncated test #1031 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #1349 (resolve carried findings when a re-crawled page's rule answers
Docs: |
…s a gap so the old findings carry; run the site-pages contract on the new test store #1031 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review of #1349 (resolve carried findings when a re-crawled page answers The approach is sound and the root-cause analysis matches the code. The new tests cover the skip and truncation controls well. Findings:
I could not run the test suites in this read-only environment. |
|
Landed in v0.0.145 as nik |
Closes #1031
Root cause, from the prod shape (3 re-crawled pages each holding 50 open carried
a11y/form-labelsrows, 0 fresh): the page's freshform-labelsresult isinfo"No form inputs found". The resolution signal builder registered only pass/warn/fail as evaluation evidence, so the page stayed "not evaluated" for the check and the old fail rows were carried forever. Same forperf/inp-hints(freshinp-third-party: info) andsecurity/third-party-cookies(freshthird-party-resources, notracking-domains).Fix (
packages/rules/src/resolution.ts):inforegisters the check and the page as evaluated, like a pass. Aninfothat means "could not judge" carriesdetails.inconclusive: true(set by its rule) and is treated like a skip: no evaluation evidence, it blocks the rule-level inference for that check, and old findings carry. Same in the local merge (merge-core).coverage.pagesWithStaleCarry(omitted when 0) counts re-crawled pages that still carry earlier findings; the coverage line says so when above zero.Failing-first test:
packages/audit-engine/tests/carried-info-resolve-1031.test.ts(prior 50 open fails; re-crawl answers info, or only a different check; with and without the resolution signal; the two signal cases failed before). Controls: an explicitly skipped check still carries (50 rows,pagesWithStaleCarry: 1), and coverage omits the field when everything resolved. Existing resolution/merge suites pass (cloud-merge, not-evaluated-carry-508, timeout-no-resolve-968, rule-error-no-resolve-999, not-applicable-resolves-1011, scan-truncated-carry, unconfirmed-resolves-prior-935, compact-resolution-merge, resolution-compact, resolution, bounded-carried-merge, carried-provenance-merge, merge-scoring, merge-session-pages, sampled-audited-pages).Not in this PR: the hosted container and apps/api consume the same signal builder, so they pick the fix up with the next engine bump (private repo gitlink); the carried rows already stuck in prod resolve on the site's next crawl of those pages. The "expire carried fails after N runs" AC box is a product decision, left open.
Docs:
docs/configuration/output.mdx, CHANGELOG under Unreleased. Skill: none.Review round: info classification (page-scope rules whose
infoshares a check name with a fail/warn row)Marked
details.inconclusive(could not judge; round 2 addedperformance/critical-request-chainsandfont-delivery(no<head>),legal/cookie-consent(info downgrade with no site profile),social/og-image-size(dimensions not specified),social/og-url-match(no canonical),performance/lcp-fetchpriority(no hero candidate), andschema/expected-typelabel-flap info; the marker also survives the fold, the chunked shell slim and unfold):a11y/color-contrast(limited analysis),a11y/focus-visible,a11y/touch-targets(need CSS analysis),content/keyword-stuffingandcontent/reading-level(content too short),content/mime-type(unknown extension),performance/compression(unknown encoding),performance/http2(cannot be determined),schema/expected-type(type not classified with enough confidence; markup too large to judge),schema/breadcrumb(unreadable markup),schema/json-ld-valid(metadata unavailable),mobile/input-zoom(fields not read).Left as a verdict (nothing found / not applicable / informational finding, old findings resolve): the
No X foundfamily (a11y/form-labels, button-name, select-name, frame-title, aria-*, definition-list, list/listitem, table rules, ...),core/*informational (canonical differs, nosnippet, robots-meta, twitter-cards),links/https-downgrade,security/mixed-content,security/sri,url/*,performance/*hint rows,images/*,social/*. Site-scope infos (no pageUrl) never reach the page resolution signal. Fill-in for a new rule: setdetails: { inconclusive: true }on an info that means "could not judge".Also: chunked path now computes
coverage.pagesWithStaleCarry(fixes capped-rescore.test.ts "#508"); reconfirmed carries (stamped this run) are not stale; scan-truncated checks block rule-level inference; coverage types updated (json, cli types, reconstruct, llmstale-carry-pages, html).