Skip to content

Commit b7f5d2e

Browse files
author
DavidQ
committed
BUILD_PR_GAMES_SPACE_INVADERS_CLEAR_DESTINATION
Cleared games/SpaceInvaders in preparation for canonical replacement. - destination emptied - SpaceInvaders_next preserved unchanged - no copy performed in this PR
1 parent 52c3d80 commit b7f5d2e

47 files changed

Lines changed: 79 additions & 5190 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: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@ MODEL: GPT-5.4
22
REASONING: high
33

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

77
Rules:
8-
- Read from `games/SpaceInvaders/**`
9-
- Write only to `games/SpaceInvaders_next/**`
10-
- Put files into the correct destination folders by responsibility
11-
- Fail fast instead of guessing any unclear destination
12-
- Keep `games/SpaceInvaders/**` unchanged
13-
- Do NOT perform canonical replacement
14-
- Do NOT refactor engine/shared broadly
15-
- Do NOT change unrelated games
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
12+
- Fail fast on ambiguity
1613

1714
Package output to:
18-
<project folder>/tmp/BUILD_PR_GAMES_SPACE_INVADERS_GAMEPLAY_MIGRATION_TO_NEXT_delta.zip
15+
<project folder>/tmp/BUILD_PR_GAMES_SPACE_INVADERS_CLEAR_DESTINATION_delta.zip

docs/dev/COMMIT_COMMENT.txt

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

3-
Migrated Space Invaders gameplay into games/SpaceInvaders_next.
3+
Cleared games/SpaceInvaders in preparation for canonical replacement.
44

5-
- source game preserved unchanged
6-
- gameplay moved into correct _next destination folders
7-
- _next now boots gameplay instead of template-only status mode
5+
- destination emptied
6+
- SpaceInvaders_next preserved unchanged
7+
- no copy performed in this PR

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 APPLY_PR_GAMES_SPACE_INVADERS_GAMEPLAY_MIGRATION_TO_NEXT
1+
Create BUILD_PR_GAMES_SPACE_INVADERS_COPY_FROM_NEXT
22

33
Scope:
4-
- accept gameplay migration into SpaceInvaders_next
5-
- confirm runtime and debug behavior
6-
- keep existing SpaceInvaders unchanged
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
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
Validation Checklist — Games Space Invaders Gameplay Migration To Next
1+
Validation Checklist — Games Space Invaders Clear Destination
22

3-
[ ] games/SpaceInvaders_next contains migrated gameplay
4-
[ ] Migrated files are in correct destination folders
5-
[ ] games/SpaceInvaders_next/index.html boots gameplay
6-
[ ] Canvas is visible
7-
[ ] Shell/theme baseline still looks correct
8-
[ ] Debug works if it existed in source
9-
[ ] No console errors
10-
[ ] Existing games/SpaceInvaders remains unchanged
11-
[ ] No unrelated games changed
3+
[ ] games/SpaceInvaders exists
4+
[ ] games/SpaceInvaders is empty
5+
[ ] games/SpaceInvaders_next remains unchanged
6+
[ ] No unrelated paths changed
127

138
Status: PENDING
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# BUILD PR — Games Space Invaders Clear Destination
2+
3+
## Purpose
4+
Prepare `games/SpaceInvaders/**` for canonical replacement by clearing the destination completely before copy-in from `_next`.
5+
6+
## Context
7+
`games/SpaceInvaders_next/**` now holds the migrated gameplay candidate.
8+
This PR is ONLY the clear-destination step.
9+
10+
Note:
11+
- `capture-preview.html` was reported missing from the prior migration result.
12+
- This PR does NOT fix that omission.
13+
- The omission must be handled in the later copy/promotion validation step.
14+
- Do not guess at replacement content in this PR.
15+
16+
## Single PR Purpose
17+
Clear the canonical destination so no legacy files remain before promotion from `_next`.
18+
19+
## Scope (STRICT)
20+
- Delete all files and subfolders under:
21+
`games/SpaceInvaders/**`
22+
- Leave the `games/SpaceInvaders/` folder itself present and empty
23+
24+
## Target Path (EXACT)
25+
- `games/SpaceInvaders/**`
26+
27+
## Allowed Operations
28+
- delete files under `games/SpaceInvaders/**`
29+
- delete subfolders under `games/SpaceInvaders/**`
30+
- leave `games/SpaceInvaders/` in place
31+
32+
## Explicit Non-Goals
33+
- DO NOT touch `games/SpaceInvaders_next/**`
34+
- DO NOT copy files
35+
- DO NOT move files
36+
- DO NOT recreate `capture-preview.html`
37+
- DO NOT modify engine/shared code
38+
- DO NOT change unrelated games
39+
40+
## Fail-Fast Conditions
41+
STOP with no changes if any of the following are true:
42+
- `games/SpaceInvaders/` does not exist
43+
- deletion would affect any path outside `games/SpaceInvaders/**`
44+
- the operation would also touch `games/SpaceInvaders_next/**`
45+
46+
## Acceptance Criteria
47+
- `games/SpaceInvaders/` still exists
48+
- `games/SpaceInvaders/` is empty
49+
- `games/SpaceInvaders_next/**` remains unchanged
50+
51+
## Validation Steps
52+
1. Inspect `games/SpaceInvaders/`
53+
2. Confirm no files remain under it
54+
3. Confirm `games/SpaceInvaders_next/**` was not modified
55+
56+
## Output Requirement
57+
Codex must package:
58+
`<project folder>/tmp/BUILD_PR_GAMES_SPACE_INVADERS_CLEAR_DESTINATION_delta.zip`

0 commit comments

Comments
 (0)