@@ -6,38 +6,95 @@ APPLY_PR_DEBUG_SURFACES_SERVER_CONTAINERIZATION.md
66# APPLY_PR_DEBUG_SURFACES_SERVER_CONTAINERIZATION
77
88## Apply Intent
9- Apply the minimal Sample A server containerization defined by the BUILD doc.
10- This APPLY step is code/runtime work for Codex, not documentation work for ChatGPT.
9+ This is a docs-only APPLY bundle for the completed Codex build/output.
10+ Use it to confirm acceptance, validate scope, and finalize the PR cleanly.
11+
12+ ## Boundary
13+ - ChatGPT did not write code here.
14+ - Codex already produced the code/runtime delta bundle.
15+ - This APPLY doc is for acceptance, validation, commit discipline, and tracker finalization only.
16+
17+ ## Expected Codex Outputs
18+ The completed build should already contain code/runtime artifacts for:
1119
12- ## In Scope Files
1320- ` games/network_sample_a/server/Dockerfile `
1421- ` games/network_sample_a/.dockerignore `
1522- ` games/network_sample_a/server/docker-compose.yml `
1623- ` games/network_sample_a/server/README.md `
17- - ` games/network_sample_a/server/networkSampleADashboardServer.mjs ` only if required for env-safe host/access compatibility
18- - ` docs/pr/BUILD_PR_DEBUG_SURFACES_SERVER_CONTAINERIZATION.md `
19- - ` docs/pr/APPLY_PR_DEBUG_SURFACES_SERVER_CONTAINERIZATION.md `
20- - ` docs/dev/codex_commands.md `
21- - ` docs/dev/commit_comment.txt `
22- - ` docs/dev/next_command.txt `
23- - ` docs/dev/reports/change_summary.txt `
24- - ` docs/dev/reports/file_tree.txt `
25- - ` docs/dev/reports/validation_checklist.txt `
26- - ` docs/roadmaps/NETWORK_SAMPLES_PLAN.md ` with bracket-only edits only
27-
28- ## Hard Rules
29- - no engine-core changes
30- - no dashboard mutation features
31- - no auth redesign
32- - no orchestration stack
33- - no unrelated runtime refactors
34- - no placeholder docs
35- - no roadmap structure changes
36-
37- ## Acceptance
38- - Dockerfile builds Sample A dashboard server image
39- - compose file runs the same service contract
40- - env vars are documented and honored
41- - health route works
42- - README is actionable
43- - roadmap Track U items update by bracket-only edits
24+ - ` games/network_sample_a/server/networkSampleADashboardServer.mjs ` only if required for env-safe host/access support
25+
26+ ## Acceptance Criteria
27+ Accept this PR only if all of the following are true:
28+
29+ ### Container Artifacts
30+ - Dockerfile exists under ` games/network_sample_a/server/ `
31+ - ` .dockerignore ` exists under ` games/network_sample_a/ `
32+ - compose file exists under ` games/network_sample_a/server/ `
33+ - README exists under ` games/network_sample_a/server/ `
34+
35+ ### Scope Control
36+ - no engine/core files changed
37+ - no dashboard mutation/admin features added
38+ - no transport redesign occurred
39+ - no unrelated sample/game refactors occurred
40+
41+ ### Runtime Contract
42+ - container targets the existing Sample A dashboard server runtime
43+ - host/port/env usage matches the BUILD blueprint
44+ - health route remains:
45+ - ` /admin/network-sample-a/health `
46+ - container port contract remains:
47+ - ` 4310 `
48+
49+ ### Documentation Contract
50+ README should contain:
51+ - docker build command
52+ - docker run command
53+ - compose command
54+ - mapped port explanation
55+ - health URL
56+ - env var meanings
57+ - logging expectation (stdout/stderr only)
58+
59+ ## Required Validation
60+ ### Required checks
61+ - ` node --check games/network_sample_a/server/networkSampleADashboardServer.mjs `
62+
63+ ### If Docker is available
64+ - ` docker build -f games/network_sample_a/server/Dockerfile games/network_sample_a -t network-sample-a-dashboard `
65+ - ` docker compose -f games/network_sample_a/server/docker-compose.yml up --build `
66+ - verify:
67+ - health route responds
68+ - mapped port is correct
69+ - container starts without extra runtime changes
70+
71+ ## Roadmap Finalization Rule
72+ Only update bracket states.
73+ Do not change wording, ordering, headings, or structure.
74+
75+ ### docs/roadmaps/NETWORK_SAMPLES_PLAN.md
76+ Set these to ` [x] ` if Codex output satisfies acceptance:
77+ - ` Dockerfile for server `
78+ - ` .dockerignore `
79+ - ` Environment variable contract `
80+ - ` Local run command `
81+ - ` Compose-ready service definition `
82+ - ` Port mapping rules `
83+ - ` Health/readiness check `
84+ - ` Logging/output expectations `
85+ - ` Container debug notes `
86+
87+ ### docs/roadmaps/BIG_PICTURE_ROADMAP.md
88+ No changes unless there is an existing exact matching item that only needs a bracket-state change.
89+
90+ ### docs/roadmaps/PRODUCTIZATION_ROADMAP.md
91+ No changes in this PR.
92+
93+ ## Commit Guidance
94+ Commit only after:
95+ - code/runtime outputs are present
96+ - validation passes or acceptable validation notes are documented
97+ - roadmap bracket states are updated surgically only
98+
99+ ## Recommended Commit Comment
100+ Apply Sample A server containerization artifacts and finalize Track U checklist states without engine-core changes.
0 commit comments