Docs / DESKTOP-SWARM-REVIEW
Desktop swarm review: live Kiri lifecycle evidence (C2)
Source: docs/DESKTOP-SWARM-REVIEW.md
Reviewed ref: main @ 536879a08b8150d77bed6e16ddfe53f9960bbc41 (2026-11-28).
Scope: this is a read-only review of the committed evidence. I did not run the desktop app or the live test against Kiri, and I did not restart the Kiri daemon. The only file this review adds is this one.
Verdict
| Claim | Verdict |
|---|---|
The desktop control plane (Electron bridge → SDK client → Python API → Kiri) drives up / status / down against a real Kiri container, and the player's HTTP route serves its assets |
PASS (narrow, historical), from one recorded run at 2026-11-28T04:14Z |
| The desktop shows a playable view of the game (a rendered frame, input changing game state, audio) | UNPROVEN |
Evidence reviewed
tests/desktop/LIVE_KIRI_EVIDENCE.mdandtests/desktop/kiri-live-lifecycle.test.cjs, added inf6ce65f169f5a683f37a70e175b7fd65ba9daaed.desktop/src/main.cjs,desktop/src/renderer.js,desktop/src/python-api-bridge.cjsonmain.docs/REPORT-INTEGRATION.md(closeout follow-up) anddocs/FINAL-EVIDENCE-MATRIX.md(historical snapshot header).- Later runtime changes:
c99b4ded6a576f52e54f7d8ee850892add1bfb13andbaddf2b059f495666d56c865803c7c1ecd2126c0.
Why the control plane passes
- Same code path as the app. The test builds its client with
createGameComposerClient(createPythonApiTransport({ repositoryRoot })).desktop/src/main.cjsbuilds the client the same way in itslifecycle:runIPC handler. The test also passes the same{ configPath, projectDirectory }options shape. - The full lifecycle is checked by assertions, not only logged.
upmust return a URL.statusmust matchnes: runningand contain that same URL. In afinallyblock,downmust matchnes: removedand the nextstatusmust matchnes: absent. - Asset delivery is checked.
/,/jsnes.jsand/rommust each return HTTP 200 with a non-empty body. The recorded run returned 3,544 B of HTML, 135,545 B of JS and 40,976 B for the ROM, using the rootgamecomposer.yml(NES, 8-Bit Table Tennis, pinned SHA-256). - Cleanup works. The container was removed and
statusreported it absent. Saves were reported as preserved.
Limits on the pass
It predates the current runtime. The run is recorded against
f6ce65f. Two commits later changed the lifecycle code ingamecomposer/runtime.py:c99b4denow requires two consecutive 2xx responses before the player counts as ready, and fails if a browser-output service has no published URL.baddf2breplaced theps --allpre-check withcontainer inspect.
Nothing on
mainshows the live test passing again on the current runtime.It may not reproduce now.
docs/REPORT-INTEGRATION.mdrecords that a later boundedgamecompose uptimed out after about 180 s and created no container. It calls the "external Kiri container-create hang" the current execution gate. The 04:14Z pass is a historical observation, not a claim about the current state.It never opened an Electron window. The test is a Node
node:testthat loads the bridge module directly. It does not launch Electron, the renderer, preload IPC or theproject:opendialog, so those wiring pieces are covered only by the unit tests (desktop/test/*.test.cjs, 5/5 perREPORT-INTEGRATION.md).It covers one host and one config. macOS with a local Kiri daemon, NES only. Linux, Windows and SteamOS hosts, and SNES and PS3, have no desktop lifecycle evidence.
The live test is opt-in. It runs only with
GAME_COMPOSER_LIVE_KIRI=1, so CI and default test runs skip it.
The playable-view gap
The desktop has no playable view yet, and the code shows why:
- The renderer has no place to show the game.
desktop/src/renderer.jswrites the lifecycle result string (for examplenes: started http://127.0.0.1:57492/) into a text element. Nothing in it embeds or opens the player URL: no<webview>, no<iframe>, noBrowserWindow.loadURLand noshell.openExternal. Even with a perfect lifecycle, a desktop user only sees a URL as text. - No frame was captured.
LIVE_KIRI_EVIDENCE.mditself says no visual frame was captured. The browser access host was unavailable, native window clicks returnednoWindowsAvailable, and binding Chrome timed out. - HTTP 200 does not mean the game ran. A 200 on the HTML, JS and ROM shows the bytes were delivered. It does not show that jsnes decoded the ROM, drew to the canvas, responded to input or played audio. That matches the evidence-matrix rule that a
PASSnever means "playable". - The nearest playability evidence is not desktop evidence. The Config B NES narrow PASS (
examples/nes/PLAYABILITY-EVIDENCE.md) is a host-local browser run. It used neither Kiri nor the desktop shell. The SNES result is INCONCLUSIVE.
What closing the gap would take
These are recommendations only; none of them was done in this review.
Re-run the live test on current
mainonce the Kiri container-create hang is resolved, and record the commit SHA next to the timestamps.Add a player surface to the desktop. For example, a sandboxed
BrowserWindowor<webview>loading theupURL, restricted tohttp://127.0.0.1:<port>/, withcontextIsolationon and no Node access.Capture desktop-driven evidence:
- Electron launched, project opened, Up clicked.
- A screenshot of a rendered, non-blank NES frame inside the desktop window.
- An input sequence with before and after frames showing the game state changed.
- Down clicked, and
statusreports absent.
Hash the captures and commit them next to
LIVE_KIRI_EVIDENCE.md.Keep the claims separate. Until step 3 is done, the desktop row should read: "control plane PASS (historical, f6ce65f); playable view UNPROVEN".

