# Dispatch Spot Documentation Migration Plan

Version introduced: v392
Updated: v398
Status: Active documentation cleanup plan
Location: `Project Documentation/02_DOCUMENTATION_MIGRATION_PLAN.md`

## Purpose

This plan defines how Dispatch Spot documentation should move from a cluttered project root into a controlled `Project Documentation/` folder without losing historical build records or breaking the build cycle.

## Current problem

The v391 source package has more than 200 shallow root documentation files, including Markdown files, HTML mirror files, README files, version-specific implementation notes, architecture files, old protocol notes, and current control files. This flat structure makes it too easy to treat old guidance as current guidance.

## Controlled destination

All project documentation should eventually live under:

```text
Project Documentation/
```

Suggested internal structure:

```text
Project Documentation/
  00_CURRENT_OPERATING_MANUAL.md
  01_PREVIOUS_CHAT_REQUIREMENTS_REGISTER.md
  02_DOCUMENTATION_MIGRATION_PLAN.md
  Active/
  Architecture/
  Build History/
  Superseded/
  HTML Mirrors/
```

## Migration principles

1. Do not delete historical build records.
2. Do not move documents blindly before checking references.
3. Keep the build process stable while moving documentation.
4. Keep one compact operating manual as the first active read.
5. Move historical version-specific documents into an archive area.
6. Mark superseded guidance clearly instead of hiding it.
7. Keep documentation changes separate from product UI feature changes when possible.

## Proposed cleanup cycle

### v392 — Start controlled folder and compact manual

Completed by this package:

- Create `Project Documentation/`.
- Add the current operating manual.
- Add the previous chat requirements register.
- Add this migration plan.
- Update current root control docs so future builds know to use the new folder.

### v393 — Root documentation inventory and classification

Completed by v393:

- Scanned all root `.md`, `.html`, and `README*` documentation files.
- Classified each file as active control, active architecture, active module standard, build history, superseded, duplicate, HTML mirror, or unclear.
- Created `Project Documentation/04_ROOT_DOCUMENTATION_INVENTORY_MANIFEST_V393.md`.
- Created `Project Documentation/05_ROOT_DOCUMENTATION_CONFLICT_NOTES_V393.md`.
- Added warning notes to risky old root docs, including README files, `NOTIFICATIONS_AND_MESSAGING_PLAN.md`, and `Project Documentation/Architecture/ARCHITECTURE_ROADMAP.md`.
- Updated the superseded guidance register.

### v394 — Consolidated active architecture manual

Completed by v394:

- Created `Project Documentation/06_CONSOLIDATED_ACTIVE_PRODUCT_ARCHITECTURE_MANUAL_V394.md` and `.html`.
- Consolidated current product and architecture direction from active architecture files, active module standards, build rules, source-of-truth docs, and the previous-chat requirements register.
- Pulled in Super Admin, subscriptions, CORI Briefing, CORI Financial, CORI Mail, notifications, route planning, telephony, billing, accounting/QuickBooks, paperwork, CRM, Workspace Settings, integrations, privacy, mobile/field access, build-cycle rules, and placement rules.
- Compared important previous-chat requirements against the consolidated manual and strengthened the requirements register where needed.
- Kept version-specific documents as history, not active working instructions.

### v395 — Move documentation into controlled folder

Recommended after v394 consolidation:

- Move root documentation files into `Project Documentation/` subfolders based on the migration manifest.
- Leave only package-essential non-documentation files in the project root.
- If a root pointer file is needed temporarily, keep it small and explicit.
- Re-run preflight and build validation.

## What should not happen

- Do not delete historical records just because they are old.
- Do not leave old root files in place forever after they are classified and moved.
- Do not continue adding new root-level one-off documents for ordinary builds.
- Do not let historical HTML mirror files control current product decisions.
- Do not move app source files, Prisma files, config files, or deployment files into the documentation folder.

## Success state

The desired documentation state is:

- One current operating manual for build procedure.
- One active product/architecture manual for current product decisions.
- One superseded-guidance register.
- One previous-chat requirements register.
- One historical build archive.
- One changelog or build history record.
- No confusing flat root full of equally weighted historical documents.


## v395 relocation status

The controlled relocation step is complete in the source package. Root Markdown, HTML, and README documentation files have been moved into `Project Documentation/` subfolders according to the v393 manifest.

Remaining cleanup work should focus on reference polish, duplicate reduction inside the controlled folder, and keeping future feature-build docs from recreating root clutter.

Next recommended documentation cleanup: review the relocated active docs and replace any stale root-path wording with the new `Project Documentation/` paths.


## v396 reference sweep and compactness status

The v396 cleanup pass is complete. It did not move product UI and did not delete historical records. It archived the old long active development protocol into Build History, replaced the active development protocol with a compact pointer, clarified that Markdown controls over HTML mirrors, and updated active reading-order references so future build cycles use the controlled documentation folder without browsing old root paths.

Next cleanup work should compare the previous-chat requirements register against the consolidated active architecture manual module by module and fill any missing requirements into the active docs.


## v397 previous-chat cross-check status

v397 completed the requested module-by-module previous-chat requirements cross-check and strengthened the active register/manual where durable requirements were missing or partial. One final closeout/re-entry pass can confirm the documentation track is ready to return to normal product feature work.


## v398 closeout status

v398 completed the documentation cleanup closeout and product re-entry plan. The controlled documentation structure is now ready enough for normal product feature work.

Future documentation work should be targeted, not continuous cleanup by default. Create a new documentation-only cycle only if a contradiction is found, a prior-chat requirement is rediscovered, a feature changes durable placement/process rules, or the user requests another audit.

Recommended product track after v399: notification digest/email trigger behavior.