Skip to content

Rules should read the page type: thin content and snippet length on contact, legal and noindex pages #841

Closed

Description

@nc9

Most rules still judge every page the same way, so the page type the classifier now attaches (ParsedPage.classification.pageType) changes almost nothing in a report outside the two new schema rules. Comparing an old and a new report of the same small SaaS site, the page and section models account for 2 new rules, section phrases on 9 link items and the Page structure block. Nothing else moved because no other rule reads the labels.

Example of what they could change on that audit: content/word-count reports 10 pages as thin (19 to 294 words, minimum 300). Eight of them are pages where short is normal: two contact URLs, the legal notice, a demo request form, and four noindex application pages (login, signup, two dashboard pages). Only two are marketing pages where thin content is a real finding. core/meta-description ("too short" on 22 pages) is likely the same shape.

Change: let content-length and snippet-length rules adapt to the page type, using the same trust rule as schema/expected-type (only a model-sourced label at or above the confidence threshold; a rules-fallback label, which is derived from the page's own schema, is never used to change a verdict). Pages that are noindex are also out of scope for search-snippet and thin-content findings regardless of label.

Open for the implementer to decide and record, rule by rule: content/word-count, core/meta-description (short), core/title (short), core/h1, content/keyword-stuffing, content/reading-level, eeat/* pages that expect an author or date (contact and legal pages do not).

Acceptance Criteria

  • content/word-count does not report pages the model labels contact or legal (confidence at or above 0.9), and does not report noindex pages; other pages keep the 300-word threshold
  • A rules-fallback page type never relaxes a verdict
  • Each rule in the list above has a recorded decision on this issue: adapts to page type, skips noindex, or unchanged, with the reason
  • Skipped pages are counted in the check details (for example skippedByType), so a report can say why a page was not judged
  • A before and after on at least three real audits shows fewer findings on contact, legal and noindex pages and no change on article, docs and product pages
  • Golden baseline numbers are updated on purpose and the docs for each changed rule say which page types it skips

Activity

  1. added
    enhancement
    size: M
    rules
    on Oct 15, 2026
  2. nc9 commented on Oct 16, 2026

    @nc9
    ContributorAuthor

    Triage, checked on main d93241c:

  3. nc9 commented on Oct 22, 2026

    @nc9
    ContributorAuthor

    Per-rule decisions after PR #1021 (noindex half). This issue stays open.

    Covered by #1021: content/word-count now declares skipOnNoindex (skips noindex pages on an indexable site, nothing on a staging or preview host). core/meta-description, core/meta-title and core/h1 already skipped noindex (#457), unchanged.

    Unchanged, with reasons: content/keyword-stuffing and content/reading-level judge the text itself, not a search snippet or a length floor, so a noindex page can still be stuffed or unreadable for visitors. eeat/* author and date rules wait on a trusted page type.

    Follow-up filed: #1029, content/thin-vs-site-norm leaving noindex pages out of its groups (needs a streaming siteQuery change).

    Waits for the page-type classification (model-sourced ParsedPage.classification.pageType, not on public main yet; it lands with the Treetop merge): contact and legal skipping for word-count and the other length rules, the skippedByType detail, the trust rule (model source and confidence at or above 0.9 only; the public schema and URL derived pageType never relaxes a verdict), and the before and after on three real audits.

  4. added theissue type on Oct 28, 2026
  5. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Per-rule decisions for the page-type half, from PR #1334 (four real audits before and after):

    • content/word-count: adapts to page type. Skips contact and legal (model label, confidence 0.9 or more). Evidence: 4 contact and legal pages flagged thin (93, 140, 218, 250 words).
    • core/meta-description and core/meta-title: adapt for the "too short" finding only, on contact and legal. "Too long" and "missing" still apply. Evidence: "Title too short" on 5 pages titled "Privacy", "Terms", "Contact"; "Description too short" on privacy pages.
    • content/keyword-stuffing: skips legal. Evidence: 2 of 3 privacy pages flagged for "data", "information", "service".
    • core/h1: unchanged. A page without an H1 is a finding whatever its type.
    • content/reading-level: unchanged. It judges the text for its reader, and a legal page is hard to read for its readers too.
    • eeat/*: unchanged. They are site-wide questions (does any page have an author), not a per-page floor.
    • Noindex: as in fix(rules): content/word-count skips noindex pages #841 #1021.
      Skipped pages are counted in details.skippedByType; the trust rule is a model label at 0.9 or more, never a rules label.
  6. 9 remaining items

  7. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Verified against main after v0.0.145. Met: criteria 1 to 4 (word-count skips contact and legal pages and noindex, a rules-fallback label never relaxes a verdict, per-rule decisions are recorded, skippedByType is counted, each with tests). Open: criterion 5 (the before and after comment does not state that article, docs and product pages were unchanged on the real audits) and criterion 6 (no recorded check that the goldens needed no change). Leaving this open for those two.

    nik

  8. nc9 commented on Oct 30, 2026

    @nc9
    ContributorAuthor

    Evidence for the two open criteria, on three real audits and the golden suite.

    Before and after on real audits (criterion 5). squirrel audit <site> --offline --passive -m 40 -f json, a fresh HOME per run, the classifier on, three sites we own: squirrelscan.com, docs.squirrelscan.com, formshield.dev. Before is the parent of the first page-type commit (48b352ef), after is main at c52e31ad (v0.0.146). Findings compared as (rule, check, status, page or item).

    site pages findings before after removed added
    squirrelscan.com 40 161 162 0 1
    docs.squirrelscan.com 40 272 273 0 1
    formshield.dev 40 294 286 9 1
    • The one added finding on each site is perf/ttfb (a timing result that varies run to run), not a page-type effect.
    • All 9 removed findings are on formshield.dev, and all are on contact and legal pages or their word lists: /contact/ (word-count thin, meta-title too short, meta-description too short), /privacy/ and /terms/ (meta-title and meta-description too short), and two keyword-stuffing words ("information", "services").
    • Nothing changed on article, docs or product pages: the article, docs and product findings (49, 102 and 12 on the first two sites, 190 and 5 on formshield.dev, grouped by URL shape) are identical before and after.
    • squirrelscan.com has contact and legal pages in its crawl whose findings did not change; I did not check why (the trust rule is a model label at 0.9 or more).

    Golden suite (criterion 6). On main at v0.0.146 every audit-engine *golden* test file passes when run one by one (streaming, scoring, template fan-out, report-stream, site-query, rule-cache replay, the pinned message baseline), with no baseline edit, so no golden number needed updating for the page-type skips.

    nik

  9. nc9 commented on Nov 2, 2026

    @nc9
    ContributorAuthor

    Ticked the two stale boxes from the evidence comment above (verified against main e86767ff).

    • Before and after: three real audits (squirrelscan.com, docs.squirrelscan.com, formshield.dev), 9 findings removed, all on contact and legal pages; article, docs and product findings identical.
    • Goldens: every audit-engine golden test file passed one by one with no baseline edit. The docs half I checked myself: docs/rules/content/word-count.mdx, core/meta-description.mdx, core/meta-title.mdx and content/keyword-stuffing.mdx each state which page types they skip.
      All boxes ticked, closing.

    nik

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

    enhancementrulessize: M

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions