# v437 — Subscription Lifecycle and Review-Only Billing Sync

## Decision

Proceed with subscription lifecycle and review-only billing sync before billing activation approvals, payment collection, customer portal sessions, hard billing gates, broker distribution limits, owned portal rules, or internal load-board access.

## What changed

- Added Super Admin-only API route `/api/admin/subscription-lifecycle/review`.
- Added `SubscriptionLifecycleBillingSyncService`.
- Extended `/admin/subscriptions` with a new **Subscription lifecycle** review panel.
- Added review-only visibility for each workspace's:
  - subscription lifecycle status;
  - current plan and monthly price;
  - trial end date and current period end date;
  - payment provider, billing mode, and provider sync status;
  - masked Stripe customer, subscription, and subscription-item IDs;
  - duplicate Stripe ID risks;
  - recent webhook billing-sync signals;
  - soft Workspace Admin messaging guidance;
  - Super Admin first-fix guidance.
- Added lifecycle and provider summary cards.
- Added filters for readiness, lifecycle state, provider, risk type, and search text.
- Added CSV exports for lifecycle review rows and review-only webhook billing-sync rows.
- Added review-only environment flags to `.env.example`:
  - `DISPATCH_SPOT_BILLING_STATUS_SYNC_REVIEW_ONLY="true"`
  - `DISPATCH_SPOT_BILLING_STATUS_MUTATION_ENABLED="false"`
- Kept all billing lifecycle work review-only.

## Visible result

### In Super Admin

At `/admin/subscriptions`, Super Admin can now see a **Subscription lifecycle** section after workspace entitlement visibility.

This section helps Super Admin review trial, active, past-due, paused, canceled, and missing-subscription workspaces before any automatic Stripe or billing-state behavior is allowed to change records.

### In Workspace Admin

No visible change.

### Public Signup

No visible change.

## Guardrails

- Prisma schema changed: No
- Payment collection activated: No
- Customer portal sessions activated: No
- Webhook subscription mutation activated: No
- Trial-to-paid conversion activated: No
- Billing status mutation activated: No
- Hard billing gates changed: No
- Broker distribution limits changed: No
- Owned portal rules changed: No
- Internal load-board access changed: No
