Skip to content

feat: add distribution and verified_count to Rating schema#556

Open
Mubeen-Fatima wants to merge 2 commits into
Universal-Commerce-Protocol:mainfrom
Mubeen-Fatima:feat/rating-distribution-verified-count
Open

feat: add distribution and verified_count to Rating schema#556
Mubeen-Fatima wants to merge 2 commits into
Universal-Commerce-Protocol:mainfrom
Mubeen-Fatima:feat/rating-distribution-verified-count

Conversation

@Mubeen-Fatima

@Mubeen-Fatima Mubeen-Fatima commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds optional distribution field to Rating: per-bucket review counts so agents can detect patterns like bimodal distributions hidden by the aggregate average
  • Adds optional verified_count field to Rating: number of reviews from verified purchasers, letting agents distinguish high-signal feedback from total review count
  • Both fields are fully additive — no existing payloads are affected

Category

  • Core Protocol
  • Governance/Contributing
  • Capability: New schemas (Discovery, Cart, etc.) or extensions.
  • Documentation
  • Infrastructure
  • Maintenance
  • SDK
  • Samples / Conformance
  • UCP Schema
  • Community Health (.github)

Related Issues

Resolves #459

Checklist

  • I have followed the Contributing Guide (including Conventional Commits title requirements).
  • My changes pass all local linting and formatting checks.
  • New and existing unit tests pass locally with my changes.

@Mubeen-Fatima
Mubeen-Fatima requested review from a team as code owners June 28, 2026 05:41
@Mubeen-Fatima

Copy link
Copy Markdown
Contributor Author

Hi @damaz91 @igrigorik — would appreciate a review when you get a chance. This adds two optional fields to the Rating schema (distribution and verified_count), as proposed in #459. Fully additive, no breaking changes.

@damaz91
damaz91 removed the request for review from a team July 14, 2026 08:07
@damaz91 damaz91 added status:needs-triage Signal that the PR is ready for human triage and removed status:needs-triage Signal that the PR is ready for human triage labels Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal]: Add distribution and verified-purchase count to Rating

2 participants