# Phase 10.8 — Master Baseline, Complete Legacy Inventory & DDB Patch Control Center Foundation

## Purpose

Phase 10.8 resets the project around three permanent controls:

1. Executive Leadership UI Standard v1.0 for all CEO/senior-management pages.
2. Central Windows Patch Control Center for repeatable apply/test/evidence/rollback operations.
3. Legacy Functional Parity before new feature expansion.

## Baseline frozen

- Baseline: `10.7.2`
- Target after this foundation patch: `10.8.0`
- Source files inventoried: **162**
- Current routes found: **14**
- Known legacy dispatcher functions inventoried: **31**
- `PARITY_PASS`: **0**
- `PARTIAL`: **18**
- `MISSING`: **13**

This is intentionally strict: no function is marked `PARITY_PASS` merely because a similar page or query exists. Exact old-vs-new evidence is required.

## Inventory artifacts

- `docs/baseline/PHASE_10_8_BASELINE_SNAPSHOT.json`
- `docs/baseline/CURRENT_SOURCE_FILE_INVENTORY.csv`
- `docs/baseline/CURRENT_PUBLIC_METHOD_INVENTORY.csv`
- `docs/baseline/CURRENT_FUNCTIONAL_BASELINE.csv`
- `docs/baseline/PROTECTED_CORE_HASHES.json`
- `docs/legacy/LEGACY_FUNCTION_MASTER_MATRIX.csv`
- `docs/legacy/LEGACY_ROUTE_MAP.csv`
- `docs/legacy/LEGACY_SQL_SOURCE_MAP.csv`
- `docs/legacy/LEGACY_PERMISSION_MAP.csv`
- `docs/legacy/LEGACY_FILTER_MAP.csv`
- `docs/legacy/LEGACY_SOURCE_COVERAGE.md`

## Patch Control Center

All future DDB patches should launch from:

`RUN_DDB_PATCH_CENTER.bat`

Menu:

1. Apply Update
2. Run Full Test
3. Apply Update + Run Full Test
4. Check Current Installed Version / Status
5. View Last Result
6. Open Evidence Folder
7. Rollback Current Patch
8. Advanced Diagnostics
9. Exit

## Executive Leadership design control

All future executive pages must preserve the established leadership standard:

- 3–5 second comprehension.
- 16px minimum primary body text; Arabic typically 17px.
- Low information density.
- Stable layout and stable color semantics.
- Decision, exception, owner, due date, overdue state, and next step take visual priority.
- Technical/developer information stays out of executive pages.

## Next phase

`Phase 10.9 — Revenue Legacy Functional Parity`

The first closure target is the five proven legacy revenue functions plus year/date-range/compare-year behavior and revenue permission parity.
