|
| 1 | +# BUILD_PR_ASSET_DEPENDENCY_GRAPH |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Implement the minimal additive asset dependency graph defined in PLAN_PR_ASSET_DEPENDENCY_GRAPH. |
| 5 | + |
| 6 | +## Build Scope |
| 7 | +- Add project-level asset dependency graph persistence |
| 8 | +- Preserve registry as source of truth |
| 9 | +- Generate stable nodes and deterministic edges |
| 10 | +- Keep behavior additive and backward compatible |
| 11 | +- Surface lightweight validation findings for missing/orphaned assets |
| 12 | +- Avoid engine core API changes |
| 13 | + |
| 14 | +## Required Contracts |
| 15 | +- Graph may be omitted in legacy projects |
| 16 | +- Graph can be reconstructed from registry-aware project data |
| 17 | +- Editors contribute local relationships only |
| 18 | +- Missing references must not crash load/edit flows |
| 19 | +- Save/load must remain stable and deterministic |
| 20 | + |
| 21 | +## Likely Files |
| 22 | +- shared project registry/graph helper module |
| 23 | +- editor project model adapters |
| 24 | +- docs/dev reports for verification |
| 25 | +- no engine core API files |
| 26 | + |
| 27 | +## Manual Validation Checklist |
| 28 | +1. Legacy projects load with no graph data. |
| 29 | +2. Registry-aware projects save and reload graph additively. |
| 30 | +3. Sprite/palette relationships remain stable. |
| 31 | +4. Tile relationships remain stable. |
| 32 | +5. Parallax/image relationships remain stable. |
| 33 | +6. Missing targets produce findings, not crashes. |
| 34 | +7. Graph output is deterministic enough to avoid noisy diffs. |
| 35 | +8. Engine core APIs remain unchanged. |
| 36 | + |
| 37 | +## Approved Commit Comment |
| 38 | +build(asset-graph): add additive project asset dependency graph |
| 39 | + |
| 40 | +## Next Command |
| 41 | +APPLY_PR_ASSET_DEPENDENCY_GRAPH |
0 commit comments