|
1 | 1 | MODEL: GPT-5.3-codex |
2 | | -REASONING: medium |
| 2 | +REASONING: high |
3 | 3 |
|
4 | 4 | TASK: |
5 | | -Apply PR 11.45. |
| 5 | +Apply PR 11.46. |
6 | 6 |
|
7 | | -Add the PowerShell script: |
8 | | -scripts/audit-sample-json-js-references.ps1 |
| 7 | +Continue targeted sample JSON cleanup from PR 11.41, PR 11.43, and PR 11.44. |
9 | 8 |
|
10 | | -Purpose: |
11 | | -Recursively walk the samples directory looking for JSON files, then validate each JSON file is referenced by JS files in the same owning sample subtree. |
| 9 | +Use the current audit output from: |
| 10 | +docs/dev/reports/sample_json_js_reference_audit.csv |
| 11 | +and/or the console output from scripts/PS/audit-sample-json-js-references.ps1. |
12 | 12 |
|
13 | | -Owning sample root: |
14 | | -samples/<group>/<sample>/ |
| 13 | +Focus ONLY on a small high-confidence batch of non-palette, non-tile-map JSON payloads. |
15 | 14 |
|
16 | | -For each: |
17 | | -samples/<group>/<sample>/**/*.json |
| 15 | +Preferred candidates: |
| 16 | +1. samples/phase-02/0221/sample.0221.3d-json-payload-normalizer.json |
| 17 | +2. samples/phase-05/0510/sample.0510.asset-pipeline-tool.json |
| 18 | +3. samples/phase-05/0512/sample.0512.performance-profiler.json |
| 19 | +4. samples/phase-07/0708/sample.0708.replay-visualizer.json |
18 | 20 |
|
19 | | -Scan: |
20 | | -samples/<group>/<sample>/**/*.js |
21 | | -samples/<group>/<sample>/**/*.mjs |
22 | | -samples/<group>/<sample>/**/*.cjs |
| 21 | +For each selected JSON: |
| 22 | +- inspect the sample executable JS under the same sample subtree |
| 23 | +- inspect the related tool behavior if needed |
| 24 | +- decide: |
| 25 | + KEEP + WIRE |
| 26 | + MOVE / REHOME |
| 27 | + DELETE |
| 28 | + CREATE / UPDATE CORRECT SAMPLE |
| 29 | + DEFER |
| 30 | +- apply only safe, obvious changes |
23 | 31 |
|
24 | | -Check references by: |
25 | | -- JSON filename |
26 | | -- JSON basename |
27 | | -- JSON path relative to sample root with slash styles |
| 32 | +Do NOT: |
| 33 | +- touch palette JSON files |
| 34 | +- touch tile-map-editor-document JSON files |
| 35 | +- touch sample 1902 |
| 36 | +- force JSON into a mismatched sample |
| 37 | +- add hidden/default fallback data |
| 38 | +- run full samples smoke by default |
| 39 | +- undo SVG Asset Studio rename |
| 40 | +- rename tools |
| 41 | +- change unrelated logic |
| 42 | +- touch start_of_day folders |
28 | 43 |
|
29 | | -Output: |
30 | | -docs/dev/reports/sample_json_js_reference_audit.csv |
| 44 | +Testing policy: |
| 45 | +Full samples smoke takes about 20 minutes. |
| 46 | +Skip it unless this PR changes shared sample launch infrastructure. |
31 | 47 |
|
32 | | -Do NOT: |
33 | | -- run full sample smoke |
34 | | -- modify samples |
35 | | -- delete JSON |
36 | | -- change runtime code |
| 48 | +Run targeted validation only: |
| 49 | +- syntax checks for changed JS files |
| 50 | +- the PowerShell audit script |
| 51 | +- targeted sample/tool tests for changed samples only, if available |
37 | 52 |
|
38 | | -Validation: |
39 | | -Run: |
40 | | -powershell -ExecutionPolicy Bypass -File scripts/audit-sample-json-js-references.ps1 |
| 53 | +Reports: |
| 54 | +Write: |
| 55 | +docs/dev/reports/PR_11_46_cleanup_batch_3.md |
| 56 | +docs/dev/reports/PR_11_46_validation.txt |
41 | 57 |
|
42 | | -Document: |
43 | | -docs/dev/reports/PR_11_45_validation.txt |
| 58 | +Cleanup report must include: |
| 59 | +- selected JSON files |
| 60 | +- classification/action for each |
| 61 | +- files changed |
| 62 | +- coverage preserved statement |
| 63 | +- deferred items and reasons |
| 64 | +- note that palette/tile-map/1902 were intentionally excluded |
44 | 65 |
|
45 | | -Full samples smoke: |
46 | | -Skip. This is a utility script only. |
| 66 | +Validation report must include: |
| 67 | +- targeted tests run |
| 68 | +- full samples smoke skipped/run |
| 69 | +- reason for skip/run |
| 70 | +- result |
0 commit comments