Skip to content

Commit 6003bf3

Browse files
author
DavidQ
committed
BUILD_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT
Copied SpaceInvaders_next into canonical SpaceInvaders. - clean destination - structure preserved - runtime validated - no file guessing
1 parent b7f5d2e commit 6003bf3

45 files changed

Lines changed: 3286 additions & 20 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/dev/CODEX_COMMANDS.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ MODEL: GPT-5.4
22
REASONING: high
33

44
COMMAND:
5-
Execute BUILD_PR_GAMES_SPACE_INVADERS_CLEAR_DESTINATION exactly as written.
5+
Execute BUILD_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT exactly as written.
66

77
Rules:
8-
- Delete ONLY `games/SpaceInvaders/**`
9-
- Leave `games/SpaceInvaders/` present and empty
10-
- Do NOT touch `games/SpaceInvaders_next/**`
11-
- Do NOT recreate missing files such as `capture-preview.html` in this PR
8+
- Copy from `games/SpaceInvaders_next/**`
9+
- Write to `games/SpaceInvaders/**`
10+
- Preserve structure exactly
11+
- Do NOT modify `_next`
12+
- Do NOT invent missing files
13+
- Validate capture-preview.html rule strictly
1214
- Fail fast on ambiguity
1315

1416
Package output to:
15-
<project folder>/tmp/BUILD_PR_GAMES_SPACE_INVADERS_CLEAR_DESTINATION_delta.zip
17+
<project folder>/tmp/BUILD_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT_delta.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
BUILD_PR_GAMES_SPACE_INVADERS_CLEAR_DESTINATION
1+
BUILD_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT
22

3-
Cleared games/SpaceInvaders in preparation for canonical replacement.
3+
Copied SpaceInvaders_next into canonical SpaceInvaders.
44

5-
- destination emptied
6-
- SpaceInvaders_next preserved unchanged
7-
- no copy performed in this PR
5+
- clean destination
6+
- structure preserved
7+
- runtime validated
8+
- no file guessing

docs/dev/NEXT_COMMAND.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Create BUILD_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT
1+
Create APPLY_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT
22

33
Scope:
4-
- copy games/SpaceInvaders_next into games/SpaceInvaders
5-
- include all required files in correct destinations
6-
- explicitly validate capture-preview.html presence if it belongs in source
4+
- accept canonical replacement
5+
- validate runtime and structure
6+
- prepare for _next cleanup
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
Validation Checklist — Games Space Invaders Clear Destination
1+
Validation Checklist — Games Space Invaders Copy From Next
22

3-
[ ] games/SpaceInvaders exists
4-
[ ] games/SpaceInvaders is empty
5-
[ ] games/SpaceInvaders_next remains unchanged
6-
[ ] No unrelated paths changed
3+
[ ] games/SpaceInvaders matches _next
4+
[ ] Gameplay boots from canonical path
5+
[ ] No console errors
6+
[ ] capture-preview.html rule respected
7+
[ ] _next unchanged
78

89
Status: PENDING
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# BUILD PR — Games Space Invaders Copy From Next
2+
3+
## Purpose
4+
Copy the validated `_next` candidate into the canonical destination `games/SpaceInvaders/**`.
5+
6+
## Context
7+
- `games/SpaceInvaders/**` has been cleared
8+
- `games/SpaceInvaders_next/**` contains the migrated, runnable candidate
9+
10+
## Single PR Purpose
11+
Perform a clean copy from `_next` to canonical, preserving structure and ensuring required files are present.
12+
13+
## Source / Destination
14+
Source:
15+
- `games/SpaceInvaders_next/**`
16+
17+
Destination:
18+
- `games/SpaceInvaders/**`
19+
20+
## Scope (STRICT)
21+
- Copy all files and folders from `_next` into canonical destination
22+
- Preserve exact structure
23+
- Ensure runtime works from canonical path
24+
- Validate presence of required files (including capture-preview.html if present in source)
25+
26+
## Required Validation Rule
27+
- If `capture-preview.html` exists in source:
28+
→ it MUST exist in destination
29+
- If it does NOT exist in source:
30+
→ DO NOT create it
31+
→ DO NOT guess content
32+
→ proceed without it
33+
34+
## Allowed Operations
35+
- copy files/folders
36+
- adjust relative paths ONLY if required for canonical runtime
37+
- ensure index.html boots correctly
38+
39+
## Explicit Non-Goals
40+
- DO NOT modify `_next`
41+
- DO NOT recreate missing files
42+
- DO NOT refactor engine/shared
43+
- DO NOT change other games
44+
45+
## Fail-Fast Conditions
46+
STOP if:
47+
- source `_next` is missing required runtime files
48+
- copy would require guessing missing files
49+
- runtime cannot work post-copy without structural changes
50+
51+
## Acceptance Criteria
52+
- `games/SpaceInvaders/**` matches `_next`
53+
- game boots from canonical path
54+
- no console errors
55+
- `_next` remains unchanged
56+
- capture-preview.html rule respected
57+
58+
## Validation Steps
59+
1. Open `games/SpaceInvaders/index.html`
60+
2. Confirm gameplay runs
61+
3. Confirm no console errors
62+
4. Compare structure with `_next`
63+
5. Verify capture-preview.html handling
64+
65+
## Output Requirement
66+
Codex must package:
67+
`<project folder>/tmp/BUILD_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT_delta.zip`
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

8.57 KB
Binary file not shown.
1 KB
Binary file not shown.
1.06 KB
Binary file not shown.
1.07 KB
Binary file not shown.

0 commit comments

Comments
 (0)