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 workspace subscription lifecycle, plan, trial dates, provider sync, masked Stripe IDs, duplicate ID risks, recent webhook billing-sync signals, soft Workspace Admin guidance, and 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.
- 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