|
| 1 | +# Sample Schema Dependency Map |
| 2 | + |
| 3 | +PR: PR_26152_150-sample-schema-dependency-map |
| 4 | +Date: 2026-06-02 |
| 5 | + |
| 6 | +## Scope |
| 7 | + |
| 8 | +- Created schema dependency map. |
| 9 | +- Mapped sample types to authoritative schema sources. |
| 10 | +- Mapped ProjectWorkspace interactions. |
| 11 | +- Made no sample JSON changes. |
| 12 | + |
| 13 | +## Dependency Map |
| 14 | + |
| 15 | +| Sample Type | Current Shape | Authoritative Surface | ProjectWorkspace Interaction | |
| 16 | +| --- | --- | --- | --- | |
| 17 | +| Game/sample manifest | Manifest-like object with game/sample launch metadata | `tools/schemas/game.manifest.schema.json` or a future explicitly approved sample manifest schema | Provides `manifestInput`; does not persist ProjectWorkspace runtime state. | |
| 18 | +| Tool payload wrapper | `tool`, `version`, `payload` | `tools/schemas/samples/sample.tool-payload.schema.json` for legacy wrapper validation; active tool payload schema for payload content | Converted into explicit `toolStateInput` for rebuilt samples. | |
| 19 | +| Tool payload content | Tool-specific payload object or array | `tools/schemas/tools/<toolId>.schema.json` when active | Saved payload belongs to Tool State, not ProjectWorkspace. | |
| 20 | +| Palette data | Standalone `html-js-gaming.palette` document | `tools/schemas/tools/palette-browser.schema.json` currently; future rebuild may map to palette-manager/palette browser ownership | ProjectWorkspace may reference active palette context only. | |
| 21 | +| Tilemap document | `toolbox.tilemap/1` document | `tools/schemas/tools/tile-map-editor.schema.json` for rebuilt tool payload boundary | Tool State owns tilemap payload; manifest references assets/paths. | |
| 22 | +| Workspace all-tools sample | `html-js-gaming.project` with missing workspace schema reference | No active workspace schema; must map to game manifest plus explicit ProjectWorkspace handoff, or define an approved replacement first | ProjectWorkspace remains runtime-only coordination. | |
| 23 | +| Text to Speech V2 root array | Root array payload | `tools/schemas/tools/text2speech-V2.schema.json` | Tool State owns speech queue payload. | |
| 24 | + |
| 25 | +## Wave 1 Dependency Requirements |
| 26 | + |
| 27 | +| Sample JSON | Required Surface | Compatibility Requirement | |
| 28 | +| --- | --- | --- | |
| 29 | +| `samples/phase-19/1902/sample.1902.workspace-all-tools.json` | No active workspace schema; must resolve to game manifest/tool payload handoff or future schema | Highest dependency risk. | |
| 30 | +| `samples/phase-19/1903/sample.1903.text2speech-V2.json` | `tools/schemas/tools/text2speech-V2.schema.json` | Low schema risk; add explicit manifest and Tool State handoff in future rebuild. | |
| 31 | +| `samples/phase-14/1413/sample.1413.asset-pipeline.json` | `tools/schemas/tools/asset-pipeline.schema.json` | Legacy wrapper must map payload to active tool schema. | |
| 32 | +| `samples/phase-14/1414/sample.1414.sprite-editor.json` | `tools/schemas/tools/sprite-editor.schema.json` | Legacy wrapper must map payload to `spriteProject`. | |
| 33 | +| `samples/phase-14/1414/sample.1414.palette.json` | `tools/schemas/tools/palette-browser.schema.json` | Palette ownership must be explicit. | |
| 34 | +| `samples/phase-12/1208/sample.1208.tile-map-editor.json` | `tools/schemas/tools/tile-map-editor.schema.json` | Legacy wrapper must map tilemap fields to active payload boundary. | |
| 35 | +| `samples/phase-12/1208/sample.1208.parallax-editor.json` | `tools/schemas/tools/parallax-editor.schema.json` | Legacy wrapper must map parallax fields to active payload boundary. | |
| 36 | +| `samples/phase-12/1208/sample.1208.palette.json` | `tools/schemas/tools/palette-browser.schema.json` | Palette ownership must be explicit. | |
| 37 | +| `samples/phase-12/1208/sample.1208.svg-asset-studio.json` | `tools/schemas/tools/svg-asset-studio.schema.json` | Map legacy SVG asset sample to current asset/vector ownership decision. | |
| 38 | + |
| 39 | +## ProjectWorkspace Interaction Rules |
| 40 | + |
| 41 | +- ProjectWorkspace consumes explicit manifest and Tool State references. |
| 42 | +- ProjectWorkspace does not own sample payload data. |
| 43 | +- ProjectWorkspace does not own saved Tool State records. |
| 44 | +- Rebuilt samples must not use hidden fallback data, `localStorage`, `sessionStorage`, or runtime render state as source of truth. |
| 45 | +- Rebuilt sample image data must use file/path fields, not persisted `imageDataUrl`. |
| 46 | + |
| 47 | +## Validation |
| 48 | + |
| 49 | +Static dependency validation only: |
| 50 | + |
| 51 | +```powershell |
| 52 | +node -e "<static schema/sample dependency inventory>" |
| 53 | +``` |
| 54 | + |
| 55 | +Result: PASS. |
| 56 | + |
| 57 | +## Lanes Executed |
| 58 | + |
| 59 | +- docs/report dependency mapping only. |
| 60 | + |
| 61 | +## Lanes Skipped |
| 62 | + |
| 63 | +- samples - no sample JSON changes and no sample launch validation. |
| 64 | +- runtime - no runtime behavior changed. |
| 65 | +- tool runtime validation - not run. |
| 66 | +- engine - no engine code changed. |
| 67 | +- Playwright - not impacted. |
| 68 | + |
| 69 | +## Samples Decision |
| 70 | + |
| 71 | +SKIP / pending rebuild. Rebuilt samples remain future work. |
| 72 | + |
| 73 | +## Playwright |
| 74 | + |
| 75 | +Playwright impacted: No. |
| 76 | + |
| 77 | +## Blocker Scope |
| 78 | + |
| 79 | +No blocker for static dependency mapping. Wave 1 execution must resolve the `1902` workspace-schema dependency before making it a PASS/FAIL launch target. |
0 commit comments