Repository navigation
fix(audit): score empty successful pages - #1330
WilliamK112 wants to merge 4 commits into
Conversation
|
Reviewed head: 749e8cd Thanks @WilliamK112. The storage change is correct: Must fix
Should fix
Low
The CHANGELOG entry, DCO and lack of new dependencies are all fine. Verdict: needs changes (1 and 2 required; 3 and 4 strongly suggested). |
|
Reviewed head: 749e8cd Thanks @WilliamK112, this is a focused fix for #1314. Verdict: pending maintainer review (no blocking problems found, but CLI tests had not finished when I looked). Findings, most severe first:
Conventions: DCO sign-off present, no new runtime dependency, docs and CHANGELOG updated. CI: format, lint, typecheck, engine golden tests, docs build and CodeQL pass; "CLI tests" has no conclusion yet. |
|
Thanks for the detailed review. I pushed 1a63336 with the follow-ups:\n\n- Empty bodies are now auditable only for content-bearing 2xx statuses. Empty 404, 410, 204, 205, missing-content-type, and uncaptured responses stay outside page-rule evaluation.\n- The full rule set now runs against the zero-byte 200 fixture, with assertions for title, H1, word count, canonical, hreflang, and schema findings.\n- Render results without HTML are explicitly narrowed out of the mapper and fall back to plain fetch; a bodyless rendered 200 regression test covers this.\n- reconstructReport, pageRecordToPage, page feature extraction, and stream batch sizing now preserve the null-versus-empty distinction.\n- Storage coverage proves an empty string round-trips separately from null.\n- The documentation is now under Crawl behavior.\n\nThe remaining truthy checks are intentional: technology sampling skips a zero-byte sample because there are no bytes to fingerprint, and WAF detection sees an empty body the same as no challenge markers.\n\nValidation: 98 focused tests passed; audit-engine suite passed 1601 tests; CLI format, lint, type checks, crawler/audit-engine type checks, docs checks, and secret scan passed. The full CLI suite reached 3256 passing tests; its unrelated stalled-body deadline test timed out, while the separate store-scripts retry passed all 10 tests. |
|
Reviewed head: 1a63336 Thanks @WilliamK112, thorough follow-up. Both must-fix items and both should-fix items are in:
Two small things, neither blocking:
Verdict: good to merge after the docs placement fix. A docs-only push needs no further review round. |
|
@WilliamK112 one timing note: a change to the same empty-document handling ( |
|
@WilliamK112 the overlapping change is now on
Once the rebased head is up and CI is green, I'll review the change against the version I last reviewed, and it can go into the next release batch. |
Signed-off-by: Ching-Wei Kang <[email protected]>
Signed-off-by: Ching-Wei Kang <[email protected]>
Signed-off-by: Ching-Wei Kang <[email protected]>
1a63336 to
2002d4b
Compare
|
Rebased onto upstream main at dbede75 and pushed the updated head 2002d4b. The overlapping adapter and page-feature changes keep the 2xx empty-body gate while using the new empty-shell parser behavior from v0.0.142. I also moved the Empty successful pages subsection below the crawl-session table as requested.\n\nLocal validation after the rebase: 98 focused tests passed, CLI and audit-engine type checks passed, docs checks passed, and the secret scan passed. CI is running on the rebased head. |
Signed-off-by: Ching-Wei Kang <[email protected]>
|
Reviewed head: d90f67a Thanks @WilliamK112, the rebase is clean and the earlier requests are all still in place. Verdict: pending maintainer review, with one blocker (CI) below. Findings, most severe first:
Once the changelog blank line is restored and CI is green this is ready for a maintainer merge decision. nik |
|
Reviewed head: d90f67a Thanks for the rebase and the docs move, William. Checked against the version we approved: the three empty-body sites resolve correctly against #1290, the 2xx gate is kept (404, 410, 204 and responses with no content type behave as before), the docs subsection now sits after the scenario table, and the tests pass locally. One thing left, and it is ours to fix: the PR removes the blank line between the last v0.0.142 bullet and the nik |
|
Landed in v0.0.144 as nik |
Summary
Closes #1314
Verification
bun test ./apps/cli/tests/audit/empty-body-page-1314.test.ts ./apps/cli/tests/squirrel-home-guard.test.ts ./packages/audit-engine/tests/page-features-noindex-golden.test.ts— 17 passedbun test ./packages/crawler/tests/pages-without-bodies-2343.test.ts ./packages/crawler/tests/evicted-bodies-2342.test.ts— 9 passedbun run scripts/test-suites.ts --run audit-engine— 1,597 passed, 3 skippedbun run typecheckinapps/cli,packages/audit-engine, andpackages/crawlerbun run docs:checkbun run format:checkandbun run lintinapps/clidetect-secrets1.5.0 hook against.secrets.baselinecheckReachabilitytimeout reproduced on isolated rerun.Checklist
Signed-off-byline (git commit -s).Docs: updated docs/cli/audit.mdx. Skill: none.