Skip to main content

Deduction V2 reporting reads the daily reconciliation rollup

Decision

Deduction V2 history and download surfaces read the settled daily rollup in wa_reconciliation_batches; they do not reconstruct V2 reporting from per-message wa_conversation_logs or infer a V2 activation boundary from the first settlement row.

  • hub_core persists the client-charged settled amount on each reconciliation batch.
  • hub_core exposes daily usage-history and CSV-download APIs backed by that rollup.
  • moderator-be reads the billing feature flag and proxies V2 download requests to hub_core.
  • A V2 company always receives daily aggregation for this surface. The older before/after/spanning activation-date split is removed.

Consequences

  • This supersedes ADR 0001.
  • BIF-8959, BIF-8883–BIF-8887, and BIF-8958 are the implementation mirror. BIF-8886 is the Saprol-owned frontend slice; its live Jira assignee remains drift until changed.
  • The old 10.5-day moderator-only estimate is invalid. The replacement cross-repository scope is TBD until the DRI and implementors estimate it.
  • The previously corroborated 13 backend days remain valid historical completion for the hold and settlement engine, but they are not a percentage of the expanded scope.