|
| 1 | +# PLAN_PR_VECTOR_ONLY_RUNTIME |
| 2 | + |
| 3 | +## Goal |
| 4 | +Define a clean, surgical migration of the Asteroids demo and platform runtime path from |
| 5 | +vector-preferred-with-sprite-fallback to true vector-only runtime behavior, while preserving |
| 6 | +accepted platform boundaries and avoiding engine core API changes. |
| 7 | + |
| 8 | +## Why This PR Exists |
| 9 | +The current Asteroids vector migration is successful, but still retains `sprite.asteroids-demo` |
| 10 | +as a temporary fallback safety path. This PR removes that runtime dependency and establishes |
| 11 | +vector assets as the sole visual contract for the flagship demo. |
| 12 | + |
| 13 | +## Intent |
| 14 | +- remove sprite fallback from the Asteroids runtime/package path |
| 15 | +- preserve registry, validation, packaging, runtime, debug, profiler, export, and publishing flows |
| 16 | +- keep rollback information documented, but not packaged as an active runtime dependency |
| 17 | +- keep the migration surgical and deterministic |
| 18 | + |
| 19 | +## Scope |
| 20 | +- remove sprite fallback from Asteroids demo visual preference contracts |
| 21 | +- update validation rules and demo checks to enforce vector-only runtime expectations |
| 22 | +- update packaging roots and dependency inclusion so the sprite fallback is no longer required |
| 23 | +- preserve runtime handoff at `games/Asteroids/main.js#bootAsteroids` |
| 24 | +- preserve gameplay loop, debug visibility, profiler coverage, export, and publishing readiness |
| 25 | +- document rollback guidance without keeping sprite fallback in the active runtime baseline |
| 26 | + |
| 27 | +## Non-Goals |
| 28 | +- No engine core API changes |
| 29 | +- No broad platform-wide removal of sprite support |
| 30 | +- No destructive removal of unrelated sprite systems from the platform |
| 31 | +- No gameplay redesign beyond what is required to harden vector-only visuals |
| 32 | +- No bypass of validation, packaging, runtime, CI, export, or publishing boundaries |
| 33 | + |
| 34 | +## Current Verified Baseline |
| 35 | +- vector assets are already the preferred visual path |
| 36 | +- sprite remains only as temporary migration fallback |
| 37 | +- runtime handoff remains stable |
| 38 | +- validation/packaging/runtime/export/publishing all pass |
| 39 | + |
| 40 | +## Target Baseline |
| 41 | +- Asteroids demo uses vector assets only for ship, asteroid variants, and title presentation |
| 42 | +- runtime and package manifests no longer depend on `sprite.asteroids-demo` |
| 43 | +- validation fails if vector-only requirements are not satisfied |
| 44 | +- fallback documentation remains available only as historical rollback guidance |
| 45 | + |
| 46 | +## Required Asset Set |
| 47 | +- `vector.asteroids.ship` |
| 48 | +- `vector.asteroids.asteroid.large` |
| 49 | +- `vector.asteroids.asteroid.medium` |
| 50 | +- `vector.asteroids.asteroid.small` |
| 51 | +- `vector.asteroids.ui.title` |
| 52 | + |
| 53 | +## Acceptance Criteria |
| 54 | +1. Validation passes with vector-only demo requirements. |
| 55 | +2. Packaging succeeds without including `sprite.asteroids-demo` as an active runtime dependency. |
| 56 | +3. Runtime loader reaches ready state from vector-only packaged inputs. |
| 57 | +4. Gameplay loop remains intact: title, start, play, score, lives, waves, game-over, restart. |
| 58 | +5. Debug and profiler surfaces reflect vector-only participation cleanly. |
| 59 | +6. Export and publishing remain ready. |
| 60 | +7. No engine core APIs are changed. |
| 61 | + |
| 62 | +## Manual Validation Checklist |
| 63 | +1. Ship renders via vector asset only. |
| 64 | +2. Asteroid variants render via vector assets only. |
| 65 | +3. Title presentation renders via vector asset only where configured. |
| 66 | +4. `sprite.asteroids-demo` is not required in packaged runtime roots/assets. |
| 67 | +5. Validation reports no blocking findings. |
| 68 | +6. Packaging remains deterministic. |
| 69 | +7. Runtime reaches ready state. |
| 70 | +8. Debug graph reflects vector-only baseline correctly. |
| 71 | +9. Profiler captures deterministic vector-only samples. |
| 72 | +10. No engine core APIs are changed. |
| 73 | + |
| 74 | +## Approved Commit Comment |
| 75 | +plan(vector-runtime): define vector-only runtime hardening for asteroids demo |
| 76 | + |
| 77 | +## Next Command |
| 78 | +BUILD_PR_VECTOR_ONLY_RUNTIME |
0 commit comments