Skip to content

schema/review: AggregateRating scope unenforced — passes on privacy policies #106

Closed

Description

@nc9

Part of #103 (V-07).

packages/rules/src/schema/review.ts validates the shape of AggregateRating — ratingValue,
ratingCount/reviewCount — and nothing else. Its own solution text already states the policy:

Reviews must be for specific items (Product, LocalBusiness, etc.), not the overall site.
Self-reviews violate guidelines.

Nothing checks it. A site that emits one sitewide AggregateRating on every page gets status: "pass"
— AggregateRating: 5/5 (18 reviews) — on its privacy policy.

Evidence: 53 pages across four production sites, including all 41 /news posts on one of them
plus /about-us, /contact-us, /book-a-repair, /privacy and both terms pages.

The honest half — this is why the naive version is wrong

The first pass at this assumed 379 offending pages. Checking the rendered pages brought it to 53:
on most pages of those sites the review badge is genuinely on screen, so the markup was accurate and
the rating was about the business the page is about. A rule that fires on "AggregateRating appears on
many pages" would flag every legitimate LocalBusiness site in the catalog.

The signal has to be the relationship between the rating and the page: is the rated entity the page's
subject, and is a rating visible to the reader?

Acceptance Criteria

  • schema/review gains a scope check (or a new sibling rule schema/rating-scope) registered in the rules catalog
  • Warns when AggregateRating is present and NO rating value is visible in the rendered page text
  • Warns when AggregateRating is attached to an entity that is not the page's subject on page types where a rating cannot apply — at minimum privacy, terms, and article/blog page types
  • The finding names the page type and the rated entity, and states that the markup risks a structured-data manual action rather than reporting it as a validation error
  • Does NOT warn on a LocalBusiness homepage that emits AggregateRating and shows a visible review badge
  • Does NOT warn on a Product page whose AggregateRating matches visible on-page reviews
  • Fixture: privacy policy carrying a sitewide LocalBusiness AggregateRating with no visible rating — warns
  • Fixture: blog post carrying the sitewide business AggregateRating — warns
  • Existing structural checks and their messages are unchanged; tests/review-aggregate-rating.test.ts still passes
  • Docs rule page updated in docs/ and make validate passes there

Activity

  1. added
    enhancement
    P2
    size: S
    rules
    on Aug 19, 2026
  2. upadhyay74aman commented on Aug 19, 2026

    @upadhyay74aman

    Hi, I’d like to work on this.

    I’ll keep the existing AggregateRating structural checks unchanged, then add a scoped warning for cases like privacy/terms/blog pages where a sitewide AggregateRating is present without a visible rating value in the rendered page text. I’ll add fixtures for the privacy-policy and blog-post cases, plus non-warning coverage for visible LocalBusiness/Product ratings.

  3. nc9 commented on Aug 19, 2026

    @nc9
    ContributorAuthor

    🐹 hamsterwheel claimed this issue.

    • run: loop-mszvv56o-106
    • branch: loop/106-schema-review-aggregaterating-scope-unen
    • started: 2026-08-19T09:22:34.734Z
  4. nc9 commented on Aug 19, 2026

    @nc9
    ContributorAuthor

    🐹 PR opened: #113 — running the merge gate (CI · human rules · review · rubric).

  5. nc9 commented on Aug 19, 2026

    @nc9
    ContributorAuthor

    🐹 Merged #113 — CI green · no human rule fired · review clean · rubric passed.

  6. nc9 commented on Aug 19, 2026

    @nc9
    ContributorAuthor

    woop! that was auto merged - @upadhyay74aman if you wanna send through changes let me know I can undo the PR - this hasn't been released yet

  7. reopened this on Aug 19, 2026
  8. nc9 commented on Aug 31, 2026

    @nc9
    ContributorAuthor

    Shipped in PR #113 (9a77658, merged 2026-08-19) as schema/rating-scope. The PR title referenced this issue without a closing keyword, so it never auto-closed.

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

    P2enhancementrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions