mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## 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