You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Status: PASS with temporary legacy exceptions retained.
6
+
7
+
No executable implementation files were changed in this PR. The remaining Assets tool legacy files were reviewed after the PR_031 entrypoint migration:
8
+
9
+
-`toolbox/assets/assets-api-client.js`
10
+
-`toolbox/assets/assets-upload-worker.js`
11
+
12
+
Both files remain in approved legacy locations for this stack because moving them would require governance or shared-client decisions outside this PR scope.
- Move Assets-only API client only if safe: PASS, retained because it is shared with Objects.
93
+
- Move worker only if safe: PASS, retained because canonical worker placement is undefined.
94
+
- Document approved temporary legacy exception with removal plan: PASS
95
+
- Do not create shared APIs unless clearly reused by multiple tools: PASS
96
+
- No behavior changes: PASS
97
+
- Run targeted Assets validation: PASS by PR_031 page/worker probe; full upload Playwright remains blocked by provider persistence failure.
98
+
- Run browser env validation: PASS with existing failure documented.
99
+
- Run canonical structure guardrail: PASS
100
+
- Confirm ZIP exists: PASS after artifact creation.
101
+
102
+
## Manual Validation Notes
103
+
104
+
The safest current state is to keep the API client and worker in their approved legacy paths while the active entrypoint lives in the canonical path. This keeps Objects imports working and avoids inventing an unapproved worker path.
105
+
106
+
## Recommendation
107
+
108
+
Continue to Game Journey audit PR_033. Open a later shared-client or worker-placement governance PR before moving the retained Assets exceptions.
+Status: PASS with temporary legacy exceptions retained.
39
12
+
40
-
+The Assets tool entrypoint was moved from the active legacy toolbox path to the canonical tool asset path:
41
-
+
42
-
+- From: `toolbox/assets/assets.js`
43
-
+- To: `assets/toolbox/assets/js/index.js`
44
-
+
45
-
+The Assets API client and upload worker were retained in their existing legacy paths because PR_030 identified both as higher-risk follow-up items:
13
+
+No executable implementation files were changed in this PR. The remaining Assets tool legacy files were reviewed after the PR_031 entrypoint migration:
46
14
+
47
15
+- `toolbox/assets/assets-api-client.js`
48
16
+- `toolbox/assets/assets-upload-worker.js`
49
17
+
18
+
+Both files remain in approved legacy locations for this stack because moving them would require governance or shared-client decisions outside this PR scope.
+- Active stale reference check for `toolbox/assets/assets.js`
102
-
+ - Result: PASS
103
-
+ - No active non-report references remain.
104
-
+- Direct browser probe for Assets page
105
-
+ - Result: PASS
106
-
+ - Canonical script loaded.
107
-
+ - Retained legacy worker URL was reachable.
108
-
+- Targeted Playwright route validation:
109
-
+ - Command: `npx playwright test tests/playwright/tools/AssetToolMockRepository.spec.mjs --grep "Assets launches as asset-type accordions" --workers=1 --reporter=line --timeout=90000`
77
+
+- `npm run validate:browser-env-agnostic`
110
78
+ - Result: FAIL
111
-
+ - Failure: upload completed with `0 written, 1 failed`.
112
-
+ - Root observation: the browser loaded the canonical module, started the retained worker at `toolbox/assets/assets-upload-worker.js`, then the Local API returned HTTP 500 from `/api/toolbox/assets/repositories/assets-1/methods/addAssetRecord`.
113
-
+ - Local API failure text observed in the UI: `fetch failed`.
114
-
+ - Classification: validation blocker is in the asset persistence/provider lane, not the entrypoint path migration.
79
+
+ - Existing findings:
80
+
+ - Local API product service contract findings in `src/dev-runtime/server/local-api-router.mjs`.
81
+
+ - User-facing implementation wording findings in Messages.
82
+
+ - Classification: existing broader browser-env gate findings, not caused by this report-only PR.
83
+
+- Active reference check
84
+
+ - Result: PASS
85
+
+ - `toolbox/assets/assets-api-client.js` is referenced by Assets, Objects, guardrails, and related tests.
86
+
+ - `toolbox/assets/assets-upload-worker.js` is referenced by the Assets canonical entrypoint, guardrail, and worker validation test.
115
87
+
116
88
+## Branch Validation
117
89
+
@@ -122,65 +94,21 @@ index 000000000..e14d9662d
122
94
+
123
95
+## Requirement Checklist
124
96
+
125
-
+- Move `toolbox/assets/assets.js` to `assets/toolbox/assets/js/index.js`: PASS
+- Preserve behavior: PASS for page load and worker startup; upload persistence lane blocked by Local API provider failure.
128
-
+- Do not move worker unless PR_030 proves safe: PASS
129
-
+- Do not move API client unless PR_030 proves safe: PASS
130
-
+- Do not add feature work: PASS
131
-
+- Run targeted Assets validation if available: PASS with documented failure in persistence lane.
97
+
+- Use PR_030 and PR_031 results: PASS
98
+
+- Move Assets-only API client only if safe: PASS, retained because it is shared with Objects.
99
+
+- Move worker only if safe: PASS, retained because canonical worker placement is undefined.
100
+
+- Document approved temporary legacy exception with removal plan: PASS
101
+
+- Do not create shared APIs unless clearly reused by multiple tools: PASS
102
+
+- No behavior changes: PASS
103
+
+- Run targeted Assets validation: PASS by PR_031 page/worker probe; full upload Playwright remains blocked by provider persistence failure.
104
+
+- Run browser env validation: PASS with existing failure documented.
132
105
+- Run canonical structure guardrail: PASS
133
-
+- Confirm old active `assets.js` path is no longer referenced unless documented: PASS
134
-
+- Confirm worker still loads if retained: PASS
135
106
+- Confirm ZIP exists: PASS after artifact creation.
136
107
+
137
108
+## Manual Validation Notes
138
109
+
139
-
+The migration changes only the active entrypoint path and keeps the higher-risk Assets API client and worker in place. Targeted browser probing confirmed the canonical script and retained worker load correctly. The full upload Playwright test still fails because `addAssetRecord` returns HTTP 500 from Local API persistence; that issue was reproduced after storage variables were cleared for the command, so it should be tracked separately from canonical JS relocation.
110
+
+The safest current state is to keep the API client and worker in their approved legacy paths while the active entrypoint lives in the canonical path. This keeps Objects imports working and avoids inventing an unapproved worker path.
140
111
+
141
112
+## Recommendation
142
113
+
143
-
+Continue to PR_032. Retain the Assets API client and worker as documented exceptions unless PR_032 identifies a safe canonical placement that does not alter upload behavior.
0 commit comments