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
Batch 2 rules: clean verdicts on input not fully checked (near-duplicate cap, conversion-path link cap and cut JSON-LD, commerce-readiness) #2134
Found while reviewing release batch 2 (#2132). In each case a rule gives a clean verdict on input it did not fully look at. Since site checks became tracked findings in the cloud, a clean verdict there resolves a stored finding, so each of these can mark something fixed that was never re-checked.
content/near-duplicate (packages/rules/src/content/near-duplicate.ts ~268, 361): past 10,000 distinct texts the remaining pages are never compared, yet the check passes (unjudgedPages > 0). Its "Only N pages" skip is free text, so it reads as not applicable rather than a gap.
content/conversion-path (conversion-path.ts ~219): the scan stops at 2,000 a[href], nav and footer included. A complete page whose call to action sits after link 2,000 passes ("No prominent call-to-action links to judge"). Reproduced with /pricing, 2,001 nav links and then a LinkedIn button.
content/conversion-pathisMoneyPage ignores htmlReadState. A page that counts as a money page only through JSON-LD placed after the cut gets the coded not-applicable skip, which counts as a clean verdict.
content/commerce-readiness (commerce-readiness.ts ~212): a page read whole with no Product markup gets a plain info. So a stored "missing fields" warning clears when the page drops its Product JSON-LD, or when that JSON-LD stops parsing. This is a design call; decide it explicitly.
Docs for commerce-readiness say "an empty typed node does not count", but returnsFilled accepts any MerchantReturnPolicy-typed node via hasType.
Acceptance Criteria
near-duplicate with more than its compare cap of distinct texts reports a coded gap skip (e.g. scan-truncated), not a pass; a test covers 10,000+ texts with two near-identical pages sorted last
near-duplicate's "too few pages" skip uses a coded reason that the cloud's resolution treats correctly (not free text)
conversion-path that hits its link cap without finding a call to action is inconclusive (a coded gap), and the test above passes
conversion-path decides "money page" only from the part of the page that was read, or is inconclusive when the page was cut before its JSON-LD
commerce-readiness either keeps a stored "missing fields" finding open when Product markup disappears, or documents why not; the docs match the returnsFilled behaviour
Activity
fix(rules): coded gap skips for near-duplicate cap, conversion-path l…
docs(changelog): add changelog.d entry for batch 2 gap skips #2134
fix(rules): coded gap skips for input not fully checked, batch 2 rules …
Merge origin/main into boat/paste-inputs-auth-2106
Merge origin/main into boat/issues-cloud-only-2031
Merge origin/main into boat/targeted-site-rules-1778