Files
codex/codex-rs/config
ioanbudea-OAI 17e79ae616 Support independent refreshes of managed Guardian policy (#62274)
## Why

Refreshing Guardian policy should preserve session configuration and
allow policy updates even when unrelated managed settings are invalid.

## What changed

Add a revisioned snapshot that loads and applies Guardian reviewer
restrictions, required models, and policy text together. Preserve the
cloud bundle binding and allow the active policy to carry forward when
another refresh rebuilds the configuration stack. Merge refreshed
`auto_review.policy` fallbacks with retained layers in precedence order
before validating the result.

## Testing

Add a regression test covering an invalid unrelated managed setting,
fallback validation after merging a session override, and removal of
stale policy text when its managed bundle disappears.

GitOrigin-RevId: ac42925eb916355d9972c3e2a0dd91041b06e47a
2026-11-18 13:07:45 +00:00
..