# v414 — Super Admin Workspace Classification Workflow

## Purpose

v414 adds the first guarded Super Admin workflow for setting stored workspace type and account class on existing workspaces.

This is a control-surface foundation only. It does not change registration, hard billing gates, plan enforcement, Stripe handoff, trial logic, owned-interface records, invited portal records, broker distribution limits, or internal load-board gates.

## What changed

- Reviewed v413 workspace type and subscription Prisma foundation.

- Added `PATCH /api/workspaces/[id]/classification`.

- Added `WorkspaceService.setWorkspaceClassification`.

- Added guarded validation so workspace type and account class must be saved together or both cleared.

- Updated `/admin/workspaces/types` with a guarded classification panel.

- Added before/current/after classification guidance.

- Added recommended workspace type/account class guidance from the current inferred workspace category.

- Added recent classification audit visibility on the selected workspace.

- Wrote `SuperAdminAuditEvent` records for classification changes.

- Kept registration UI unchanged.

- Kept billing gates unenforced by workspace type.

- Kept Prisma unchanged in this build.

## Guardrails

- Super Admin can store classification for existing workspaces.

- The workflow records before and after values in `SuperAdminAuditEvent`.

- The workflow is not a billing action.

- The workflow is not a Stripe action.

- The workflow is not a registration action.

- The workflow is not a feature-gate action.

- Inferred classification remains visible for older unclassified workspaces.

## What Super Admin can now review

- Stored workspace type/account class.

- Current inferred workspace category.

- Recommended stored type.

- Before-save value.

- After-save value.

- Classification audit history.

- Trial/subscription state.

- Billing gate readiness.

- Entitlement summary.

- Owned interface and invited portal planning notes.

## Next recommended step

Proceed to plan and then build plan visibility and registration/trial workflow only after stored workspace classifications are reviewed.