xcl run: filter the title host’s inherited environment #761

Open
Abuudiii wants to merge 2 commits from upstream-pr/766 into main
Abuudiii commented 2026-11-24 04:51:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Abuudiii on 2026-11-24T04:51:44Z.


Part of #702. Create the title host with a filtered Unicode environment by default. This reduces inherited credential exposure; it does not sandbox the title or scrub arbitrary dumps.

What is in it

  • Launcher environment allowlist, explicit compatibility opt-out, and synthetic loopback WinHTTP fixture.
  • The loopback worker verifies the POST and replies before the WinHTTP probe closes its handles. The offline assertions are unchanged.

Tested

  • At ce9ad38, the allowlist unit test passed under Proton. Independent native Windows AMD and NVIDIA runs reproduced a connection reset in the old loopback fixture.
  • At 55bdcbbeec, Rust 1.99.1 built both Windows GNU test executables on Arch. With GE-Proton 11-7, both direct WinHTTP round trips passed (synthetic secret absent and present) without launching XCL. The full cargo test --locked -p xcl --test crash_privacy_e2e --target x86_64-pc-windows-gnu run timed out before a POST: 0 passed, 1 failed, 0 ignored.
  • Independent native Windows retail smoke pair from @Anon64: clean release builds on Windows 11 25H2, i9-14900KF, RTX 3060 12 GB (driver 581.80, wave32), reported Rust 1.90.0. Both runs exited cleanly with presents and no device removals or crashes; this was not a fixture or workspace test.

Regression run
Source: @Anon64’s clean native Windows runs. Same title and 60-second duration on both commits; smoke payloads copied verbatim.

Main (f4ce27c):

xcl-smoke v1
commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1615 (PresentX 1615)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16472 MB

PR (55bdcbb):

xcl-smoke v1
commit: 55bdcbbeeccf1817ccd01fa9ffa24722193ba6fa
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1638 (PresentX 1638)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16422 MB

Not tested

  • Native Windows unit, end-to-end fixture, and workspace retests at 55bdcbbeec. The smoke run did not exercise crash reporting (no crash report was written). The direct WinHTTP check did not exercise the launcher filter or offline blocking.

AI use

  • omp (GPT-6.2 Sol) wrote the change and fixture repair, ran the listed local verification, and updated this description. The linked Windows reports are from independent testers.
  • @Anon64 credited Claude Code (Claude Opus 5.5) for writing the smoke report.
<!-- greyfinch-sync:ivall/xcl:issue:5466299515 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/766). Originally posted by [Abuudiii](https://github.com/Abuudiii) on 2026-11-24T04:51:44Z. --- Part of #702. Create the title host with a filtered Unicode environment by default. This reduces inherited credential exposure; it does not sandbox the title or scrub arbitrary dumps. **What is in it** - Launcher environment allowlist, explicit compatibility opt-out, and synthetic loopback WinHTTP fixture. - The loopback worker verifies the POST and replies before the WinHTTP probe closes its handles. The offline assertions are unchanged. **Tested** - At `ce9ad38`, the allowlist unit test passed under Proton. Independent native Windows [AMD](https://github.com/ivall/xcl/pull/766#issuecomment-7122665251) and [NVIDIA](https://github.com/ivall/xcl/pull/766#issuecomment-7122753649) runs reproduced a connection reset in the old loopback fixture. - At `55bdcbbeec`, Rust 1.99.1 built both Windows GNU test executables on Arch. With GE-Proton 11-7, both direct WinHTTP round trips passed (synthetic secret absent and present) without launching XCL. The full `cargo test --locked -p xcl --test crash_privacy_e2e --target x86_64-pc-windows-gnu` run timed out before a POST: 0 passed, 1 failed, 0 ignored. - [Independent native Windows retail smoke pair from @Anon64](https://github.com/ivall/xcl/pull/766#issuecomment-7125164819): clean release builds on Windows 11 25H2, i9-14900KF, RTX 3060 12 GB (driver 581.80, wave32), reported Rust 1.90.0. Both runs exited cleanly with presents and no device removals or crashes; this was not a fixture or workspace test. **Regression run** [Source: @Anon64’s clean native Windows runs](https://github.com/ivall/xcl/pull/766#issuecomment-7125164819). Same title and 60-second duration on both commits; smoke payloads copied verbatim. Main (`f4ce27c`): ``` xcl-smoke v1 commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968 gpu: NVIDIA GeForce RTX 3060 title: retail-title seconds: 60 exit: 0x0 frames shown: 1615 (PresentX 1615) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16472 MB ``` PR (`55bdcbb`): ``` xcl-smoke v1 commit: 55bdcbbeeccf1817ccd01fa9ffa24722193ba6fa gpu: NVIDIA GeForce RTX 3060 title: retail-title seconds: 60 exit: 0x0 frames shown: 1638 (PresentX 1638) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16422 MB ``` **Not tested** - Native Windows unit, end-to-end fixture, and workspace retests at `55bdcbbeec`. The smoke run did not exercise crash reporting (no crash report was written). The direct WinHTTP check did not exercise the launcher filter or offline blocking. **AI use** - omp (GPT-6.2 Sol) wrote the change and fixture repair, ran the listed local verification, and updated this description. The linked Windows reports are from independent testers. - @Anon64 credited Claude Code (Claude Opus 5.5) for writing the smoke report.
upipibi commented 2026-11-24 07:06:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T05:07:49Z.


For the maintainers' dedupe: this is the third PR for #702. #730 (e494814, earlier) takes the same route, a filtered block passed to CreateProcessW in spawn_host, and already has AMD and NVIDIA runs on native Windows. A comparison of the approaches is in #702. Differences from #730: this one keeps only SystemRoot, windir, LOCALAPPDATA, TEMP and TMP (no PATH), uses XCL_INHERIT_ENV rather than XCL_KEEP_ENV, sorts the block (which #730 doesn't, and Windows asks for), and adds an end-to-end crash/WinHTTP fixture, which so far has only run under Wine (where it timed out). Folding the sorting and the fixture into one of the two would avoid two opt-out variable names.

AI-assisted (Claude Code), read-only review.

<!-- greyfinch-sync:ivall/xcl:comment:7122651634 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/766#issuecomment-7122651634). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-24T05:07:49Z. --- For the maintainers' dedupe: this is the third PR for #702. #730 (`e494814`, earlier) takes the same route, a filtered block passed to `CreateProcessW` in `spawn_host`, and already has AMD and NVIDIA runs on native Windows. A comparison of the approaches is in #702. Differences from #730: this one keeps only `SystemRoot`, `windir`, `LOCALAPPDATA`, `TEMP` and `TMP` (no `PATH`), uses `XCL_INHERIT_ENV` rather than `XCL_KEEP_ENV`, sorts the block (which #730 doesn't, and Windows asks for), and adds an end-to-end crash/WinHTTP fixture, which so far has only run under Wine (where it timed out). Folding the sorting and the fixture into one of the two would avoid two opt-out variable names. AI-assisted (Claude Code), read-only review.
MesshM commented 2026-11-24 07:06:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T05:08:39Z.


Native Windows run of ce9ad385b75f580b37a281879cf9806a4d7ed4df, which Not tested lists. I merged it onto current main d5442d2 locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows), Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: xcl lib tests 664 passed, 0 failed, 21 ignored; 0 SKIPPED; title_crash_report_environment_and_offline_winhttp (crates/xcl/tests/crash_privacy_e2e.rs) fails, exit code 101.
  • cargo test -p xcl --test crash_privacy_e2e, 2 more runs: 2 of 2 failed the same way, so 3 of 3 here.
  • The failure: crash_privacy_e2e.rs:104:42, request.read_line(&mut line).unwrap() → Os { code: 10054, kind: ConnectionReset }. The listener accepted the POST's connection, then the first read got a reset.

What I think happens (not proven): the comment just above says the guest's synchronous send completes before it exits and no response is needed. On native Windows, when the peer's socket is closed abortively (as process exit or WinHTTP's teardown can do) before the listener reads, recv reports WSAECONNRESET even if the request bytes had arrived; Wine does not behave that way, which would fit the test passing under Proton. Having the fixture answer the request (or keep the guest alive until it gets a response), or reading the request before the guest can exit, should make it deterministic. One caveat about this machine: it runs Kaspersky with web-traffic scanning, which can also reset HTTP connections, loopback included; I did not disable it, so I cannot fully rule that out.

Overlap: #730 (open) also replaces the inherited environment of the title process with an allow-list (the same #702), so the two will want reconciling; this one adds the WinHTTP fixture and the e2e test.

Not tested: no retail title or regression run (I have no unpacked game), release build; not rerun with the antivirus off.

Run and report by Claude Code (Claude Opus 5.5) on this machine.

<!-- greyfinch-sync:ivall/xcl:comment:7122665251 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/766#issuecomment-7122665251). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T05:08:39Z. --- Native Windows run of `ce9ad385b75f580b37a281879cf9806a4d7ed4df`, which **Not tested** lists. I merged it onto current `main` `d5442d2` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200 (native Windows), Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: `xcl` lib tests 664 passed, 0 failed, 21 ignored; 0 `SKIPPED`; **`title_crash_report_environment_and_offline_winhttp` (crates/xcl/tests/crash_privacy_e2e.rs) fails**, exit code 101. - `cargo test -p xcl --test crash_privacy_e2e`, 2 more runs: **2 of 2 failed** the same way, so 3 of 3 here. - The failure: `crash_privacy_e2e.rs:104:42`, `request.read_line(&mut line).unwrap()` → `Os { code: 10054, kind: ConnectionReset }`. The listener accepted the POST's connection, then the first read got a reset. **What I think happens** (not proven): the comment just above says the guest's synchronous send completes before it exits and no response is needed. On native Windows, when the peer's socket is closed abortively (as process exit or WinHTTP's teardown can do) before the listener reads, `recv` reports `WSAECONNRESET` even if the request bytes had arrived; Wine does not behave that way, which would fit the test passing under Proton. Having the fixture answer the request (or keep the guest alive until it gets a response), or reading the request before the guest can exit, should make it deterministic. One caveat about this machine: it runs Kaspersky with web-traffic scanning, which can also reset HTTP connections, loopback included; I did not disable it, so I cannot fully rule that out. **Overlap:** #730 (open) also replaces the inherited environment of the title process with an allow-list (the same #702), so the two will want reconciling; this one adds the WinHTTP fixture and the e2e test. **Not tested:** no retail title or regression run (I have no unpacked game), release build; not rerun with the antivirus off. Run and report by Claude Code (Claude Opus 5.5) on this machine.
ethandepstein-del commented 2026-11-24 07:06:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ethandepstein-del on 2026-11-24T05:14:06Z.


Independent native Windows NVIDIA RTX 5080 build/test run and code review at head ce9ad385b75f580b37a281879cf9806a4d7ed4df.

Failure Reproduced (2/2 runs): crash_privacy_e2e::title_crash_report_environment_and_offline_winhttp

  • Panic: crates\xcl\tests\crash_privacy_e2e.rs:104:42:
    called Result::unwrap() on an Err value: Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." }
  • Root cause: The test waits for xcl run (and xcl_privacy_probe.exe) to completely exit via run_launcher before calling listener.accept() and request.read_line(). In privacy.rs, the probe calls WinHttpSendRequest and immediately closes the handles and exits without calling WinHttpReceiveResponse / reading a reply. On Windows 11 loopback, closing the client socket before the server accepts/reads sends a TCP RST (WSAECONNRESET 10054), causing read_line() to fail deterministically once the child has exited.
  • Suggested fix: Accept and read the HTTP request on a background thread started before run_launcher (sending a minimal HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n response and joining the thread after run_launcher), or have xcl_privacy_probe wait for the response with WinHttpReceiveResponse while the listener thread serves it.

Code Review Notes

  • Filtering the environment at CreateProcessW time (CREATE_UNICODE_ENVIRONMENT) is much cleaner than post-start scrubbing since title DLLs/CRTs never see the parent environment, and launcher::tests::host_environment_is_a_sorted_unicode_allowlist passed cleanly.
  • Compatibility note on SYSTEM_VARS: Only keeping SystemRoot, windir, LOCALAPPDATA, TEMP, TMP (plus XCL_*) works with dxc.rs when Windows Kits is installed in C:\Program Files (x86)\Windows Kits\10\bin or XCL_DXC_DIR is set, but note that stripping SystemDrive, ProgramData, ProgramFiles, ProgramFiles(x86), NUMBER_OF_PROCESSORS, PROCESSOR_ARCHITECTURE, and Wine/Proton/Vulkan driver variables (WINE*, VKD3D*, DXVK*, VK_*, PROTON*) could affect GPU driver shader caches or Linux/Wine runs (and crash_privacy_e2e.rs currently sets graphics = 'null', so it does not exercise real D3D12/DXC init under the filtered environment).

Tested

  • Environment: NVIDIA GeForce RTX 5080 (16 GB, wave32, driver 617.42 / 32.0.16.1742), Windows 11 Pro 25H2 (26200.9974), rustc 1.100.0 (0ef1bc386 2026-11-09), debug build.
  • Command: cargo build --workspace && cargo test --workspace -- --test-threads=4
  • Result: 677 passed, 1 failed, 25 ignored before cargo test stopped on crash_privacy_e2e (0 new compiler warnings; title_crash_report_environment_and_offline_winhttp failed identically on 2/2 runs).
    • launcher::tests::host_environment_is_a_sorted_unicode_allowlist — ok
    • title_crash_report_environment_and_offline_winhttp (tests/crash_privacy_e2e.rs) — FAILED (WSAECONNRESET 10054 at line 104)
  • SKIPPED (2):
    • gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask (no wave64)
    • gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware (no wave64)

Not tested

  • Test binaries scheduled after crash_privacy_e2e, real D3D12 graphics initialization under the filtered environment, AMD/wave64 hardware, and retail titles.

AI use: Antigravity (Gemini 4 Neon) performed the code review, ran the RTX 5080 workspace tests, diagnosed the WSAECONNRESET test failure, and drafted this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7122753649 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/766#issuecomment-7122753649). Originally posted by [ethandepstein-del](https://github.com/ethandepstein-del) on 2026-11-24T05:14:06Z. --- Independent native Windows NVIDIA RTX 5080 build/test run and code review at head `ce9ad385b75f580b37a281879cf9806a4d7ed4df`. ### Failure Reproduced (2/2 runs): `crash_privacy_e2e::title_crash_report_environment_and_offline_winhttp` - **Panic:** `crates\xcl\tests\crash_privacy_e2e.rs:104:42`: `called Result::unwrap() on an Err value: Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." }` - **Root cause:** The test waits for `xcl run` (and `xcl_privacy_probe.exe`) to completely exit via `run_launcher` *before* calling `listener.accept()` and `request.read_line()`. In `privacy.rs`, the probe calls `WinHttpSendRequest` and immediately closes the handles and exits without calling `WinHttpReceiveResponse` / reading a reply. On Windows 11 loopback, closing the client socket before the server accepts/reads sends a TCP `RST` (`WSAECONNRESET` 10054), causing `read_line()` to fail deterministically once the child has exited. - **Suggested fix:** Accept and read the HTTP request on a background thread started *before* `run_launcher` (sending a minimal `HTTP/1.1 200 OK\r\nContent-Length: 0\r\n\r\n` response and joining the thread after `run_launcher`), or have `xcl_privacy_probe` wait for the response with `WinHttpReceiveResponse` while the listener thread serves it. ### Code Review Notes - Filtering the environment at `CreateProcessW` time (`CREATE_UNICODE_ENVIRONMENT`) is much cleaner than post-start scrubbing since title DLLs/CRTs never see the parent environment, and `launcher::tests::host_environment_is_a_sorted_unicode_allowlist` passed cleanly. - **Compatibility note on `SYSTEM_VARS`:** Only keeping `SystemRoot`, `windir`, `LOCALAPPDATA`, `TEMP`, `TMP` (plus `XCL_*`) works with `dxc.rs` when Windows Kits is installed in `C:\Program Files (x86)\Windows Kits\10\bin` or `XCL_DXC_DIR` is set, but note that stripping `SystemDrive`, `ProgramData`, `ProgramFiles`, `ProgramFiles(x86)`, `NUMBER_OF_PROCESSORS`, `PROCESSOR_ARCHITECTURE`, and Wine/Proton/Vulkan driver variables (`WINE*`, `VKD3D*`, `DXVK*`, `VK_*`, `PROTON*`) could affect GPU driver shader caches or Linux/Wine runs (and `crash_privacy_e2e.rs` currently sets `graphics = 'null'`, so it does not exercise real D3D12/DXC init under the filtered environment). ### Tested - **Environment:** NVIDIA GeForce RTX 5080 (16 GB, wave32, driver `617.42` / `32.0.16.1742`), Windows 11 Pro 25H2 (`26200.9974`), `rustc 1.100.0 (0ef1bc386 2026-11-09)`, debug build. - **Command:** `cargo build --workspace && cargo test --workspace -- --test-threads=4` - **Result:** **677 passed, 1 failed, 25 ignored** before `cargo test` stopped on `crash_privacy_e2e` (0 new compiler warnings; `title_crash_report_environment_and_offline_winhttp` failed identically on 2/2 runs). - `launcher::tests::host_environment_is_a_sorted_unicode_allowlist` — `ok` - `title_crash_report_environment_and_offline_winhttp` (`tests/crash_privacy_e2e.rs`) — **`FAILED`** (`WSAECONNRESET` 10054 at line 104) - **SKIPPED (2):** - `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask` (`no wave64`) - `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware` (`no wave64`) ### Not tested - Test binaries scheduled after `crash_privacy_e2e`, real D3D12 graphics initialization under the filtered environment, AMD/wave64 hardware, and retail titles. **AI use:** Antigravity (Gemini 4 Neon) performed the code review, ran the RTX 5080 workspace tests, diagnosed the `WSAECONNRESET` test failure, and drafted this comment.
Abuudiii commented 2026-11-24 07:06:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Abuudiii on 2026-11-24T05:24:52Z.


Thanks @MesshM and @ethandepstein-del for reproducing the reset. 55bdcbbeec starts the loopback worker before launch; the probe now waits for its response. Both direct WinHTTP round trips passed under Proton, but the full launcher test timed out here before reaching the loopback listener. If one of you can retest the new head on native Windows, the focused commands are:

cargo build --locked -p xcl-testtitle --bin xcl_privacy_probe
cargo test --locked -p xcl --test crash_privacy_e2e

This overlaps #730. I would keep one process-creation filter and am happy to fold the sorted Unicode block and fixture into the PR the maintainers prefer.

Drafted with omp (GPT-6.2 Sol).

<!-- greyfinch-sync:ivall/xcl:comment:7122924652 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/766#issuecomment-7122924652). Originally posted by [Abuudiii](https://github.com/Abuudiii) on 2026-11-24T05:24:52Z. --- Thanks @MesshM and @ethandepstein-del for reproducing the reset. `55bdcbbeec` starts the loopback worker before launch; the probe now waits for its response. Both direct WinHTTP round trips passed under Proton, but the full launcher test timed out here before reaching the loopback listener. If one of you can retest the new head on native Windows, the focused commands are: ```powershell cargo build --locked -p xcl-testtitle --bin xcl_privacy_probe cargo test --locked -p xcl --test crash_privacy_e2e ``` This overlaps #730. I would keep one process-creation filter and am happy to fold the sorted Unicode block and fixture into the PR the maintainers prefer. Drafted with omp (GPT-6.2 Sol).
Anon64 commented 2026-11-24 08:03:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T07:35:57Z.


Regression runs for this PR's head 55bdcbb and for its base main f4ce27c, on a retail title (same title, 60 s each), made with scripts/smoke.ps1 (release, clean tree at each commit) and pasted unedited, for Regression run.

main:

xcl-smoke v1
commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1615 (PresentX 1615)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16472 MB

this PR:

xcl-smoke v1
commit: 55bdcbbeeccf1817ccd01fa9ffa24722193ba6fa
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1638 (PresentX 1638)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16422 MB

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 581.80, wave32), Intel Core i9-14900KF, Windows 11 25H2 26200.9974, Rust 1.90.0

Not tested

  • the unit and e2e tests on this machine
  • a crash report: none was written, so this is a regression check only

Report written with Claude Code (Claude Opus 5.5) from runs on this machine.

<!-- greyfinch-sync:ivall/xcl:comment:7125164819 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/766#issuecomment-7125164819). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-24T07:35:57Z. --- Regression runs for this PR's head `55bdcbb` and for its base `main` `f4ce27c`, on a retail title (same title, 60 s each), made with `scripts/smoke.ps1` (release, clean tree at each commit) and pasted unedited, for **Regression run**. main: ``` xcl-smoke v1 commit: f4ce27ceb6d1b0576d0c659b713b674778bf1968 gpu: NVIDIA GeForce RTX 3060 title: retail-title seconds: 60 exit: 0x0 frames shown: 1615 (PresentX 1615) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16472 MB ``` this PR: ``` xcl-smoke v1 commit: 55bdcbbeeccf1817ccd01fa9ffa24722193ba6fa gpu: NVIDIA GeForce RTX 3060 title: retail-title seconds: 60 exit: 0x0 frames shown: 1638 (PresentX 1638) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16422 MB ``` **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 581.80, wave32), Intel Core i9-14900KF, Windows 11 25H2 26200.9974, Rust 1.90.0 **Not tested** - the unit and e2e tests on this machine - a crash report: none was written, so this is a regression check only Report written with Claude Code (Claude Opus 5.5) from runs on this machine.
throny commented 2026-11-24 21:08:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-24T19:38:24Z.


Two contributors checked independently and found that #730 #740 solves the same problem (for #702) in a different way: #1607, group D17. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7142382374 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/766#issuecomment-7142382374). Originally posted by [throny](https://github.com/throny) on 2026-11-24T19:38:24Z. --- <!-- xcl-1607-hint:D17 --> Two contributors checked independently and found that #730 #740 solves the same problem (for #702) in a different way: #1607, group D17. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
DavidM1911 commented 2026-11-25 12:06:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T11:17:09Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7160843616 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/766#issuecomment-7160843616). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T11:17:09Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: 1038 passed, 1 failed in one parallel run; the failing test passes on a single-threaded rerun (1039/0). Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun. Thanks!
github-actions[bot] commented 2026-11-29 20:43:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:59Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262314324 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/766#issuecomment-7262314324). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:43:59Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:05:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:05:46Z.


Triage (#1607) – head 55bdcbb

Overlap: #730 (same issue #702, opened earlier) also passes an allowlisted environment block to CreateProcessW in launcher.rs:spawn_host. #730 keeps Program Files, processor and ProgramData variables plus a PATH of only System32 (XCL_KEEP_ENV=1 opts out). This PR keeps only SystemRoot, windir, LOCALAPPDATA, TEMP, TMP and XCL_*, with no PATH at all (XCL_INHERIT_ENV=1 opts out), sorts the block, handles non-Unicode names and adds a loopback e2e test. #740 was closed. Only one of #730 / #766 should be merged.
The narrower allowlist is a compatibility risk: a title or its middleware that reads PATH, ProgramData, NUMBER_OF_PROCESSORS or USERPROFILE now gets nothing. The branch conflicts with main, where spawn_host also sets XCL_PREPARATION_PARENT / XCL_PREPARATION_MENU (both still pass as XCL_*).
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300374071 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/766#issuecomment-7300374071). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:05:46Z. --- **Triage (#1607)** – head 55bdcbb Overlap: #730 (same issue #702, opened earlier) also passes an allowlisted environment block to `CreateProcessW` in `launcher.rs:spawn_host`. #730 keeps Program Files, processor and ProgramData variables plus a `PATH` of only System32 (`XCL_KEEP_ENV=1` opts out). This PR keeps only SystemRoot, windir, LOCALAPPDATA, TEMP, TMP and `XCL_*`, with no `PATH` at all (`XCL_INHERIT_ENV=1` opts out), sorts the block, handles non-Unicode names and adds a loopback e2e test. #740 was closed. Only one of #730 / #766 should be merged. The narrower allowlist is a compatibility risk: a title or its middleware that reads `PATH`, `ProgramData`, `NUMBER_OF_PROCESSORS` or `USERPROFILE` now gets nothing. The branch conflicts with main, where `spawn_host` also sets `XCL_PREPARATION_PARENT` / `XCL_PREPARATION_MENU` (both still pass as `XCL_*`). Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/766:upstream-pr/766'
git switch 'upstream-pr/766'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/766'
git switch 'upstream-pr/766'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/766'
git switch 'upstream-pr/766'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/766'
git switch 'main'
git merge --squash 'upstream-pr/766'
git switch 'main'
git merge --ff-only 'upstream-pr/766'
git switch 'main'
git merge 'upstream-pr/766'
git push origin 'main'
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
xcl-dev/xcl!761
No description provided.