A cross-layer workflow passes unit tests but breaks when client, API, and persistence state arrive in a different order. The affected area is upload pipeline.
Repair the upload pipeline reporting metrics implementation so it groups records once and returns accurate counts and totals.
Evidence
- Affected surface: Full-stack frontend focus / upload pipeline.
- Observed failure family: aggregate grouped totals.
- Scope policy: qualityState must equal verified.