codex/codex-rs/ext
jif 663eb5fbdd Invalidate cached Guardian approvals for unscored permission widening (#44617)
## 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
History 2026-09-10 18:47:31 +00:00
..
agent Unify turn input submission and routing (#38275) 2026-08-13 00:00:16 +00:00
connectors Harden unsandboxed patch filesystem access (#39659) 2026-08-20 08:10:08 +00:00
extension-api Allow extensions to select MCP protocol mode per HTTP server (#44571) 2026-09-10 16:02:59 +00:00
git-attribution Apply Codex attribution to app-created commits (#38419) 2026-08-13 18:50:43 +00:00
goal Block goals after three empty automatic continuation turns (#44320) 2026-09-09 22:27:37 +00:00
guardian-reviewer Preserve complete actions in Guardian approval reviews (#44569) 2026-09-10 16:01:02 +00:00
guardian-v2 Invalidate cached Guardian approvals for unscored permission widening (#44617) 2026-09-10 18:47:31 +00:00
history-notes Track history notes thread hint outcomes (#42247) 2026-09-02 09:12:17 +00:00
image-generation Preserve per-image generation IDs in image generation analytics (#43953) 2026-09-09 00:34:45 +00:00
items Preserve per-image generation IDs in image generation analytics (#43953) 2026-09-09 00:34:45 +00:00
mcp Allow extensions to select MCP protocol mode per HTTP server (#44571) 2026-09-10 16:02:59 +00:00
memories Add dedicated memory v2 consolidation and read prompts (#43813) 2026-09-08 12:58:11 +00:00
queue Gate new turn submissions on host shutdown admission (#43943) 2026-09-08 23:45:10 +00:00
skills Use captured step model settings for extension context (#44202) 2026-09-09 16:48:49 +00:00
web-search Scope extension capabilities to invocation lifetimes (#41020) 2026-08-27 02:00:31 +00:00