Docs / roadmap

Game Composer roadmap

Source: docs/roadmap.md

Status: sequence with implementation status recorded at commit 321e188. The schema/validator (Phase 1) and CLI + Kiri runtime adapter (Phase 2) are implemented; Phase 0 evidence and the SDK/desktop/web/streaming milestones remain open. Dates and effort estimates are intentionally omitted until the first capability spike is measured. Review findings R2 and R5 are resolved with real artifacts in REVIEW-NOTES.md.

Principles

  • Prove runtime and device access before building polished UI around it.
  • Keep the manifest versioned and runtime-neutral; make backend capabilities explicit.
  • Separate game-library management, emulation, local runtime execution, and remote streaming.
  • Treat games, firmware, emulator images, and manifests as untrusted input.
  • Use public source and docs for architecture research; use REA only where behavior depends on a shipped binary or runtime evidence.
  • Track docs/spec decisions separately from implementation evidence.

Implementation status at 321e188

Phase Status Real artifact
0 — feasibility spike Open — no E2E report Kiri container evidence in PLATFORM-MATRIX.md; no launch/input/display record
1 — manifest and validation core Implemented specs/game-compose.schema.json, gamecomposer/core.py (jsonschema, path/cycle checks)
2 — CLI and local runtime adapter Implemented; E2E verification open gamecomposer/cli.py, api.py, runtime.py; config executed on both examples
3 — SDK and adapter contract Scaffold sdk/ TypeScript types and tests; Python RuntimeAdapter facade
4 — desktop and browser control Scaffold / proposed desktop/ Electron shell; no host service or web app at this commit
5 — interactive streaming Not started —
6 — compatibility and distribution Not started —

"Implemented" means the code exists and config was executed against the NES and SNES examples; it does not mean an end-to-end session passed. See acceptance.md.

Phase 0 — feasibility spike (open; first engineering gate)

Goal: prove or disprove a complete local game session on a named host/runtime combination.

Work:

  • Select one host OS/architecture and one emulator with a redistributable homebrew test game.
  • Run the chosen emulator environment through the candidate runtime, initially Kiri where supported.
  • Measure whether the emulator can render smoothly with the available graphics path, produce audible output, receive controller input, write persistent saves, and shut down cleanly.
  • Record exact host/runtime/image/controller versions, setup, observed frame rate/input behavior, errors, and limitations.
  • Check whether a container can access only project-relative assets and declared save directories.

Definition of done: a reproducible written report and a repeatable start/play/input/audio/save/stop walkthrough on the declared target. A capability that was not exercised remains unsupported in the matrix. If Kiri cannot meet the minimum session contract, document the gap and compare another backend before building on top of it.

Gate: do not promise native acceleration, broad controller support, or browser streaming based on Docker/Compose compatibility alone.

Phase 1 — manifest and validation core (implemented)

Goal: establish the stable contract in Game Compose v0.1 and its schema.

Work: implement YAML/JSON parsing, schema validation, API-version handling, path canonicalization, project-root restrictions, image and resource validation, and readable diagnostics. Add representative valid/invalid examples. Specify capability negotiation and fail-closed behavior.

Definition of done: the same manifest produces deterministic normalized output; unknown fields, invalid paths, path escapes, missing inputs, invalid resource settings, and unsupported requested capabilities fail with clear diagnostics. No image is executed during validation.

Phase 2 — CLI and local runtime adapter

Goal: provide one local lifecycle with a Kiri adapter and an adapter boundary that can support alternatives.

Work: implement config, capability inspection, explicit up, ps, logs, stop, and down. Use argument vectors rather than shell strings; create only declared mounts; isolate networking by default; preserve declared save data; clean up ephemeral resources on stop. Keep Kiri-specific calls behind the adapter interface.

Definition of done: an E2E session follows the Phase 0 walkthrough through the CLI, reports capability failures before start, retains saves after down, and cleans up other resources. Verify a two-service manifest with dependency ordering, idempotent start, and isolated save directories. Run the same contract against a second fake or real adapter to show the manifest is portable. See acceptance and evidence.

Phase 3 — SDK and adapter contract

Goal: let integrations validate manifests and implement backends without duplicating semantics.

Work: publish a Rust core SDK for parsing/validation, normalized session plans, capability types, and a runtime adapter interface. Generate or maintain a TypeScript client/types package from the same schema and contract. Document versioning, errors, cancellation, and lifecycle behavior.

Definition of done: CLI and SDK agree on the same sample manifests and capability errors; schema/type compatibility is checked in CI; a small example adapter can satisfy the documented interface without importing Kiri implementation details.

Phase 4 — desktop and browser control surfaces

Goal: manage the same local session through a desktop app and a browser UI.

Desktop scope: project selection, manifest view/edit, validation and capability report, explicit launch/stop, status, logs, and controller visibility.

Web scope: a local authenticated host service exposes a narrow control API. The web app can display projects and session status and initiate approved lifecycle operations. It must not directly call the container socket or silently execute a manifest on page load.

Definition of done: desktop and web clients use the same service and manifest parser; an end-to-end run from each surface creates the same session behavior; permission boundaries and origin/session authentication are verified.

Phase 5 — interactive streaming

Goal: deliver an actual interactive remote/browser game session, only after local execution is reliable.

Work: select a transport for encoded video, audio, controller input, clocking, latency measurement, reconnects, and authentication. Keep its service and capability separate from the runtime adapter. Evaluate browser/WebRTC support and client constraints with a real client and gamepad.

Definition of done: repeatable browser E2E demonstrates video, audio, input round-trip, acceptable measured latency on a named network, disconnect/reconnect, and authenticated access. An HTTPS tunnel that only forwards a web port is not sufficient proof.

Phase 6 — compatibility and distribution

Goal: expand only from verified combinations and provide reproducible installation paths.

Work: test selected hosts, runtimes, emulators, GPU/audio/controller paths; publish signed or checksummed CLI/app artifacts; document upgrade/rollback, data migration, support policy, and component licenses. Add platform support as explicit matrix entries.

Definition of done: every advertised target has installation steps exercised from a clean machine and an E2E report; unsupported targets fail visibly; third-party notices and license obligations are reviewed before release.

Current risk register

Risk Why it matters Mitigation / decision gate
Kiri's Compose support is mistaken for game-device support Game sessions need rendering, input, and audio beyond container lifecycle. Phase 0 proves each capability on the exact host/runtime; do not infer it.
Kiri USB passthrough has a documented audio/video limitation Its docs say isochronous USB streams are not forwarded yet. This is specifically about USB passthrough, not all possible host audio routes. Test the actual output path independently; report the scope of any failure.
Web management is confused with browser streaming A web dashboard can control a local process without carrying interactive gameplay. Keep control plane and data plane as separate phases and acceptance criteria.
Game content rights and firmware distribution A tool could otherwise imply it provides or redistributes protected assets. User-supplied assets only in v0.1; no automatic downloads or bundled commercial content.
Runtime socket exposure or unsafe manifests A container/runtime endpoint is highly privileged, and manifests can request host resources. Local narrow API, explicit launch, least privilege, path checks, isolated network, and visible plan.
Runtime lock-in Kiri details could leak into the manifest and block alternate backends. Runtime adapter interface and capability negotiation in Phase 1/2.

Release evidence standard

For each compatibility claim, record the test target, software versions, device path, exact steps, result, and limitations. Label evidence as documented, unit/contract checked, or live E2E. Do not describe a mocked adapter, static build, successful image pull, web dashboard, or source-level inspection as proof of an interactive game session.

Back to all docs