Skip to content

Report configured sandbox policy consistently - #41933

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ccbdb8c32a1f44bfa63ae4d2ae1f9cc408e66b9c
Aug 31, 2026
Merged

Report configured sandbox policy consistently#41933
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ccbdb8c32a1f44bfa63ae4d2ae1f9cc408e66b9c

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 31, 2026

Copy link
Copy Markdown

Report configured sandbox policy consistently

Why

Sandbox diagnostics could report read-only when a configured writable root did not yet exist, because policy labeling used filesystem-aware runtime root resolution.

What changed

  • Derive diagnostic policy labels from configured writable roots without inspecting the filesystem. Runtime sandbox authorization continues to use filesystem-aware resolution.
  • Capture sandbox labels once per turn and reuse them for response metadata and tool-result metrics.

Testing

Add coverage for missing project roots, denied roots, and deny rules on project subpaths.

## Why

Sandbox diagnostics could report `read-only` when a configured writable root did not yet exist, because policy labeling used filesystem-aware runtime root resolution.

## What changed

- Derive diagnostic policy labels from configured writable roots without inspecting the filesystem. Runtime sandbox authorization continues to use filesystem-aware resolution.
- Capture sandbox labels once per turn and reuse them for response metadata and tool-result metrics.

## Testing

Add coverage for missing project roots, denied roots, and deny rules on project subpaths.

GitOrigin-RevId: ccbdb8c32a1f44bfa63ae4d2ae1f9cc408e66b9c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ccbdb8c32a1f44bfa63ae4d2ae1f9cc408e66b9c branch from cf1abfb to a62ff9a Compare August 31, 2026 23:30
@copyberry
copyberry Bot merged commit a62ff9a into main Aug 31, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ccbdb8c32a1f44bfa63ae4d2ae1f9cc408e66b9c branch August 31, 2026 23:31
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 2026
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.

1 participant