fix(sandbox): Windows add-ons: only a layer's DLL is opened to the game, added layers load, and false alarms leave the log #3110

Merged
HumanBean merged 15 commits from llun/Longshot:fix/addons-windows into main 2026-12-04 00:16:31 +00:00
Member

Summary

Windows fixes for the sandbox's add-ons (#3093), which had not run on Windows when it merged. I ran it on Windows 11 with an RTX 5080. The game started, played and closed, and DLSS started. These problems showed up, and this fixes them:

  1. Any file could be opened to the game as a "layer's library". A Vulkan layer's manifest names its library. The builder gave the sandboxed game read access to whatever file it named: in a run, a plain text file. Now only a .dll that is there gets it, and the log says when one doesn't.
  2. A layer in a folder that VK_ADD_IMPLICIT_LAYER_PATH names never loaded. The log said it was on and its DLL was allowed, but the Vulkan loader lists the folder first, and that was refused. The folder is now served to be listed only, and only when it holds a layer that is on. These layers also come before the registry's now, as they do for the loader.
  3. False alarms on every normal start. 11 refused lines asked "an add-on's?", most of them about Windows' shell or NVIDIA's driver. The shell is now looked past to whoever called it. A driver's or Windows' own refusal is called usual. The Vulkan loader's is not, since it asks for the layers' files.
  4. Warnings could drop out of the log. The game reads 6144 bytes of the builder's lines. Since #3113 a cut log says how many lines are missing. Now warnings and refused grants also come first, and one line that is too long no longer takes the lines after it away.
  5. OBS's hook was reported as refused though it loads. Every AppContainer may already read it. It is now recognised and left alone.
  6. A layer the loader passes over counted as on: one with no disable_environment, or a 32-bit one (library_arch).
  7. Past 256 paths, a refusal was logged at every open instead of once.

What #3132 means for this. The sandbox is off by default now, so all of this applies only to a start with HOS_SANDBOX=1 (or strict). With it off, the builder makes no plan and no grants, and the game's file layer is not installed, so nothing here runs. Every refusal stays as it was for a start with it on.

main does not compile on Windows since #3113 (compiled at ca5d3078; the line is the same at 674489dd): note_lines(&said) in sandbox_windows.rs is called inside mod os, which does not import it (E0425). This fixes it (super::note_lines).

It also fixes checks that #3093 broke on main: two Rust tests on Windows (a_layer_s_library has Linux paths; mako_on_asks_its_own_places_and_off_asks_none puts Windows' \ in a TOML string), test_utf8_paths (CP_ACP), rustfmt, and clippy on Linux. And test_sandbox_windows.py, which #3113 broke: it looked for the line #3113 replaced. It now checks that the call compiles on Windows too, and that the cut is the size the game reads.

To see 1 and 2 on main: start the game with HOS_SANDBOX=1 and VK_ADD_IMPLICIT_LAYER_PATH set to a folder, or a manifest in it, outside the game folder.

Read first: addons() and layer_library in sandbox_windows/gather.rs; note_lines and every_container_reads in sandbox_windows.rs; hos_file_refused_usual in host/hos_file_windows.c.

Testing

Tested: Windows 11, RTX 5080, driver 621.47, sandbox on, at f42503a48 (the same fixes; only #3098's menu change came under them since). Three windowed runs from the kokiri-start save (400 frames of play, then the menu, then quit): a normal start, a throwaway layer in a folder, and a manifest that names a text file. All three passed.

  • Normal start: RTSS's and OBS's layers (both installed here) loaded, and DLSS started. No refusal was blamed on an add-on.
  • The throwaway layer loaded; on main it did not.
  • The text file was not opened to the game, and the log said why; on main it was opened.
  • New tests/test_sandbox_refusals_windows.py runs on Windows itself (the existing one needs Wine). Its checks for 3 and 7 fail without their fixes and pass here.
  • New Rust tests for 1, 2 and 6 fail without their fixes and pass here. Those for 4 and 5 test functions this adds.
  • In the game at 92ab0dfe3 (on #3113, with BeanBot's L1-L3; same PC): a normal start and a manifest naming a text file, as before. A folder of 41 test layers, 13 starts that reached play: the layers the plan has room for loaded, and those past it were named in the log (read at 2589a3406 and 92ab0dfe3). Two more starts with that folder failed. One game quit within a second, as another game started 0.3 s later on the PC; the cause is not proven. One lost the GPU device while starting, after movie upscale dispatch prewarmed: no, where two starts on this PC did before #3093 existed (2026-12-02).
  • This head (37910e887) is on #3132. Not run on it yet: Windows (not compiled either) and the game, as the test PC is short of disk space. This change is the same as before the rebase by git patch-id, plus the fix of test_sandbox_windows.py. The game runs below are from before #3132, when the sandbox was on by default; they come again with HOS_SANDBOX=1.
  • Linux (WSL), this head: test_sandbox_windows.py (it fails on main's copy) and test_sandbox_linux.py pass, and so do clippy and cargo test for build-core (222).
  • At 50dc48bc1, Windows, gnullvm: longshot-builder compiles; clippy for build-core, build-compile and launcher-profile, and cargo test for build-core (199) and launcher-profile, pass; so do four checks near the change: test_utf8_paths, test_doc_anchors, test_switch_table and the new test, now without LONGSHOT_MINGW. The tests for L1 and L2 fail without their fixes. rustfmt passes but for one line of settings_host.rs, from #3098, which this does not touch. build-compile's tests passed at 266520236.
  • The full suite, Windows, on an earlier version of this branch, not run again: 833 passed and 4 failed when I stopped it near its end, as the disk was full. Of the four, test_xinput_thread and test_recorder_own_idle pass when run again, test_switch_table passes since #3102, and test_cursor_hidden_linux also fails on main.
  • test_lifter, at f42503a48: rustfmt and clippy pass, then it stops at the_repositorys_files_are_current (game/game.h is stale). That test is known to fail on main, and this does not touch game/. The Rust tests after it, run in two parts with that one left out: 2677 and 559 passed. The disk filled during the first part, so modtool and what follows it ran in the second. One failed there, a menu speed test, with another full suite running on the PC; it passes alone at 266520236.

Still to test:

  • Windows, this head: the builder compiles, the tests above, and the three game runs with HOS_SANDBOX=1, the log saying it is confined (by hand, by the author)
  • Windows, this head, no HOS_SANDBOX: a normal start, expecting sandbox: off and no add-on lines (by hand, by the author)
  • Windows, OBS, HOS_SANDBOX=1: game capture of the sandboxed game, expecting a picture or a log line (by hand)
  • Windows, NVIDIA Streamline, HOS_SANDBOX=1, expecting it to start as before (by hand)
  • Windows, AMD and Intel, HOS_SANDBOX=1: a normal start, expecting no refusal called an add-on's (by hand or Test Farm)
  • Linux, HOS_SANDBOX=1, a start with no add-on and one with MAKO or MangoHud, expecting the same as before: 6 changes which layers count as on there too (by hand)

Measurements

Verdict: the bugs are gone. Frame rate should not change: the fixes run at the start, and when a file is refused.

Setup: Windows 11, RTX 5080, driver 621.47; the same three starts on both, sandbox on. The numbers still hold on main @ 674489dd, for a start with HOS_SANDBOX=1: since 6167e8aab it took #3104 (tests), #3102 (DLSS 5 rows), #3098 (menu), #3112 (modtool), #3113 (NGX's lines, and how a cut log ends), #3120 (Linux's compiler), #3105 (mods' ReShade presets), #3119 and #3108 (menu and input), #3069 (UI) and #3132 (the sandbox off by default). None changes how add-ons are found, allowed or refused with the sandbox on.

Before: main @ 6167e8aab After: this PR @ f42503a48
Layer in a folder VK_ADD_IMPLICIT_LAYER_PATH names not loaded loaded
Text file named as a layer's library readable by the game not readable, said in the log
Refusals logged on a normal start 11 9
Of those, asked about as an add-on's 11 0
test_sandbox_refusals_windows.py not there passes

Frame rate, for #3093 itself against main before it (not these fixes): 157.2 against 157.8 fps (three 40 s runs each, uncapped, Hyrule Field), no difference past the noise. Not run again for the fixes.

Risks

  • The sandbox: 1 and 5 only take grants away. 2 gives one new thing: the names in a folder that holds a layer that is on. Not its files, not its subfolders, nothing written. The never list and the link checks still hold, and the refusals (a .., a stream, a share, a folder, another kind of file) have tests.
  • A layer whose library is not a .dll no longer loads outside Windows' and Program Files' folders. I know of none.
  • A layer with no disable_environment is no longer said as on; the loader never loads one.
  • Not fixed here: VK_IMPLICIT_LAYER_PATH and the VK_LOADER_LAYERS_* variables are not read on Windows; a library path with .. outside Program Files is left out with no line; HOS_ENV_FILE can set VK_ADD_IMPLICIT_LAYER_PATH.
  • A revert is enough: saves, settings and caches don't change.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary Windows fixes for the sandbox's add-ons (#3093), which had not run on Windows when it merged. I ran it on Windows 11 with an RTX 5080. The game started, played and closed, and DLSS started. These problems showed up, and this fixes them: 1. **Any file could be opened to the game as a "layer's library".** A Vulkan layer's manifest names its library. The builder gave the sandboxed game read access to whatever file it named: in a run, a plain text file. Now only a `.dll` that is there gets it, and the log says when one doesn't. 2. **A layer in a folder that `VK_ADD_IMPLICIT_LAYER_PATH` names never loaded.** The log said it was on and its DLL was allowed, but the Vulkan loader lists the folder first, and that was refused. The folder is now served to be listed only, and only when it holds a layer that is on. These layers also come before the registry's now, as they do for the loader. 3. **False alarms on every normal start.** 11 `refused` lines asked "an add-on's?", most of them about Windows' shell or NVIDIA's driver. The shell is now looked past to whoever called it. A driver's or Windows' own refusal is called usual. The Vulkan loader's is not, since it asks for the layers' files. 4. **Warnings could drop out of the log.** The game reads 6144 bytes of the builder's lines. Since #3113 a cut log says how many lines are missing. Now warnings and refused grants also come first, and one line that is too long no longer takes the lines after it away. 5. **OBS's hook was reported as refused though it loads.** Every AppContainer may already read it. It is now recognised and left alone. 6. **A layer the loader passes over counted as on**: one with no `disable_environment`, or a 32-bit one (`library_arch`). 7. **Past 256 paths, a refusal was logged at every open** instead of once. **What #3132 means for this.** The sandbox is off by default now, so all of this applies only to a start with `HOS_SANDBOX=1` (or `strict`). With it off, the builder makes no plan and no grants, and the game's file layer is not installed, so nothing here runs. Every refusal stays as it was for a start with it on. **`main` does not compile on Windows since #3113** (compiled at ca5d3078; the line is the same at 674489dd): `note_lines(&said)` in `sandbox_windows.rs` is called inside `mod os`, which does not import it (E0425). This fixes it (`super::note_lines`). It also fixes checks that #3093 broke on `main`: two Rust tests on Windows (`a_layer_s_library` has Linux paths; `mako_on_asks_its_own_places_and_off_asks_none` puts Windows' `\` in a TOML string), `test_utf8_paths` (`CP_ACP`), rustfmt, and clippy on Linux. And `test_sandbox_windows.py`, which #3113 broke: it looked for the line #3113 replaced. It now checks that the call compiles on Windows too, and that the cut is the size the game reads. To see 1 and 2 on `main`: start the game with `HOS_SANDBOX=1` and `VK_ADD_IMPLICIT_LAYER_PATH` set to a folder, or a manifest in it, outside the game folder. Read first: `addons()` and `layer_library` in `sandbox_windows/gather.rs`; `note_lines` and `every_container_reads` in `sandbox_windows.rs`; `hos_file_refused_usual` in `host/hos_file_windows.c`. ## Testing **Tested:** Windows 11, RTX 5080, driver 621.47, sandbox on, at f42503a48 (the same fixes; only #3098's menu change came under them since). Three windowed runs from the `kokiri-start` save (400 frames of play, then the menu, then quit): a normal start, a throwaway layer in a folder, and a manifest that names a text file. All three passed. - Normal start: RTSS's and OBS's layers (both installed here) loaded, and DLSS started. No refusal was blamed on an add-on. - The throwaway layer loaded; on `main` it did not. - The text file was not opened to the game, and the log said why; on `main` it was opened. - New `tests/test_sandbox_refusals_windows.py` runs on Windows itself (the existing one needs Wine). Its checks for 3 and 7 fail without their fixes and pass here. - New Rust tests for 1, 2 and 6 fail without their fixes and pass here. Those for 4 and 5 test functions this adds. - In the game at 92ab0dfe3 (on #3113, with BeanBot's L1-L3; same PC): a normal start and a manifest naming a text file, as before. A folder of 41 test layers, 13 starts that reached play: the layers the plan has room for loaded, and those past it were named in the log (read at 2589a3406 and 92ab0dfe3). Two more starts with that folder failed. One game quit within a second, as another game started 0.3 s later on the PC; the cause is not proven. One lost the GPU device while starting, after `movie upscale dispatch prewarmed: no`, where two starts on this PC did before #3093 existed (2026-12-02). - This head (37910e887) is on #3132. **Not run on it yet: Windows (not compiled either) and the game**, as the test PC is short of disk space. This change is the same as before the rebase by `git patch-id`, plus the fix of `test_sandbox_windows.py`. The game runs below are from before #3132, when the sandbox was on by default; they come again with `HOS_SANDBOX=1`. - Linux (WSL), this head: `test_sandbox_windows.py` (it fails on `main`'s copy) and `test_sandbox_linux.py` pass, and so do clippy and `cargo test` for `build-core` (222). - At 50dc48bc1, Windows, gnullvm: `longshot-builder` compiles; clippy for `build-core`, `build-compile` and `launcher-profile`, and `cargo test` for `build-core` (199) and `launcher-profile`, pass; so do four checks near the change: `test_utf8_paths`, `test_doc_anchors`, `test_switch_table` and the new test, now without `LONGSHOT_MINGW`. The tests for L1 and L2 fail without their fixes. rustfmt passes but for one line of `settings_host.rs`, from #3098, which this does not touch. `build-compile`'s tests passed at 266520236. - The full suite, Windows, on an earlier version of this branch, not run again: 833 passed and 4 failed when I stopped it near its end, as the disk was full. Of the four, `test_xinput_thread` and `test_recorder_own_idle` pass when run again, `test_switch_table` passes since #3102, and `test_cursor_hidden_linux` also fails on `main`. - `test_lifter`, at f42503a48: rustfmt and clippy pass, then it stops at `the_repositorys_files_are_current` (`game/game.h` is stale). That test is known to fail on `main`, and this does not touch `game/`. The Rust tests after it, run in two parts with that one left out: 2677 and 559 passed. The disk filled during the first part, so `modtool` and what follows it ran in the second. One failed there, a menu speed test, with another full suite running on the PC; it passes alone at 266520236. **Still to test:** - Windows, this head: the builder compiles, the tests above, and the three game runs with `HOS_SANDBOX=1`, the log saying it is confined (by hand, by the author) - Windows, this head, no `HOS_SANDBOX`: a normal start, expecting `sandbox: off` and no add-on lines (by hand, by the author) - Windows, OBS, `HOS_SANDBOX=1`: game capture of the sandboxed game, expecting a picture or a log line (by hand) - Windows, NVIDIA Streamline, `HOS_SANDBOX=1`, expecting it to start as before (by hand) - Windows, AMD and Intel, `HOS_SANDBOX=1`: a normal start, expecting no refusal called an add-on's (by hand or Test Farm) - Linux, `HOS_SANDBOX=1`, a start with no add-on and one with MAKO or MangoHud, expecting the same as before: 6 changes which layers count as on there too (by hand) ## Measurements **Verdict:** the bugs are gone. Frame rate should not change: the fixes run at the start, and when a file is refused. Setup: Windows 11, RTX 5080, driver 621.47; the same three starts on both, sandbox on. The numbers still hold on `main` @ 674489dd, for a start with `HOS_SANDBOX=1`: since 6167e8aab it took #3104 (tests), #3102 (DLSS 5 rows), #3098 (menu), #3112 (modtool), #3113 (NGX's lines, and how a cut log ends), #3120 (Linux's compiler), #3105 (mods' ReShade presets), #3119 and #3108 (menu and input), #3069 (UI) and #3132 (the sandbox off by default). None changes how add-ons are found, allowed or refused with the sandbox on. | | Before: main @ 6167e8aab | After: this PR @ f42503a48 | |---|---|---| | Layer in a folder `VK_ADD_IMPLICIT_LAYER_PATH` names | not loaded | loaded | | Text file named as a layer's library | readable by the game | not readable, said in the log | | Refusals logged on a normal start | 11 | 9 | | Of those, asked about as an add-on's | 11 | 0 | | `test_sandbox_refusals_windows.py` | not there | passes | Frame rate, for #3093 itself against `main` before it (not these fixes): 157.2 against 157.8 fps (three 40 s runs each, uncapped, Hyrule Field), no difference past the noise. Not run again for the fixes. ## Risks - **The sandbox**: 1 and 5 only take grants away. 2 gives one new thing: the names in a folder that holds a layer that is on. Not its files, not its subfolders, nothing written. The never list and the link checks still hold, and the refusals (a `..`, a stream, a share, a folder, another kind of file) have tests. - A layer whose library is not a `.dll` no longer loads outside Windows' and Program Files' folders. I know of none. - A layer with no `disable_environment` is no longer said as on; the loader never loads one. - Not fixed here: `VK_IMPLICIT_LAYER_PATH` and the `VK_LOADER_LAYERS_*` variables are not read on Windows; a library path with `..` outside Program Files is left out with no line; `HOS_ENV_FILE` can set `VK_ADD_IMPLICIT_LAYER_PATH`. - A revert is enough: saves, settings and caches don't change. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
llun added 12 commits 2026-12-03 20:17:25 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
style(sandbox): clippy's collapsible if in the Linux add-ons' code
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2665202361
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RTX 5080, driver 621.47, sandbox on, at f42503a48 (only #3098's menu change came under the fixes since). Three windowed runs from the kokiri-start save, 400 frames of play, the menu, then quit; all passed. Normal start: RTSS's and OBS's layers loaded, DLSS started, and no refusal was called an add-on's. A throwaway layer in a folder VK_ADD_IMPLICIT_LAYER_PATH names loaded (on main @ 6167e8aab it did not). A manifest naming a text file: the file was not opened to the game, and the log said why (on main it was opened).

Tested in game: Windows 11, RTX 5080, driver 621.47, sandbox on, at f42503a48 (only #3098's menu change came under the fixes since). Three windowed runs from the kokiri-start save, 400 frames of play, the menu, then quit; all passed. Normal start: RTSS's and OBS's layers loaded, DLSS started, and no refusal was called an add-on's. A throwaway layer in a folder VK_ADD_IMPLICIT_LAYER_PATH names loaded (on main @ 6167e8aab it did not). A manifest naming a text file: the file was not opened to the game, and the log said why (on main it was opened).
llun changed title from WIP: fix(sandbox): Windows add-ons: only a layer's DLL is opened to the game, added layers load, and false alarms leave the log to fix(sandbox): Windows add-ons: only a layer's DLL is opened to the game, added layers load, and false alarms leave the log 2026-12-03 20:17:40 +00:00
BeanBot left a comment

Recommendation: Approve. The new Windows regression test silently skips on supported compiler setups, and the new folder-listing grant can be dropped when many layers are present. The reported Windows runs show the main fixes working, but the remaining platform runs are still needed. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change restricts Windows layer-library grants, lets the loader list added layer folders, and improves sandbox diagnostics. It also changes which implicit layers are recognized on Linux; the main cost is additional startup policy and diagnostic complexity.

Should fix (3): not blocking, but worth doing before merging.

  • L1 builder/crates/build-core/src/sandbox_windows/gather.rs:522: The folder grants are appended after all manifest grants, but the plan only takes the first 32 add-on places. (more on the line) Do: Reserve or prioritize the required folder grants and report any manifest or folder omitted by the limit; add a test with enough enabled manifests to cross it.
  • L2 builder/crates/build-core/src/sandbox_windows.rs:293: A line that does not fit stops the entire selection, so later warnings and refused grants can still disappear. (more on the line) Do: Skip or truncate an oversized line and continue selecting the remaining priority lines, counting every omitted line.
  • L3 tests/test_sandbox_refusals_windows.py:141: The new regression test ignores CC and exits successfully without testing anything unless LONGSHOT_MINGW points to a particular compiler layout. (more on the line) Do: Use the configured supported compiler, including CC, and arrange the Windows checks to run the test rather than silently treating a missing compiler as a pass.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4: The shared layer-selection change still needs an in-game Linux check, including a relevant Tier 1 system. When: Linux add-ons now lose their sandbox grants when their manifests are classified as off; the Windows run does not exercise that path. Do: Run a sandboxed Linux start without an add-on and with MAKO or MangoHud, including Steam Deck where applicable, and check that the add-on works as before.
  • L5: Windows driver and capture integrations affected by the new grant and refusal handling remain untested. When: The reported NVIDIA start does not check OBS game capture or Streamline, and no AMD or Intel normal start checks the new refusal classification. Do: Check OBS game capture and Streamline with the sandbox on, and run normal Windows starts on AMD and Intel as listed in the PR.

@fix can do L1, L2 and L3.

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the tested Windows cases: the author reports an added layer loading where it did not before, a manifest-named text file no longer being opened, and add-on-attributed normal-start refusals falling from 11 to 0. Those comparisons were on Windows 11 with an RTX 5080; the remaining platforms and integrations are untested.

Other systems: The shared layer-selection change also affects Linux add-ons, including MAKO and MangoHud. Windows folder discovery and refusal classification can affect other GPU drivers, OBS capture, and Streamline; the author lists those runs as outstanding.

Switches: No switches added, changed, or removed.

Reviewed: 2665202361 against 76092c5e5a: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the full diff, commit messages, addons.rs, the changed Windows gathering and ACL paths, and surrounding file-service and grant-planning code. Skimmed the remaining portions of the large platform files and the changed documentation and test; no generated files or recorded runs were changed. docs/review-checklist.md is absent.; nothing run (a code review).

Checked and fine:

  • The changed commits record AI assistance with Co-Authored-By trailers.
  • The diff does not change third-party code, renderer API structures, shaders, or generated game output.
  • The refusal-path deduplication table is protected by its existing lock.

Testing: Read-only review; no commands from the project or tests were run. CI is still running on this head.

Overlaps and merge order: None found in the supplied PR context.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The new Windows regression test silently skips on supported compiler setups, and the new folder-listing grant can be dropped when many layers are present. The reported Windows runs show the main fixes working, but the remaining platform runs are still needed. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change restricts Windows layer-library grants, lets the loader list added layer folders, and improves sandbox diagnostics. It also changes which implicit layers are recognized on Linux; the main cost is additional startup policy and diagnostic complexity. **Should fix (3)**: not blocking, but worth doing before merging. - **L1** `builder/crates/build-core/src/sandbox_windows/gather.rs:522`: The folder grants are appended after all manifest grants, but the plan only takes the first 32 add-on places. (more on the line) **Do:** Reserve or prioritize the required folder grants and report any manifest or folder omitted by the limit; add a test with enough enabled manifests to cross it. - **L2** `builder/crates/build-core/src/sandbox_windows.rs:293`: A line that does not fit stops the entire selection, so later warnings and refused grants can still disappear. (more on the line) **Do:** Skip or truncate an oversized line and continue selecting the remaining priority lines, counting every omitted line. - **L3** `tests/test_sandbox_refusals_windows.py:141`: The new regression test ignores CC and exits successfully without testing anything unless LONGSHOT_MINGW points to a particular compiler layout. (more on the line) **Do:** Use the configured supported compiler, including CC, and arrange the Windows checks to run the test rather than silently treating a missing compiler as a pass. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The shared layer-selection change still needs an in-game Linux check, including a relevant Tier 1 system. *When:* Linux add-ons now lose their sandbox grants when their manifests are classified as off; the Windows run does not exercise that path. **Do:** Run a sandboxed Linux start without an add-on and with MAKO or MangoHud, including Steam Deck where applicable, and check that the add-on works as before. - **L5**: Windows driver and capture integrations affected by the new grant and refusal handling remain untested. *When:* The reported NVIDIA start does not check OBS game capture or Streamline, and no AMD or Intel normal start checks the new refusal classification. **Do:** Check OBS game capture and Streamline with the sandbox on, and run normal Windows starts on AMD and Intel as listed in the PR. `@fix` can do L1, L2 and L3. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the tested Windows cases: the author reports an added layer loading where it did not before, a manifest-named text file no longer being opened, and add-on-attributed normal-start refusals falling from 11 to 0. Those comparisons were on Windows 11 with an RTX 5080; the remaining platforms and integrations are untested. **Other systems:** The shared layer-selection change also affects Linux add-ons, including MAKO and MangoHud. Windows folder discovery and refusal classification can affect other GPU drivers, OBS capture, and Streamline; the author lists those runs as outstanding. **Switches:** No switches added, changed, or removed. **Reviewed:** 266520236105 against 76092c5e5a3b: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the full diff, commit messages, addons.rs, the changed Windows gathering and ACL paths, and surrounding file-service and grant-planning code. Skimmed the remaining portions of the large platform files and the changed documentation and test; no generated files or recorded runs were changed. docs/review-checklist.md is absent.; nothing run (a code review). **Checked and fine:** - The changed commits record AI assistance with Co-Authored-By trailers. - The diff does not change third-party code, renderer API structures, shaders, or generated game output. - The refusal-path deduplication table is protected by its existing lock. **Testing:** Read-only review; no commands from the project or tests were run. CI is still running on this head. **Overlaps and merge order:** None found in the supplied PR context. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.</sub>
@ -279,0 +290,4 @@
for line in kept.into_iter().chain(rest) {
if n + line.len() + 1 > room {
break;
}
Member

L2 (should fix): A line that does not fit stops the entire selection, so later warnings and refused grants can still disappear.

When: An enabled manifest can supply a long layer name, producing a not-granted line longer than the remaining note budget. The loop breaks at that line and drops subsequent short warnings as well.

Do: Skip or truncate an oversized line and continue selecting the remaining priority lines, counting every omitted line.

**L2** (should fix): A line that does not fit stops the entire selection, so later warnings and refused grants can still disappear. *When:* An enabled manifest can supply a long layer name, producing a not-granted line longer than the remaining note budget. The loop breaks at that line and drops subsequent short warnings as well. **Do:** Skip or truncate an oversized line and continue selecting the remaining priority lines, counting every omitted line.
@ -516,0 +519,4 @@
}
}
// (a folder VK_ADD_IMPLICIT_LAYER_PATH names is listed by the loader before it reads a manifest there)
for d in added.iter().filter(|d| layers.iter().any(|l| l.manifest.parent() == Some(d.as_path()))) {
Member

L1 (should fix): The folder grants are appended after all manifest grants, but the plan only takes the first 32 add-on places.

When: If an added folder contains 32 enabled manifests, those manifests fill the limit before its folder is added. The loader cannot list the folder, so none of those added layers is discovered despite their libraries being planned.

Do: Reserve or prioritize the required folder grants and report any manifest or folder omitted by the limit; add a test with enough enabled manifests to cross it.

**L1** (should fix): The folder grants are appended after all manifest grants, but the plan only takes the first 32 add-on places. *When:* If an added folder contains 32 enabled manifests, those manifests fill the limit before its folder is added. The loader cannot list the folder, so none of those added layers is discovered despite their libraries being planned. **Do:** Reserve or prioritize the required folder grants and report any manifest or folder omitted by the limit; add a test with enough enabled manifests to cross it.
@ -0,0 +138,4 @@
def main():
mingw = os.environ.get("LONGSHOT_MINGW")
Member

L3 (should fix): The new regression test ignores CC and exits successfully without testing anything unless LONGSHOT_MINGW points to a particular compiler layout.

When: On a Windows test setup using CC or the supported Visual Studio route without LONGSHOT_MINGW, the test prints SKIP and returns success, so the refusal and deduplication fixes have no regression coverage there.

Do: Use the configured supported compiler, including CC, and arrange the Windows checks to run the test rather than silently treating a missing compiler as a pass.

**L3** (should fix): The new regression test ignores CC and exits successfully without testing anything unless LONGSHOT_MINGW points to a particular compiler layout. *When:* On a Windows test setup using CC or the supported Visual Studio route without LONGSHOT_MINGW, the test prints SKIP and returns success, so the refusal and deduplication fixes have no regression coverage there. **Do:** Use the configured supported compiler, including CC, and arrange the Windows checks to run the test rather than silently treating a missing compiler as a pass.
llun force-pushed fix/addons-windows from 2665202361
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 1994119889
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 20:45:29 +00:00
Compare
llun force-pushed fix/addons-windows from 1994119889
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 92ab0dfe36
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
2026-12-03 21:18:05 +00:00
Compare
Author
Member

BeanBot's three points are fixed, and the branch is on main @ ca5d3078.

  • L1: an added layer's folder now goes before its manifests, so the loader can always list it. A place past the cap is named in the log. Two tests fail without this.
  • L2: a line that does not fit is skipped, and the ones after it are still taken. Its test fails without this.
  • L3: the test takes the runner's clang (--cc), and no longer skips without LONGSHOT_MINGW.

main does not compile on Windows since #3113: note_lines is not in scope in mod os (E0425 at ca5d3078). This branch fixes that, and keeps #3113's wording and test.

L4 and L5 are not done: Linux in the game, OBS capture, Streamline, AMD and Intel are still under Still to test. What ran on this head, and two failed starts, are under Tested.

BeanBot's three points are fixed, and the branch is on `main` @ ca5d3078. - **L1**: an added layer's folder now goes before its manifests, so the loader can always list it. A place past the cap is named in the log. Two tests fail without this. - **L2**: a line that does not fit is skipped, and the ones after it are still taken. Its test fails without this. - **L3**: the test takes the runner's clang (`--cc`), and no longer skips without `LONGSHOT_MINGW`. `main` does not compile on Windows since #3113: `note_lines` is not in scope in `mod os` (E0425 at ca5d3078). This branch fixes that, and keeps #3113's wording and test. L4 and L5 are not done: Linux in the game, OBS capture, Streamline, AMD and Intel are still under *Still to test*. What ran on this head, and two failed starts, are under *Tested*.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported Windows fixes have game-run evidence, and the three code items are resolved. Linux layer selection and Windows driver and capture integrations still need the runs identified in the ledger. Recommend approval; not approved on the forge.

The change restricts Windows layer-library grants, enables layers in added folders, and makes sandbox refusals and truncated logs more useful. It also changes shared layer selection on Linux; the added code and platform handling carry integration risk that remains to be tested.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4: The shared layer-selection change still needs an in-game Linux check, including a relevant Tier 1 system. When: Linux add-ons now lose their sandbox grants when their manifests are classified as off; the Windows run does not exercise that path. Do: Run a sandboxed Linux start without an add-on and with MAKO or MangoHud, including Steam Deck where applicable, and check that the add-on works as before.
  • L5: Windows driver and capture integrations affected by the new grant and refusal handling remain untested. When: The reported NVIDIA start does not check OBS game capture or Streamline, and no AMD or Intel normal start checks the new refusal classification. Do: Check OBS game capture and Streamline with the sandbox on, and run normal Windows starts on AMD and Intel as listed in the PR.

Since the last review (on 2665202361)
Resolved: L1 (The folder grants are appended after all manifest grants, but the plan only takes the firs…); L2 (A line that does not fit stops the entire selection, so later warnings and refused grants…); L3 (The new regression test ignores CC and exits successfully without testing anything unless…)
Still open: L4 (The shared layer-selection change still needs an in-game Linux check, including a relevant…); L5 (Windows driver and capture integrations affected by the new grant and refusal handling rem…)

Checks: Still running: PR description / Title and description (pull_request_target).

More: does it help, other systems, switches, what was read

Does it help: Yes for the tested Windows cases: the author reports that an added-folder layer loaded, a text file named as a library was denied, and add-on-attributed refusals fell from 11 to 0 on Windows 11 with an RTX 5080. Performance was not measured for these fixes.

Other systems: The shared layer-selection change also affects Linux; its in-game check remains outstanding. Windows OBS capture, NVIDIA Streamline, AMD and Intel integrations remain untested. The author reports successful Windows and Linux build-core tests and clippy checks.

Switches: None added, changed or removed.

Reviewed: 92ab0dfe36 against ca5d307814: Read AGENTS.md and CONTRIBUTING.md, the relevant diffs and the changed sections of sandbox_windows.rs, gather.rs, plan.rs and the Windows refusal test. Read the diffs for addons.rs, sandbox_linux.rs, sandbox documentation and hos_file_windows.c. The changed code files and their surrounding callers were not all read in full.; nothing run (a code review).

Checked and fine:

  • The cut-note test checks that later warnings survive an oversized line and that the result fits the byte limit.
  • The author reports that layers within the plan limit loaded and omitted places were named in the log.

Testing: No commands from the project or tests were run. The author reports Windows and Linux build-core checks on this head and Windows game runs; the remaining integration runs are listed in the ledger.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported Windows fixes have game-run evidence, and the three code items are resolved. Linux layer selection and Windows driver and capture integrations still need the runs identified in the ledger. Recommend approval; not approved on the forge. The change restricts Windows layer-library grants, enables layers in added folders, and makes sandbox refusals and truncated logs more useful. It also changes shared layer selection on Linux; the added code and platform handling carry integration risk that remains to be tested. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The shared layer-selection change still needs an in-game Linux check, including a relevant Tier 1 system. *When:* Linux add-ons now lose their sandbox grants when their manifests are classified as off; the Windows run does not exercise that path. **Do:** Run a sandboxed Linux start without an add-on and with MAKO or MangoHud, including Steam Deck where applicable, and check that the add-on works as before. - **L5**: Windows driver and capture integrations affected by the new grant and refusal handling remain untested. *When:* The reported NVIDIA start does not check OBS game capture or Streamline, and no AMD or Intel normal start checks the new refusal classification. **Do:** Check OBS game capture and Streamline with the sandbox on, and run normal Windows starts on AMD and Intel as listed in the PR. **Since the last review** (on 266520236105) Resolved: L1 (The folder grants are appended after all manifest grants, but the plan only takes the firs…); L2 (A line that does not fit stops the entire selection, so later warnings and refused grants…); L3 (The new regression test ignores CC and exits successfully without testing anything unless…) Still open: L4 (The shared layer-selection change still needs an in-game Linux check, including a relevant…); L5 (Windows driver and capture integrations affected by the new grant and refusal handling rem…) **Checks:** Still running: `PR description / Title and description (pull_request_target)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the tested Windows cases: the author reports that an added-folder layer loaded, a text file named as a library was denied, and add-on-attributed refusals fell from 11 to 0 on Windows 11 with an RTX 5080. Performance was not measured for these fixes. **Other systems:** The shared layer-selection change also affects Linux; its in-game check remains outstanding. Windows OBS capture, NVIDIA Streamline, AMD and Intel integrations remain untested. The author reports successful Windows and Linux build-core tests and clippy checks. **Switches:** None added, changed or removed. **Reviewed:** 92ab0dfe3667 against ca5d3078149a: Read AGENTS.md and CONTRIBUTING.md, the relevant diffs and the changed sections of sandbox_windows.rs, gather.rs, plan.rs and the Windows refusal test. Read the diffs for addons.rs, sandbox_linux.rs, sandbox documentation and hos_file_windows.c. The changed code files and their surrounding callers were not all read in full.; nothing run (a code review). **Checked and fine:** - The cut-note test checks that later warnings survive an oversized line and that the result fits the byte limit. - The author reports that layers within the plan limit loaded and omitted places were named in the log. **Testing:** No commands from the project or tests were run. The author reports Windows and Linux build-core checks on this head and Windows game runs; the remaining integration runs are listed in the ledger. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
llun force-pushed fix/addons-windows from 92ab0dfe36
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
to 50dc48bc12
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 21:44:36 +00:00
Compare
llun force-pushed fix/addons-windows from 50dc48bc12
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 37910e8870
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 23:41:04 +00:00
Compare
Owner
@rebase
Member

I rebased this pull request onto main (309af878f1): the new head is af9969864a.

Conflicts resolved

  • tests/test_sandbox_windows.py: Kept the qualified note helper check and the note size limit check.

Nothing was built or run: read the resolution before merging.


Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I rebased this pull request onto `main` (309af878f162): the new head is af9969864a62. **Conflicts resolved** - tests/test_sandbox_windows.py: Kept the qualified note helper check and the note size limit check. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed fix/addons-windows from 37910e8870
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to af9969864a
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Successful in 10s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m25s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 15m2s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 17m11s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 16m28s
CI / Website build and checks (pull_request) Failing after 1m9s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 13m56s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Successful in 51m57s
2026-12-04 00:11:02 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The Windows runs show the targeted layer and logging fixes working, but the outstanding Linux and Windows integration runs have not been reported. CI is also still running. Recommend approval; not approved on the forge.

With the sandbox enabled, this restricts layer-library grants, allows enabled layers in added folders to load, and improves refusal logging. It also changes shared layer selection on Linux; the main cost is the added grant and logging logic.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4: The shared layer-selection change still needs an in-game Linux check, including a relevant Tier 1 system. When: Linux add-ons now lose their sandbox grants when their manifests are classified as off; the Windows run does not exercise that path. Do: Run a sandboxed Linux start without an add-on and with MAKO or MangoHud, including Steam Deck where applicable, and check that the add-on works as before.
  • L5: Windows driver and capture integrations affected by the new grant and refusal handling remain untested. When: The reported NVIDIA start does not check OBS game capture or Streamline, and no AMD or Intel normal start checks the new refusal classification. Do: Check OBS game capture and Streamline with the sandbox on, and run normal Windows starts on AMD and Intel as listed in the PR.

Since the last review (on 92ab0dfe36)
Still open: L4 (The shared layer-selection change still needs an in-game Linux check, including a relevant…); L5 (Windows driver and capture integrations affected by the new grant and refusal handling rem…)

Checks: Still running: 11 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the tested Windows cases: the added-folder layer loaded and the text file was no longer readable, versus the opposite results on main. These were game runs on Windows 11 with an RTX 5080 at f42503a48; the current head has not been run in game.

Other systems: Shared layer selection affects Linux add-ons; an in-game check remains outstanding. Windows OBS capture, NVIDIA Streamline, and AMD and Intel normal starts also remain untested. The sandbox is off by default after the rebase.

Switches: None added, changed or removed by this pull request.

Reviewed: af9969864a against 309af878f1: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the changed Windows source-check test, the commit list and portions of the diff. Skimmed the recorded runs and remaining diff; the other changed code files were not read in full. docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The changed source check matches the qualified Windows note_lines call and compares the builder's note limit with SBXW_NOTE_MAX.

Testing: No commands from the project were run. The author reports passing Windows game runs on an earlier head and Linux game-free checks; the current head's Windows compile and game runs remain outstanding.

Overlaps and merge order: none found


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The Windows runs show the targeted layer and logging fixes working, but the outstanding Linux and Windows integration runs have not been reported. CI is also still running. Recommend approval; not approved on the forge. With the sandbox enabled, this restricts layer-library grants, allows enabled layers in added folders to load, and improves refusal logging. It also changes shared layer selection on Linux; the main cost is the added grant and logging logic. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The shared layer-selection change still needs an in-game Linux check, including a relevant Tier 1 system. *When:* Linux add-ons now lose their sandbox grants when their manifests are classified as off; the Windows run does not exercise that path. **Do:** Run a sandboxed Linux start without an add-on and with MAKO or MangoHud, including Steam Deck where applicable, and check that the add-on works as before. - **L5**: Windows driver and capture integrations affected by the new grant and refusal handling remain untested. *When:* The reported NVIDIA start does not check OBS game capture or Streamline, and no AMD or Intel normal start checks the new refusal classification. **Do:** Check OBS game capture and Streamline with the sandbox on, and run normal Windows starts on AMD and Intel as listed in the PR. **Since the last review** (on 92ab0dfe3667) Still open: L4 (The shared layer-selection change still needs an in-game Linux check, including a relevant…); L5 (Windows driver and capture integrations affected by the new grant and refusal handling rem…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the tested Windows cases: the added-folder layer loaded and the text file was no longer readable, versus the opposite results on main. These were game runs on Windows 11 with an RTX 5080 at f42503a48; the current head has not been run in game. **Other systems:** Shared layer selection affects Linux add-ons; an in-game check remains outstanding. Windows OBS capture, NVIDIA Streamline, and AMD and Intel normal starts also remain untested. The sandbox is off by default after the rebase. **Switches:** None added, changed or removed by this pull request. **Reviewed:** af9969864a62 against 309af878f162: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the changed Windows source-check test, the commit list and portions of the diff. Skimmed the recorded runs and remaining diff; the other changed code files were not read in full. docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The changed source check matches the qualified Windows note_lines call and compares the builder's note limit with SBXW_NOTE_MAX. **Testing:** No commands from the project were run. The author reports passing Windows game runs on an earlier head and Linux game-free checks; the current head's Windows compile and game runs remain outstanding. **Overlaps and merge order:** none found </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch fix/addons-windows 2026-12-04 00:16:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3110
No description provided.