Skip to content

feat(rules): report each 5xx page as its own crawl/server-errors finding #2130 - #2181

Merged
nc9 merged 1 commit into
mainfrom
boat/server-errors-pageurl-2130
Nov 21, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/server-errors-pageurl-2130

Conversation

@nc9

@nc9 nc9 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Closes #2130.

Summary

crawl/server-errors now emits one failing check per 5xx page with pageUrl set, so each page is a stored finding. Every other fetched page emits a per-page pass (resolution evidence), so a recovered page resolves while another still fails. The site-level pass is kept and still withheld (coded skip Crawl capped... / pages-not-fetched) when the crawl was capped or had failed fetches. Pages not fetched this audit have no check and carry (not crawled).

Acceptance criteria

  • per-page fail with pageUrl: server-errors-2036.test.ts 'each 5xx page is its own finding'
  • recovered page resolves, unfetched carries: server-errors-page-findings-2130.test.ts (merge end to end) and 'resolution signal' tests
  • capped/failed fetches withhold the site pass; prior finding on unfetched page stays open: server-errors-page-findings-2130.test.ts (capped, failedFetches)
  • docs/rules/crawl/server-errors.mdx updated; make validate passes

Gates

format:check, lint, typecheck clean; test-suites rules 12525 pass, audit-engine 2372 pass, rest 3907 pass, report 1413 pass; bun scripts/changelog.ts check OK.
Goldens regenerated: canonical-rule-totals (crawl/server-errors 1 -> 501, the per-page passes count in the total) and finding-messages.

Skill change needed: no.

@nc9
nc9 marked this pull request as ready for review November 20, 2026 22:24
@nc9
nc9 merged commit 5f8c622 into main Nov 21, 2026
8 of 15 checks passed
@nc9
nc9 deleted the boat/server-errors-pageurl-2130 branch November 21, 2026 00:41
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  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)
  fix(rules): one finding per leaked field across json-sensitive-fields and auth-endpoint-disclosure, deduped by the runner #2083 (#2154)
  fix(cli): report --input keeps meta.partialAudit and publishes with it #2102 (#2153)
  fix(cli): local incremental re-audit counts carried findings in the full audit's check units (#2159)
  fix(crawler): cap stored entity refs and edges, skip corrupt refs rows #2135 (#2158)
  fix(crawler): a quick crawl fetches the start URL when a sitemap lists it past maxPages #2127 (#2157)
  fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply, never part of a pass #2101 (#2151)
  fix(rules): hold large text to 3:1 in a11y/color-contrast #2105 (#2155)
  fix(cli): size the report list date column from rendered dates #2095 (#2152)

Signed-off-by: Nik Cubrilovic <[email protected]>
nc9 added a commit that referenced this pull request Nov 21, 2026
* origin/main:
  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)
  fix(rules): one finding per leaked field across json-sensitive-fields and auth-endpoint-disclosure, deduped by the runner #2083 (#2154)
  fix(cli): report --input keeps meta.partialAudit and publishes with it #2102 (#2153)
  fix(cli): local incremental re-audit counts carried findings in the full audit's check units (#2159)
  fix(crawler): cap stored entity refs and edges, skip corrupt refs rows #2135 (#2158)
  fix(crawler): a quick crawl fetches the start URL when a sitemap lists it past maxPages #2127 (#2157)
  fix(rules): security/exposed-actuator reads a 5xx through isUnverifiedReply, never part of a pass #2101 (#2151)
  fix(rules): hold large text to 3:1 in a11y/color-contrast #2105 (#2155)
  fix(cli): size the report list date column from rendered dates #2095 (#2152)

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.

crawl/server-errors: report each 5xx page as its own finding (pageUrl), so findings store and resolve per page

1 participant