mirror of
https://github.com/openai/codex.git
synced 2026-09-11 20:36:49 +00:00
## Why An unscored `exec_command` requesting additional permissions could reuse an earlier Guardian v2 approval score, even though that score did not cover the expanded permissions. ## What changed When `UnscoredAction::AgeScore` applies, invalidate the cached score for default-namespace `exec_command` calls with `sandbox_permissions` set to `with_additional_permissions` by marking the call as a scoring failure. ## Testing Extend the review-scope regression test to verify that an ordinary sandboxed command preserves cached approval, while a command requesting additional network permissions clears it and causes review to fail closed with `scoring_failure`. GitOrigin-RevId: d6e3e1ec7d618dff2ef03ffcb92869249f0e547a