fix(agent): the Windows sandbox lists the folders above its data folder, so lld's start from the real path is not refused #165

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/windows-list-above-data into main 2026-11-28 18:49:21 +00:00
Owner

nightly-281's Windows reports (rp_5d08c3f82bfda42e, rp_2e67d146d96578ef) carry the builder's own build_report, and its why names the path lld was started from: <home>/AppData/Local/<user>/data/builder/tools/tools/llvm-mingw/bin/ld.lld: Permission denied: the real folder, not the work drive. Two facts since #161 explain why #156, #161 and the probe's plain link (which works from the drive) did not help the game's link:

  • Longshot's builder removes CCC_OVERRIDE_OPTIONS (and COMPILER_PATH, …) from every compiler and linker it runs (build-compile/src/toolchain.rs, UNKEYED_ENV), so neither -B nor --ld-path ever reached the link, and clang starts lld from the real folder.
  • LLVM's start (InitLLVM -> GetLongPathNameW on its own path) looks up every component of that path that could be an 8.3 name, which lists its parent; the sandbox can list none of C:\Users\<user>, AppData, Local, … (Longshot #910).

Fix (the owner chose this over keeping on diagnosing or moving the tools): WinDrive.Above names the folders above the data folder, from the drive's root down (not the root, not the data folder: C:\Users, the profile, AppData, Local, the folder Beanstalk lives in) and WindowsSandbox.Prepare gives each a listing of itself alone (WinAccess.List: its own entries; no file's data; nothing inherited; not the files, not the folders beneath), as the drive's root already has. One the agent does not own (C:\Users) is left as it is (the grant fails quietly). The grants go in the ledger, so the runner account's removal takes them back.

What this lets a build's scripts see: the names of what is directly inside those folders (accounts in C:\Users if its listing is allowed already, the profile's folders such as Documents and Downloads, the programs' folders in AppData\Local), never what is in them. docs/windows-clang.md says so.

Not built or run here (this PC's rules).

🤖 Generated with Claude Code

nightly-281's Windows reports (rp_5d08c3f82bfda42e, rp_2e67d146d96578ef) carry the builder's own `build_report`, and its `why` names the path lld was started from: `<home>/AppData/Local/<user>/data/builder/tools/tools/llvm-mingw/bin/ld.lld: Permission denied`: **the real folder, not the work drive**. Two facts since #161 explain why #156, #161 and the probe's plain link (which works from the drive) did not help the game's link: - Longshot's builder removes `CCC_OVERRIDE_OPTIONS` (and `COMPILER_PATH`, …) from every compiler and linker it runs (`build-compile/src/toolchain.rs`, `UNKEYED_ENV`), so neither `-B` nor `--ld-path` ever reached the link, and clang starts lld from the real folder. - LLVM's start (InitLLVM -> `GetLongPathNameW` on its own path) looks up every component of that path that could be an 8.3 name, which lists its parent; the sandbox can list none of `C:\Users\<user>`, `AppData`, `Local`, … (Longshot #910). Fix (the owner chose this over keeping on diagnosing or moving the tools): `WinDrive.Above` names the folders above the data folder, from the drive's root down (not the root, not the data folder: `C:\Users`, the profile, `AppData`, `Local`, the folder Beanstalk lives in) and `WindowsSandbox.Prepare` gives each a **listing of itself alone** (`WinAccess.List`: its own entries; no file's data; nothing inherited; not the files, not the folders beneath), as the drive's root already has. One the agent does not own (`C:\Users`) is left as it is (the grant fails quietly). The grants go in the ledger, so the runner account's removal takes them back. **What this lets a build's scripts see**: the names of what is directly inside those folders (accounts in `C:\Users` if its listing is allowed already, the profile's folders such as Documents and Downloads, the programs' folders in `AppData\Local`), never what is in them. docs/windows-clang.md says so. Not built or run here (this PC's rules). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): the Windows sandbox lists the folders above its data folder, so lld's start from the real path is not refused
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 7s
CI / Workflow lint (actionlint) (pull_request) Successful in 7s
CI / Coordinator image (pull_request) Successful in 16s
CI / Coordinator tests (pull_request) Failing after 1m29s
CI / Agent build and checks (pull_request) Successful in 1m36s
88d9559512
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign in to join this conversation.
No reviewers
No milestone
No project
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.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!165
No description provided.