Repository navigation
Description
Independently reviewed before filing. Related wording in closed #21 involved redirects; this fixture uses HTTP 200 and no redirects.
Summary. When a linked privacy page is intentionally excluded from the crawl, eeat/privacy-policy reports No Privacy Policy page found and recommends Create /privacy-policy page. The rule has not checked the excluded page. A bounded or excluded crawl should not turn an unverified existing destination into advice to create a duplicate. This report does not ask the crawler to bypass exclusions or assert that every privacy link is valid.
Live examples. Both pages were independently opened and returned HTTP 200 on 2026-10-12 +07:
- https://tischideen-und-ambiente.de/policies/privacy-policy — title
Datenschutzerklärung – Tischideen & Ambiente, H1Datenschutzerklärung. Its storefront footer links it. - https://artesmotus.com/policies/privacy-policy — title
Datenschutzerklärung – artes motus, privacy headings present. Its storefront footer links it.
Our Shopify crawler template excludes /policies/**. The fresh 75-page sweep therefore reports the missing-policy warning on all 15 completed Shopify reports. These two live examples demonstrate that the blanket missing-policy interpretation is not reliable; they do not establish the content of every other shop's policy.
Server fixture. Three independent root origins: genuinely missing policy; linked HTTP-200 policy with crawling allowed; identical linked HTTP-200 policy excluded by configuration.
const http=require('node:http');let ready=0;
['missing','allowed','excluded'].forEach((name,index)=>http.createServer((req,res)=>{
if(req.url==='/robots.txt'){res.setHeader('Content-Type','text/plain');res.end('User-agent: *\nDisallow:\n');return;}
const isPrivacy=req.url==='/policies/privacy-policy';
if(req.url!=='/'&&!(isPrivacy&&name!=='missing')){res.statusCode=404;res.end('Not found');return;}
res.setHeader('Content-Type','text/html; charset=utf-8');const link=name==='missing'?'':'<a href="/policies/privacy-policy">Privacy Policy</a>';
const title=isPrivacy?'Privacy Policy':'Example storefront';res.end('<!doctype html><html lang="en"><head><meta charset="utf-8"><title>'+title+'</title></head><body><main><h1>'+title+'</h1><p>This is the '+title+' page of an isolated test fixture.</p></main><footer>'+link+'</footer></body></html>');
}).listen(8790+index,'127.0.0.1',()=>{if(++ready===3)console.log('READY');}));Excluded configuration, excluded.toml:
[crawler]
exclude = ["/policies/**"]
[rules]
enable = ["eeat/privacy-policy"]
disable = []Commands (after starting the server):
squirrel audit http://127.0.0.1:8790/ --http --refresh --offline --verbose --debug -m 2 --rule-include eeat/privacy-policy -f json -o missing.json
squirrel audit http://127.0.0.1:8791/ --http --refresh --offline --verbose --debug -m 2 --rule-include eeat/privacy-policy -f json -o allowed.json
squirrel audit http://127.0.0.1:8792/ --config-file excluded.toml --http --refresh --offline --verbose --debug -m 2 --rule-include eeat/privacy-policy -f json -o excluded.jsonActual (spark, squirrel 0.0.108, 2026-10-12 +07):
| Case | entities.pages | passed / warnings / failed | Result |
|---|---|---|---|
| Missing, 8790 | 1 | 0 / 1 / 0 | No Privacy Policy page found; creation advice. |
| Allowed, 8791 | 2 | 2 / 0 / 0 | Policy found and linked; no issues. |
| Excluded, 8792 | 1 | 0 / 1 / 0 | No Privacy Policy page found; same creation advice despite linked, existing policy. |
Skips are zero. All fetched fixture HTML pages return HTTP 200; there is no redirect or WAF.
Expected. When a policy destination is linked but excluded/not observed, make the presence assessment inconclusive or describe its limited crawl scope. Keep footer-link evidence separate from verified page availability; an unvisited link is not proof of a valid policy. Preserve the missing case and the allowed positive control. Respect exclusions without adding discovery requests.
Source context. In v0.0.108 eeat/privacy-policy.ts, the !findPrivacyPage(pages) branch returns creation advice before pageLinksToPrivacyHref is examined.
Local action. No local suppression, policy exception, or rule disable added.
Acceptance Criteria
- When a linked privacy page is excluded from the crawl by config or robots,
eeat/privacy-policydoes not reportNo Privacy Policy page foundor recommendCreate /privacy-policy page; it reports that the policy link exists but was not checked (info, or a distinct message). - When no privacy link exists and the policy is genuinely missing, the rule still fails with the create advice (fixture "missing").
- When the linked page is crawled and valid (HTTP 200), the rule passes (fixture "allowed").
- Fixture "excluded" (same page, excluded by config) yields the not-checked outcome, not a fail.
- The three-origin server fixture from the report is turned into unit tests.
- The rule's doc page quotes the message template and describes the excluded case (
make validate).
Activity
nc9 commentedon Oct 13, 2026
Spec prep
Verdict: confirmed on current main (
e95e0f5, v0.0.112). Read from source.packages/rules/src/eeat/privacy-policy.ts:38-48:findPrivacyPage(pages)(shared/privacy-page.ts) only credits a crawled page, matched by slug, title or h1. When none is crawled, the rule warnsNo Privacy Policy page foundwith the valueCreate /privacy-policy pageand returns before any link is looked at.packages/audit-engine/src/adapter.ts,mayProbe, around lines 1081-1105) skips targets outside include/exclude or robots and counts them asoutOfScope. That is correct; the rule just has to stop reading "not crawled" as "missing".legal/privacy-policy.ts:42-50credits a linked policy throughprivacyLinkHrefeven when it was not crawled, so the reporter's excluded fixture passeslegal/privacy-policyand warnseeat/privacy-policy.Change (rule only, no new requests)
When
findPrivacyPagereturns null, take the first privacy link on any crawled page withprivacyLinkHref(page): slug first, then anchor text, as the legal rule does.privacy-policyatinfowithPrivacy Policy linked but not crawledand the URL asvalue.ctx.site.linkTargetStatusesholds that URL (it was in scope but past the page budget, so the probe checked it), put its status indetails.warn, for examplePrivacy Policy link returns 404.warnand the create advice.privacy-linkedcoverage check in the linked-but-not-crawled case. It measures linking, not existence (see open questions).SiteDatahas no scope), so the message should say "not crawled" without claiming why. Plumbing scope intoSiteDatais a separate, larger change.Tests
New
packages/rules/tests/eeat-privacy-policy-not-crawled.test.ts, or extend theeeat/privacy-policyblock ineeat-page-detection.test.ts, which has thesiteCtxandpagehelpers. The reporter's three origins becomeSiteDatafixtures:warn,No Privacy Policy page found, valueCreate /privacy-policy page./policies/privacy-policy, plus the crawled policy page titledPrivacy Policy.pass, andprivacy-linkedpasses./policies/privacy-policy.info,Privacy Policy linked but not crawled, and no create advice.Also cover:
linkTargetStatuses:warn;<a href="/rechtliches/dsgvo">Datenschutz</a>):info.Re-run
ws4-rule-batches.test.ts(the legal sibling) unchanged. An optional by-hand CLI replay with the reporter's server andexcluded.tomlis fine before the PR; it does not belong in CI.Docs, skills, completions
docs/rules/eeat/privacy-policy.mdx(line 17 lists the checks): add the newinfoand broken-linkwarnoutcomes, quoting the message templates, and a sentence on excluded or page-capped crawls. Runmake validate.Risks
warntoinfo, so Shopify audits with/policies/**excluded score higher. That is intended.Open questions for the maintainer
eeat/about-page(No About page found/Create /about or /about-us page) andeeat/contact-page(No Contact page found/Create /contact page) have the same early return. Fix them in this PR through a shared "linked but not crawled" helper, or file a separate issue? I recommend a separate issue, since each has its own slug and schema fallbacks.privacy-linkedrun when the policy itself was not crawled? I recommend yes.passrather thaninfo? I recommendinfo: a HEAD 200 is not proof of a policy.Recommended session
Sonnet, medium effort. Size S confirmed.
fix(rules): eeat/privacy-policy no longer advises creating a linked p…
fix(rules): report linked but uncrawled About and Contact pages, not …