rulesync icon indicating copy to clipboard operation
rulesync copied to clipboard

Codex CLI permissions should emit and preserve :minimal filesystem baseline

Open saitota opened this issue 5 months ago • 0 comments

Codex CLI permission profiles support filesystem special paths such as :minimal, :root, :workspace_roots, and :tmpdir.

:minimal was added in openai/codex#13434 and first shipped in rust-v0.112.0-alpha.8.

In Codex, :minimal = "read" enables include_platform_defaults, which provides the platform/runtime read access needed for basic sandboxed command execution on macOS, Linux, and Windows.

Therefore, when Rulesync generates or round-trips a Codex CLI permission profile, it should emit and preserve this baseline:

[permissions.rulesync.filesystem]
":minimal" = "read"

This is similar to #1733: Rulesyncs current allow | ask | deny` model cannot fully represent Codex-specific sandbox baselines.

For compatibility, Rulesync may need to extend its permission model so Codex targets can represent filesystem values such as read | write | deny and special paths such as :minimal, :root, :workspace_roots, and :tmpdir.

Refs: openai/codex#13434, rust-v0.112.0-alpha.8, #1733.

saitota avatar Jun 16 '26 05:06 saitota