|
| 1 | +# BUILD_PR_ASSET_PIPELINE_FOUNDATION |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Establish the first asset-pipeline foundation for tools so project assets can be imported, normalized, validated, and handed off consistently across the active authoring tools. |
| 5 | + |
| 6 | +## Why This PR Now |
| 7 | +The previous lane unified project-level tool integration. The next highest-leverage step is to create a minimal, shared asset-pipeline foundation before adding larger converter or content-pipeline tools. |
| 8 | + |
| 9 | +## Goals |
| 10 | +- shared asset ingest baseline |
| 11 | +- normalized asset metadata/IDs |
| 12 | +- validation at import boundary |
| 13 | +- repeatable handoff into the unified project model |
| 14 | +- no tool-specific workflow rewrites |
| 15 | + |
| 16 | +## Scope |
| 17 | +- shared asset pipeline foundation only |
| 18 | +- import/normalize/validate handoff path |
| 19 | +- adapters for current active tools where needed |
| 20 | +- exact-cluster only |
| 21 | + |
| 22 | +## In Scope |
| 23 | +- asset import baseline for current active tools |
| 24 | +- shared normalization rules for asset IDs/paths/types |
| 25 | +- validation hooks at asset-ingest boundary |
| 26 | +- manifest/project integration for imported assets |
| 27 | +- minimal adapters required by active tools |
| 28 | + |
| 29 | +## Out of Scope |
| 30 | +- full converter suite |
| 31 | +- 3D asset tooling |
| 32 | +- render-pipeline rewrites |
| 33 | +- editor-state redesign |
| 34 | +- UI/theme restyling |
| 35 | +- templates/ cleanup |
| 36 | +- broad repo structure cleanup |
| 37 | +- deleting legacy assets or folders |
| 38 | + |
| 39 | +## Active Tool Targets |
| 40 | +- tools/Asset Browser |
| 41 | +- tools/Palette Browser |
| 42 | +- tools/Parallax Scene Studio |
| 43 | +- tools/Sprite Editor |
| 44 | +- tools/Tilemap Studio |
| 45 | +- tools/Vector Asset Studio |
| 46 | +- tools/Vector Map Editor |
| 47 | + |
| 48 | +## Shared Reuse Priority |
| 49 | +Reuse current shared layers first: |
| 50 | +- tools/shared/projectSystem.js |
| 51 | +- tools/shared/projectSystemAdapters.js |
| 52 | +- tools/shared/projectSystemValueUtils.js |
| 53 | +- tools/shared/runtimeAssetLoader.js |
| 54 | +- tools/shared/runtimeAssetValidationUtils.js |
| 55 | +- any current tools/shared asset/registry helpers already proven in prior lanes |
| 56 | + |
| 57 | +## Build Strategy |
| 58 | + |
| 59 | +### Step 1 — Inventory Existing Asset Ingest Paths |
| 60 | +Read only the active tool import/load paths and current tools/shared asset/project helpers. |
| 61 | + |
| 62 | +### Step 2 — Define Minimal Shared Pipeline Stages |
| 63 | +Converge only on the first safe shared stages: |
| 64 | +1. ingest |
| 65 | +2. normalize |
| 66 | +3. validate |
| 67 | +4. register into project model |
| 68 | + |
| 69 | +### Step 3 — Normalize Asset Identity Rules |
| 70 | +Standardize: |
| 71 | +- asset IDs |
| 72 | +- asset path normalization |
| 73 | +- type/category metadata |
| 74 | +- validation failure reporting |
| 75 | + |
| 76 | +### Step 4 — Add Minimal Tool Adapters |
| 77 | +Only where needed to map current tool import paths into the shared pipeline foundation. |
| 78 | + |
| 79 | +### Step 5 — Preserve Existing Tool Behavior |
| 80 | +Do not redesign how tools author content; only normalize the shared asset handoff boundary. |
| 81 | + |
| 82 | +## Validation Requirements |
| 83 | +- npm run test:launch-smoke -- --tools |
| 84 | +- imported assets still appear in the tools that were touched |
| 85 | +- no console regressions |
| 86 | +- exact files changed reported |
| 87 | +- report normalized rules and adapters added |
| 88 | + |
| 89 | +## Stop Conditions |
| 90 | +Stop and report if: |
| 91 | +- a touched tool needs editor-state redesign to adopt the pipeline |
| 92 | +- asset normalization requires render-pipeline changes |
| 93 | +- scope expands toward converters or 3D tooling |
| 94 | +- touched-file count grows beyond the named asset-ingest cluster |
| 95 | + |
| 96 | +## Expected Output |
| 97 | +- repo-structured delta ZIP under <project folder>/tmp/ |
| 98 | +- implementation kept to the first shared pipeline foundation only |
| 99 | +- reports identifying what remains for converters/pipeline phase 2 |
0 commit comments