mirror of
https://github.com/openai/codex.git
synced 2026-08-23 13:09:46 +00:00
## Why Dangerous-command inspection has a bounded wrapper depth. Returning no match after that limit could let a nested dangerous payload escape policy detection. ## What changed - Classify commands beyond the wrapper-depth limit as dangerous. - Cover the boundary and overflow cases in the command-safety unit tests. - Verify that exec policy rejects a deeply `env`-wrapped forced `rm` before it can delete a sentinel file when approvals are disabled. GitOrigin-RevId: a6cdbbb7bdc6274a62745f668189fabaaf46745f