shader: align not_checked schema and add CLI and contract suite for xbox_intrinsic_gate #1917
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1924"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Ammmae0x on 2026-11-24T21:23:42Z.
Change
Align
not_checked()dictionary keys withdecide()intools/xbox_intrinsic_gate.py, accept an optionalargv=Noneinmain(), and add a unit and CLI contract test suite intests/xbox_intrinsic_gate_check.pyregistered inCMakeLists.txt:"references": {},"debug_only": [],"blocking_calls": [], and"blocking_references": []tonot_checked(reason)so callers see identical schema keys acrossALLOW,REJECT, andNOT_CHECKED.main(argv=None)to passargvtoparser.parse_args(argv).tests/xbox_intrinsic_gate_check.pycoveringnot_checked()vsdecide()key parity,check-textallow cases (ordinary, declared-only, debug-only, and stdin-),checksubcommand with synthetic DXBC and mockedprobe_roots.validate_shader(),REJECTcases for calls and all five executable reference forms (alias,store,bitcast,global-initializer,call-operand) even under an advisoryLOWEREDtable, exit code1forNOT_CHECKED, exit code2without tracebacks on invalid CLI invocations or missing DXIL/files, and zero-submission enforcement ingate_submission().xbox_intrinsic_gate_checkinCMakeLists.txt.Verification
Verified on rebased branch
shader/xbox-intrinsic-gate-cli-and-contract(on top ofupstream/main9881fef0):cmake --preset dev -DINTAKE_PYTHON=...->Configuring done (0.3s),Total Tests: 1205(#1173..1176:dxil_retarget_probe,dxil_retarget_probe_hardware,dxil_retarget_controls,xbox_intrinsic_gate_check)cmake --preset release -DINTAKE_PYTHON=...->Configuring done (0.3s),Total Tests: 1205(#1173..1176)ctest --preset dev --no-tests=error -R "^(xbox_intrinsic_gate_check|dxil_retarget.*)$" -V->4/4passed (dxil_retarget_probe,dxil_retarget_probe_hardware,dxil_retarget_controls,xbox_intrinsic_gate_check)ctest --preset release --no-tests=error -R "^(xbox_intrinsic_gate_check|dxil_retarget.*)$" -V->4/4passed (Total Test time (real) = 9.21 sec;xbox_intrinsic_gate_checkRan 7 tests in 2.854s)python -B tests/xbox_intrinsic_gate_check.py -v->Ran 7 tests in 2.852s,OKpython -B tests/dxil_retarget_check.py->pure-python dxil_retarget controls: okpython -B tests/form_coverage_check.py->form coverage checks passedpython -B tests/docs_links_check.py->Checked 18 Markdown files and 386 links.python -B tests/bidi_controls_check.py->Checked 1351 tracked source, script and build/CI files: no bidirectional controls.Evidence and follow-up
All fixtures in
tests/xbox_intrinsic_gate_check.pyare constructed synthetically in memory (LLVM IR strings, minimal DXBC containers viastruct, and mockedprobe_roots.validate_shader);dxil_retarget_probeanddxil_retarget_probe_hardwarealso ran against compiledroot_probe,root_device_probe,offscreen_check,compute_root.cso, andCopyBlocksSM65.csoon WARP and hardware adapters.Checklist
AI-assisted.