Skip to content

fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 - #2163

Merged
nc9 merged 2 commits into
mainfrom
boat/batch2-rules-2134
Nov 21, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/batch2-rules-2134

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #2134

Changes

  • content/near-duplicate: no clusters found while pages sat past the 10,000 distinct-text compare cap now skips with coded reason scan-truncated instead of passing. The too-few-pages and fewer-than-2-comparable skips carry the same coded reason (the resolution signal registers the key, so priors carry instead of resolving).
  • content/conversion-path: hitting the 2,000 link cap with no call to action found is a scan-truncated skip. On a page read in part, a non-money verdict that would depend on JSON-LD past the cut is a scan-truncated skip (editorial paths still settle by path).
  • ax/commerce-readiness: design call, documented: a page read whole with all structured data readable and no Product markup resolves the stored finding (it no longer declares an offer); a page read in part, JSON-LD that does not parse, or unsupported microdata/RDFa is inconclusive and keeps it open. returnsFilled now requires a MerchantReturnPolicy node to carry a property, matching the docs; docs example fixed.

Acceptance criteria

  • near-duplicate cap gap, 10,000+ texts with twins sorted last: test 'past the compare cap, uncompared near-identical pages are a gap, not a pass'
  • coded too-few-pages skip: test 'too few pages is a coded gap skip, not free text'
  • conversion-path link cap gap: test 'a call to action past the link cap is a gap, not a pass'
  • money page from the part read: test 'a cut page whose money status could come from later JSON-LD is a gap' (asserts notEvaluated in the signal), plus 'not a money page stays a not-applicable verdict' for whole pages
  • commerce-readiness decision + docs match returnsFilled: tests 'JSON-LD that stops parsing keeps the stored finding open', 'an empty MerchantReturnPolicy node ... does not count as returns'; docs updated

Verification

  • bun run scripts/test-suites.ts --run rules: 12512 pass, 0 fail
  • 3 touched test files: 73 pass; the 6 new tests fail with src stashed
  • packages/rules typecheck clean; oxfmt on changed files; docs: make validate 71 pass 0 fail
  • Agent skill: no change needed

@nc9
nc9 force-pushed the boat/batch2-rules-2134 branch from 4c00f07 to b6eb37b Compare November 20, 2026 21:13
@nc9
nc9 marked this pull request as ready for review November 20, 2026 21:27
@nc9
nc9 merged commit 94ff501 into main Nov 21, 2026
8 of 15 checks passed
@nc9
nc9 deleted the boat/batch2-rules-2134 branch November 21, 2026 00:42
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162)
  fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163)

Signed-off-by: Nik Cubrilovic <[email protected]>
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162)
  fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163)

Signed-off-by: Nik Cubrilovic <[email protected]>
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  test(install,audit-engine): run install-hardening and attestation cases concurrently, copy the canonical crawl DB in javascript-shipped #1839 (#2186)
  build(packages): typecheck the tests of crawler, report, utils, tech-detect, core-contracts, config, waf-detect, threat-intel #1859 (#2190)
  fix(cli): refuse a run whose config rule selection plus WCAG level leaves zero rules #2110 (#2156)
  fix(rules): links/anchor-mismatch false positives on translated stores #2092 (#2162)
  fix(rules): coded gap skips for input not fully checked, batch 2 rules #2134 (#2163)
  test(audit-engine): carriedCheckAsFailure keeps the continuation mark #2098 (#2166)
  fix(rules): correct zoom-disabled 1.4.4 wording, related criteria for wcagNone rules #2115 (#2174)
  refactor(cli): list bash completion flags one per line #2116 (#2175)
  feat(rules): waive a public Supabase table by bare name in security/supabase-rls #2103 (#2177)
  test(rules): every site rule emits a check on a clean site, with a shrinking baseline #1741 (#2179)
  feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 (#2181)

Signed-off-by: Nik Cubrilovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Batch 2 rules: clean verdicts on input not fully checked (near-duplicate cap, conversion-path link cap and cut JSON-LD, commerce-readiness)

1 participant