|
| 1 | +# BUILD_PR_LEVEL_11_151_FIX_VECTOR_MAP_HOSTED_PAYLOAD_BOOT |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Fix Vector Map Editor boot logic so hosted Workspace Manager launches read the direct hosted `payloadJson.vectorMapDocument` instead of falling back to old preset/import-path messaging. |
| 5 | + |
| 6 | +## Current Failure |
| 7 | +Vector Map Editor still shows: |
| 8 | + |
| 9 | +`No map objects loaded. Import a map JSON file or launch with a sample preset path.` |
| 10 | + |
| 11 | +This means the editor is not consuming the hosted direct payload from Workspace Manager. |
| 12 | + |
| 13 | +## STRICT SCOPE |
| 14 | + |
| 15 | +### ALLOWED FILES |
| 16 | +- tools/vector-map-editor/main.js |
| 17 | +- docs/dev/reports/vector_map_hosted_payload_boot_11_151.txt |
| 18 | + |
| 19 | +### ALLOWED CHANGES |
| 20 | +- fix Vector Map Editor hosted-input boot path only |
| 21 | +- read direct hosted `payloadJson.vectorMapDocument` |
| 22 | +- remove/replace old hosted preset-path requirement for this direct payload path |
| 23 | +- create report |
| 24 | + |
| 25 | +## FORBIDDEN |
| 26 | + |
| 27 | +Codex MUST NOT: |
| 28 | +- modify schemas |
| 29 | +- modify Sample 1902 JSON |
| 30 | +- modify Workspace Manager |
| 31 | +- modify tool host runtime |
| 32 | +- modify other tools |
| 33 | +- add fallback/default/demo objects |
| 34 | +- re-add preset loading |
| 35 | +- transform/wrap/normalize payload |
| 36 | +- infer missing vector map data |
| 37 | + |
| 38 | +## Required Behavior |
| 39 | + |
| 40 | +When hosted by Workspace Manager, Vector Map Editor must: |
| 41 | + |
| 42 | +1. Read hosted shared context payload: |
| 43 | + - `payloadJson` |
| 44 | +2. Use direct document: |
| 45 | + - `payloadJson.vectorMapDocument` |
| 46 | +3. Load objects from: |
| 47 | + - `payloadJson.vectorMapDocument.objects` |
| 48 | +4. Render objects directly. |
| 49 | +5. If `vectorMapDocument` or `objects` is missing: |
| 50 | + - show visible input/schema error |
| 51 | + - do NOT show old "launch with sample preset path" message for hosted direct JSON flow |
| 52 | + |
| 53 | +## Required Investigation |
| 54 | + |
| 55 | +Codex must inspect Vector Map Editor for old boot paths that depend on: |
| 56 | + |
| 57 | +- `samplePresetPath` |
| 58 | +- preset path query params |
| 59 | +- import path only |
| 60 | +- file picker/import only |
| 61 | +- fallback empty map state |
| 62 | +- old sample preset launch text |
| 63 | + |
| 64 | +Do not remove general manual import UI if still valid. |
| 65 | +Only fix hosted Workspace Manager direct payload boot. |
| 66 | + |
| 67 | +## Required Validation |
| 68 | + |
| 69 | +Targeted validation only. |
| 70 | + |
| 71 | +Required: |
| 72 | +- `tools/vector-map-editor/main.js` syntax passes. |
| 73 | +- Hosted payload with: |
| 74 | + - `vectorMapDocument.objects[0].id = "obj-player-path"` |
| 75 | + - `vectorMapDocument.objects[1].id = "obj-hazard-zone"` |
| 76 | + loads into editor state. |
| 77 | +- Old message is not shown for valid hosted payload: |
| 78 | + `No map objects loaded. Import a map JSON file or launch with a sample preset path.` |
| 79 | +- No schema/sample/runtime/workspace files changed. |
| 80 | +- `git diff --name-only` contains only ALLOWED FILES. |
| 81 | + |
| 82 | +## Report |
| 83 | + |
| 84 | +Write: |
| 85 | + |
| 86 | +- `docs/dev/reports/vector_map_hosted_payload_boot_11_151.txt` |
| 87 | + |
| 88 | +Report must include: |
| 89 | +- file changed |
| 90 | +- old boot path found |
| 91 | +- new direct hosted payload path |
| 92 | +- object ids verified |
| 93 | +- validation command/result |
| 94 | +- strict scope confirmation |
| 95 | +- remaining blockers if any |
| 96 | + |
| 97 | +## Full Samples Smoke Test |
| 98 | + |
| 99 | +Skipped. |
| 100 | + |
| 101 | +Reason: |
| 102 | +- targeted Vector Map Editor hosted payload boot fix only |
| 103 | +- full samples smoke test takes approximately 20 minutes |
| 104 | + |
| 105 | +## Acceptance |
| 106 | + |
| 107 | +- Vector Map Editor consumes hosted `payloadJson.vectorMapDocument`. |
| 108 | +- Sample 1902 vector objects render when opened through Workspace Manager. |
| 109 | +- No preset/fallback/demo path is required for hosted direct JSON. |
0 commit comments