|
| 1 | +# BUILD_PR_LEVEL_01_STRUCTURE_FINALIZATION_AND_ROADMAP_CORRECTION |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Finalize the remaining planning/definition work for roadmap section 1 and re-anchor execution order to the correct top-down next lane. |
| 5 | + |
| 6 | +## Scope |
| 7 | +- docs-first only |
| 8 | +- roadmap status markers only |
| 9 | +- no implementation code or broad file churn |
| 10 | + |
| 11 | +## Evidence Snapshot (Current Repo State) |
| 12 | +- Root structure contains `src/`, `games/`, `samples/`, `tools/`, `scripts/`, `docs/`, `tests/`. |
| 13 | +- Legacy root folders targeted by section-1 move-map are already absent at root: `engine/`, `shared/`, `templates/`. |
| 14 | +- Structure-target evidence: |
| 15 | + - `samples/phase-01` exists. |
| 16 | + - `samples/phase-13` exists. |
| 17 | + - `src/engine/render` and `src/engine/scenes` exist, while `src/engine/rendering` and `src/engine/scene` remain pending target names. |
| 18 | + - legacy retention candidate still exists in archive path: `docs/archive/tools/SpriteEditor_old_keep/`. |
| 19 | + |
| 20 | +## Folder Inventory To Target Homes (Definition Closeout) |
| 21 | +- Root runtime/shared home: `src/` |
| 22 | +- Game ownership home: `games/` |
| 23 | +- Tool ownership home: `tools/` |
| 24 | +- Sample ownership home: `samples/` |
| 25 | +- Docs/archive retention home: `docs/archive/` |
| 26 | + |
| 27 | +## Exact Move-Map Lanes (For Later Implementation PRs) |
| 28 | +1. `MOVE_MAP_L1_ENGINE_ALIAS_CONVERGENCE` |
| 29 | +- Scope: converge `src/engine/render` -> `src/engine/rendering` and `src/engine/scenes` -> `src/engine/scene`. |
| 30 | +- Guard: move-only with import/path fixups and targeted runtime/tool launch checks. |
| 31 | +2. `MOVE_MAP_L1_SAMPLE_SHARED_SURFACE_CONVERGENCE` |
| 32 | +- Scope: resolve `samples/shared` vs `samples/_shared` to one canonical shared sample surface. |
| 33 | +- Guard: no sample behavior rewrite; path and import normalization only. |
| 34 | +3. `MOVE_MAP_L1_TOOL_NAME_PATH_ALIGNMENT` |
| 35 | +- Scope: align active tool path names with roadmap naming conventions where mismatched. |
| 36 | +- Guard: preserve tool entry behavior; no UI redesign. |
| 37 | + |
| 38 | +## Exact Rename-Map Lanes (For Later Implementation PRs) |
| 39 | +1. `RENAME_MAP_L1_ENGINE_DIRECTORY_NAMES` |
| 40 | +- Targets: `render` -> `rendering`, `scenes` -> `scene`. |
| 41 | +2. `RENAME_MAP_L1_TOOL_DIRECTORY_NAMES` |
| 42 | +- Targets (where touched): directory names that drift from active canonical tool naming in roadmap and docs. |
| 43 | +3. `RENAME_MAP_L1_SAMPLE_SHARED_NAMESPACE` |
| 44 | +- Target: one canonical shared-samples namespace. |
| 45 | + |
| 46 | +## Legacy Migration Map (For Later Implementation PRs) |
| 47 | +1. `LEGACY_MAP_L1_ARCHIVE_BOUNDARY_CONFIRMATION` |
| 48 | +- Keep legacy tool snapshots under `docs/archive/` unless explicitly reactivated. |
| 49 | +2. `LEGACY_MAP_L1_IMPORT_AND_REFERENCE_QUARANTINE` |
| 50 | +- Ensure active paths do not depend on archive-only legacy paths. |
| 51 | +3. `LEGACY_MAP_L1_RETIREMENT_PREREQ_INDEX` |
| 52 | +- Add explicit retirement prerequisites before any archive removal decision. |
| 53 | + |
| 54 | +## Validation Gates (For Later Implementation PRs) |
| 55 | +1. Path resolution and import normalization checks for touched files. |
| 56 | +2. `node --check` for touched JavaScript modules. |
| 57 | +3. Focused launch/smoke checks for touched games/tools only. |
| 58 | +4. Boundary check: no cross-layer dependency inversion introduced. |
| 59 | +5. Delta check: no unrelated repo churn outside defined move/rename lanes. |
| 60 | + |
| 61 | +## Explicit No-Go Areas (For Now) |
| 62 | +- No engine core API redesign. |
| 63 | +- No asset moves under `games/*/assets/**` in section-1 move-map PRs. |
| 64 | +- No runtime feature changes bundled with structure-only PRs. |
| 65 | +- No archive deletion from `docs/archive/**` during mapping/definition lanes. |
| 66 | + |
| 67 | +## Roadmap Status Marker Updates Applied |
| 68 | +- `current folder inventory mapped to target homes` -> `[x]` |
| 69 | +- `move-map defined for root engine -> src/engine` -> `[x]` |
| 70 | +- `ambiguous-name rename map defined` -> `[x]` |
| 71 | +- `legacy migration map defined` -> `[x]` |
| 72 | +- `samples/phase-01` structure target -> `[x]` |
| 73 | +- `samples/phase-13` structure target -> `[x]` |
| 74 | +- `current active execution lanes are 3 / 6 / 8` -> `[ ]` (de-anchored as next lane signal) |
| 75 | + |
| 76 | +## Next Active Anchor |
| 77 | +- Section 1 remains the active top-down anchor via: |
| 78 | + - `Apply repo structure normalization implementation plan` as `[.]` |
| 79 | + |
| 80 | +## Packaging |
| 81 | +`<project folder>/tmp/BUILD_PR_LEVEL_01_STRUCTURE_FINALIZATION_AND_ROADMAP_CORRECTION.zip` |
0 commit comments