# v452 — Soft-to-Hard Billing Gate Pilot Readiness

## Decision

Reviewed v451 payment collection activation readiness switch and proceeded with soft-to-hard billing gate pilot readiness before changing payment collection, hard billing gates, broker distribution limits, owned portal rules, or internal load-board access.

## What changed

- Added Super Admin API `/api/admin/hard-billing-gates/pilot-readiness`.
- Added `HardBillingGatePilotReadinessService`.
- Added a new **Soft-to-hard billing gate pilot readiness** panel inside `/admin/subscriptions`.
- Added low-risk pilot candidate evaluation using workspace classification, subscription state, hard-gate readiness, soft warning severity, plan limit state, and v451 payment collection readiness evidence.
- Added review-only pilot select/remove actions for ready paid workspaces.
- Stored pilot selections/removals as `SuperAdminAuditEvent` records under `HARD_BILLING_GATE_PILOT_READINESS_UPDATED`.
- Added CSV exports for pilot readiness rows and pilot readiness history.
- Extended the billing activation master checklist with v452 pilot evidence counts.
- Added `.env.example` flags for pilot readiness recording, review-only posture, and optional workspace slug allowlist.

## What's Visible

### In Super Admin

At `/admin/subscriptions`, Super Admin now sees a **Soft-to-hard billing gate pilot readiness** panel after the payment collection activation readiness switch.

The panel shows pilot guardrails, v451 readiness evidence, low-risk workspace candidates, selected pilot rows, first-fix guidance, review notes, history, and CSV exports.

### In Workspace Admin

No Workspace Admin workflow changed.

### In Dispatch Workspace

No dispatch workflow is blocked.

### In Driver, Broker, Company/Fleet, and Carrier Workspaces

No workflow or access rule changed.

## Guardrails

- Hard billing gates remain off.
- Pilot enforcement remains off.
- Payment collection remains off.
- Billing status mutation remains off.
- Broker distribution limits remain unchanged.
- Owned portal rules remain unchanged.
- Internal load-board access remains unchanged.
- Pilot readiness records evidence only and does not affect workspace access.

## Validation

- Prisma schema changed: No.
- Local import preflight passed.
- Targeted TypeScript/TSX transpile syntax checks passed for the changed files.