Skip to content

Fix Windows exec policy test flake#18304

Merged
etraut-openai merged 1 commit intomainfrom
etraut/windows-sandbox-flake
Apr 17, 2026
Merged

Fix Windows exec policy test flake#18304
etraut-openai merged 1 commit intomainfrom
etraut/windows-sandbox-flake

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Apr 17, 2026

Summary

This fixes a Windows-only failure in the exec policy multi-segment shell test. The test was meant to verify that a compound shell command only bypasses sandboxing when every parsed segment has an explicit exec policy allow rule.

On Windows, the read-only sandbox setup is intentionally treated as lacking sandbox protection, so the old fixture could take the approval path before reaching the intended bypass assertion. The test now uses the workspace-write sandbox policy, keeping the focus on the per-segment bypass rule while preserving the expected bypass_sandbox false result when only cat is explicitly allowed.

@etraut-openai etraut-openai merged commit 2e038e6 into main Apr 17, 2026
35 of 36 checks passed
@etraut-openai etraut-openai deleted the etraut/windows-sandbox-flake branch April 17, 2026 07:43
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2026
@dylan-hurd-oai
Copy link
Copy Markdown
Collaborator

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants