A production rollout exposes a contract mismatch between the UI boundary and the owning service. The affected area is API transaction.
Repair the API transaction reporting metrics implementation so it groups records once and returns accurate counts and totals.
Evidence
- Affected surface: Full-stack backend focus / API transaction.
- Observed failure family: aggregate grouped totals.
- Scope policy: tenantId must equal tenant-primary.