fix(agent): the Windows sandbox lists the folders above the tools, so LLVM's start is not refused #156

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/windows-list-above-tools into main 2026-11-28 05:27:08 +00:00
Owner

Every Windows build of main's longshot-builder stops at its first link with <mingw>\bin\x86_64-w64-mingw32-clang.exe: Permission denied (proc-macro2, serde_core, quote, libm … 20+ reports in a day, none passed). The probe lines #154 added to the failed report say why (rp_0d071663be9c033d, PR #2496, nightly-272):

  • spawn real exit 1 [... clang-23.exe: Permission denied]: clang-23.exe --version itself is refused, so it is LLVM's start, not the driver's later spawn of cc1.
  • longpath clang failed winerror 5 and, folder by folder (clang at Z:\builder\tools\tools\llvm-mingw\bin\clang-23.exe): look 1 ok (Z:\builder), look 2 8.3-like failed winerror 5 (Z:\builder\tools), look 3 ok …

LLVM's start looks up every folder above its own path (Longshot #910); each lookup lists the folder above it. Z:\ is listed and Z:\builder\tools is read, but nothing lists Z:\builder, which holds the tools since #2286's builder keeps them in <data>\builder\tools (make_game.py's were <data>\tools, a child of the root). So the second lookup is refused.

Fix: WinDrive.ListAbove names every folder strictly between the drive's root and each grant; WindowsSandbox.Prepare gives each a listing of itself alone (WinAccess.List: its entries, no file's data, nothing inherited, as the root has). It replaces the attributes-only grant a writable root's parent gets, and is skipped where a read or modify grant covers the folder already.

Not built or run here (this PC's rules). If the link still fails afterwards the next error is the driver's (-no-canonical-prefixes, docs/windows-clang.md), which the probe lines will show.

🤖 Generated with Claude Code

Every Windows build of main's longshot-builder stops at its first link with `<mingw>\bin\x86_64-w64-mingw32-clang.exe: Permission denied` (proc-macro2, serde_core, quote, libm … 20+ reports in a day, none passed). The probe lines #154 added to the failed report say why (rp_0d071663be9c033d, PR #2496, nightly-272): - `spawn real exit 1 [... clang-23.exe: Permission denied]`: `clang-23.exe --version` itself is refused, so it is LLVM's start, not the driver's later spawn of cc1. - `longpath clang failed winerror 5` and, folder by folder (clang at `Z:\builder\tools\tools\llvm-mingw\bin\clang-23.exe`): `look 1 ok` (Z:\builder), `look 2 8.3-like failed winerror 5` (Z:\builder\tools), `look 3 ok` … LLVM's start looks up every folder above its own path (Longshot #910); each lookup lists the folder above it. Z:\ is listed and `Z:\builder\tools` is read, but nothing lists `Z:\builder`, which holds the tools since #2286's builder keeps them in `<data>\builder\tools` (make_game.py's were `<data>\tools`, a child of the root). So the second lookup is refused. Fix: `WinDrive.ListAbove` names every folder strictly between the drive's root and each grant; `WindowsSandbox.Prepare` gives each a listing of itself alone (`WinAccess.List`: its entries, no file's data, nothing inherited, as the root has). It replaces the attributes-only grant a writable root's parent gets, and is skipped where a read or modify grant covers the folder already. Not built or run here (this PC's rules). If the link still fails afterwards the next error is the driver's (`-no-canonical-prefixes`, docs/windows-clang.md), which the probe lines will show. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): the Windows sandbox lists the folders above the tools, so LLVM's start is not refused
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 4s
CI / Workflow lint (actionlint) (pull_request) Successful in 5s
CI / Coordinator tests (pull_request) Failing after 1m46s
CI / Agent build and checks (pull_request) Successful in 2m31s
CI / Coordinator image (pull_request) Successful in 18s
dd99f9872e
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!156
No description provided.