A high-traffic UI flow produces inconsistent ordering between initial load and refresh. The affected area is Pinia store.
Repair the Pinia store reporting metrics implementation so it groups records once and returns accurate counts and totals.
Evidence
- Affected surface: Vue / Pinia store.
- Observed failure family: aggregate grouped totals.
- Scope policy: tenantId must equal tenant-primary.