root_sig_test: the versioned corrupt-checksum check asks the host first, as the unversioned one does (TEST-ROOT-SIG-VERSIONED-WIN10) #1719

Closed
qhukz13 wants to merge 1 commit from upstream-pr/1719 into main
qhukz13 commented 2026-11-25 09:33:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by qhukz13 on 2026-11-25T09:33:46Z.


Claimed in the coordination issue as: TEST-ROOT-SIG-VERSIONED-WIN10 (claim)

What and why

On Windows 10 19045 root_sig fails one check, versioned shim rejects Xbox flags with corrupt checksum. The
shim's helper refuses to rewrite and re-sign a blob whose DXBC checksum is corrupted and passes it to the host
unchanged, and that in-box D3D12CreateVersionedRootSignatureDeserializer accepts it. The unversioned deserializer
check further down already handles exactly this: it asks the host first and prints
SKIP host-vs-shim corrupted checksum rejection (this host accepts bad checksums) where the host accepts.

The versioned check now does the same: it probes the host's versioned deserializer with the same blob, asserts that
the shim rejects it where the host does, and prints a SKIP line otherwise. The shim is not changed.

(#235, carried over from old-pr/9968, targeted two other checks of this test; its change is already on main.)

Tested

GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, ctest -R "^root_sig$": fails on
main (FAIL versioned shim rejects Xbox flags with corrupt checksum), passes 3 of 3 with this branch, printing
SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums) and
root_sig_test: OK (0 failures). A host that rejects bad checksums keeps the assertion.

GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files.

AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5488725026 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1719). Originally posted by [qhukz13](https://github.com/qhukz13) on 2026-11-25T09:33:46Z. --- Claimed in the coordination issue as: TEST-ROOT-SIG-VERSIONED-WIN10 ([claim](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7158508340)) ### What and why On Windows 10 19045 `root_sig` fails one check, `versioned shim rejects Xbox flags with corrupt checksum`. The shim's helper refuses to rewrite and re-sign a blob whose DXBC checksum is corrupted and passes it to the host unchanged, and that in-box `D3D12CreateVersionedRootSignatureDeserializer` accepts it. The unversioned deserializer check further down already handles exactly this: it asks the host first and prints `SKIP host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` where the host accepts. The versioned check now does the same: it probes the host's versioned deserializer with the same blob, asserts that the shim rejects it where the host does, and prints a SKIP line otherwise. The shim is not changed. (#235, carried over from old-pr/9968, targeted two other checks of this test; its change is already on `main`.) ### Tested GeForce GTX 1050 Ti, NVIDIA 582.66, Windows 10 Pro 19045, MSVC RelWithDebInfo, `ctest -R "^root_sig$"`: fails on `main` (`FAIL versioned shim rejects Xbox flags with corrupt checksum`), passes 3 of 3 with this branch, printing `SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` and `root_sig_test: OK (0 failures)`. A host that rejects bad checksums keeps the assertion. GPUs tested: NVIDIA GeForce GTX 1050 Ti, driver 582.66, Windows 10 19045. No game files. AI-assisted: yes (Claude Code, with Antigravity for the implementation and the runs) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
PierreEbele commented 2026-11-25 18:04:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T18:04:22Z.


Reviewed 61bf6033 on arm64 Linux; root_sig_test itself needs Windows/MSVC/d3d12.dll, so it could not run here -
I ran the repo gates plus the probe below instead. Compiled the unmodified d3d12_xs_rootsig.cpp against a stub
header to confirm the premise (the helper refuses a corrupted-checksum blob, so the shim forwards it and mirrors
the host), then ran the check block extracted verbatim from your tree under two mock hosts: a rejecting host
asserts exactly as on main (PASS), and your 19045 host turns main's FAIL into the SKIP with no assertion lost.
check_no_game_data and the Linux configure pass. No findings.
AI-assisted review.
Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7170398844 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1719#issuecomment-7170398844). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T18:04:22Z. --- Reviewed 61bf6033 on arm64 Linux; root_sig_test itself needs Windows/MSVC/d3d12.dll, so it could not run here - I ran the repo gates plus the probe below instead. Compiled the unmodified d3d12_xs_rootsig.cpp against a stub header to confirm the premise (the helper refuses a corrupted-checksum blob, so the shim forwards it and mirrors the host), then ran the check block extracted verbatim from your tree under two mock hosts: a rejecting host asserts exactly as on main (PASS), and your 19045 host turns main's FAIL into the SKIP with no assertion lost. check_no_game_data and the Linux configure pass. No findings. AI-assisted review. **Recommendation:** Merge
zmasi commented 2026-11-28 21:24:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T21:24:54Z.


#1719 | head 61bf603378 (merged cleanly with main 1bc055e6c2) | ctest --test-dir runtime/build -C RelWithDebInfo -R "^root_sig$" --output-on-failure + simulated Win10 S_OK host-probe control | baseline & control: Windows 11 26200's in-box D3D12CreateVersionedRootSignatureDeserializer rejects the corrupted-checksum blob (FAILED(host_bad_hr)), keeping the versioned shim rejection assertion active, while under a S_OK host-accepting control main's unguarded check fails whereas this PR cleanly prints SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums) | green on PR+main: root_sig passes (0 failures) on both native Windows 11 D3D12 and the S_OK host-accepting control; check_no_game_data.py 0 violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246002123 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1719#issuecomment-7246002123). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T21:24:54Z. --- #1719 | head 61bf603378ba6cb52cf1d6bdb7211d8abde26174 (merged cleanly with main 1bc055e6c2dedaa0de23ec79d8c4007c1dff1fb3) | `ctest --test-dir runtime/build -C RelWithDebInfo -R "^root_sig$" --output-on-failure` + simulated Win10 `S_OK` host-probe control | baseline & control: Windows 11 26200's in-box `D3D12CreateVersionedRootSignatureDeserializer` rejects the corrupted-checksum blob (`FAILED(host_bad_hr)`), keeping the versioned shim rejection assertion active, while under a `S_OK` host-accepting control `main`'s unguarded check fails whereas this PR cleanly prints `SKIP versioned host-vs-shim corrupted checksum rejection (this host accepts bad checksums)` | green on PR+main: `root_sig` passes (`0` failures) on both native Windows 11 D3D12 and the `S_OK` host-accepting control; `check_no_game_data.py` `0` violations | Windows 11, MSVC 19.44, RTX 3090, Vulkan SDK 1.4.363.1 | AI-assisted: yes
OreoFR commented 2026-11-28 21:53:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:53:24Z.


Verified by OreoFR

  • Base: main c1ecf04ed + PR head 61bf60337; green run in a merge package of 15 PRs, no new ctest failure vs main
  • Test: ctest -R ^root_sig$
  • Red on main: OK
  • Green with the PR: OK
  • Verdict: NO RED (test-only PR; D3D12 on this host (Windows 11) already refuses the blob with a corrupt checksum, the Windows 10 19045 case is not exercised)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246346954 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1719#issuecomment-7246346954). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:53:24Z. --- **Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `61bf60337`; green run in a merge package of 15 PRs, no new ctest failure vs main - Test: `ctest -R ^root_sig$` - Red on main: OK - Green with the PR: OK - Verdict: NO RED (test-only PR; D3D12 on this host (Windows 11) already refuses the blob with a corrupt checksum, the Windows 10 19045 case is not exercised) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Tauwni commented 2026-11-29 13:07:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Tauwni on 2026-11-29T13:07:50Z.


Windows 10 + AMD complement. The runs above are Linux (static), Windows 11 and a merge package; none is on Windows 10's in-box D3D12, where this check is red.

Radeon RX 9060 XT (RDNA4), driver 32.0.23033.1002, Windows 10 Pro 22H2 19045.7846, in-box d3d12.dll, MSVC 14.44 RelWithDebInfo. Head 61bf60337 merged (no commit) into current main 3535eb5c4, merges cleanly. MEASURED, 3 runs each, ctest -R "^root_sig$":

  • main 3535eb5c4: fails 3/3, FAIL versioned shim rejects Xbox flags with corrupt checksum, root_sig_test: FAILED (1 failure).
  • main + 61bf60337: passes 3/3.

The same red and green held on the older main b6bf3aa0b. MEASURED, 3 runs each.

Verdict: READY. Conclusive A/B on Windows 10, test-only change.

Not checked by a second agent or human yet. AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7256310560 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1719#issuecomment-7256310560). Originally posted by [Tauwni](https://github.com/Tauwni) on 2026-11-29T13:07:50Z. --- Windows 10 + AMD complement. The runs above are Linux (static), Windows 11 and a merge package; none is on Windows 10's in-box D3D12, where this check is red. Radeon RX 9060 XT (RDNA4), driver 32.0.23033.1002, Windows 10 Pro 22H2 19045.7846, in-box `d3d12.dll`, MSVC 14.44 RelWithDebInfo. Head `61bf60337` merged (no commit) into current `main` `3535eb5c4`, merges cleanly. MEASURED, 3 runs each, `ctest -R "^root_sig$"`: - `main` `3535eb5c4`: fails 3/3, `FAIL versioned shim rejects Xbox flags with corrupt checksum`, `root_sig_test: FAILED (1 failure)`. - `main` + `61bf60337`: passes 3/3. The same red and green held on the older `main` `b6bf3aa0b`. MEASURED, 3 runs each. Verdict: READY. Conclusive A/B on Windows 10, test-only change. Not checked by a second agent or human yet. AI-assisted: yes (Claude Code).
OreoFR commented 2026-11-29 22:11:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T22:11:08Z.


CI check by OreoFR on a GitHub runner (windows-latest, no GPU) from fork OreoFR/leonida, main 060c47160 + this PR's test file, PR head 61bf60337 — run https://github.com/OreoFR/leonida/actions/runs/46311176915

  • This PR only changes runtime/test/root_sig_test.cpp, so main + its test file is the whole change.
  • runtime.yml job windows: build OK, ctest 100% passed out of 514 (MEASURED n=1). root_sig_test builds and passes with the new cases (MSVC warning C4456 "declaration of 'desc' hides previous local declaration" at root_sig_test.cpp:529 and :633, harmless but worth a rename).
  • No red is possible for a tests-only PR (the new cases pass on main's code). Vulkan/GPU tests are not covered on this runner.
  • Merges cleanly; does not force a rebase of #2566.

Verdict: NO RED (test-only; passes on main, 514/514).

AI-assisted: Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7263471813 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1719#issuecomment-7263471813). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T22:11:08Z. --- CI check by OreoFR on a GitHub runner (windows-latest, no GPU) from fork OreoFR/leonida, main 060c47160 + this PR's test file, PR head 61bf60337 — run https://github.com/OreoFR/leonida/actions/runs/46311176915 - This PR only changes `runtime/test/root_sig_test.cpp`, so main + its test file is the whole change. - `runtime.yml` job `windows`: build OK, **`ctest` 100% passed out of 514** (MEASURED n=1). `root_sig_test` builds and passes with the new cases (MSVC warning C4456 "declaration of 'desc' hides previous local declaration" at `root_sig_test.cpp:529` and `:633`, harmless but worth a rename). - No red is possible for a tests-only PR (the new cases pass on main's code). Vulkan/GPU tests are not covered on this runner. - Merges cleanly; does not force a rebase of #2566. **Verdict: NO RED** (test-only; passes on main, 514/514). AI-assisted: Claude Code
aslan2142 commented 2026-12-01 16:37:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:37:22Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317910952 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1719#issuecomment-7317910952). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:37:22Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1719
No description provided.