Skip to content

docs: the executable's import table is measured, not unknown (RT-5) - #8216

Closed
TheAirborneCoder wants to merge 1 commit into
ProjectLeonida:mainfrom
TheAirborneCoder:docs/exe-imports-measured
Closed

TheAirborneCoder wants to merge 1 commit into
ProjectLeonida:mainfrom
TheAirborneCoder:docs/exe-imports-measured

Conversation

@TheAirborneCoder

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue: claim.

docs/runtime_imports.md ends "What this proves and what it does not" with:

The executable's own imports are unknown. MicrosoftGame.Config names game_scarlett_master.exe; the package here does not contain it, so its import table cannot be measured yet.

That contradicts §The retail executable (RT-5) in the same file, which has measured them, and the executable is available now. The bullet becomes what the test actually does not cover (pe_loader_test maps the package's images), with a pointer to the section that measures the executable itself.

The section's dry-run counts are left alone: #7362 and #7539 already edit them, and the current pair at main dde82f27e is shim=61 host=432 module=72 unimplemented=22 (reported in the same coordination comment), not the table's 53/432/72/30.

No game data: the diff quotes nothing from the package or the executable.

Tested (Windows 11 26200, Python 3.14):

  • python -I tests/test_docs_links.py: 7 tests, 1 pre-existing failure that is also on clean main (docs/dev-tools.md's ../runtime/README.md#a-600-frame-headless-guest-scene and docs/gpu_test_results.md's missing gpu-test-results/RX9070GRE.txt); the new #the-retail-executable-rt-5 anchor resolves.
  • python -I tests/test_docs_repo_paths.py, tests/test_docs_repeated_lines.py, tests/test_docs_list_items.py: pass.

AI-assisted (Claude Code).

@devnull34 devnull34 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verified via Tier 2 Free Cloud & clean-room review: Accurately updates docs/runtime_imports.md to record that the retail executable's import table has been measured in RT-5 rather than remaining unknown.

@molodayamama

Copy link
Copy Markdown
Contributor

I verified the edited section at 03a8d5869e5fd9effcea2588892191a04e34c5d9 using the repository's anchor parser on Windows. The new internal link resolves to #the-retail-executable-rt-5, and the stale claim that the executable's own imports are unknown is gone. This checks the documentation and its link; I did not repeat the executable measurement.

AI-assisted verification.

@tupacfan04 tupacfan04 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The old “imports unknown” bullet is correctly removed and the anchor resolves, but the replacement overstates the dry run and leaves the same stale claim/counts elsewhere.

  1. The dry run does not list every bound import. The new sentence says the RT-5 section’s dry run “lists every import the loader binds” (docs/runtime_imports.md:641-643), but runtime/src/main.cpp:201-210 prints per-import names only for Unimplemented and Shim; host/module imports are only in the summary counts (:197-200). The doc’s own Reproduce sample (:23-32) shows shim=4 host=53 with only the four shim lines printed. Say the table classifies every import and the dry run names the shim/unimplemented ones.

  2. Another doc still says the executable cannot be measured. docs/xcl_compare.md:74 says “the executable is not available to measure, so they are leads, not known needs” — the same stale claim this PR removes from runtime_imports.md. Update it to point at runtime_imports.md#the-retail-executable-rt-5 and say the kernelx.dll names are not in the executable's measured table, or remove the “not available” clause.

  3. The linked RT-5 counts are stale and internally inconsistent. docs/runtime_imports.md:145 has the executable row 53 | 432 | 72 | 30; :168 says “the same dry run lists 23”; :172 says “none of the 30 unimplemented imports is reached”; the PR body says current main is 61 | 432 | 72 | 22. The module count 72 and total 587 are consistent, but the shim/unimplemented split is not. Either update the table and lines 168/172 to 61/432/72/22, or add a caveat to the new bullet that the table is the 1cc6e3c1 run and current main is 61/432/72/22 (noting #7362/#7539 also edit these).

Clean: the new anchor matches ## The retail executable (RT-5) at line 127, the package/test relationship is correct, and the old claim is removed. Docs/code-read only; no game files. AI-assisted (OpenCode).

@TheAirborneCoder

Copy link
Copy Markdown
Contributor Author

Thanks @tupacfan04 — updated at 691a0a107 (rebased onto d9aa42a16):

  1. Dry-run wording (docs/runtime_imports.md:651-655): changed to say the dry run classifies every import the loader binds (summary counts) and names the shim and unimplemented ones, matching runtime/src/main.cpp:197-210.
  2. docs/xcl_compare.md:74: left untouched here because open PR docs/xcl_compare: the executable's XMem/DStorage imports are measured #8284 already updates that line against the retail executable measurement.
  3. RT-5 count drift: added the caveat directly in the bullet (1cc6e3c1 recorded 53 / 432 / 72 / 30; re-measured with gta6rt --dry-run on our own 1.0.2.1 executable at d9aa42a16 after d3d12_xs: D3D12ConfigureVirtualMemoryX shim (first unimplemented call of the title) #6792, xmem: serve the seven missing imports (physical pages, default allocators, XMemIsToolsMemAvailable); XMemVirtualAlloc takes 2 MiB pages and placeholders #6919 and runtime: xg_xs.dll shim, XGCreateTextureComputer and XGSuggestSwizzleMode as traced E_NOTIMPL (RT-489) #6891, it reports 63 / 432 / 72 / 20, leaving L145/168/172 conflict-free for docs: the unimplemented import count is 29, not 30 — #6792 serves D3D12ConfigureVirtualMemoryX #7362 and PROC-407: update docs/runtime_imports.md to mark D3D12ConfigureVirtualMemoryX as served #7539).

Tested on Windows 11 (MSVC 19.51, Python 3.14): gta6rt --dry-run against the 1.0.2.1 executable, test_docs_repo_paths.py, test_docs_repeated_lines.py, test_docs_list_items.py, test_text_encoding.py, test_text_tables.py, and check_no_game_data.py. No game data quoted. AI-assisted.

@YordiLorenzo

Copy link
Copy Markdown

Tested 691a0a1 on Linux, Python 3.14.4: pass (docs read)

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.

6 participants