|
| 1 | +# BUILD_PR_10_24_SAMPLE_JSON_DESTINATION_NORMALIZATION |
| 2 | + |
| 3 | +## Required Codex Work |
| 4 | + |
| 5 | +### 1. Search sample JSON only |
| 6 | +Search all `*.json` files under: |
| 7 | +`samples/` |
| 8 | + |
| 9 | +Find destination-like fields/values including: |
| 10 | +- `importDestination` |
| 11 | +- `exportDestination` |
| 12 | +- `destination` |
| 13 | +- `suggestedDestination` |
| 14 | +- `outputPath` |
| 15 | +- any displayed "Suggested destination" value |
| 16 | +- any string containing `games/<project>/` |
| 17 | +- any string ending in `/config/` or containing `/config/` |
| 18 | + |
| 19 | +### 2. Normalize destinations |
| 20 | +For sample-owned JSON: |
| 21 | +- replace `games/<project>/...` with sample-local paths |
| 22 | +- do not use `config/` unless the specific sample actually has/uses a config folder |
| 23 | +- prefer existing real folders when present |
| 24 | +- otherwise prefer a clear sample-local generated/import folder such as: |
| 25 | + - `samples/phase-XX/NNNN/assets/` |
| 26 | + - `samples/phase-XX/NNNN/assets/imports/` |
| 27 | + - `samples/phase-XX/NNNN/data/` |
| 28 | + - `samples/phase-XX/NNNN/imports/` |
| 29 | + |
| 30 | +Use the smallest path that matches the asset/category purpose. |
| 31 | + |
| 32 | +### 3. Specific required fix |
| 33 | +For sample 1413: |
| 34 | +- `sample.1413.asset-browser.json` |
| 35 | +- row/category: `Workflow JSON` |
| 36 | +- current suggested destination: `games/<project>/config/` |
| 37 | +- must become a sample-local destination. |
| 38 | +- Do not create or reference `config/` unless it is intentionally added and justified. Prefer an existing or clearly sample-owned folder. |
| 39 | + |
| 40 | +### 4. Preserve data ownership |
| 41 | +Do not alter: |
| 42 | +- asset catalog IDs |
| 43 | +- asset source paths |
| 44 | +- schema references |
| 45 | +- tool identity |
| 46 | +- selected asset IDs unless required because the destination field was the only issue |
| 47 | + |
| 48 | +### 5. Validation |
| 49 | +Create: |
| 50 | +docs/dev/reports/PR_10_24_SAMPLE_JSON_DESTINATION_NORMALIZATION_report.md |
| 51 | + |
| 52 | +Report must include: |
| 53 | +- scan scope |
| 54 | +- every matched issue |
| 55 | +- every changed file |
| 56 | +- before/after destination values |
| 57 | +- confirmation no `samples/**/*.json` contains `games/<project>/` |
| 58 | +- confirmation no invalid sample `config/` destination remains |
| 59 | +- confirmation no `games/` files changed |
| 60 | +- confirmation no start_of_day changes |
| 61 | + |
| 62 | +## Constraints |
| 63 | +- Samples JSON destination normalization only. |
| 64 | +- No tool implementation changes unless a display-only label is incorrectly hardcoded. |
| 65 | +- No schema rewrite. |
| 66 | +- No sample runtime code changes. |
0 commit comments