You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rules should read the page type: thin content and snippet length on contact, legal and noindex pages #841
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
Blocked on an unmerged branch. The model page label this issue builds on (ParsedPage.classification.pageType with a confidence, feat(cli): render pages in a local Chrome over CDP with --render-cdp #2306 #2307) is not on main. Commits 9adcc77b, 56d83821 and d4ebc984 sit on the unpushed release branch nc9/link-section-findings.
Main has only the parser's heuristic pageType (detectPageType, from the URL and the page's schema). The criteria rule that out as a verdict changer ("a rules-fallback page type never relaxes a verdict").
Still reproduces on main:content/word-count reads no page type or noindex, so contact, legal and noindex pages under 300 words are reported as thin.
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.
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.
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.
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.
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.
Activity
nc9 commentedon Oct 16, 2026
Triage, checked on main d93241c:
ParsedPage.classification.pageTypewith a confidence, feat(cli): render pages in a local Chrome over CDP with --render-cdp #2306 #2307) is not on main. Commits 9adcc77b, 56d83821 and d4ebc984 sit on the unpushed release branchnc9/link-section-findings.pageType(detectPageType, from the URL and the page's schema). The criteria rule that out as a verdict changer ("a rules-fallback page type never relaxes a verdict").content/word-countreads no page type ornoindex, so contact, legal and noindex pages under 300 words are reported as thin.noindexhalf (out of scope for thin-content and snippet findings whatever the label) does not need feat(cli): render pages in a local Chrome over CDP with --render-cdp #2306 #2307. It could ship first as its own small change if wanted, with the page-type half after the branch lands.nc9 commentedon Oct 22, 2026
Per-rule decisions after PR #1021 (noindex half). This issue stays open.
Covered by #1021:
content/word-countnow declaresskipOnNoindex(skips noindex pages on an indexable site, nothing on a staging or preview host).core/meta-description,core/meta-titleandcore/h1already skipped noindex (#457), unchanged.Unchanged, with reasons:
content/keyword-stuffingandcontent/reading-leveljudge 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-normleaving noindex pages out of its groups (needs a streamingsiteQuerychange).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 forword-countand the other length rules, theskippedByTypedetail, the trust rule (model source and confidence at or above 0.9 only; the public schema and URL derivedpageTypenever relaxes a verdict), and the before and after on three real audits.chore(release): v0.0.128 batch: Bun 1.4.4, lease-based crawl retireme…
nc9 commentedon Oct 30, 2026
Per-rule decisions for the page-type half, from PR #1334 (four real audits before and after):
content/word-count: adapts to page type. Skipscontactandlegal(model label, confidence 0.9 or more). Evidence: 4 contact and legal pages flagged thin (93, 140, 218, 250 words).core/meta-descriptionandcore/meta-title: adapt for the "too short" finding only, oncontactandlegal. "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: skipslegal. 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.Skipped pages are counted in
details.skippedByType; the trust rule is a model label at 0.9 or more, never a rules label.fix(rules): page-type skip resolves earlier findings, rule-wide gate …
feat(rules): word-count, title and description floors and keyword den…
fix(rules): page-type skip resolves earlier findings, rule-wide gate …
fix(rules,crawler): page-type skip needs body corroboration; cached p…
fix(classifier): CLASSIFIER_RULES_VERSION 2 is the first stamped vers…
fix(rules): bound the contact corroboration scans (CodeQL ReDoS) #841
fix(rules): bound the contact corroboration scans (CodeQL ReDoS) #841
9 remaining items
fix(classifier): CLASSIFIER_RULES_VERSION 2 is the first stamped vers…
fix(rules): bound the contact corroboration scans (CodeQL ReDoS) #841
fix(rules,crawler): corroborate on main content only, phone and phras…
fix(crawler,parser,rules): classifier stamp read as the first key, un…
feat(rules): word-count, title and description floors and keyword den…
fix(rules): page-type skip resolves earlier findings, rule-wide gate …
fix(rules,crawler): page-type skip needs body corroboration; cached p…
fix(classifier): CLASSIFIER_RULES_VERSION 2 is the first stamped vers…
fix(rules): bound the contact corroboration scans (CodeQL ReDoS) #841
fix(rules,crawler): corroborate on main content only, phone and phras…
fix(crawler,parser,rules): classifier stamp read as the first key, un…
nc9 commentedon Oct 30, 2026
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,
skippedByTypeis 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
nc9 commentedon Oct 30, 2026
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 freshHOMEper 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 atc52e31ad(v0.0.146). Findings compared as (rule, check, status, page or item).perf/ttfb(a timing result that varies run to run), not a page-type effect./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").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
nc9 commentedon Nov 2, 2026
Ticked the two stale boxes from the evidence comment above (verified against main
e86767ff).docs/rules/content/word-count.mdx,core/meta-description.mdx,core/meta-title.mdxandcontent/keyword-stuffing.mdxeach state which page types they skip.All boxes ticked, closing.
nik