Use permission profiles in sandbox tests and documentation (#61133)

## What changed

- Build and assert `PermissionProfile` values directly in memory consolidation tests using filesystem and network permissions.
- Remove the `SandboxPolicy` dependency from rollout trace test fixtures while preserving their `DangerFullAccess` value.
- Update sandbox documentation to describe legacy `sandbox_mode` conversion to `PermissionProfile` and nested filesystem rules, and reference `SandboxMode` in the CLI documentation.

GitOrigin-RevId: ac1be62625b1bfd98dde5f762b379eb840f9186b
This commit is contained in:
ioanbudea-OAI
2026-11-12 14:22:20 +00:00
committed by copyberry
parent 1d529e0266
commit a7aab624ab
5 changed files with 30 additions and 29 deletions
@@ -1,8 +1,7 @@
//! Standard type to use with the `--sandbox` (`-s`) CLI option.
//!
//! This mirrors the variants of [`codex_protocol::protocol::SandboxPolicy`], but
//! without any of the associated data so it can be expressed as a simple flag
//! on the command-line. Users that need to tweak the advanced options for
//! This mirrors [`codex_protocol::config_types::SandboxMode`] so built-in modes
//! can be expressed as a simple flag on the command line. Users that need to tweak the advanced options for
//! `workspace-write` can continue to do so via `-c` overrides or their
//! `config.toml`.