Repository navigation
Description
Summary
crawl/indexability-conflicts / robots-allow-but-noindex reports a page that robots.txt allows and that carries <meta name="robots" content="noindex"> as a conflict. That combination is the correct way to deindex a page: Google can only see the noindex if robots.txt allows the crawl (blocking it is the actual conflict, see https://developers.google.com/search/docs/crawling-indexing/block-indexing). Also, the check has an empty affectedPages and only names the URL in legacyValue. Reproduces with and without the page in the sitemap.
Repro
index.html, served with python3 -m http.server 8771:
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Home</title></head><body><h1>Home</h1><a href="/noindex.html">private</a></body></html>noindex.html:
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Private page</title><meta name="robots" content="noindex"></head><body><h1>Private</h1></body></html>robots.txt:
User-agent: *
Allow: /
squirrel audit http://127.0.0.1:8771/ -m 5 -C full --http --offline --disable-discovery-probes \
--rule-include crawl/indexability-conflicts -f json -o out.json -yActual
crawl/indexability-conflicts, check robots-allow-but-noindex: "1 page(s) allowed in robots.txt but have noindex", affectedPages: [], legacyValue: "/noindex.html".
Expected
No finding for robots.txt Allow + meta noindex (the intended deindexing setup). The real conflicts are Disallow + noindex (noindex never seen) and noindex + listed in sitemap. If a check fires, affectedPages should carry the page URL.
Version
squirrel 0.0.104 (macOS arm64)
Acceptance Criteria
- On the issue's repro (robots.txt
Allow: /plus a metanoindexpage),crawl/indexability-conflictsreports no finding, with and without the page in the sitemap - An
X-Robots-Tag: noindexheader on an allowed page also produces no finding - A page blocked by robots.txt that is not marked noindex is still reported at info as blocked without noindex, with its URL listed in
affectedPages - Every non-pass check from this rule lists its affected URLs in
affectedPages, on both the streaming and in-memory paths - The rule's solution text and docs page no longer advise choosing between robots.txt and noindex
- Disallow plus noindex stays reported by
crawl/robots-meta-conflictonly, so nothing is double-reported - Test: new
packages/rules/tests/indexability-conflicts.test.ts, reporter's repro: passes - Test: same file,
X-Robots-Tag: noindexplusAllow: passes - Test: same file, robots-disallowed path with an indexable page: info finding with
pagespopulated - Test:
packages/audit-engine/tests/page-features-noindex-golden.test.ts(around line 199) updated deliberately for the removed warning, streamed equals legacy - 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):
affectedPagesis also confirmed: the checks never setpages.crawl/robots-meta-conflictalready reports Disallow plus noindex (info), so criterion 2 in the original text would double-report. Decision: leave that case torobots-meta-conflict. Once the warning is gone this rule only reports an info check, so merging the two rules is worth considering later.page-features-noindex-golden.test.tsasserts the current warning message and has to change on purpose.test(engine): repin canonical golden overall score to 50 for #487
nc9 commentedon Oct 8, 2026
Acceptance check against main f3c1a71:
packages/rules/src/crawl/indexability-conflicts.ts:51,92only collects indexable pages robots.txt blocks; the rule never reads sitemaps.packages/rules/tests/indexability-conflicts.test.ts"reporter's repro: Allow plus meta noindex passes"X-Robots-Tag: noindexon an allowed page: no findingindexability-conflicts.ts:36setspages, which the JSON report emits asaffectedPages(packages/report/src/affected-pages.ts); test "robots-disallowed indexable page: info finding with pages populated"robots-block-without-noindexis the only non-pass check, built by the sharedbuildChecks;packages/audit-engine/tests/page-features-noindex-golden.test.ts"crawl/indexability-conflicts: blocked page without noindex lists pages on both paths"indexability-conflicts.ts:64;docs/rules/crawl/indexability-conflicts.mdxcrawl/robots-meta-conflictpackages/rules/tests/indexability-conflicts.test.ts:46X-Robots-Tagplus Allow passespagespage-features-noindex-golden.test.ts:203assertsstreamedequalslegacyand the warning is goneRan on a clean main checkout:
indexability-conflicts.test.ts,page-features-noindex-golden.test.ts,streaming-rules-canonical-golden.test.ts, all green. Main CI green on f3c1a71.