Docs / OVERALL-REVIEW
Independent overall E2E and security review
Source: docs/OVERALL-REVIEW.md
Review target: 321e188727d82dca419181c143d700a8f66febc3 (feat: integrate Game Composer runtime and examples), reviewed 2026-11-27.
Scope: verify completion claims against committed artifacts and a live run; challenge false positives; identify remaining gates. This review adds no product source changes.
Verdict
The integrated commit contains a real Python manifest validator, Kiri CLI lifecycle adapter, browser NES server/player, SDK scaffold, and Python/Tk desktop client. A live local run confirms the default NES service builds/starts on Kiri and serves the player, emulator asset, and ROM. This is a runtime and asset-delivery smoke pass, not proof that a browser rendered the game, that input changed game state, or that audio/controller/save behavior works. The runbook in docs/acceptance.md and E2E strategy correctly require more evidence; no completed report or raw capture is committed.
Claim verification
| Claim | Committed artifact | Live evidence | Assessment |
|---|---|---|---|
| Python CLI validates manifests and manages Kiri lifecycle | gamecomposer/core.py, api.py, cli.py, runtime.py, pyproject.toml |
Installed project in a local venv; gamecompose config, up --no-open, status, and logs nes succeeded against local Kiri 0.2.2 (Kiri Engine 27.5.1, Darwin arm64 host / Linux arm64 guest). |
Verified narrowly: commands and service lifecycle path execute here. This does not verify all actions, dependency/error paths, or other hosts. |
| SHA-256 checked remote assets and browser NES example | examples/nes/gamecomposer.yml, examples/nes/image/{Dockerfile,serve.py,player.html} |
Fresh up returned http://127.0.0.1:50412/; /, /jsnes.js, /rom, /license returned HTTP 200. ROM was 40,976 bytes and SHA-256 05122457672f95fcf2ee518c3f37e506617725c2d031100b1b1c8b7785068ea3, matching the manifest. |
Verified delivery only. Browser automation was unavailable; no rendered frame, input response, audio, gamepad, or save/restore was observed. |
| Desktop is an unverified scaffold | gamecomposer/desktop.py implements Tk actions through the shared API; desktop/README.md describes a separate Electron shell. |
No desktop UI was run. | The README describes the Electron prototype but omits the implemented Python/Tk client. The Electron shell remains unwired. Neither desktop surface has live evidence. |
| SDK is a scaffold | sdk/src/config.ts, lifecycle.ts, sdk/test/sdk.test.mjs |
No SDK build/test run for this review. | Fairly described as not connected to a running host service. Its parser accepts generic mappings and does not validate the v0.2 schema. |
| Full local gameplay/E2E is complete | docs/acceptance.md, tests/e2e-strategy/STRATEGY.md, REPORT_TEMPLATE.md |
No completed report, frame captures, input evidence, or play session record exists in this commit. | Not demonstrated. The repo does not claim a completed E2E pass; do not upgrade the HTTP smoke test into a playability claim. |
The live run used a clean venv created from the committed pyproject.toml; no dependencies were available initially. It created the expected ignored .gamecomposer cache and examples/nes/data storage artifacts. The browser access host returned unavailable, so browser-rendered proof could not be collected. Existing unrelated Kiri containers were left untouched.
Findings and remaining gates
| ID | Severity | Finding and evidence | Gate |
|---|---|---|---|
| E1 | High | No E2E evidence crosses from HTTP delivery into actual game execution. player.html constructs JSNES only after a user click; the endpoint checks cannot show that it accepts the ROM, renders, responds to a key/gamepad, emits audible output, or persists a save. There is no completed tests/e2e-strategy/REPORT_TEMPLATE.md. |
Produce a report for a named host/browser/runtime with raw before/after frames and hashes, deterministic input, visible game response, audio/controller/save observations, and a fresh-session repeat; follow tests/e2e-strategy/STRATEGY.md and docs/acceptance.md. Until then mark gameplay INCONCLUSIVE. |
| S1 | High | Remote source validation checks the initial URL for HTTPS in gamecomposer/core.py, but urllib.request.urlopen in gamecomposer/runtime.py follows redirects without revalidating the final scheme or destination. A manifest-controlled HTTPS source can redirect to HTTP or a host-local target; SHA-256 protects bytes, not the network destination contacted. |
Restrict downloads to approved public destinations, reject redirects that downgrade HTTPS or resolve to loopback/private/link-local addresses, and add adversarial redirect/URL tests before accepting untrusted manifests. Relevant code: gamecomposer/core.py source normalization and gamecomposer/runtime.py _source_path. |
| S2 | High | Runtime containers use bridge networking and default container privileges; the Kiri run args in gamecomposer/runtime.py set CPU/memory and mounts but no explicit user, dropped capabilities, no-new-privileges, read-only root, or process limit. The browser service itself binds 0.0.0.0 in-container (examples/nes/image/serve.py), with host publication constrained to loopback. This is a local single-user boundary, not a hardened sandbox for untrusted images/manifests. |
Define/enforce a container hardening baseline and explicit egress policy (or document the trust assumption prominently); verify effective Kiri settings in a live negative test. The loopback host bind is a useful limit, but does not constrain guest egress or protect against a malicious image. |
| S3 | Medium | up treats an existing tagged build image as reusable (gamecomposer/runtime.py _build_if_needed) and fingerprints only manifest service data, not Dockerfile/context contents or resolved image digest. Editing a Dockerfile without changing the manifest can silently reuse stale code; mutable image tags likewise lack digest evidence. |
Fingerprint build context and record/verify immutable image identity; otherwise require an explicit rebuild policy and surface the effective digest before launch. |
| E2 | Medium | Runtime starts services in topological order, but _run_service returns after run/start without requiring the inspected container to be running or healthy. A fast-exiting prerequisite can therefore be followed by its dependent; current success text may say started even if state inspection failed or returned no usable state. |
Add readiness/exit checks and a dependency-failure E2E case. Keep process-running distinct from application health. See gamecomposer/runtime.py _run_service and invoke. |
| D1 | Medium | Committed docs contradict the implementation after integration: docs/architecture.md says no runtime/CLI/desktop is implemented; docs/roadmap.md says no milestone is implemented; docs/REVIEW-NOTES.md says no CLI/schema validator/runtime/player exists. Conversely, README calls the desktop an Electron shell without mentioning the implemented Python/Tk client. |
Reconcile status claims against commit 321e188727d82dca419181c143d700a8f66febc3; retain the explicit distinction between implemented code, smoke evidence, and unverified playability. |
Verified boundaries
gamecompose configis a no-launch validation/normalization path; schema validation is structural and path normalization follows it (gamecomposer/core.py).runtime.pyuses argument vectors, rejects project path escapes after resolution, validates source checksums, keeps save/user mounts separate, and publishes the example player on127.0.0.1at the host. These safeguards do not establish a hostile-input sandbox.- The schema permits
network.mode: bridge; this is broader than the older v0.1 spec's default-isolated/allowlist proposal. It is explicit in the v0.2 example, but no destination allowlist is implemented. docs/acceptance.mdexplicitly asks for save persistence, dependency failure, unauthorized browser access, and browser play checks. Those remain gates; there is no report showing them passed.- README links to
docs/user-guide.md,docs/GAMECOMPOSER-SPEC.md,docs/PLATFORM-MATRIX.md,docs/PLAYER-UX.md,docs/REVIEW-NOTES.md,tests/e2e-strategy/STRATEGY.md,tests/e2e-strategy/REPORT_TEMPLATE.md, anddesktop/README.mdall resolve in target commit321e188727d82dca419181c143d700a8f66febc3; the prior cross-worktree link concern is no longer applicable after integration. - No push, merge, or deploy was performed.

