Skip to content

docs: the 5-hour exe-day first-frame runbook - #6198

Closed
Kam471 wants to merge 4 commits into
ProjectLeonida:mainfrom
Kam471:exe-day-runbook
Closed

Kam471 wants to merge 4 commits into
ProjectLeonida:mainfrom
Kam471:exe-day-runbook

Conversation

@Kam471

@Kam471 Kam471 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Claimed in the coordination issue as: docs-only exe-day runbook for RT-5 (not a separately listed item in #6089; prepared for the exe-day task).

Depends on: none (docs only; it documents #5312, #4026, #5731, #1712, #5689, #6230 and #6351 as inputs).

What and why

Adds docs/exe_day.md, the timed runbook for the day the retail executable arrives: the pre-flight, the shader-corpus checks, the 0:00-5:00 trace/boot/device/draw/present triage, the evidence rules and the three fastest fallbacks. It complements docs/boot.md (formats and Q1-Q22) with the clock, the copy-paste command block and the decision points.

The review corrections and the final-loader update are applied:

  • Prefer gta6rt-final.exe; fall back to gta6rt-final-pre-xmem.exe, then to the trace/draw-only gta6rt.exe. The selector verifies the selected binary's byte count and SHA-256 and stages it with gta6rt_tls_host.dll and the three MSVC CRT DLLs.
  • The final was refreshed while this page was being prepared: the handover build is 6,679,552 bytes (A478…) and the current kit has 6,681,600 bytes (0D32…). Both carry all five strings and pass check_tiny_frame; the selector accepts either. gta6rt-final-pre-xmem.exe is 6,672,896 bytes (A5F6…), same minus xmem: serve XMemTransferMemory (RT-449) #6351; the intermediate gta6rt.exe is 6,456,320 bytes (4F2C…), trace/draw only.
  • The exact five-string check runs on the selected binary: LEONIDA_PRESENTX_SLOT, LEONIDA_CAPTURE, present-, XMemTransferMemory, SDL-release-3.4.20. The final has all five; pre-xmem has the three capture strings and SDL3 but not XMemTransferMemory; the intermediate has only SDL3.
  • XMemTransferMemory is a Series startup call used by public NetRumble/NativeAOT-Xbox bootstraps; xmem: serve XMemTransferMemory (RT-449) #6351 serves it, which is why gta6rt-final.exe is the default. A binary without it can stop before the device.
  • The all-imports pass uses a fresh timestamped directory and writes its own summary.json; pre-flight checks the 16 package modules, the boot-movie path (LEONIDA_GAME_DIR/LEONIDA_MOVIE, d3d12_boot_movie and bink_decode), the four VS_Bink_* corpus modules, and the overlay/save directories with a write probe.
  • §5.1 mentions discover-presentx-slot.ps1: it counts the XboxID3D12CommandQueue::SlotN lines, ranks candidates and prints the -PresentXSlot N relaunch. Its printed command calls launch-exeday.ps1, whose $bin still names the intermediate gta6rt.exe; the page says to point that at gta6rt-final.exe first.

No game data, traces, captures or logs are included. The page uses placeholders and says traces stay on the player's machine.

Tested

  • 42 documentation tests: the 33 test_docs_* tests and the 9 test_i18n_index tests, all with python -I.
  • tools/boot_trace.py: 20 unit tests, plus text and JSON reports on a synthetic tiny_frame trace.
  • Both gta6rt-final.exe builds (6,679,552 bytes / A478… and 6,681,600 bytes / 0D32…) pass check_tiny_frame.py and have all five strings. gta6rt-final-pre-xmem.exe (6,672,896 / A5F6…) is true for the three capture strings and SDL3, false for XMemTransferMemory; gta6rt.exe (6,456,320 / 4F2C…) is true only for SDL3.
  • Staged 1.0.2.1 corpus: 26,503 containers, 26,503 reached, 0 not translated, 0 failures.
  • A source Release build of 561b65a83 produced gta6rt.exe and gta6rt_tls_host.dll; run_tiny_frame, d3d12_present and xbox_present passed on it.
  • scripts/check_no_game_data.py exits 0; git diff --check clean.

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: docs only.)

@Kam471
Kam471 force-pushed the exe-day-runbook branch 2 times, most recently from 5606685 to 3b4ad12 Compare November 23, 2026 13:30
Adds docs/exe_day.md: pre-flight Release build and corpus checks, the timed 0:00-5:00 trace, boot, device, draw and present triage, the evidence rules and the three fallbacks. Indexed from docs/README.md.

Verified: 33 documentation tests, 20 boot_trace tests, a Release build, and run_tiny_frame, d3d12_present and xbox_present on an RTX 5070 Ti (driver 621.24). No game data.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PresentX/capture path described here as conditional is now implemented in #6230 (assist-presentx-capture, 7d52b0a9e):

  • LEONIDA_PRESENTX_SLOT=<n> (and optional Suspend/Resume slots) routes only the trace-named queue slot; unconfigured slots keep the old E_NOTIMPL refusal.
  • LEONIDA_CAPTURE=<dir> writes present-<n>-plane-<m>.ppm from the presented resource with no window or swapchain.
  • 12 passed / 1 skipped / 0 failed; present 70 frames; 0 VUIDs; 9/9 malformed calls return E_INVALIDARG without reading guard pages.

So once it lands, the runbook's PresentX branch can use these two env vars directly instead of the fallback wording.

@Kam471

Kam471 commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

Independent review, verified against the PR plus docs/boot.md, runtime/README.md, tools/boot_trace.py and the exe-day kit:

  1. The documented capture paths cannot produce the 22:00 frame artifact (highest risk). git grep -n LEONIDA_PRESENTX_SLOT is empty on both 561b65a83 and the delivered exe-day-3777 tree (366c2463b); a string scan of gta6rt.exe finds none of LEONIDA_CAPTURE, LEONIDA_PRESENTX_SLOT, present-. The only capture API is test-side (runtime/shims/d3d12_com.h:326-330, enable_capture/read_back). So exe_day.md:453-462,533,545,615-620 and launch-exeday.ps1:28-29,53 set inert variables and §5.2/§6.1 can never find a present-*.ppm. Gate 17:00 on landing a capture route or on accepting an offscreen-only artifact.

  2. exe_day.md:291-295 is not copy-pasteable: the copied §2.3 block begins with $runDir = Join-Path $run "run" (line 221), overwriting all-imports; that startup.jsonl already exists, so --trace exits 2 (docs/boot.md §2), and the block never writes the summary.json line 295 reads. Use a fresh dir there and add the boot_trace.py --json step.

  3. exe_day.md:45-47 builds the wrong loader: no -DLEONIDA_SDL3_FETCH=ON, so the GameInput shim is not compiled (runtime/CMakeLists.txt:398; runtime/README.md:173). The kit's working binary is the SDL3 build (MANIFEST "Shim: PRESENT"); rebuilding from §1.1 makes GameInputCreate a §3 blocker. Use the delivered binary and stage msvcp140.dll/vcruntime140.dll/vcruntime140_1.dll beside it (MANIFEST:24-26) and in build-prev (§1.1 copies only two files).

  4. Missing from §1.5: no pre-exe check for the Bink/boot-movie path (LEONIDA_MOVIE gates the Bink tests, runtime/README.md "PE-loader and Bink-decode tests"; corpus contains VS_Bink_* shaders) or for the package DLLs the loader must map before import triage begins.

@Kam471

Kam471 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator Author

Final-loader update in 603a787:

  • gta6rt-final.exe is preferred: the handover build 6,679,552 bytes / A478… and the current kit refresh 6,681,600 bytes / 0D32… are both accepted; both have all five strings and pass check_tiny_frame.
  • Fallbacks: gta6rt-final-pre-xmem.exe 6,672,896 / A5F6… (same minus xmem: serve XMemTransferMemory (RT-449) #6351), then the trace-only gta6rt.exe 6,456,320 / 4F2C….
  • The exact check on the selected binary covers LEONIDA_PRESENTX_SLOT, LEONIDA_CAPTURE, present-, XMemTransferMemory, SDL-release-3.4.20. Final = all five; pre-xmem = three capture + SDL3; intermediate = SDL3 only.
  • XMemTransferMemory is the Series startup call used by public NetRumble/NativeAOT-Xbox bootstraps; xmem: serve XMemTransferMemory (RT-449) #6351 serves it, so the final is the default.
  • discover-presentx-slot.ps1 is documented, including the caveat that launch-exeday.ps1's $bin still names the intermediate.

Verified: 42 documentation tests, 20 boot_trace tests, both final builds pass check_tiny_frame, staged corpus 26,503/26,503 reached with 0 failures, check_no_game_data.py exit 0, git diff --check clean.

Use the delivered SDL3 gta6rt.exe with its three MSVC CRT DLLs and the kit source tree, gate the frame attempt on the LEONIDA_PRESENTX_SLOT/LEONIDA_CAPTURE/present- strings in the exact binary, fix the all-imports block to use a fresh directory and write its summary, and add the package-DLL, boot-movie and overlay/save pre-flight checks.
The kit now ships gta6rt-final.exe (base ba4b0bd + ItsNotRexed#3777 + ItsNotRexed#5867/ItsNotRexed#5808/ItsNotRexed#5851 + ItsNotRexed#6230 @ 255efe0 + ItsNotRexed#6107/ItsNotRexed#6149 + runtime layer 7bce00b + ItsNotRexed#6351 XMemTransferMemory). Prefer it, fall back to gta6rt-final-pre-xmem.exe, then to the trace-only gta6rt.exe; verify the selected binary's hash and the five strings that decide capture and the Series startup path. Add the discover-presentx-slot.ps1 helper and its launch-exeday.ps1 bin caveat.
The kit's gta6rt-final.exe was refreshed after the handover from 6,679,552 bytes (A478...) to 6,681,600 bytes (0D32...). Both carry the five strings and pass check_tiny_frame; the selector accepts either and still prefers the final.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants