A distributed workflow needs a localized repair without weakening observability or rollback safety. The affected area is audit pipeline.
Repair the audit pipeline reporting metrics implementation so it groups records once and returns accurate counts and totals.
Evidence
- Affected surface: Full-stack backend focus / audit pipeline.
- Observed failure family: aggregate grouped totals.
- Scope policy: contractVersion must equal 2.