|
1 | | -MODEL: GPT-5.4-codex |
| 1 | +MODEL: GPT-5.3-codex |
2 | 2 | REASONING: high |
3 | 3 |
|
4 | 4 | COMMAND: |
5 | | -Create a small test-only patch for the current Asteroids failure. |
| 5 | +Create BUILD_PR_LEVEL_11_1_AUTHORITATIVE_STATE_HANDOFF_CANDIDATE implementation from provided payload. |
6 | 6 |
|
7 | | -Primary target: |
8 | | -- `tests/games/AsteroidsValidation.test.mjs` |
| 7 | +INPUT: |
| 8 | +Use provided ZIP payload. |
9 | 9 |
|
10 | | -Do the following: |
11 | | -1. Inspect the real file around the current failing call: |
12 | | - - stack shows `tests/games/AsteroidsValidation.test.mjs:152:37` |
13 | | -2. Preserve the existing structure and assertions. |
14 | | -3. Ensure the file exports the named `run` function expected by `tests/run-tests.mjs`. |
15 | | -4. Immediately before the failing `bootAsteroidsNew(...)` path, install the minimum Node-safe DOM/canvas shim so: |
16 | | - - `globalThis.document` exists for this test scope |
17 | | - - `document.getElementById('game')` returns a canvas-like object |
18 | | - - the returned object supports the canvas methods/properties Asteroids boot actually uses |
19 | | -5. Restore globals after the test scope finishes. |
20 | | -6. Do not use a browser-only approach that assumes a full DOM implementation. |
21 | | -7. Do not edit `games/Asteroids/index.js`. |
| 10 | +REQUIREMENTS: |
| 11 | +- Implement authoritative state handoff per PR intent |
| 12 | +- Maintain strict separation engine/game |
| 13 | +- Use approved selectors/events only |
| 14 | +- No engine core API changes unless required |
| 15 | +- Preserve backward compatibility |
| 16 | +- Add contract validation |
22 | 17 |
|
23 | | -Secondary target, only if still failing in the current branch: |
24 | | -- `tests/tools/VectorNativeTemplate.test.mjs` |
25 | | - - update expected path from `templates/vector-native-arcade/` to `tools/templates/vector-native-arcade/` |
| 18 | +CONSTRAINTS: |
| 19 | +- Minimal, surgical changes only |
| 20 | +- No unrelated modifications |
26 | 21 |
|
27 | | -Success criteria: |
28 | | -- `npm test --ignore-scripts > output.txt` |
29 | | -- the first failure is no longer `Missing #game canvas element` |
30 | | -- `PASS AsteroidsValidation` appears |
31 | | -- stop after the first new failure, if any, and report it |
| 22 | +OUTPUT (CRITICAL): |
| 23 | +- Provide ONE download ZIP (delta only) |
| 24 | +- Repo-structured |
| 25 | +- Only changed/added files |
| 26 | +- No full repo copies |
| 27 | + |
| 28 | +ALSO INCLUDE: |
| 29 | +- docs/dev/commit_comment.txt |
| 30 | +- docs/dev/next_command.txt |
0 commit comments