|
| 1 | +# templates/ Live Usage Inventory |
| 2 | + |
| 3 | +Generated: 2026-04-12 |
| 4 | +Scope: `templates/` only (non-archive evidence for active docs; code/tests from active runtime surfaces) |
| 5 | + |
| 6 | +## 1) Exact Files Under templates/ |
| 7 | +Observed files: |
| 8 | +1. `templates/starter-project-template/README.md` |
| 9 | +2. `templates/starter-project-template/config/starter.project.json` |
| 10 | +3. `templates/vector-native-arcade/README.md` |
| 11 | +4. `templates/vector-native-arcade/assets/palettes/vector-native-primary.palette.json` |
| 12 | +5. `templates/vector-native-arcade/assets/parallax/template-backdrop.parallax.json` |
| 13 | +6. `templates/vector-native-arcade/assets/parallax/template-backdrop.svg` |
| 14 | +7. `templates/vector-native-arcade/assets/tilemaps/template-arena.tilemap.json` |
| 15 | +8. `templates/vector-native-arcade/assets/tilemaps/template-ui.tileset.json` |
| 16 | +9. `templates/vector-native-arcade/assets/vectors/template-hud.vector.json` |
| 17 | +10. `templates/vector-native-arcade/assets/vectors/template-obstacle-large.vector.json` |
| 18 | +11. `templates/vector-native-arcade/assets/vectors/template-obstacle-small.vector.json` |
| 19 | +12. `templates/vector-native-arcade/assets/vectors/template-player.vector.json` |
| 20 | +13. `templates/vector-native-arcade/assets/vectors/template-title.vector.json` |
| 21 | +14. `templates/vector-native-arcade/config/template.project.json` |
| 22 | +15. `templates/vector-native-arcade/docs/ROLLBACK_NOTES.md` |
| 23 | +16. `templates/vector-native-arcade/docs/STARTER_GUIDE.md` |
| 24 | +17. `templates/vector-native-arcade/runtime/bootstrap.runtime.json` |
| 25 | + |
| 26 | +## 2) Direct imports / requires |
| 27 | +Command pattern used: |
| 28 | +- `^\s*import .*templates/` |
| 29 | +- `^\s*.*require\(.*templates/` |
| 30 | +- `^\s*export .* from .*templates/` |
| 31 | + |
| 32 | +Result: |
| 33 | +- No direct JS import/require/export module references to `templates/` in `tools/`, `src/`, `games/`, `samples/`, `tests/`. |
| 34 | + |
| 35 | +Assessment: |
| 36 | +- Consumer coupling is path-string based, not module-import based. |
| 37 | + |
| 38 | +## 3) String Path References (Code + Tests + Runtime-Adjacent) |
| 39 | + |
| 40 | +| Consumer File | Evidence Shape | Consumer Type | Classification | Notes | |
| 41 | +| --- | --- | --- | --- | --- | |
| 42 | +| `tools/shared/vectorNativeTemplate.js` | Hard-coded `templates/vector-native-arcade/...` paths for asset/config/runtime/docs references | runtime | canonical | Primary active template contract surface; high coupling to exact folder structure. | |
| 43 | +| `tools/shared/vectorTemplateSampleGame.js` | String replace from `templates/vector-native-arcade/` -> `games/vector-arcade-sample/` | runtime | transitional | Explicit migration bridge assumption on exact prefix. | |
| 44 | +| `tests/tools/VectorNativeTemplate.test.mjs` | Assertions against `templatePath === "templates/vector-native-arcade/"` and report text | test-only | canonical | Tests lock the current template root and report formatting. | |
| 45 | +| `games/vector-arcade-sample/README.md` | Documentation string references source template path | docs-only (game doc) | transitional | Human-facing provenance reference to template origin. | |
| 46 | + |
| 47 | +## 4) Docs / Planning References (Non-Archive) |
| 48 | + |
| 49 | +Active docs with `templates/` references: |
| 50 | +- `docs/dev/roadmaps/MASTER_ROADMAP_HIGH_LEVEL.md` |
| 51 | +- `docs/dev/reports/repo_cleanup_targets.txt` |
| 52 | +- `docs/dev/reports/roadmap_status_delta.txt` |
| 53 | +- `docs/pr/BUILD_PR_TEMPLATES_POLICY_CLASSIFICATION.md` |
| 54 | +- `docs/pr/BUILD_PR_REPO_CLEANUP_AND_ROADMAP_UPDATE.md` |
| 55 | +- `docs/pr/PLAN_PR_REPO_CLEANUP_AND_ROADMAP_UPDATE.md` |
| 56 | +- Additional active report/planning docs under `docs/dev/reports/` and `docs/pr/` that cite template cleanup constraints. |
| 57 | + |
| 58 | +Classification: |
| 59 | +- docs-only and planning-oriented; primarily transitional governance references. |
| 60 | + |
| 61 | +## 5) Coupling / Path Assumptions Blocking Safe Move |
| 62 | + |
| 63 | +Blocking assumptions identified: |
| 64 | +1. Exact hard-coded prefix `templates/vector-native-arcade/` in runtime helper surfaces (`vectorNativeTemplate.js`, `vectorTemplateSampleGame.js`). |
| 65 | +2. Template contract tests assert exact path strings, so directory relocation would fail tests without synchronized updates. |
| 66 | +3. Runtime bootstrap/config/docs path strings are part of generated/report output contracts from `vectorNativeTemplate.js`. |
| 67 | +4. Cleanup planning docs currently encode explicit deferment rules; moving now would violate active planning constraints. |
| 68 | + |
| 69 | +## 6) Legacy/Transitional/Cleanliness Assessment |
| 70 | +- `templates/` is not an orphaned legacy surface. |
| 71 | +- It has live runtime + test + docs references. |
| 72 | +- Current usage indicates **active canonical template source with transitional migration coupling**. |
| 73 | + |
| 74 | +## 7) Inventory Conclusion |
| 75 | +- `templates/` currently has live references and coupling that block safe move/delete in this lane. |
| 76 | +- Any future migration must update runtime helpers, tests, and synchronized docs/contracts in one controlled PR sequence. |
| 77 | +- No destructive action is warranted in this BUILD. |
0 commit comments