Skip to content

Commit 301a96d

Browse files
author
DavidQ
committed
Rebuild Palette Browser as first session-backed Tool v2 lane - PR 11.188
1 parent 46b0f92 commit 301a96d

18 files changed

Lines changed: 2341 additions & 1105 deletions

docs/dev/NEXT_RESTART.md

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# NEXT RESTART - TOOL V2 MIGRATION
1+
# SOD 2026-05-01.s1 - PR 11.188 Restart
22

3-
## Open repo
3+
## Open Repo
44

55
```powershell
66
cd C:\Users\davidq\Documents\GitHub\HTML-JavaScript-Gaming
@@ -14,46 +14,54 @@ git status
1414
git pull
1515
```
1616

17-
## Current Decision
17+
## Direction Lock
1818

19-
Stop patching legacy Workspace Manager/tool shell code.
19+
```text
20+
NO schema changes
21+
NO sample changes
22+
NO game changes
23+
NO old Workspace Manager fixes
24+
NO legacy tool patches
25+
NO copying old code
26+
NEW Tool v2 lane only
27+
```
2028

21-
Start clean Tool v2 lane:
29+
## Start PR
2230

2331
```text
24-
Palette first
25-
Session-backed shared data
26-
One tool at a time
27-
Reverse engineer, do not copy
28-
Move old tools to <tool>-v1
29-
No schema/sample/game changes
32+
PR_11_188_PALETTE_REVERSE_ENGINEER_AND_REBUILD
3033
```
3134

32-
## Supported load paths
35+
## Added Rules
3336

3437
```text
35-
1. Workspace from URL -> load data -> session -> tool
36-
2. Tool from URL -> load data -> session -> tool
37-
3. Tool from session loaded by Workspace
38+
tools/shared/ is deprecated for new Tool v2 work
39+
Use tools/common/ for new shared Tool v2 foundation
40+
No code that is just one stream file
41+
Controls should have focused classes/modules
42+
Two menus: menuTool and menuWorkspace
43+
Only controls for the current launch are visible
44+
Workspace menu updates workspace/session only
45+
Plan sidebar accordion control types before expanding UI
3846
```
3947

40-
## Next PR
48+
## Do Not Use
4149

4250
```text
43-
PR_11_188_PALETTE_V2_REVERSE_ENGINEER_AND_REBUILD
51+
platformShell
52+
assetUsageIntegration
53+
shared handoff
54+
tool aliases
55+
fallback data
56+
default anything
57+
Workspace ?tool= auto-open
4458
```
4559

46-
## Next PR must do
60+
## Launch Behavior
4761

4862
```text
49-
Reverse engineer Palette Browser
50-
Move tools/Palette Browser -> tools/Palette Browser-v1
51-
Create clean tools/Palette Browser
52-
Add/use shared CSS
53-
Use session context only
54-
No platformShell
55-
No assetUsageIntegration
56-
No shared handoff
57-
No fallback data
58-
No schema/sample/game changes
63+
Workspace opens clean
64+
User selects Palette Browser / Manager
65+
Workspace writes session
66+
Palette Browser reads session via hostContextId
5967
```

docs/dev/codex_commands.md

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,49 @@
1-
# Codex Commands - PR 11.187
1+
# Codex Commands - PR 11.188
22

3-
Model: GPT-5 high
3+
Model: GPT-5.4
44
Reasoning: high
55

6-
Commit/restart documentation only.
6+
Run one BUILD only:
77

8-
Do not modify:
9-
- schemas
10-
- samples
11-
- games
12-
- runtime tool code
8+
```text
9+
BUILD_PR_LEVEL_11_188_PALETTE_REVERSE_ENGINEER_AND_REBUILD
10+
```
1311

14-
Create/keep docs that define the restart lane:
12+
Use the repo instructions and this bundle as the source of truth.
1513

16-
- Tool v2 migration
17-
- Palette first
18-
- session-backed shared data
19-
- reverse engineer tools, do not copy old code
20-
- move old tools to `<tool>-v1`
21-
- support data load paths:
22-
1. workspace from URL -> session -> tool
23-
2. tool from URL -> session -> tool
24-
3. tool from workspace session
14+
Hard requirements:
2515

26-
Validation:
27-
- docs only; no runtime validation required
28-
- full samples smoke skipped because this is commit/restart documentation
16+
- one PR purpose only
17+
- no schemas
18+
- no samples
19+
- no games
20+
- no old Workspace Manager fixes
21+
- no legacy tool patches
22+
- no `tools/shared/**` changes
23+
- move `tools/Palette Browser/` to `tools/Palette Browser-v1/`
24+
- create clean `tools/Palette Browser/`
25+
- create `tools/common/toolLayout.css`
26+
- create `tools/common/sessionContext.js`
27+
- create `tools/common/toolContract.js`
28+
- reverse engineer first and document findings
29+
- no fallback/default data
30+
- no `platformShell`
31+
- no shared handoff
32+
- no copied legacy implementation code
33+
- visible tool name must not include `v2`
34+
35+
Validation required:
36+
37+
```powershell
38+
node --check "tools/common/sessionContext.js"
39+
node --check "tools/common/toolContract.js"
40+
node --check "tools/Palette Browser/main.js"
41+
```
42+
43+
Do not run full samples smoke unless required by a broad shared sample loader change. Record the skip/run decision and reason.
2944

3045
Return ZIP artifact at:
31-
`<project folder>/tmp/PR_11_187_20260430_01.zip`
46+
47+
```text
48+
<project folder>/tmp/PR_11_188_20260501_01.zip
49+
```

docs/dev/commit_comment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Document restart for Palette-first Tool v2 migration with session-backed data - PR 11.187
1+
Rebuild Palette Browser as first session-backed Tool v2 lane - PR 11.188
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# PR 11.188 Bundle Validation
2+
3+
## Bundle Source
4+
This BUILD used `docs/pr/BUILD_PR_LEVEL_11_188_PALETTE_REVERSE_ENGINEER_AND_REBUILD.md` and the PR 11.187 restart lane as the source of truth.
5+
6+
## Scope Confirmation
7+
Runtime scope was limited to:
8+
9+
- `tools/Palette Browser/**`
10+
- `tools/Palette Browser-v1/**`
11+
- `tools/common/**`
12+
13+
Documentation scope was limited to:
14+
15+
- `docs/pr/**`
16+
- `docs/dev/**`
17+
- `docs/dev/reports/**`
18+
19+
No schemas, samples, games, `tools/shared/**`, old Workspace Manager fixes, or unrelated legacy tool patches were changed.
20+
21+
## Validation
22+
Required targeted validation passed:
23+
24+
```powershell
25+
node --check "tools/common/sessionContext.js"
26+
node --check "tools/common/toolContract.js"
27+
node --check "tools/Palette Browser/main.js"
28+
```
29+
30+
Full samples smoke skipped: targeted Palette Browser rebuild and new `tools/common/` foundation only; no broad shared sample loader change was made.
31+
32+
## Artifact
33+
Expected ZIP:
34+
35+
```text
36+
tmp/PR_11_188_20260501_01.zip
37+
```

0 commit comments

Comments
 (0)