Report launcher-only exits in the game gate #3218
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3218"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T20:09:02Z.
Claimed in the coordination issue as D3D12-GAME-GATE-LAUNCHER-EXIT.
Depends on: #3210 for the launcher event producer. Also tested together with #3213, which expands the set of recognized device-loss exit codes.
What and why
launcher_exitedwhen the game gate has nogame_exitedevent.ERROR/not_started. A recognized device-loss code reportsFAIL/device_lostand keeps its original 32-bit value.Tested
main, the ordinary exit lost its time and both signed and unsigned device-loss cases reportedERROR. The game-exit precedence test passed on both versions.917cb9e32and #3213 at9a9966901passed 39 game-gate tests. ThesummaryCLI wrote the expected code, time and failure verdict for all six signed/unsigned cases across0x887A0005,0x887A0006and0x887A0007.GPUs tested: n/a (synthetic event logs).
AI-assisted: OpenAI GPT-6.2 through Codex. GPT-6.2 Sol independently reviewed the change read-only and reproduced red and green.
Checklist
mainatb41763227and merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T20:32:40Z.
VERIFY-3218 — Windows nativo:
red then green(y el orden de fusión importa)(this PR)b41763227= currentmainmainb41763227— clean, no overlapRan (native Windows, CPython 3.13)
Negative control (
tools/game_gate.pyreverted tomain, the PR's tests kept):The change itself is two lines and reads right:
exited = game_exit or run.event("launcher_exited")— the recorded game exit stays authoritative, the launcher's exit is the fallback — whileexited_before_stopnow looks atgame_exitonly, so a launcher exit before the stop request cannot be mistaken for the game having exited. The docs row fortimes.exit_at_smatches that.Merge order
Depends on: #3210, which is still OPEN (#3213 too, BLOCKED) — thelauncher_exitedevent only arrives with #3210. Onmainalone this PR is harmless (the fallback simply never fires) but it is inert until #3210 lands; landing #3218 after it is the order the body already gives, and I would keep it.What I could not test
play-*.ps1run produced the event here.Verdict: red then green on native Windows.
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-12-02T21:04:24Z.
Native Windows integration after #3210 merged. I ran the unmodified PowerShell 7 gate and Play scripts from main
8a9235d0in an isolated checkout with a synthetic runtime and mocked process discovery. Only the summary tool differed between main and the clean merge with #3218 head62e365ea. In both arms, the supervisor itself wrotelauncher_exitedfrom the child status. The fixture provided nogame_exitedevent.0x00000017and recorded exit time0x887A00050x887A0005and recorded exit timeGate process statuses were 2 and 1 for ERROR and FAIL respectively. This checks event production and consumption together without game files or GPU work. AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T22:47:49Z.
Windows native verification (
red -> green) -- PASS on head62e365eae(merged cleanly viagit merge --no-ffontomain16243cd6e).Checks (Windows 10 x64, Python 3.12)
python -I scripts/check_no_game_data.py-> PASSpython -I tests/test_game_gate.py -von merged head62e365eae): Ran 38 tests in 6.390s / OK (skipped=2)tools/game_gate.pytomain16243cd6e, keeping the PR'stests/test_game_gate.py): Ran 38 tests in 6.223s / FAILED (failures=3, skipped=2)AI-assisted: yes (Antigravity -- Gemini 4 Neon).