Repository navigation
fix(rules): report linked but uncrawled About and Contact pages, not create advice #740 - #745
Conversation
|
Review of #745: the change is small and well tested. I read the diff and the shared helper; I did not run the tests.
|
…740 Review of #745: the pathname-only slug match took a footer link to another site's page (linkedin.com/company/x/about, reCAPTCHA's policies.google.com/privacy) as this site's About, Contact or privacy page, turning a real "not found" warning into info. Accept only links to the page's own host, the parser's own internal-link test. Adds the external-link and redirect cases the review asked for. Signed-off-by: Nik Cubrilovic <[email protected]>
|
Review triage, fixed in 9b6ac44:
Local gates at 9b6ac44: the eeat tests (52 pass), |
|
Review of #745: the change is small, reuses the #743 helper cleanly, and has good test coverage. I read the diff only and did not run the tests. No blocking issues.
No security concerns, and no new requests are made. |
|
Round 2 triage, no code change:
|
…create advice #740 eeat/about-page and eeat/contact-page had the same early return as eeat/privacy-policy (#672): an About or Contact page the pages link to but the crawl excluded (or never reached) got advice to create it. Reuse shared/linked-uncrawled-page.ts: a link whose href matches the rule's URL patterns and whose target was not crawled gives info "<label> linked but not crawled", or a warning "<label> link returns N" when the internal link probe saw a 4xx/5xx. Anchor text alone does not count. The contact methods check is skipped for a page that was never read. Signed-off-by: Nik Cubrilovic <[email protected]>
…740 Review of #745: the pathname-only slug match took a footer link to another site's page (linkedin.com/company/x/about, reCAPTCHA's policies.google.com/privacy) as this site's About, Contact or privacy page, turning a real "not found" warning into info. Accept only links to the page's own host, the parser's own internal-link test. Adds the external-link and redirect cases the review asked for. Signed-off-by: Nik Cubrilovic <[email protected]>
9b6ac44 to
bfb481c
Compare
|
Reviewed the diff. The logic is a small, consistent reuse of the shared helper, and the tests cover the three cases per rule plus the edge cases. I found nothing blocking.
|
Closes #740.
What changed
eeat/about-pageandeeat/contact-pagehad the same early return that #672 / #743 fixed ineeat/privacy-policy. A crawl that excluded the About or Contact path, or reached its page limit first, got advice to create a page the site already links to.Both rules now reuse
packages/rules/src/shared/linked-uncrawled-page.tsfrom #743. When no crawled page is the About or Contact page, they look for a link whose href matches the rule's own URL patterns (EEAT_PAGE_PATTERNS.about/.contact) and whose target was not crawled.about-page/contact-pageAboutPage/ContactPageschema)infoAbout page linked but not crawled/Contact page linked but not crawled, value = link target,details.linkedFromwarnAbout page link returns N/Contact page link returns N(401, 403 and rate limits stayinfo)warnNo About page found/No Contact page foundwith the create advice (unchanged)/about,/contactor/privacy(for example reCAPTCHA'spolicies.google.com/privacy) no longer stands in for a missing page. This also tightenseeat/privacy-policy, which shares the helper since fix(rules): report a linked but uncrawled privacy policy, not create advice #672 #743.contact-methodsis not emitted for an uncrawled contact page, because the page was never read.Acceptance criteria
info"linked but not crawled", orwarnwhen the probe saw a 4xx/5xx, not the create advice.packages/rules/tests/eeat-about-contact-not-crawled.test.ts. It also covers a probed 404 and 403, external links at a matching slug, a redirect target, text-only links, a crawled slug page, and no methods check for an uncrawled contact page. A privacy test pinspolicies.google.com/privacy.docs/rules/eeat/about-page.mdxandcontact-page.mdxquote the message templates. The about page's filled example84 words - consider expandingnow readsN words - consider expanding.make validatepasses.Verification
bun test packages/rules/tests/eeat-about-contact-not-crawled.test.ts packages/rules/tests/eeat-page-detection.test.ts packages/rules/tests/eeat-privacy-policy-not-crawled.test.ts: 52 pass.bun test packages/rules/tests/ws4-rule-batches.test.ts: 34 pass.bun test packages/audit-engine/tests/streaming-rules-canonical-golden.test.ts: 1 pass. No re-pin; the rule count is unchanged.tsgo --noEmitinpackages/rules: clean. oxfmt and oxlint are clean on the changed files.make validateindocs/: all checks passed.Score effect
A linked but uncrawled About or Contact page goes from
warntoinfo. Nothing that passed before warns.Agent skill
No change needed. The squirrelscan skill does not describe these rules' messages.