Index of /Project Documentation

 NameLast modifiedSizeDescription

 Parent Directory   -  
 07_CONTROLLED_DOCUME..>2026-04-26 21:16 5.4K 
 07_CONTROLLED_DOCUME..>2026-04-26 21:16 48K 
 07_CONTROLLED_DOCUME..>2026-04-26 21:16 4.1K 
 08_DOCUMENTATION_REF..>2026-04-26 21:25 7.8K 
 08_DOCUMENTATION_REF..>2026-04-26 21:25 5.5K 
 09_PREVIOUS_CHAT_REQ..>2026-04-26 21:44 12K 
 09_PREVIOUS_CHAT_REQ..>2026-04-26 21:44 9.8K 
 10_DOCUMENTATION_CLE..>2026-04-26 22:01 6.7K 
 10_DOCUMENTATION_CLE..>2026-04-26 22:01 6.0K 
 00_CURRENT_OPERATING..>2026-04-27 02:54 17K 
 06_CONSOLIDATED_ACTI..>2026-04-27 03:50 40K 
 00_CURRENT_OPERATING..>2026-04-30 17:05 20K 
 01_PREVIOUS_CHAT_REQ..>2026-04-30 17:05 21K 
 01_PREVIOUS_CHAT_REQ..>2026-04-30 17:05 22K 
 02_DOCUMENTATION_MIG..>2026-04-30 17:05 7.4K 
 02_DOCUMENTATION_MIG..>2026-04-30 17:05 6.7K 
 03_DOCUMENTATION_REV..>2026-04-30 17:05 2.1K 
 03_DOCUMENTATION_REV..>2026-04-30 17:05 1.2K 
 04_ROOT_DOCUMENTATIO..>2026-04-30 17:05 57K 
 04_ROOT_DOCUMENTATIO..>2026-04-30 17:05 51K 
 05_ROOT_DOCUMENTATIO..>2026-04-30 17:05 5.5K 
 05_ROOT_DOCUMENTATIO..>2026-04-30 17:05 4.3K 
 06_CONSOLIDATED_ACTI..>2026-04-30 17:05 42K 
 Active/ 2026-05-05 04:55 -  
 Architecture/ 2026-05-05 04:55 -  
 Build History/ 2026-05-05 04:55 -  
 Duplicates or Retire..>2026-05-05 04:55 -  
 HTML Mirrors/ 2026-05-05 04:55 -  
 Superseded/ 2026-05-05 04:55 -  

README
# v412 Documentation Note

The active schema planning source for workspace type, account class, subscription/trial, registration workflow, portal ownership, broker load distribution, internal load-board access, billing gate override, and Super Admin audit design is now `Project Documentation/Architecture/WORKSPACE_TYPE_SUBSCRIPTION_SCHEMA_DESIGN_REVIEW.md`. No Prisma changes were made in v412.

# v411 Super Admin Workspace Type and Subscription Overview

v411 adds the first Super Admin-only planning/control surface for workspace type and subscription review at /admin/workspaces/types. It uses existing schema only and documents future schema needs before registration, trial, portal, broker distribution, and entitlement enforcement work.

# Project Documentation

Status: Controlled documentation working folder
Updated: v409

## Purpose

This folder is the working documentation home for Dispatch Spot. The app root is no longer the documentation workspace. v395 moved the root Markdown, HTML, and README documentation files into this controlled folder so future build cycles can find the correct rules quickly and avoid old conflicting guidance.

## Start here before every build

1. Current user prompt and stated server baseline.
2. `Active/DISPATCH_SPOT_BUILD_RULES.md`.
3. `00_CURRENT_OPERATING_MANUAL.md`.
4. `06_CONSOLIDATED_ACTIVE_PRODUCT_ARCHITECTURE_MANUAL_V394.md`.
5. `Active/DISPATCH_SPOT_DOCUMENTATION_SOURCE_OF_TRUTH.md`.
6. `Active/DISPATCH_SPOT_SUPERSEDED_GUIDANCE_REGISTER.md`.
7. `01_PREVIOUS_CHAT_REQUIREMENTS_REGISTER.md`.
8. `09_PREVIOUS_CHAT_REQUIREMENTS_CROSS_CHECK_V397.md` when auditing previous-chat coverage.
9. `10_DOCUMENTATION_CLEANUP_CLOSEOUT_AND_PRODUCT_REENTRY_PLAN_V398.md` when confirming documentation cleanup status or product re-entry direction.
10. `Architecture/ROLE_WORKSPACE_ARCHITECTURE_AND_SUPER_ADMIN_ADMINISTRATION_REQUIREMENTS.md` before deeper Super Admin, subscription, workspace-type, driver, broker, shipper/customer, internal load-board, or internal operations work.
11. `Architecture/SUPER_ADMIN_CONTROL_CENTER_INFORMATION_ARCHITECTURE_PLAN.md` before major Super Admin control-center, provider, subscription, phone-system, support, or platform-setting work.
12. `Active/PROJECT_HANDOFF.md` latest entry.
13. Relevant module standard or architecture file only after checking the consolidated manual.

`Active/DEVELOPMENT_PROTOCOL.md` is now a compact pointer. It is not a second independent operating manual.

## Folder map

| Folder | Use |
| --- | --- |
| `Active/` | Current control docs, handoff, changelog, deployment references, and source-of-truth files. |
| `Active/Module Standards/` | Current module-specific standards and seed/readiness guidance. |
| `Architecture/` | Preserved active architecture sources; use after the consolidated manual. |
| `Build History/` | Historical v-numbered and foundation build records. Context only. |
| `Superseded/` | Old guidance that has been replaced but must be preserved for audit/history. |
| `Duplicates or Retired Scaffolds/` | Old package/scaffold README notes. Not current protocol. |
| `HTML Mirrors/` | HTML copies of docs. Markdown is the source. |

## Current control documents

- `00_CURRENT_OPERATING_MANUAL.md`
- `06_CONSOLIDATED_ACTIVE_PRODUCT_ARCHITECTURE_MANUAL_V394.md`
- `08_DOCUMENTATION_REFERENCE_SWEEP_AND_COMPACTNESS_PASS_V396.md`
- `09_PREVIOUS_CHAT_REQUIREMENTS_CROSS_CHECK_V397.md`
- `10_DOCUMENTATION_CLEANUP_CLOSEOUT_AND_PRODUCT_REENTRY_PLAN_V398.md`
- `Active/DISPATCH_SPOT_BUILD_RULES.md`
- `Active/DISPATCH_SPOT_DOCUMENTATION_SOURCE_OF_TRUTH.md`
- `Active/DISPATCH_SPOT_SUPERSEDED_GUIDANCE_REGISTER.md`
- `01_PREVIOUS_CHAT_REQUIREMENTS_REGISTER.md`
- `Active/PROJECT_HANDOFF.md`
- `Active/CHANGELOG.md`
- `Architecture/SUPER_ADMIN_CONTROL_CENTER_INFORMATION_ARCHITECTURE_PLAN.md`
- `Architecture/ROLE_WORKSPACE_ARCHITECTURE_AND_SUPER_ADMIN_ADMINISTRATION_REQUIREMENTS.md`

## Root policy

The project root should stay clean. New durable documentation belongs here, not in the root. The root `README.md` is only a pointer to this folder.

## Historical policy

Historical files are preserved. They should not be deleted just because guidance changed. When historical guidance conflicts with current rules, the current rules win and the conflict should be listed in `Active/DISPATCH_SPOT_SUPERSEDED_GUIDANCE_REGISTER.md`.


## v396 compactness note

Markdown is the source when Markdown and HTML both exist. HTML files are mirrors for review only. Future build cycles should avoid adding new one-off documents when an existing active manual, register, changelog, or handoff can be updated safely.


## v397 cross-check note

The v397 cross-check compared previous-chat requirements against the consolidated active architecture manual by module and strengthened the current documentation where requirements were missing or partial.


## v398 closeout note

The v391-v398 documentation cleanup track is complete enough to return to normal product feature work. v399 resumed product work with CORI Mail send-review and audit visibility hardening. The recommended next product track is notification digest/email trigger behavior.


## v399 product re-entry note

CORI Mail now shows safer approved-send review history and simple audit visibility without exposing provider setup or raw delivery logs. Provider setup remains in Workspace Integrations.


## v399.1 deployment hardening

WHM deployment commands now include Next build cleanup before build and cPanel/Passenger restart after build. See `00_CURRENT_OPERATING_MANUAL.md`.

## v400 notification digest note

Notification digest/email-trigger behavior now lives in Workspace Settings > Notifications. `/notifications` remains alert/action-only. Provider setup remains in Workspace Integrations.

## v401 digest history note

Workspace Settings > Notifications now includes simple digest send history, last-send status, and retry guidance. This remains a settings/delivery-management surface. Provider setup remains in Workspace Integrations and /notifications remains alert/action-only.


## v402 scheduled digest guard note

Workspace Settings > Notifications now includes scheduled digest planning, visible trigger rules, guarded trigger checks, and automation-lock wording. Automatic digest sends remain locked unless explicitly enabled with DISPATCH_SPOT_NOTIFICATION_AUTO_DIGEST_ENABLED=true. /notifications remains alert/action-only and provider setup remains in Workspace Integrations.


## v403 scheduler webhook hardening note

Notification email digests now have a protected scheduler/webhook execution endpoint. Manual trigger checks in Workspace Settings > Notifications are readiness checks only and do not auto-send. Automatic sends require both `DISPATCH_SPOT_NOTIFICATION_AUTO_DIGEST_ENABLED=true` and `DISPATCH_SPOT_NOTIFICATION_DIGEST_WEBHOOK_SECRET`.


## v404 scheduler health note

Workspace Settings > Notifications now includes protected scheduler health and scheduler run history for notification email digest checks. This is admin-visible status only. It must not expose scheduler secrets, provider credentials, raw SMTP/Twilio responses, or raw delivery logs. `/notifications` remains alert/action-only.

## v405 Super Admin scheduler health note

Super Admin Notification Governance now includes platform-wide notification scheduler health and recent protected scheduler runs. This is visibility only and must not expose scheduler secrets, provider credentials, or raw provider diagnostics. Workspace-level digest controls remain in Workspace Settings > Notifications. Provider setup remains in Workspace Integrations. `/notifications` remains alert/action-only.

## v406 notification scheduler runbook note

v406 adds protected scheduler runbook and cron setup guidance to Super Admin notification governance and closes the notification track enough to pivot next to workspace parity and membership/subscription planning.

## v407 workspace parity and subscription planning note

v407 starts the post-notification planning track. Use `Architecture/WORKSPACE_PARITY_AND_MEMBERSHIP_SUBSCRIPTION_TRIAL_PLAN.md` as the active planning source for role workspace parity, workspace type development, membership subscription engine direction, trial-period registration workflow, entitlement limits, add-ons, billing status behavior, Stripe handoff, expired-trial behavior, and Super Admin visibility.

Do not begin broad role-workspace UI expansion until the subscription/trial registration workflow is settled enough to avoid rebuilding onboarding and entitlement gates later.

## v408 Super Admin control-center planning note

v408 adds `Architecture/SUPER_ADMIN_CONTROL_CENTER_INFORMATION_ARCHITECTURE_PLAN.md` as the active planning source before major Super Admin rebuilding. It organizes Super Admin as a platform operations console and records the correction that drivers have their own road-focused interfaces but do not need independent Dispatch Spot subscriptions by default because they are owned by the workspace they drive for.


## v409 role-workspace architecture note

v409 adds `Architecture/ROLE_WORKSPACE_ARCHITECTURE_AND_SUPER_ADMIN_ADMINISTRATION_REQUIREMENTS.md` as the active planning source for Dispatcher, Company/Fleet, Carrier/Owner-Operator, Driver, Freight Broker, Shipper/Customer, internal load board, and internal Dispatch Spot Operations workspace behavior. Use it before deeper Super Admin or subscription/workspace-type work so Super Admin controls are based on what actually needs to be administrated.

## v410 active architecture addition

New active architecture source:

- `Architecture/MEMBERSHIP_SUBSCRIPTION_TRIAL_WORKSPACE_TYPE_ARCHITECTURE.md`

Use it for workspace type, plan visibility, trial policy, registration flow, entitlement limits, add-ons, invited driver/customer/carrier portal access, broker load distribution limits, internal load-board access, Stripe handoff, billing gates, and Super Admin visibility.


## v413 schema foundation

The controlled documentation now includes `Build History/WORKSPACE_TYPE_SUBSCRIPTION_PRISMA_FOUNDATION_V413.md`. This is the first approved schema foundation for workspace type, account class, plan family, plan visibility, and Super Admin audit event history.

## v423 guarded Stripe checkout preparation note

Super Admin now has a guarded checkout-preparation review on `/admin/subscriptions`. This is review-only. It checks Stripe environment readiness, candidate signup plan Stripe IDs, fallback plan readiness, and recent trial workspace readiness before any checkout route or hard billing gate is added.

Checkout session creation, customer portal sessions, payment collection, hard billing gates, broker distribution limits, owned portal rules, and internal load-board access remain inactive.

## v424 Stripe checkout route scaffold locked-test-mode note

The checkout route scaffold now exists at `/api/subscriptions/stripe-checkout`, but it is locked. `GET` returns workspace checkout readiness posture and `POST` returns a locked review-only response. No Stripe Checkout session is created.

Super Admin can see the route scaffold on `/admin/subscriptions` inside the guarded checkout-preparation panel. Checkout session creation, card collection, customer portal sessions, invoices, charges, hard billing gates, broker distribution limits, owned portal rules, and internal load-board access remain inactive.