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
| Exception | Current consumers | Decision | Rationale |
35
+
| --- | --- | --- | --- |
36
+
|`toolbox/controls/controls-api-client.js`| Controls tool and `account/user-controls-page.js`| Move to shared | The file is a browser API helper used by more than one surface. `assets/js/shared/` is canonical and already accepted by the structure guardrail. |
37
+
|`toolbox/assets/assets-api-client.js`| Assets tool and Objects tool | Move to shared | The file is shared by multiple tools. Moving to `assets/js/shared/` avoids placing a second JS file under one tool folder and removes one retained exception. |
38
+
|`toolbox/assets/assets-upload-worker.js`| Assets tool only | Owner review required / keep temporary exception | The canonical rules define tool entrypoints and shared JS, but not tool-local worker module placement. Moving now would require either a new worker path rule or a possibly misleading shared location. |
39
+
|`toolbox/game-journey/game-journey-api-client.js`| Game Journey tool | Move to shared if validation stays clean | The file is a browser API helper. It is not currently shared, but moving to `assets/js/shared/` is guardrail-compliant and avoids introducing an unapproved secondary tool-local JS file. |
40
+
41
+
## Recommended Execution
42
+
43
+
1. PR_26172_CHARLIE_038: investigate the existing Assets upload HTTP 500 before touching worker placement.
44
+
2. PR_26172_CHARLIE_039: move `assets-api-client.js` to `assets/js/shared/` if PR_038 confirms upload behavior is not path-coupled; keep the worker as a documented exception unless owner approves a worker path rule.
45
+
3. PR_26172_CHARLIE_040: move `controls-api-client.js` and `game-journey-api-client.js` to `assets/js/shared/` if targeted validation passes.
46
+
4. PR_26172_CHARLIE_041: re-run guardrail and report remaining exceptions.
47
+
48
+
## Validation Lane Report
49
+
50
+
- Report exists: PASS
51
+
- No runtime source changed: PASS
52
+
- Active reference audit: PASS
53
+
- ZIP artifact exists: PASS after artifact creation.
54
+
55
+
## Branch Validation
56
+
57
+
- Current branch: `PR_26172_CHARLIE_repository-compliance-stack`
- Determine migrate now / keep temporary exception / move to shared / owner review required: PASS
69
+
- Do not merge: PASS
70
+
- Produce ZIP artifact: PASS after artifact creation.
71
+
72
+
## Manual Validation Notes
73
+
74
+
The safest next code changes are shared-client relocations. The Assets worker should remain a temporary exception until the owner approves canonical worker placement or a guardrail update explicitly permits tool-local worker modules.
+Status: PASS with retained exceptions documented.
11
+
+Status: PASS.
12
12
+
13
-
+Final reaudit scope:
13
+
+This audit reviewed the four retained JavaScript exceptions from the target-tool migration stack and classified each next action.
14
14
+
15
-
+- Controls
16
-
+- Assets / Asset Browser / Vector Art
17
-
+- Game Journey
15
+
+No implementation files were changed.
18
16
+
19
-
+The active entrypoints for the target tools have moved to canonical paths. Remaining legacy paths are API-client or worker exceptions with removal plans.
20
-
+
21
-
+## Migrated Paths
22
-
+
23
-
+| Tool area | Legacy path | Canonical path | Status |
+| Game Journey | `toolbox/game-journey/game-journey.js` | `assets/toolbox/game-journey/js/index.js` | Migrated |
28
-
+
29
-
+## Retained Exceptions
30
-
+
31
-
+| Path | Reason | Removal plan |
32
-
+| --- | --- | --- |
33
-
+| `toolbox/controls/controls-api-client.js` | Shared by Controls and `account/user-controls-page.js`. | Define shared client placement, move shared code, update both importers, then remove exception. |
34
-
+| `toolbox/assets/assets-api-client.js` | Shared by Assets and Objects. | Define shared client placement, update Assets and Objects together, then remove exception. |
35
-
+| `toolbox/assets/assets-upload-worker.js` | Worker filename/path pattern is not yet defined by canonical guardrail. | Add approved worker placement rule, move worker, update `new Worker(...)`, run upload validation, then remove exception. |
36
-
+| `toolbox/game-journey/game-journey-api-client.js` | Guardrail currently approves only `assets/toolbox/{tool}/js/index.js`; second tool JS file placement is not approved. | Add secondary tool-module or shared-client placement rule, move/update imports, run Game Journey validation, then remove exception. |
+| Exception | Current consumers | Decision | Rationale |
41
+
+| --- | --- | --- | --- |
42
+
+| `toolbox/controls/controls-api-client.js` | Controls tool and `account/user-controls-page.js` | Move to shared | The file is a browser API helper used by more than one surface. `assets/js/shared/` is canonical and already accepted by the structure guardrail. |
43
+
+| `toolbox/assets/assets-api-client.js` | Assets tool and Objects tool | Move to shared | The file is shared by multiple tools. Moving to `assets/js/shared/` avoids placing a second JS file under one tool folder and removes one retained exception. |
44
+
+| `toolbox/assets/assets-upload-worker.js` | Assets tool only | Owner review required / keep temporary exception | The canonical rules define tool entrypoints and shared JS, but not tool-local worker module placement. Moving now would require either a new worker path rule or a possibly misleading shared location. |
45
+
+| `toolbox/game-journey/game-journey-api-client.js` | Game Journey tool | Move to shared if validation stays clean | The file is a browser API helper. It is not currently shared, but moving to `assets/js/shared/` is guardrail-compliant and avoids introducing an unapproved secondary tool-local JS file. |
+- Command: `npm run validate:canonical-structure`
57
-
+- Result: PASS
58
-
+- Blocking violations: 0
59
-
+- Approved legacy exceptions: 481
60
-
+
61
-
+## Browser Validation Status
62
-
+
63
-
+- Command: `npm run validate:browser-env-agnostic`
64
-
+- Result: FAIL
65
-
+- Findings:
66
-
+ - Product service contract findings in `src/dev-runtime/server/local-api-router.mjs`.
67
-
+ - User-facing implementation wording findings in Messages.
68
-
+- Classification: existing broader browser-env gate findings, not introduced by this target-tool migration stack.
69
-
+
70
-
+## Report and ZIP Artifact Check
71
-
+
72
-
+| Scope | Report | ZIP |
73
-
+| --- | --- | --- |
74
-
+| PR_26172_CHARLIE_028 | Present | Present |
75
-
+| PR_26172_CHARLIE_029 | Present | Present |
76
-
+| PR_26172_CHARLIE_030 | Present | Present |
77
-
+| PR_26172_CHARLIE_031 | Present | Present |
78
-
+| PR_26172_CHARLIE_032 | Present | Present |
79
-
+| PR_26172_CHARLIE_033 | Present | Present |
80
-
+| PR_26172_CHARLIE_034 | Present | Present |
81
-
+| PR_26172_CHARLIE_035 | Present | Present |
82
-
+
83
-
+## Stack Readiness
47
+
+## Recommended Execution
84
48
+
85
-
+Ready for Owner review: YES, with documented retained exceptions and validation caveats.
49
+
+1. PR_26172_CHARLIE_038: investigate the existing Assets upload HTTP 500 before touching worker placement.
50
+
+2. PR_26172_CHARLIE_039: move `assets-api-client.js` to `assets/js/shared/` if PR_038 confirms upload behavior is not path-coupled; keep the worker as a documented exception unless owner approves a worker path rule.
51
+
+3. PR_26172_CHARLIE_040: move `controls-api-client.js` and `game-journey-api-client.js` to `assets/js/shared/` if targeted validation passes.
52
+
+4. PR_26172_CHARLIE_041: re-run guardrail and report remaining exceptions.
86
53
+
87
-
+Owner review should note:
54
+
+## Validation Lane Report
88
55
+
89
-
+- The target entrypoint migrations are complete.
90
-
+- The retained API/worker files require follow-up shared-client or worker-placement governance before removal.
91
-
+- Browser-env validation remains blocked by existing non-Charlie findings.
92
-
+- Assets full upload Playwright validation is blocked by Local API provider persistence behavior, not by canonical entrypoint path loading.
56
+
+- Report exists: PASS
57
+
+- No runtime source changed: PASS
58
+
+- Active reference audit: PASS
59
+
+- ZIP artifact exists: PASS after artifact creation.
+- Determine migrate now / keep temporary exception / move to shared / owner review required: PASS
75
+
+- Do not merge: PASS
76
+
+- Produce ZIP artifact: PASS after artifact creation.
114
77
+
115
78
+## Manual Validation Notes
116
79
+
117
-
+This reaudit confirms the remaining target work is no longer entrypoint migration. It is shared-client and worker-placement cleanup, which should be scoped separately to avoid changing tool behavior under a structure-only migration stack.
118
-
+
119
-
+## Recommended Next PRs
120
-
+
121
-
+1. Shared API-client placement governance for reused toolbox API clients.
122
-
+2. Worker placement guardrail for tool-local module workers.
123
-
+3. Controls API client shared placement migration.
124
-
+4. Assets API client shared placement migration with Objects.
125
-
+5. Assets worker migration after worker placement rule exists.
126
-
+6. Game Journey API client migration after secondary module or shared-client placement is approved.
80
+
+The safest next code changes are shared-client relocations. The Assets worker should remain a temporary exception until the owner approves canonical worker placement or a guardrail update explicitly permits tool-local worker modules.
0 commit comments