Repository navigation
Closed
Description
Summary
#457 made the index rules skip noindex pages. Two rules in 0.0.104 still count them:
crawl/sitemap-coverage(sitemap-coverage) reportsnoindexpages as "indexable page(s) not in sitemap". Anoindexpage must not be in the sitemap, so the advice contradicts the page's own robots directive.content/title-pattern-outlierincludesnoindexpages when it learns the site's title template and flags them as outliers (brand-missing). Campaign, terms or account pages that are deliberatelynoindexusually carry a short title.
integrity/orphan-page probably belongs to the same class: an orphaned noindex page is not an indexing problem. I could not build a fixture that triggers it, so this is unverified.
Repro
Served with python3 -m http.server 8790:
index.htmlplusp1.html…p12.html, titleProduct number N in our catalogue | Brand, all listed insitemap.xmlcampaign.html(titleCampaign) andcampaign-terms.html(titleTerms), both linked from the nav and not in the sitemap:
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Campaign</title>
<meta name="robots" content="noindex,follow"></head>
<body><h1>Campaign</h1><p>Short-lived campaign page.</p></body></html>robots.txt:User-agent: */Allow: //Sitemap: http://127.0.0.1:8790/sitemap.xml
squirrel audit http://127.0.0.1:8790/ -m 30 --http --offline --disable-discovery-probes -C full \
--rule-include crawl/sitemap-coverage,content/title-pattern-outlier -f json -o out.json -yActual (0.0.104)
crawl/sitemap-coverage: "2 indexable page(s) not in sitemap (13%)", listing/campaign.htmland/campaign-terms.htmlcontent/title-pattern-outlier: "2 of 15 titled page(s) break the site's own title template", itembrand-missing:on the same two pages
Expected
Both rules skip pages with noindex (meta or X-Robots-Tag), the same way the rules fixed in #457 do. sitemap-coverage should only count pages that are actually indexable.
Acceptance Criteria
- On the issue's repro,
crawl/sitemap-coveragedoes not list/campaign.htmlor/campaign-terms.html, on both the precomputed-coverage path and the fallback path - On the repro,
content/title-pattern-outlierreports nobrand-missingitems, and the noindex pages are also left out when the rule learns the site's title template - An
X-Robots-Tag: noindexresponse header is treated the same as a meta noindex by both rules - Noindex pages are excluded only when the site itself is indexable, the same gating Index rules should skip noindex pages, and core/robots-meta should report X-Robots-Tag: noindex #457 uses for the other index rules. On a site that is noindex everywhere (for example staging) behaviour is unchanged
-
sitemap-validstill reads the unfiltered coverage list (the filter lives insitemap-coverage, not in the engine) - The docs pages for both rules and the "pages kept out of search" list in
docs/rules/index.mdxmention the exclusion - Test:
packages/rules/tests/sitemap-coverage.test.ts, precomputed missing pages containing a meta-noindex page: not listed - Test: same file, header-noindex page on the fallback path: not listed
- Test: same file, indexable page missing from the sitemap: still listed
- Test: same file, site that is noindex everywhere: behaviour unchanged
- Test:
packages/rules/tests/title-pattern-outlier.test.ts, 12 product pages plus 2 noindex short-title pages: no finding - Test: same file, the same 2 short-title pages without noindex:
brand-missingstill fires - Test: add
title-pattern-outliertonoindex-site-rules-dual-path.test.tsso both paths agree -
streaming-rules-canonical-golden.test.tsstays green, or its byte counts are updated deliberately - The PR description states whether the squirrelscan agent skill needs a change (the skill links to the rule pages, which are the reference, so usually none); if it does, a follow-up is filed against squirrelscan/skills
Activity
nc9 commentedon Oct 7, 2026
Triage notes (maintainer review):
sitemap-coveragehas a noindex filter, but only in its fallback (meta tags only, no header); the precomputed list the engine builds is never filtered.title-pattern-outlierfeeds every page into its template learning on both paths. Index rules should skip noindex pages, and core/robots-meta should report X-Robots-Tag: noindex #457 left both rules out.integrity/orphan-pageis out of scope. It is a compromise signal rather than an indexing rule, and a hidden orphan that also carries noindex is arguably more suspicious, so it stays as is.nc9 commentedon Oct 8, 2026
Acceptance check against main f3c1a71:
sitemap-coveragedoes not list the noindex pages, precomputed and fallback pathspackages/rules/src/crawl/sitemap-coverage.ts:90-102(precomputed) and:113-114(fallback);packages/rules/tests/sitemap-coverage.test.ts"precomputed missing pages: a meta-noindex page is not listed", "fallback path: a header-noindex page is not listed"title-pattern-outlierreports nobrand-missing, noindex pages left out of template learningpackages/rules/src/content/title-pattern-outlier.ts:219,577,615;packages/rules/tests/title-pattern-outlier.test.ts"two noindex short-title pages: no finding", "noindex pages are left out when the template is learned"X-Robots-Tagtreated like meta noindex by both rulessitemap-coverage.test.ts"precomputed path: a header-noindex page, matched through its trailing slash, is not listed";title-pattern-outlier.test.ts"X-Robots-Tag noindex is treated like a meta noindex"skipsNoindexPages/excludesNoindexPage; tests "a site that is noindex everywhere is reported as before" and "a site that is noindex everywhere (or unknown) is judged as before"sitemap-validstill reads the unfiltered listpackages/rules/src/crawl/sitemap-valid.ts:157readssitemaps.missingPages; the filter is local tositemap-coverage.tsdocs/rules/crawl/sitemap-coverage.mdx:14,docs/rules/content/title-pattern-outlier.mdx:25,docs/rules/index.mdx:126-127sitemap-coverage.test.tssitemap-coverage.test.tstitle-pattern-outlier.test.ts"two noindex short-title pages: no finding"brand-missingfirestitle-pattern-outlierin the dual-path testpackages/audit-engine/tests/noindex-site-rules-dual-path.test.ts:305streaming-rules-canonical-golden.test.tsgreen on mainRan on a clean main checkout:
sitemap-coverage.test.ts,title-pattern-outlier.test.ts,noindex-site-rules-dual-path.test.ts,streaming-rules-canonical-golden.test.ts, all green. Main CI green on f3c1a71.