Docs / DESKTOP-E2E-EVIDENCE
Desktop E2E evidence
Source: docs/DESKTOP-E2E-EVIDENCE.md
SNES: Kit’s Rooftop Run
Run against the fresh desktop app and Kiri runtime:
GAMECOMPOSER_PYTHON=/tmp/gc-snes-black-venv/bin/python node tests/e2e-desktop/run.cjs snes 2
Root cause of the original SNES black screen
The original substitute was Pocket Bugs (snes-studio MIT example ROM, SHA-256 f1e3c67382b2de3a4dc25fffe0f026085977b0ab4169d9b5181b93674a69efad). Its FAIL baseline is committed under tests/e2e-desktop/artifacts/snes-pocket-bugs/ and isolates the cause to the ROM's own behaviour after Start, not to our runtime:
- Frames over time after input. Frames
10,11and20are byte-identical (fbe462ff…, 14 colours, dominant colour share 0.387) while the snes9x counter advances 253 → 683. After the mapped Start (Enter), frames21and22are byte-identical to each other (66ddfcb7…, 2 colours, dominant share 0.998) while the counter keeps advancing 1125 → 1375. About 66.2% of pixels change, but the result is a uniform black scene, not gameplay. - Capture path is not the cause. The same canvas element-screenshot path produced the recognisable 14-colour frame before input; a WebGL
preserveDrawingBufferor screenshot fault would have blackened that frame too. - Core/video path is not the cause.
tests/e2e-desktop/diagnostics/snes-core-variant.cjsreproduced the blank both with the defaultsnes9x-legacy-wasmand withsnes9x-wasmforced viaEJS_defaultOptions = { webgl2Enabled: 'enabled' }, so no shader or video-filter setting is responsible. Input was also observed reaching the core boundary throughwindow.__GC_SNES_INPUT__(gameManager.simulateInput) in the earlierexamples/snes/evidence-realdiagnostics. - Input map is correct.
EJS_emulator.defaultControllersreported3=enter,4–7=arrows,8=z; Start was delivered as trustedEnter, matchingcontrols.mapping(start: start,dpad: dpad,a: south). - Focus/pause is ruled out. The core counter keeps advancing through the blank and
pausedstayedfalse. - Button sweep.
tests/e2e-snes-real/artifacts/**exercised the full control set; only Start and A changed the frame, and both produced the same blank (P5.1–P5.3 indocs/EVIDENCE-SWARM.md).
No tested input sequence reached visible gameplay with that ROM. Since the cause is the game rather than our code, the substitute was replaced with an openly licensed SNES homebrew; the PASS gate was not relaxed. The direct WASM framebuffer was not read (the core-variant and boundary checks above served that role), and gamepad/audio were not measured.
Result: PASS, 2/2 fresh sessions. Both sessions loaded the EmulatorJS 4.2.3 snes9x core, fetched /rom, and advanced the core frame counter. The map dump was Start=Enter and Right=ArrowRight. After Start plus holding Right, input changed 22.56% and 22.79% of pixels; idle changed 0.12% and 0.42%. Each Kiri container was fresh and then stopped through the app; each was absent afterward.
Evidence is committed under tests/e2e-desktop/artifacts/snes-rooftop-run/: report.json, per-session JSON, and PNG captures at idle start/end, before input, after input, and after settle. The sessions prove visible input-correlated frame changes for the tested desktop route. Gamepad and audible output were not separately measured.
Candidate selection
Sure Instinct (MIT, Benny Schulte, source commit 90d70d4bfbf2921b2f8fee0c652523e2365598a7) loaded in snes9x and reached stage select after Enter, but its initial frame was black. OpenSNES Neon Breaker had a nonblank frame, but its animated ball changed roughly as many pixels during idle as during Right input. Kit’s Rooftop Run, from OpenSNES v0.56.0 at 079994ea6903d7bad19f66ed674c4afef8cff277, had nonblank frames, clear movement under Right, and CC0 music/effects; it was selected. Details and ROM provenance are in examples/snes/CANDIDATES.md and examples/snes/PROVENANCE.md.
Other check state
The desktop suite passed 81/81 tests with the configured Python bridge; npm run check passed. SDK tests passed 17/17. Python tests passed 125/125, excluding the explicitly excluded URL-source module. These are local checks, separate from the two-session runtime evidence above.

