# v428 - Super Admin checkout-session readiness approval switches

Current baseline before package: v427.1.
Current baseline after package: v428.

## Decision

v428 adds Super Admin checkout-session readiness approval switches before guarded Stripe checkout session creation.

This was chosen because v424 added the locked checkout route scaffold, v425 added candidate-plan Stripe price readiness controls, v426 added Workspace Admin locked-state review, and v427 added price readiness export/audit notes. Before any later build creates even a test-mode checkout session, Super Admin should explicitly approve the readiness areas and leave an audit trail.

## Product changes

- Extended `/admin/subscriptions` guarded Stripe checkout preparation with a checkout-session readiness approval area.
- Added Super Admin-only API route `/api/admin/stripe-checkout/session-approval-switches`.
- Added readiness approval switches for:
  - Stripe environment reviewed;
  - candidate plans and prices reviewed;
  - trial workspace readiness reviewed;
  - Workspace Billing locked-state review accepted;
  - session-creation guardrail confirmed.
- Each switch is server-checked against the current guarded checkout-preparation review before it can be approved.
- Added optional Super Admin notes per approval switch.
- Added revoke behavior so Super Admin can remove a readiness approval if conditions change.
- Added recent approval history inside the checkout-preparation panel.
- Saved approval/revoke events to `SuperAdminAuditEvent` using action `STRIPE_CHECKOUT_SESSION_READINESS_SWITCH_UPDATED`.
- Added `DISPATCH_SPOT_STRIPE_CHECKOUT_SESSION_APPROVALS_REQUIRED="true"` to `.env.example` as a future checkout-session gating flag.

## Safety guardrails

The approval switches are audit and readiness records only. v428 does not create Stripe checkout sessions, collect cards, create customer portal sessions, create invoices, create charges, change hard billing gates, change broker distribution limits, change owned portal rules, or open internal load-board access.

## Prisma schema impact

No Prisma schema changes were made. The build reuses the existing `SuperAdminAuditEvent` model.
