fix(agent): a refused Windows link puts the builder's own words about it in the report #163

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/windows-link-buildlog into main 2026-11-28 12:52:44 +00:00
Owner

nightly-280's probe (rp_36c1dbf3c7ca16c5 windows+nvidia, rp_b8b95e16ee1c1496 windows+amd) answers part of it, and two things are now known:

  1. Longshot's builder removes CCC_OVERRIDE_OPTIONS (and COMPILER_PATH, LIBRARY_PATH, CPATH, SDKROOT …) from every compiler and linker run it makes (build-compile/src/toolchain.rs, UNKEYED_ENV/clang(): "an object is made from its flags alone"). So #161's --ld-path and the older -B never reached the game's link: the agent's override only works for what is not the builder's. (The compile never needed it: clang's compile is in-process by default.)
  2. A plain link by the same clang.exe from the probe, from the work drive, works (spawn compile-plain exit 0, link-no-canonical exit 0, lld --version exit 0; clang plans ld.lld.exe on the drive: Z:\builder\...\ld.lld.exe). So the sandbox can start lld from the drive. The builder's link fails differently, and the report's tail (the objects) has only "<data>/builder/tools/tools/llvm-mingw/bin/ld.lld: Permission denied, clang-23: error: linker command failed".

Not guessing a fourth time: when the main base's link is refused, the agent now reads the builder's own build.log (its link command and linker output, the lines that mention lld, clang, link, Permission, denied; the last 40, 400 characters each; never a line of the game's code, which Remember already drops) and puts them at the end of the log the report carries (@@buildlog …). Nothing else changes.

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

🤖 Generated with Claude Code

nightly-280's probe (rp_36c1dbf3c7ca16c5 windows+nvidia, rp_b8b95e16ee1c1496 windows+amd) answers part of it, and two things are now known: 1. **Longshot's builder removes `CCC_OVERRIDE_OPTIONS` (and `COMPILER_PATH`, `LIBRARY_PATH`, `CPATH`, `SDKROOT` …) from every compiler and linker run it makes** (`build-compile/src/toolchain.rs`, `UNKEYED_ENV`/`clang()`: "an object is made from its flags alone"). So #161's `--ld-path` and the older `-B` never reached the game's link: the agent's override only works for what is not the builder's. (The compile never needed it: clang's compile is in-process by default.) 2. A plain link by the same `clang.exe` from the probe, from the work drive, **works** (`spawn compile-plain exit 0`, `link-no-canonical exit 0`, `lld --version exit 0`; clang plans `ld.lld.exe` on the drive: `Z:\builder\...\ld.lld.exe`). So the sandbox can start lld from the drive. The builder's link fails differently, and the report's tail (the objects) has only "`<data>/builder/tools/tools/llvm-mingw/bin/ld.lld: Permission denied`, `clang-23: error: linker command failed`". Not guessing a fourth time: when the main base's link is refused, the agent now reads the builder's own `build.log` (its link command and linker output, the lines that mention lld, clang, link, Permission, denied; the last 40, 400 characters each; never a line of the game's code, which `Remember` already drops) and puts them at the end of the log the report carries (`@@buildlog …`). Nothing else changes. Not built or run here (this PC's rules). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): a refused Windows link puts the builder's own words about it in the report
Some checks failed
CI / Workflow lint (actionlint) (pull_request) Successful in 15s
CI / Conventional Commit title (pull_request) Successful in 15s
CI / Coordinator tests (pull_request) Failing after 1m45s
CI / Coordinator image (pull_request) Successful in 15s
CI / Agent build and checks (pull_request) Successful in 2m29s
182a3e127a
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!163
No description provided.