fix(agent): a read grant Windows refuses does not stop the Windows sandbox's command #169

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:fix/windows-read-grant-refused into main 2026-11-29 10:21:09 +00:00
Owner

Summary

On some Windows testers a job fails at its start: WinError: SetNamedSecurityInfoW (<game files>: the agent must own the folder, or be let change its permissions) (17 tries in the last day, the latest minutes ago). The agent gives the sandbox read access to the game files by adding an ACE for its SID, which needs the folder's owner or WRITE_DAC; a game folder or file on another account's folder or on a drive without permissions refuses it, and the whole try died there even when the folder is already readable.

A read grant that Windows refuses is now skipped: the command goes on with the folder's own permissions, and the log says so (@@sandbox the sandbox could not be granted read on a file it will read (SetNamedSecurityInfoW ...: error N ...), the error code included). If the sandbox truly can't read it, the command fails there, naming the path, as before but with the real reason. A grant of more than reading (a writable folder) is never skipped.

Testing

Not run on this PC (Windows-only code; the farm's Windows testers verify it after the nightly: those tries should pass, or show the code in the log).

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

## Summary On some Windows testers a job fails at its start: `WinError: SetNamedSecurityInfoW (<game files>: the agent must own the folder, or be let change its permissions)` (17 tries in the last day, the latest minutes ago). The agent gives the sandbox read access to the game files by adding an ACE for its SID, which needs the folder's owner or WRITE_DAC; a game folder or file on another account's folder or on a drive without permissions refuses it, and the whole try died there even when the folder is already readable. A read grant that Windows refuses is now skipped: the command goes on with the folder's own permissions, and the log says so (`@@sandbox the sandbox could not be granted read on a file it will read (SetNamedSecurityInfoW ...: error N ...)`, the error code included). If the sandbox truly can't read it, the command fails there, naming the path, as before but with the real reason. A grant of more than reading (a writable folder) is never skipped. ## Testing Not run on this PC (Windows-only code; the farm's Windows testers verify it after the nightly: those tries should pass, or show the code in the log). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(agent): a read grant Windows refuses does not stop the Windows sandbox's command
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 6s
CI / Workflow lint (actionlint) (pull_request) Successful in 6s
CI / Coordinator tests (pull_request) Failing after 1m47s
CI / Coordinator image (pull_request) Successful in 20s
CI / Agent build and checks (pull_request) Successful in 2m22s
927bc5b45b
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Member

Possibly related, for context:

  • issue #111 Two Windows testers fail every job before building, with the sandbox unable to read the job's working directory — Windows testers' sandbox jobs fail before building from inaccessible work-folder permissions; related report, though symptoms differ.
Possibly related, for context: - issue #111 Two Windows testers fail every job before building, with the sandbox unable to read the job's working directory — Windows testers' sandbox jobs fail before building from inaccessible work-folder permissions; related report, though symptoms differ.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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/Beanstalk!169
No description provided.