|
| 1 | +# BUILD_PR_LEVEL_11_187_COMMIT_AND_RESTART_TOOL_V2_LANE |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Create commit-ready restart instructions for the new Tool v2 migration lane after the failed legacy Workspace Manager/SVG debugging loop. |
| 5 | + |
| 6 | +## Decision |
| 7 | +Stop patching the old Workspace Manager/tool shell spaghetti. |
| 8 | + |
| 9 | +Start a clean Tool v2 lane: |
| 10 | + |
| 11 | +- Palette first |
| 12 | +- session-backed shared data |
| 13 | +- one tool at a time |
| 14 | +- reverse engineer behavior |
| 15 | +- do not copy old tool implementation code |
| 16 | +- move legacy tools to `<tool>-v1` |
| 17 | +- rebuild clean tools with consistent layout and shared CSS |
| 18 | + |
| 19 | +## Hard Scope Rules |
| 20 | +No changes to: |
| 21 | + |
| 22 | +- schemas |
| 23 | +- samples |
| 24 | +- games |
| 25 | +- runtime tool code |
| 26 | + |
| 27 | +This PR is commit/restart documentation only. The lane it defines is architecture/tool cleanup only. |
| 28 | + |
| 29 | +## Data Loading Rules |
| 30 | +There are three supported data-load paths: |
| 31 | + |
| 32 | +### 1. Workspace from URL |
| 33 | +```text |
| 34 | +Workspace Manager v2 URL |
| 35 | + -> loads manifest/data |
| 36 | + -> stores session context |
| 37 | + -> passes session/context id to tool |
| 38 | +``` |
| 39 | + |
| 40 | +### 2. Tool from URL |
| 41 | +```text |
| 42 | +Tool URL |
| 43 | + -> loads explicit tool data from URL/preset path |
| 44 | + -> stores session context |
| 45 | + -> tool reads from session |
| 46 | +``` |
| 47 | + |
| 48 | +### 3. Tool from session loaded by workspace |
| 49 | +```text |
| 50 | +Workspace Manager v2 |
| 51 | + -> writes session context |
| 52 | + -> launches tool with hostContextId/session id |
| 53 | + -> tool reads session context |
| 54 | +``` |
| 55 | + |
| 56 | +## Forbidden Data Paths |
| 57 | +Do not use: |
| 58 | + |
| 59 | +- platformShell for v2 hosted data |
| 60 | +- assetUsageIntegration |
| 61 | +- shared asset handoff |
| 62 | +- shared palette handoff |
| 63 | +- fallback/default samples |
| 64 | +- guessed paths |
| 65 | +- tool id aliases |
| 66 | +- hidden data loading |
| 67 | + |
| 68 | +## Reverse Engineering Rule |
| 69 | +For every tool: |
| 70 | + |
| 71 | +1. Inspect old tool. |
| 72 | +2. Document behavior. |
| 73 | +3. Document inputs/outputs. |
| 74 | +4. Document UI sections. |
| 75 | +5. Document what to keep conceptually. |
| 76 | +6. Document what to discard. |
| 77 | +7. Move old folder to `<tool>-v1`. |
| 78 | +8. Build clean v2 folder from the documented behavior only. |
| 79 | + |
| 80 | +Do not copy old implementation code. |
| 81 | + |
| 82 | +## Next Execution Lane |
| 83 | +Continue from PR 11.186 / 11.187 into: |
| 84 | + |
| 85 | +```text |
| 86 | +PR_11_188_PALETTE_V2_REVERSE_ENGINEER_AND_REBUILD |
| 87 | +``` |
| 88 | + |
| 89 | +Expected next PR: |
| 90 | +- inspect Palette Browser |
| 91 | +- create reverse engineering report |
| 92 | +- move `tools/Palette Browser/` to `tools/Palette Browser-v1/` |
| 93 | +- create clean `tools/Palette Browser/` |
| 94 | +- use session-backed data |
| 95 | +- use common shared CSS |
| 96 | +- no schema/sample/game changes |
0 commit comments