Skip to content

feat(rules,crawler): eeat about and privacy rules probe a configured path the crawl did not reach #1428 - #1429

Closed
nc9 wants to merge 2 commits into
mainfrom
feat/eeat-probe-configured-paths-1428
Closed

nc9 wants to merge 2 commits into
mainfrom
feat/eeat-probe-configured-paths-1428

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1428

A paths entry of eeat/about-page or eeat/privacy-policy that names one page and that the crawl did not reach is now requested once after the crawl, so a page that exists but is not linked (Shopify /pages/*, /policies/*, a JS-only menu) is no longer reported missing.

How

  • New discovery probe configured-pages (core-contracts DiscoveryProbe), declared by both rules, so it is sent only when one of them runs and is turned off by disable_discovery_probes. --offline keeps it, on the audited host only, like the other probes.
  • The crawler, after a crawl that drained on its own, asks hasPage for each concrete configured path (starts with /, not regex:, no space, query or fragment; the same scope check as any URL, so an excluded path is not requested) and requests those not stored, once each, through the discovery probes' per-host gate and egress policy. robots.txt is honoured when the crawl honours it: a disallowed path is not requested.
  • The answer is a probe record appended to the existing well-known row (no schema change): status, and the word count of an HTML answer. It is never a page: no page rule audits it, it is not in the crawl's pages, no credits.
  • Rules: a probed 2xx that is a page of the site passes (about page under 200 words is info), reported with details.probed. It counts only when it did not redirect to another host or to /, is HTML and has at least 10 words: a JSON answer, an empty SPA shell and a redirect to the home page are reported missing with the reason; 404 or any other answer still reports the page missing, and the message says what was probed: No About page found (probed /gone: 404); a robots-disallowed path says so. A probe that got no answer (network error, budget spent) leaves the rule's old behaviour.
  • squirrel crawl and squirrel audit pass the paths from the rule options.

Tests

  • eeat-configured-pages-probe-1428-e2e.test.ts: local fixture server through the real crawler, store and both engines: unlinked about page and privacy policy found with one request each; thin page is info; 404 reports missing and says probed; robots disallow not requested; probes off sends nothing; a page the crawl reached is not requested again.
  • configuredPagePaths unit tests; the two discovery-probe selection tests updated for the new probe.

Review round: false passes closed (redirect to /, another host, JSON, empty SPA shell), the probed note is capped at 5 paths ("and N more"), a stopped crawl (--max-duration) logs why the probe did not run, and the docs say cloud audits never pass configuredPagePaths. The issue's AC3 wording is corrected: the discovery probes are not skipped under --passive or --offline; --offline keeps this probe on the audited host.

More tests: redirect, JSON and SPA cases with reasons, redirect inside the site to a real page, privacy 404 message, a probed page is not stored, include/exclude scope, per-host delay spacing (mutation checked), and a CLI e2e (squirrel crawl and squirrel audit wiring, probes off, no option).

Private note: both rules' meta.solution text changed, so the private rule catalog (apps/api/src/generated/rule-catalog.ts) needs bun run generate:rule-catalog on the next gitlink bump.

Docs: both rule pages and rule-options. Skill change: none.

nik

nc9 added 2 commits October 31, 2026 17:58
…configured path the crawl did not reach #1428

Signed-off-by: Nik Cubrilovic <[email protected]>
…s, non-HTML, empty shell), bounded note, stopped-crawl log, scope/gate/CLI tests #1428

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9 nc9 mentioned this pull request Oct 31, 2026
@nc9

nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.149 as 165ea78e 00ce05c5 via #1432. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.149. Closing this original.

nik

@nc9 nc9 closed this Oct 31, 2026
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.

eeat/about-page and eeat/privacy-policy: probe configured paths that the crawl did not reach

1 participant