Skip to content

docs: recommend :minimal = write alongside :root = write in Codex CLI FAQ#2311

Merged
dyoshikawa merged 2 commits into
mainfrom
docs/faq-codexcli-minimal-write
Jul 17, 2026
Merged

docs: recommend :minimal = write alongside :root = write in Codex CLI FAQ#2311
dyoshikawa merged 2 commits into
mainfrom
docs/faq-codexcli-minimal-write

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

The Codex CLI FAQ entry recommended adding ":root": "allow" to the canonical write rules so package runners and home-directory caches work, but that alone is not enough: rulesync always emits ":minimal" = "read" as a fixed baseline, and Codex treats that entry as a write-narrowing rule — the policy no longer qualifies for full disk write access (FileSystemSandboxPolicy::has_full_disk_write_access), so writes that :root appears to allow can still be denied.

This PR updates the FAQ to:

  • Add ":minimal": "allow" to the example write block alongside ":root": "allow".
  • Explain in the :root bullet why :minimal must be raised to write together with :root.
  • Document the import caveat: :minimal is never imported regardless of its value (it is rulesync's fixed baseline), so after rulesync import the write rule must be re-authored or the next generate drops back to ":minimal" = "read".

skills/rulesync/faq.md is regenerated by scripts/sync-skill-docs.ts.

🤖 Generated with Claude Code

cm-dyoshikawa and others added 2 commits July 17, 2026 06:39
… FAQ

The always-emitted ":minimal" = "read" baseline is a write-narrowing entry in Codex's permission model, so ":root" = "write" alone does not restore full disk write access. Document pairing it with ":minimal": "allow" and the import caveat that :minimal never round-trips.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Add tests: canonical :minimal write rule overrides the read baseline on generate; a customized :minimal is dropped on import and falls back to read on regenerate.
- Fix file-formats.md drift: :minimal is seeded as read but user-overridable on generate, and never round-trips through import.
- Strengthen the FAQ trade-off disclosure with a concrete compromise scenario and add an inline note after the example block.
- Align the source comment in codexcli-permissions.ts with the actual override behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit 28c82c5 into main Jul 17, 2026
9 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

@dyoshikawa
dyoshikawa deleted the docs/faq-codexcli-minimal-write branch July 17, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants