Repository navigation
Description
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/reviewgains a scope check (or a new sibling ruleschema/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.tsstill passes - Docs rule page updated in
docs/andmake validatepasses there
Activity
upadhyay74aman commentedon Aug 19, 2026
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.
nc9 commentedon Aug 19, 2026
🐹 hamsterwheel claimed this issue.
loop-mszvv56o-106loop/106-schema-review-aggregaterating-scope-unennc9 commentedon Aug 19, 2026
🐹 PR opened: #113 — running the merge gate (CI · human rules · review · rubric).
feat(rules): add schema/rating-scope, AggregateRating that is not abo…
nc9 commentedon Aug 19, 2026
🐹 Merged #113 — CI green · no human rule fired · review clean · rubric passed.
Merge remote-tracking branch 'origin/main' into loop/105-rules-crawl-…
nc9 commentedon Aug 19, 2026
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
nc9 commentedon Aug 31, 2026
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.