Skip to content

fix(rules): stop reporting robots.txt allow plus noindex as a conflict - #549

Merged
nc9 merged 3 commits into
mainfrom
claude/indexability-conflicts-allow-noindex
Oct 8, 2026
Merged

nc9 merged 3 commits into
mainfrom
claude/indexability-conflicts-allow-noindex

Conversation

@nc9

@nc9 nc9 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Closes #487

What changed

  • crawl/indexability-conflicts no longer reports robots-allow-but-noindex. robots.txt Allow plus meta or X-Robots-Tag noindex is the supported way to deindex a page.
  • The only remaining non-pass check is robots-block-without-noindex (info). It now sets pages with the affected URLs, on both the streaming and in-memory paths.
  • Disallow plus noindex stays reported only by crawl/robots-meta-conflict, so nothing is double-reported.
  • Solution text, rule description and the docs page no longer advise choosing between robots.txt and noindex. Related rule pages and the crawl index card are updated to match.

Tests

  • New packages/rules/tests/indexability-conflicts.test.ts: the reporter's repro passes, X-Robots-Tag: noindex plus Allow passes, Disallow plus noindex gives no finding here, and a robots-disallowed indexable page gives an info finding with pages populated.
  • packages/audit-engine/tests/page-features-noindex-golden.test.ts updated deliberately for the removed warning (streamed equals legacy), plus a dual-path case for the info check with pages.
  • packages/audit-engine/tests/streaming-rules-canonical-golden.test.ts: overall score pin moved 49 to 50 deliberately, since the removed warning lifts the canonical fixture's score. v1 and v2 stay identical.
  • make validate in docs/ passes; rules and audit-engine typecheck clean.

Agent skill

No change needed. The skill links to the rule pages, which are the reference and are updated here.

Allow plus noindex is the supported way to deindex a page. Only pages
blocked by robots.txt without noindex are reported (info), now with their
URLs in pages on both the streaming and in-memory paths. Disallow plus
noindex stays with crawl/robots-meta-conflict.

Closes #487

Signed-off-by: Nik Cubrilovic <[email protected]>
@claude

claude Bot commented Oct 7, 2026

Copy link
Copy Markdown

Reviewed the diff. No blocking problems. The change drops the allow-plus-noindex warning, keeps the blocked-without-noindex info finding, and now fills pages. The legacy and streaming paths match, and the new unit and golden tests cover both. I also grepped for leftover references to the removed robots-allow-but-noindex check and found none.

  • (low) packages/rules/src/crawl/indexability-conflicts.ts: the rule is still declared severity: "warning" with weight 4, but it now only emits info or pass. If the severity or weight feeds scoring, consider lowering it so the metadata matches the behaviour. The docs already note the mismatch.
  • (nit) The value text and the pages list now overlap. That's fine, but value could be dropped later if the UI renders pages.
  • (nit) The rule name "Indexability Conflicts" no longer fits what it reports. Renaming it is probably out of scope here.

nc9 added 2 commits October 8, 2026 00:39
Allow plus noindex no longer warns, which lifts the canonical fixture's
overall score from 49 to 50. v1 and v2 stay identical.

Signed-off-by: Nik Cubrilovic <[email protected]>

nc9 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Re the (low) severity/weight finding: skipped deliberately. Changing the rule's declared severity or weight is out of scope for this fix and would move scoring again; it can be revisited separately.

@claude

claude Bot commented Oct 8, 2026

Copy link
Copy Markdown

Reviewed the diff. I found nothing that should block merge.

  • The rule change is small and correct. The in-memory and streaming paths share buildChecks, so they can't drift apart. Allow plus noindex now passes, and Disallow plus noindex is left to robots-meta-conflict.
  • Tests cover the reporter's repro, the header-based noindex case, no double-reporting, pages being populated, and dual-path parity. The score pin change from 49 to 50 is explained.

Findings, both minor:

  • (nit) docs/rules/crawl/indexability-conflicts.mdx: "Severity is warning and the weight is 4, but the only check this rule reports is informational" reads awkwardly. Consider lowering the rule's declared severity to info in a follow-up, so the docs and the metadata agree.
  • (nit) The docs frontmatter description ("squirrel only reports...") differs slightly from the card text in crawl/index.mdx. Keeping them identical would be tidier.

I did not run the tests myself.

@nc9
nc9 merged commit 2d84944 into main Oct 8, 2026
15 checks passed
@nc9
nc9 deleted the claude/indexability-conflicts-allow-noindex branch October 8, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant