Skip to content

Commit b246d64

Browse files
author
DavidQ
committed
Toolbox Aid
David Quesenberry 04/05/2026 commit_comment.txt Apply render pipeline contract runtime for all four tools with validation, composition loading, deterministic ordering, and tests.
1 parent 7af8f96 commit b246d64

10 files changed

Lines changed: 1226 additions & 106 deletions

docs/dev/CODEX_COMMANDS.md

Lines changed: 24 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,32 @@ David Quesenberry
33
04/05/2026
44
codex_commands.md
55

6-
# Codex Commands
6+
# CODEX COMMANDS
77

8-
## Recommended Model
9-
- Model: GPT-5.4
10-
- Reasoning: high
8+
## MODEL
9+
GPT-5.4
1110

12-
## Primary Command
13-
Create BUILD_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS as a docs-only, repo-structured delta that fixes all remaining contract gaps in one PR.
11+
## REASONING
12+
high
1413

15-
Requirements:
16-
- Follow PLAN_PR -> BUILD_PR -> APPLY_PR exactly
17-
- Docs-first only
18-
- No implementation code in the bundle
19-
- One PR purpose only
20-
- Preserve exact repo-relative structure inside the ZIP
21-
- Place outputs under docs/pr and docs/dev
22-
- Use docs/dev/codex_commands.md and docs/dev/commit_comment.txt
23-
- Include docs/dev/next_command.txt
24-
- Respect the repo file-header standard on every created file
25-
- Tighten contract schemas for all 4 tools
26-
- Define the render pipeline formally
27-
- Lock engine mappings explicitly
28-
- Add a validation layer with non-silent rejection rules
29-
- Add a composition layer with a formal composition document schema
30-
- Keep all scope 2D-only and non-destructive
31-
- Output ZIP path:
32-
- HTML-JavaScript-Gaming-main/tmp/BUILD_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS_delta.zip
33-
34-
Required deliverables:
35-
- docs/pr/BUILD_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS.md
36-
- docs/dev/codex_commands.md
37-
- docs/dev/commit_comment.txt
38-
- docs/dev/change_summary.txt
39-
- docs/dev/validation_checklist.txt
40-
- docs/dev/file_tree.txt
41-
- docs/dev/next_command.txt
14+
## COMMAND
15+
Create `APPLY_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS` as an implementation PR that applies the approved render pipeline contract for Tile Map Editor, Parallax Editor, Sprite Editor, and Vector Asset Studio.
4216

43-
Hard acceptance targets:
44-
- All four producers have explicit schema sections
45-
- Formal pipeline stages are documented
46-
- Formal render order buckets are documented
47-
- Engine mappings are explicit and locked
48-
- Validation rules reject invalid contracts without silent repair
49-
- Composition manifest schema is documented
50-
- No implementation files are added
17+
Requirements:
18+
- Implement one shared runtime contract path for `toolbox.render.asset-document` and `toolbox.render.composition-document`
19+
- Add validation, normalization, deterministic render stage ordering, and structured errors
20+
- Lock tool-to-engine mappings exactly as documented
21+
- Add composition-driven mixed-scene assembly
22+
- Add focused automated tests for valid documents, invalid documents, stage ordering, and composition assembly
23+
- Keep changes surgical and architecture-safe
24+
- Do not move reusable logic into samples
25+
- Do not add implementation code to docs bundles
26+
- Do not perform unrelated refactors
5127

52-
Next command:
53-
- APPLY_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS
28+
Required output artifacts:
29+
- Update repo files needed for implementation
30+
- Update `docs/dev/change_summary.txt`
31+
- Update `docs/dev/validation_checklist.txt`
32+
- Preserve file headers for all newly created files
33+
- Package the repo-structured delta ZIP to:
34+
- `<project folder>/tmp/APPLY_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS_delta.zip`

docs/dev/COMMIT_COMMENT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ David Quesenberry
33
04/05/2026
44
commit_comment.txt
55

6-
docs: harden unified 2D render pipeline contract, validation, composition, and engine mappings for all four tools
6+
Apply render pipeline contract runtime for all four tools with validation, composition loading, deterministic ordering, and tests.

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ David Quesenberry
33
04/05/2026
44
next_command.txt
55

6-
APPLY_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS
6+
After Codex implementation and validation, proceed with runtime verification and targeted follow-up fixes only if required.

docs/dev/change_summary.txt

Lines changed: 63 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,66 @@ David Quesenberry
33
04/05/2026
44
change_summary.txt
55

6-
BUILD_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS summary
7-
8-
- Tightened the BUILD PR into a production-grade docs-only contract package.
9-
- Replaced the loose shared contract description with a formal contract family:
10-
- toolbox.render.asset-document
11-
- toolbox.render.composition-document
12-
- Added a required shared envelope with fixed versioning, producer, document, metadata, and payload requirements.
13-
- Added explicit shared schemas for metadata, assets, layers, and items.
14-
- Added locked tool-specific asset-document schemas for:
15-
- Tile Map Editor
16-
- Parallax Editor
17-
- Sprite Editor
18-
- Vector Asset Studio
19-
- Defined the formal render pipeline stages:
20-
- load
21-
- validate
22-
- normalize
23-
- resolve
24-
- compose
25-
- sequence
26-
- render
27-
- Locked deterministic render order buckets and tie-break rules.
28-
- Locked engine seam ownership so runtime responsibilities and tool responsibilities are not guessed.
29-
- Added a mandatory validation layer with explicit rejection policy.
30-
- Added a formal composition document schema to assemble cross-tool scenes.
31-
- Tightened Codex execution instructions so the BUILD bundle is exact and non-drifting.
32-
- Added docs/dev/next_command.txt to make the follow-on APPLY step explicit.
33-
34-
Guardrails honored:
35-
- Docs-first only
36-
- No implementation code
37-
- One PR purpose only
38-
- No unrelated engine or tool changes
39-
- 2D-only scope preserved
6+
APPLY_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS summary
7+
8+
Implemented runtime contract path:
9+
- Added `tools/shared/renderPipelineContract.js` as the shared runtime contract seam for:
10+
- `toolbox.render.asset-document`
11+
- `toolbox.render.composition-document`
12+
13+
Implemented pipeline stages:
14+
- load
15+
- validate
16+
- normalize
17+
- resolve
18+
- compose
19+
- sequence
20+
- render
21+
22+
Implemented validation and normalization behavior:
23+
- Enforces contract envelope and version (`1.0.0`)
24+
- Enforces 2D coordinate space and pixel units
25+
- Enforces strict producer tool allowlist and locked mapping rules
26+
- Enforces asset/layer/item/entity schema requirements
27+
- Rejects invalid references, enums, ranges, duplicate IDs, and invalid paths
28+
- Uses explicit structured errors with stage, code, path, message, and details
29+
- Allows only limited explicit defaults (visible/opacity/metadata/items) through normalization
30+
31+
Implemented deterministic ordering:
32+
- Formal render bucket ordering by layer kind:
33+
- parallax
34+
- tilemap
35+
- sprite
36+
- vector
37+
- overlay
38+
- collision
39+
- guide
40+
- Stable tie-breaks by zIndex, source document order, source layer order, then id
41+
- Deterministic item ordering by item order, source item order, then id
42+
43+
Implemented composition-driven mixed-scene assembly:
44+
- Resolves composition references to asset documents through a shared document lookup
45+
- Validates referenced documents before composition
46+
- Merges scene assets with conflict detection for duplicate IDs with mismatched type/path
47+
- Applies runtime inclusion filtering (`gameplay`, optional `debug`, excludes `editor-only`)
48+
- Emits composed scene output with explicit tool-to-engine mappings attached
49+
50+
Tests added:
51+
- `tests/tools/RenderPipelineContractAll4Tools.test.mjs`
52+
- valid contract acceptance
53+
- invalid contract rejection
54+
- deterministic stage/layer/item ordering
55+
- composition assembly and missing-reference rejection
56+
57+
Test harness integration:
58+
- Updated `tests/run-tests.mjs` to include `RenderPipelineContractAll4Tools` run target
59+
60+
Docs/report updates required by apply:
61+
- Updated `docs/dev/change_summary.txt`
62+
- Updated `docs/dev/validation_checklist.txt`
63+
64+
Scope guardrails honored:
65+
- No unrelated refactors
66+
- No sample logic used as reusable runtime implementation
67+
- No implementation code added to docs bundles
68+
- Changes kept surgical and architecture-safe

docs/dev/file_tree.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ David Quesenberry
33
04/05/2026
44
file_tree.txt
55

6-
BUILD_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS file tree
7-
8-
docs/pr/BUILD_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS.md
6+
docs/pr/APPLY_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS.md
97
docs/dev/codex_commands.md
108
docs/dev/commit_comment.txt
119
docs/dev/change_summary.txt

docs/dev/validation_checklist.txt

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,49 @@ David Quesenberry
33
04/05/2026
44
validation_checklist.txt
55

6-
BUILD_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS validation checklist
7-
8-
[x] Docs-only bundle created
9-
[x] No implementation code included
10-
[x] PLAN_PR -> BUILD_PR -> APPLY_PR workflow honored
11-
[x] One PR purpose only retained
12-
[x] Shared contract envelope formalized
13-
[x] Shared metadata schema formalized
14-
[x] Shared asset schema formalized
15-
[x] Shared layer schema formalized
16-
[x] Shared item schema formalized
17-
[x] Tile Map Editor schema documented
18-
[x] Parallax Editor schema documented
19-
[x] Sprite Editor schema documented
20-
[x] Vector Asset Studio schema documented
21-
[x] Render pipeline stages formalized
22-
[x] Deterministic render bucket ordering formalized
23-
[x] Engine mappings locked explicitly
24-
[x] Validation rules documented with rejection policy
25-
[x] Allowed defaults restricted and documented
26-
[x] Composition document schema documented
27-
[x] Codex execution constraints tightened
28-
[x] 2D-only scope preserved
29-
[x] No unrelated architecture redesign introduced
6+
APPLY_PR_RENDER_PIPELINE_CONTRACT_ALL_4_TOOLS validation checklist
7+
8+
Contract/runtime path
9+
[x] Shared runtime contract path implemented for `toolbox.render.asset-document`
10+
[x] Shared runtime contract path implemented for `toolbox.render.composition-document`
11+
[x] One formal staged pipeline exists: load/validate/normalize/resolve/compose/sequence/render
12+
13+
Validation and errors
14+
[x] Contract envelope/version validation implemented
15+
[x] Producer tool allowlist and locked mapping checks implemented
16+
[x] Asset/layer/item/entity schema validation implemented
17+
[x] Duplicate ID and reference validation implemented
18+
[x] Invalid contracts rejected without silent repair
19+
[x] Structured error shape implemented (`stage`, `code`, `path`, `message`, `details`)
20+
21+
Deterministic sequencing and composition
22+
[x] Deterministic render bucket ordering implemented
23+
[x] Stable tie-break ordering implemented
24+
[x] Composition manifest references are validated and resolved
25+
[x] Mixed-scene composition assembly implemented
26+
27+
Tool mapping lock
28+
[x] Tile Map Editor mapping rules enforced
29+
[x] Parallax Editor mapping rules enforced
30+
[x] Sprite Editor mapping rules enforced
31+
[x] Vector Asset Studio mapping rules enforced
32+
33+
Automated tests
34+
[x] Focused test added: `tests/tools/RenderPipelineContractAll4Tools.test.mjs`
35+
[x] Valid-document acceptance test passes
36+
[x] Invalid-document rejection test passes
37+
[x] Stage/layer/item ordering test passes
38+
[x] Composition assembly test passes
39+
[x] Missing composition reference rejection test passes
40+
[x] Test included in `tests/run-tests.mjs`
41+
42+
Execution evidence
43+
[x] `node --check tools/shared/renderPipelineContract.js`
44+
[x] `node --check tests/tools/RenderPipelineContractAll4Tools.test.mjs`
45+
[x] `node --check tests/run-tests.mjs`
46+
[x] Targeted test run passed (`PASS RenderPipelineContractAll4Tools`)
47+
48+
Scope safety
49+
[x] No unrelated runtime/tool refactor performed
50+
[x] No reusable logic moved into samples
51+
[x] No docs bundle implementation leakage

0 commit comments

Comments
 (0)