Skip to content

docs/runtime_imports: XAccessibilityImpl and XLauncherImpl are served (EGEN-RUNTIME-IMPORTS-SERVED) - #7677

Open
evilclanker9000 wants to merge 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/7-runtime-imports-served
Open

evilclanker9000 wants to merge 2 commits into
ItsNotRexed:mainfrom
evilclanker9000:deepseek/7-runtime-imports-served

Conversation

@evilclanker9000

@evilclanker9000 evilclanker9000 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The retail executable's class table in docs/runtime_imports.md still marked XAccessibilityImpl and XLauncherImpl as not served, and the paragraph under it said three classes were unserved and named #4235/#4248 as the PRs that would serve two of them. Both are already served on main: runtime/shims/xgameruntime_offline.cpp answers QueryApiImpl for kAccessibilityClass (:532) and kLauncherClass (:622). Only XAppCaptureImpl is still unserved (#4307). The page pointed shim work at two classes that need none.

Measured with the repository's own tool on the retail executable:

python -I tools/gdk_runtime_calls.py <game dir>/game_scarlett_master.exe --out <scratch>
  thunks=161 referenced=158 classes=17 not-served=XAppCaptureImpl not-served-referenced=XAppCaptureImpl

So the Served cells for those two rows flip to yes, the sentence names the one class that is left, and the section's measurement commit is re-dated (0d31cdd) because the numbers were re-measured. The speech-synthesizer and launcher slot measurements are kept.

The test

A new test keeps the column in step with the shim sources, using the same reading the tool uses (every constexpr GUID k...Class in runtime/shims/xgameruntime*.cpp). It also checks that the "The one that is not: ..." sentence names exactly the unserved rows, and exercises the checker on a table with one wrong cell.

Before (docs/runtime_imports.md reverted to main, test in place):

python -I tests/test_runtime_imports_classes.py
..F.
FAIL: test_the_served_column_matches_the_shims
AssertionError: Lists differ: ['XAccessibilityImpl: the page says not served, the shims serve it',
 'XLauncherImpl: the page says not served, the shims serve it'] != []
Ran 4 tests ... FAILED (failures=1)

After:

python -I tests/test_runtime_imports_classes.py
....
Ran 4 tests ... OK

Also on the rebased tree: python -I tests/test_docs_table_rows.py (OK), python -I tests/test_docs_repeated_lines.py (OK), python -m compileall -q tests/test_runtime_imports_classes.py (OK), python -I scripts/check_no_game_data.py tests/test_runtime_imports_classes.py docs/runtime_imports.md (clean).

No GPU needed. No game data is added: the test reads only tracked files, and this text carries counts only.

Notes

  • I did not add the two classes' shims; they exist on main already. This only brings the page (and its prose) back in line with them, and makes that stay true.
  • The section is tied to a main commit, so I re-dated it to the commit I measured instead of leaving a date whose sources no longer match the column. The thunk, referenced and class counts came out identical to the old measurement.
  • The checker takes the class id from tools/gdk_runtime_classes.json and the served set from the shims, so it needs neither the executable nor a GPU and runs in CI.

AI-assisted.

… (RT-5)

runtime/shims/xgameruntime_offline.cpp serves both classes through QueryApiImpl (kAccessibilityClass at :532, kLauncherClass at :622), so the executable's class table no longer lists them as unserved and only XAppCaptureImpl is left (open pull request ItsNotRexed#4307). Re-measured with tools/gdk_runtime_calls.py on the retail executable: 161 thunks, 158 referenced, 17 classes.
The table's Served column and the sentence naming the unserved classes are answers about runtime/shims, which changes without the page. Compares both with tools/gdk_runtime_calls.py's served_classes() over runtime/shims/xgameruntime*.cpp, and exercises the checker on a table with one wrong cell so a check that accepts everything cannot pass. No game files, no GPU.
@neoisg8

neoisg8 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Independent verification on Windows 11 x64 (Python 3.14.0rc2, CPU-only; pure synthetic fixtures, zero game data).

Verification & Negative Controls

  1. Negative control reproduction on origin/main (acccd0f1e):
    • On origin/main, docs/runtime_imports.md marked both XAccessibilityImpl and XLauncherImpl as no under Served and listed three classes as unserved.
    • Cross-checking runtime/shims/xgameruntime_offline.cpp showed both classes are served (kAccessibilityClass at line 532, and kLauncherClass at line 622).
    • Running the checker against origin/main's doc accurately caught the discrepancies:
      ['XAccessibilityImpl: the page says not served, the shims serve it',
       'XLauncherImpl: the page says not served, the shims serve it']
      
  2. With PR docs/runtime_imports: XAccessibilityImpl and XLauncherImpl are served (EGEN-RUNTIME-IMPORTS-SERVED) #7677 applied:
    • Both rows in docs/runtime_imports.md correctly reflect yes, and the prose accurately notes that only XAppCaptureImpl remains unserved.
    • python -I tests/test_runtime_imports_classes.py passes all 4/4 tests in 0.03s, OK.
    • The test's self-test (test_the_checker_catches_a_wrong_cell) confirms the validator rejects erroneous marked states.
  3. Hygiene & clean-room checks:
    • Related doc suites all pass: test_docs_table_rows.py (2/2 OK), test_docs_repeated_lines.py (2/2 OK), test_docs_table_ids.py (2/2 OK).
    • python -m compileall -q tests/test_runtime_imports_classes.py: clean.
    • python -I scripts/check_no_game_data.py tests/test_runtime_imports_classes.py docs/runtime_imports.md: clean.
    • git diff --check: clean (0).

LGTM. Approved.

AI-assisted.

@morodirule

Copy link
Copy Markdown

Tested 0343b4e on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. tests/test_runtime_imports_classes.py 4/4 OK; docs suites (table_rows, repeated_lines, table_ids) OK; compileall clean; check_no_game_data clean. Shim claim verified in source (kAccessibilityClass/kLauncherClass answered by QueryApiImpl). Negative control: doc reverted two commits → exactly the 2 named mismatches; restored, green. No game files. AI-assisted.

@garuspl

garuspl commented Nov 23, 2026

Copy link
Copy Markdown

Tested 0343b4e on Windows 11 (CPU only, no GPU needed): pass

Windows 11 Pro, Python 3.14.7, no GPU or game files involved; pytest/numpy/Pillow pinned from tests/requirements.txt in a fresh venv. Method: PR head merged onto main bf85ff7, the PR's test files run with python -m pytest before and after the merge, plus python -m compileall -q on the changed files (clean).

  • tests/test_runtime_imports_classes.py (new): 4 passed.

AI-assisted (Claude Code, Claude Opus 5.5).

@airp1ane

Copy link
Copy Markdown
Contributor

Tested 0343b4e on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass.

Ran the test files this PR adds or changes, from a clean checkout of the PR head: test_runtime_imports_classes.py - all exit 0.

AI-assisted (Claude Code).

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.

5 participants