mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
## Why User-configured model catalogs can supply Guardian prompt templates that omit policy slots or add conflicting instructions. Managed rules need a trusted template to reach the reviewer. ## What changed - Use the bundled Guardian policy template when managed policy or additional rules are present, while preserving explicit host-provided templates. - Remove `auto_review.extra_policy` and `auto_review.experimental_policy_template` from configuration and the schema. Warn when they are used, directing additional rules to `guardian_extra_policy` in managed `requirements.toml`. ## Testing Add regression coverage for managed rules with user-supplied catalog templates, explicit host templates, and migration warnings for the removed settings. GitOrigin-RevId: 7f00bfaa85051272ed70ceb2fcb64ffc297b8755