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
audit: a 200 page with an empty body is dropped silently before the rules run #1314
A page the server answers with 200 and a zero-byte body is dropped from the audit before any rule runs. parsePageRecord (packages/audit-engine/src/adapter.ts, apps/cli/src/audit/adapter.ts), getParsedPages and isAuditablePage (packages/audit-engine/src/page-features.ts) all test !page.html, so an empty string reads as "no html". The page gets no findings and no not-evaluated entry, and the report says nothing about it. A soft failure of the site (an empty response served as 200) is invisible.
Found while fixing #1270 (pages with no markup no longer throw in DOM rules); non-empty markup-free bodies are audited, empty ones are not.
Acceptance Criteria
A crawled 200 HTML page with an empty body is reported: either audited (findings such as missing title and h1 apply) or listed once with a visible reason such as "empty response", never silently absent.
The page counts the same way in totalPages, coverage and scoring whichever is chosen, and the choice is documented.
A test crawls a fixture with a zero-byte 200 page and asserts the report mentions it.
I can take this. I will keep empty 200 HTML pages in the audit pipeline, add coverage that proves rules run and the page is counted in the report, document the chosen audited-page behavior where appropriate, and keep the fix scoped to empty-body handling.
Shipped in v0.0.144 (commits c13e084, 522a660, 54be2fc, af4d291). Checked every acceptance criterion against current main: a 200 page with an empty body is audited and counted.
Activity
WilliamK112 commentedon Oct 30, 2026
I can take this. I will keep empty 200 HTML pages in the audit pipeline, add coverage that proves rules run and the page is counted in the report, document the chosen audited-page behavior where appropriate, and keep the fix scoped to empty-body handling.
fix(audit): tighten empty-page boundaries squirrelscan#1314
fix(audit): score empty successful pages squirrelscan#1314
fix(audit): tighten empty-page boundaries squirrelscan#1314
docs(audit): keep crawl behavior table together squirrelscan#1314
docs(changelog): keep squirrelscan#1314 under unreleased
fix(audit): score empty successful pages #1314
fix(audit): tighten empty-page boundaries #1314
docs(audit): keep crawl behavior table together #1314
docs(changelog): move the #1314 bullet under Unreleased, drop the sup…
nc9 commentedon Oct 30, 2026
Shipped in v0.0.144 (commits c13e084, 522a660, 54be2fc, af4d291). Checked every acceptance criterion against current main: a 200 page with an empty body is audited and counted.
nik