startup: report all slot70 refusal reasons and quote launch arguments #1591
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1598"
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 tedin7 on 2026-11-24T14:42:04Z.
What
tools/startup/triage_run.py: the allowlist ofDevice::slot70refusal reasons held 3 of the 8 reasons the runtime can log (src/startup_stubs/d3d12_memory_srv.inl). It now lists all 8 of them:null_destination,unreadable_resource,unreadable_view,null_address,unsupported_description,destination_outside_view_heaps,buffer_unavailable,texture_unavailable.tools/startup/launch.py: the child's arguments (after--) were each wrapped as"<arg>"with no escaping. Newquote_argumentfollows the rule the C runtime andCommandLineToArgvWuse: a run of backslashes that ends the argument, or sits before a double quote, is doubled, and an embedded quote is escaped. Arguments without those characters are quoted exactly as before.Why
D:\saves\or a drive rootS:\) turned its own closing quote into an escaped quote and merged with the next argument. An argument containing a quote was split the same way.Tested
Run on Linux:
All pass. The new checks are
check_every_slot70_reason_is_reported(one synthetic line per reason using the exact refusal phrases emitted byd3d12_memory_srv.inl; each must keep its own row) and the argument-quoting cases inrun_unit_tests(expected command lines written out by hand: empty argument, spaces, tabs, trailing backslash, drive root, embedded quote, quotes-only argument, backslash before a quote, several trailing backslashes).Negative control:
check_private_text_never_echoedverifies that unknownslot70reasons and free-form values outside the allowlist are folded intoother (text omitted)/?and never echoed. Against the base commit, the new tests fail because the 5 missing reasons collapse intoother (text omitted)andquote_argumentdoes not exist.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
88d49d51f02f8ab25ffab6d462a6083923d1df17(including the nativeCommandLineToArgvWround-trip check intests/startup_launch_check.py):--preset dev):cmake --build --preset dev --target startup_launch_probe -- -j 6):0.10s(configure1.74s)ctest --preset dev -R '^(startup_launch|startup_triage_run)$' --parallel 4 --no-tests=error --output-on-failure): 2/2 passed (2.12s:startup_triage_run0.22s,startup_launch2.04s)/O2(--preset release):cmake --build --preset release --target startup_launch_probe -- -j 6):0.09s(configure1.92s)ctest --preset release -R '^(startup_launch|startup_triage_run)$' --parallel 4 --no-tests=error --output-on-failure): 2/2 passed (2.04s:startup_triage_run0.18s,startup_launch1.97s)Audited, nothing found
tools/startup/capture.py: the descriptor-table summary issue is covered by #1490; nothing else found.launch.pyjob limits, handle cleanup and the fast-fail diagnostic, and the rest oftriage_run.py(redaction of free text, HRESULT normalisation, the stderr/trap log de-duplication): no defect found.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T14:53:18Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
88d49d5ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.