Skip to content

crawl/sitemap-coverage and content/title-pattern-outlier still count noindex pages (follow-up to #457) #488

Closed

Description

@deniskern

Summary

#457 made the index rules skip noindex pages. Two rules in 0.0.104 still count them:

  1. crawl/sitemap-coverage (sitemap-coverage) reports noindex pages as "indexable page(s) not in sitemap". A noindex page must not be in the sitemap, so the advice contradicts the page's own robots directive.
  2. content/title-pattern-outlier includes noindex pages when it learns the site's title template and flags them as outliers (brand-missing). Campaign, terms or account pages that are deliberately noindex usually 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.html plus p1.html … p12.html, title Product number N in our catalogue | Brand, all listed in sitemap.xml
  • campaign.html (title Campaign) and campaign-terms.html (title Terms), 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 -y

Actual (0.0.104)

  • crawl/sitemap-coverage: "2 indexable page(s) not in sitemap (13%)", listing /campaign.html and /campaign-terms.html
  • content/title-pattern-outlier: "2 of 15 titled page(s) break the site's own title template", item brand-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-coverage does not list /campaign.html or /campaign-terms.html, on both the precomputed-coverage path and the fallback path
  • On the repro, content/title-pattern-outlier reports no brand-missing items, and the noindex pages are also left out when the rule learns the site's title template
  • An X-Robots-Tag: noindex response 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-valid still reads the unfiltered coverage list (the filter lives in sitemap-coverage, not in the engine)
  • The docs pages for both rules and the "pages kept out of search" list in docs/rules/index.mdx mention 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-missing still fires
  • Test: add title-pattern-outlier to noindex-site-rules-dual-path.test.ts so both paths agree
  • streaming-rules-canonical-golden.test.ts stays 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

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

    @nc9
    Contributor

    Triage notes (maintainer review):

  3. nc9 commented on Oct 8, 2026

    @nc9
    Contributor

    Acceptance check against main f3c1a71:

    # Criterion Result Evidence
    1 Repro: sitemap-coverage does not list the noindex pages, precomputed and fallback paths PASS packages/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"
    2 Repro: title-pattern-outlier reports no brand-missing, noindex pages left out of template learning PASS packages/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"
    3 X-Robots-Tag treated like meta noindex by both rules PASS sitemap-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"
    4 Only when the site is indexable; noindex-everywhere unchanged PASS both rules gate on 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"
    5 sitemap-valid still reads the unfiltered list PASS packages/rules/src/crawl/sitemap-valid.ts:157 reads sitemaps.missingPages; the filter is local to sitemap-coverage.ts
    6 Docs for both rules and the pages kept out of search list PASS docs/rules/crawl/sitemap-coverage.mdx:14, docs/rules/content/title-pattern-outlier.mdx:25, docs/rules/index.mdx:126-127
    7 Test: precomputed meta-noindex page not listed PASS sitemap-coverage.test.ts
    8 Test: header-noindex page on the fallback path not listed PASS sitemap-coverage.test.ts
    9 Test: indexable missing page still listed PASS "an indexable page missing from the sitemap is still listed (both paths)"
    10 Test: noindex-everywhere unchanged PASS "a site that is noindex everywhere is reported as before"
    11 Test: 12 product pages plus 2 noindex short titles: no finding PASS title-pattern-outlier.test.ts "two noindex short-title pages: no finding"
    12 Test: same pages without noindex: brand-missing fires PASS "the same pages without noindex: brand-missing still fires"
    13 Test: title-pattern-outlier in the dual-path test PASS packages/audit-engine/tests/noindex-site-rules-dual-path.test.ts:305
    14 Canonical golden stays green PASS streaming-rules-canonical-golden.test.ts green on main
    15 PR states whether the agent skill needs a change PASS PR 551 description, "Agent skill: No change needed"

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

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

    P2bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions