Skip to content

crawl/indexability-conflicts: robots.txt Allow + meta noindex reported as conflict, empty affectedPages #487

Closed

Description

@deniskern

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 -y

Actual

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 meta noindex page), crawl/indexability-conflicts reports no finding, with and without the page in the sitemap
  • An X-Robots-Tag: noindex header 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-conflict only, so nothing is double-reported
  • Test: new packages/rules/tests/indexability-conflicts.test.ts, reporter's repro: passes
  • Test: same file, X-Robots-Tag: noindex plus Allow: passes
  • Test: same file, robots-disallowed path with an indexable page: info finding with pages populated
  • 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

  1. added
    P2
    bug
    rules
    size: S
    and removed
    P2
    on Oct 7, 2026
  2. nc9 commented on Oct 7, 2026

    @nc9
    Contributor

    Triage notes (maintainer review):

    • Confirmed on current main, and this one is worse than the report suggests. The rule puts every page that is not disallowed and is noindex into its warning bucket, so any site with a robots.txt and a deliberately noindex page gets flagged. The combination it is named for (Disallow plus noindex) is never reported by this rule. Its docs say this combination works, and the solution text says to choose one method, which is wrong advice.
    • The empty affectedPages is also confirmed: the checks never set pages.
    • crawl/robots-meta-conflict already reports Disallow plus noindex (info), so criterion 2 in the original text would double-report. Decision: leave that case to robots-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.ts asserts the current warning message and has to change on purpose.
    • Priority raised to P1: a default warning that fires on most real sites with noindex pages, with misleading advice. Acceptance criteria rewritten with the unit tests split out.
  3. added
    P1
    on Oct 7, 2026
  4. nc9 commented on Oct 8, 2026

    @nc9
    Contributor

    Acceptance check against main f3c1a71:

    # Criterion Result Evidence
    1 Repro (Allow plus meta noindex): no finding, with and without sitemap PASS packages/rules/src/crawl/indexability-conflicts.ts:51,92 only 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"
    2 X-Robots-Tag: noindex on an allowed page: no finding PASS same file, "X-Robots-Tag noindex on an allowed page passes"
    3 Blocked page without noindex reported at info with its URL PASS indexability-conflicts.ts:36 sets pages, which the JSON report emits as affectedPages (packages/report/src/affected-pages.ts); test "robots-disallowed indexable page: info finding with pages populated"
    4 Every non-pass check lists URLs on both paths PASS robots-block-without-noindex is the only non-pass check, built by the shared buildChecks; packages/audit-engine/tests/page-features-noindex-golden.test.ts "crawl/indexability-conflicts: blocked page without noindex lists pages on both paths"
    5 Solution text and docs no longer advise choosing one PASS indexability-conflicts.ts:64; docs/rules/crawl/indexability-conflicts.mdx
    6 Disallow plus noindex reported only by crawl/robots-meta-conflict PASS test "Disallow plus noindex is left to robots-meta-conflict (no finding here)"; docs line 14
    7 Test: reporter's repro passes PASS packages/rules/tests/indexability-conflicts.test.ts:46
    8 Test: X-Robots-Tag plus Allow passes PASS same file, line 53
    9 Test: disallowed indexable page, info with pages PASS same file, line 65
    10 Test: golden test updated, streamed equals legacy PASS page-features-noindex-golden.test.ts:203 asserts streamed equals legacy and the warning is gone
    11 PR states whether the agent skill needs a change PASS PR 549 description, "Agent skill: No change needed"

    Ran 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions