Why merged: corrects the native conformance run path in the docs to match the README's build step (cd tools/conformance/native).
Why it's good: docs and conformance tests pass on main d42773d plus this PR.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: an 8-line docs note telling native GameInput host failures apart, worded cautiously.
Why it's good: no game data; docs tests and check_no_game_data pass on main d42773d plus this PR.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: a one-line docs index link to the GPU test results page.
Why it's good: the link target exists; docs tests (links, encoding, tables, i18n) and check_no_game_data pass on main d42773d plus this PR.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: tests-only coverage for ps_interp_modes (+3 tests).
Why it's good: security-reviewed; clean merge on main d42773d; the existing 30 tests and the 3 new ones pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: tests-only coverage for fssm_header (+2 tests).
Why it's good: security-reviewed; clean merge on main d42773d; the existing 42 tests and the 2 new ones pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: tests-only coverage for spirv_interface (+3 tests).
Why it's good: security-reviewed; clean merge on main d42773d; the existing 43 tests and the 3 new ones pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: d3d12_bindless_churn and its --validated run now use separate temp folders per process, fixing a race between parallel runs.
Why it's good: security-reviewed; reproduced on main d42773d (the pair failed 4 of 6 runs at -j2); with this PR 8 of 8 runs passed and no stale folders were left.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: the fcmpswap fixture now checks memory after the NaN atomic instead of the returned value, which can't tell a match from a miss; a negative control proves it catches an integer compare.
Why it's good: security-reviewed; on main d42773d the new test fails and passes with this PR (5/5); the GPU fixture passes on an RTX 4070 SUPER.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: the LDS u8_d16 GPU fixture now has only lane 0 touch shared memory, removing a race between the 32 lanes.
Why it's good: security-reviewed; on main d42773d the new test fails and passes with this PR (3/3); the GPU fixture passes on an RTX 4070 SUPER (driver 621.24).
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: the PE loader now refuses an import address table or TLS index placed inside the headers, where the write would overwrite e_lfanew.
Why it's good: security-reviewed; built with VS 2022 + Ninja on main d42773d: the 4 new rejection cases fail on main; with this PR pe_loader, pe_loader_bounds and pe_loader_fuzz pass, and 7/7 loader-related ctests pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: float4 SIMD constants such as (1.5f, 1.0f, ...) were being reported as GUIDs; the new filter rejects them while every real D3D12/GDK GUID is still accepted.
Why it's good: security-reviewed; tested on Windows 11 on main d42773d: the new test fails on main (1 failed / 1 passed) and passes with this PR (2/2); the existing 10 guid_sites tests still pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: my merge of #462 broke three repo-consistency tests on main (test_cmake_translator_deps, test_shader_stage_resume, test_runtime_paths): it added translator inputs (tools/rdna2_decode.py, tools/rdna2_isa_tables.py) without listing them where the translator's inputs are tracked. My pre-merge check ran the translator suites but not these three; my mistake, and thanks @Boost9898 for the fix.
Why it's good: it lists the two modules in all three places (translator_deps.cmake, make_game.py's digest, and the runtime workflow's path filter; the workflow change only adds two paths, no permissions or steps). Verified on Windows 11: those three tests give 56 passed just before #462 (3eb813e), 53 passed / 3 failed with #462 and on main d42773d, and 56 passed with this PR. Note: the translator digest changes, so existing work folders re-translate once.
AI-assisted (Claude Code, Claude Opus 5.5).
Both ctest entries run d3d12_bindless_churn_test with one fixed
%TEMP%\leonida_bindless_churn_test folder. Under ctest -j the first to finish
removes the folder and the other fails creating its pipeline ("cannot open
...\index.json"). The folder now carries the process id, as
d3d12_execute_indirect_validation_test does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why merged: --out now creates its missing parent folder instead of failing.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: the new test errors on main and passes here; a 3-line change.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: indented SALU lines are now parsed for literals and removed opcodes.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: the new regression test fails on main and passes here; test_hw_oracle's 59 tests still pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: a bool or negative bary_location is refused before any SPIR-V is generated.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 28 -> 29 tests OK (the new test fails on main); the only caller passes a JSON int.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: a device banner printed on stderr no longer replaces a store helper's verdict in GPU test output.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 62 -> 64 tests OK (both new tests fail on main); the other 27 run_gpu_tests tests still pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: parallel semantic runs now include package __init__ modules, the same as discover.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: runner tests 15 -> 17 OK (7 failures on main without the fix); the real suite still selects the same 465 files and 6105 tests.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: repeated tagging columns in either CSV are refused (exit 2) before any Ogg file is modified, and the docs say so.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 3 new tests (11 subtest failures on main), all passing on the merge. The one remaining failure, test_cli_reports_incomplete_directory_discovery (a Windows path repr), fails the same way on main.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: a real bug fix: first_off examples now check both packed halves (X and Y) against the same saturation rule; before, only X was checked.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_image_d16_probe 17 -> 22 tests OK (4 of the new tests fail on main).
AI-assisted (Claude Code, Claude Opus 5.5).
Since #462, tools/rdna2spirv.py imports rdna2_decode, which imports rdna2_isa_tables. Neither module was in the
three lists that track what the translator reads: LEONIDA_TRANSLATOR_DEPS (runtime/cmake/translator_deps.cmake),
TRANSLATION_SOURCES (make_game.py) and the runtime workflow's path filters. So test_cmake_translator_deps,
test_shader_stage_resume and test_runtime_paths fail on main, and an edit to the decoder neither rebuilds the GPU
test shaders, nor reruns translation, nor starts the runtime workflow.
Why merged: an Unavailable error from oracle.run() now exits 77 with a one-line message, and the oracle is always closed.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: 5 -> 6 tests OK, and the new test errors on main.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: a one-cell shoreline grid now stops with a one-line error instead of producing a meaningless match.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_world_grid_atlas 29 -> 32 tests, all OK (the new tests fail on main: 3 failures, 1 error); the native tests still pass.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: names that aren't strings now get a clean "value"/"utf8" refusal, and batch export moves on to the next resource instead of crashing.
Why it's good: security-reviewed; tested on Windows 11 merged onto main c023a36: test_rbf0_encode 32 -> 37 tests, all OK (the new tests fail on main: 12 failures, 6 errors); rbf0_tree's 38 still pass.
AI-assisted (Claude Code, Claude Opus 5.5).
unittest discover loads TestCase classes defined in a package's __init__.py regardless of the filename pattern. The parallel runner only selected test*.py files, so a failing package initializer could be skipped while -j 1 reported it. Include package initializers in the parallel module list; an empty initializer with no tests is not a failure. Add regressions for failing initializers and for a pattern that matches no test filenames.
AI-assisted.
Why merged: a minimal gate in the D3D12/Vulkan device test for hosts without D3D12 video support.
Why it's good: security-reviewed (7-line test change). Built and ran d3d12_vulkan_device_test with VS 2022 on an RTX 4070 SUPER (driver 621.24): passes before and after with identical output, as expected on a host that has video (the gate is a no-op there); the change is correct for hosts without it.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: the XGameRuntime store slots find their XAsyncBlock argument at the right position.
Why it's good: security-reviewed (runtime shim only). Built with VS 2022 + Ninja on main 8f481cf plus this PR and ran ctest: xgameruntime_store_test 24 -> 27 checks, 0 failures; all 13 XAsyncBlock positions checked against the GDK signatures. Nit for later: the comment says a4-a6 come from the 32-byte home area, but for slots with fewer arguments they're read from the caller's frame beyond it (harmless, they're unused).
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: a translator fix with its encoding test.
Why it's good: security-reviewed (translator code and tests only). Tested on Windows 11 merged onto main 8f481cf: the printed-encoding, decode and SDWA tests 87 -> 88 passed (2668 -> 2672 subtests); the full semantic suite (-j 12) 6104 -> 6105 tests with the same 3 failing files on main and with this PR (image_cube_store_glc, sopc_validation, unary_f16_validation), and the one decode-parity failure (llvm-mc 23 op_sel printing) also fails on main, so nothing new breaks.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: scripts/run_semantic_tests.py gains a per-file timeout and rejects a zero timeout, so one hung semantic test file can't stall the whole run.
Why it's good: security-reviewed (argv-list subprocess on sys.executable only). Tested on Windows 11 merged onto main 8f481cf: tests/test_run_semantic_tests.py 10 passed on main -> 15 passed with this PR (new tests fail without the fix); a real run with --timeout 300 over test_sdwa* ran 40 tests with 0 failures and --timeout 0 is refused. Merges cleanly together with #474.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: the Windows console input wait now honours its deadline instead of restarting the full wait after a discarded record (e.g. a mouse-move event).
Why it's good: security-reviewed (local tool change only). Tested on Windows 11 merged onto main 8f481cf: tests/test_leonida_tui.py 24 passed on main -> 25 passed with this PR; the new test fails on main and passes with the fix; compileall clean.
AI-assisted (Claude Code, Claude Opus 5.5).
Why merged: the build scripts now refuse a checkout or -Temp folder whose path contains '%' up front, instead of failing later in confusing ways; the reviewer nit (a relative -Temp) was fixed in 2a4f650.
Why it's good: security-reviewed (only path guards and a test: no URLs, downloads, elevation or policy changes). Tested on Windows 11 (RTX 4070 SUPER) merged onto main 8f481cf: build_llvm_mc/build_runtime tests 14 passed on main -> 17 passed with this PR; compileall clean; in Windows PowerShell 5.1 a path with '%' and '-Temp a%b' are refused while normal paths pass the guard. The earlier CI failures (macos/linux-gpu-tools MoltenVK shader tests) are unrelated to these scripts.
AI-assisted (Claude Code, Claude Opus 5.5).
After map_image, the loader writes into the mapped image twice: the bound
address of every import and the image's TLS index. Every step after it
(parse_exports, bind_imports, protect_sections, register_unwind,
initialise, ~Loader) reads the headers back from the mapping. A
FirstThunk or AddressOfIndex below SizeOfHeaders therefore replaced
e_lfanew or the section table, and the next read went outside the image
or used headers nobody validated. The loader already refuses a section
or a base relocation there; this closes the two remaining writes.
An index at RVA 0 is refused too: index_rva doubles as "no index", so the
index was silently never written.
Found by mutation fuzzing rt::Loader::load. The six new cases in
test_pe_loader_bounds build their images by hand; four of them fail
without this change.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
LLVM 19 prints an 8-byte integer-to-half SDWA conversion as a 12-byte instruction with an extra literal dword. Recover the native source and byte length when the opcode, selector, other bytes and printed literal agree, and keep following instruction offsets correct.
Carried from the source-only patch by Sigtryggur-Mani-Gudmundsson:
b17a81c3d9/tests/sdwa-inline
AI-assisted.
Mask matching ranks the best and runner-up overlaps, so a single cell has no second score. Reject grids with fewer than two cells using the same error as content matching.