Skip to content

Support model catalog templates for Guardian policy prompts - #33177

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/93116dadbc9bf40527882844a428caed4159fff6
Jul 14, 2026
Merged

Support model catalog templates for Guardian policy prompts#33177
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/93116dadbc9bf40527882844a428caed4159fff6

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Support model catalog templates for Guardian policy prompts

What changed

  • Add an optional policy_template field to auto-review model messages.
  • Build Guardian instructions from the catalog template when present, while
    preserving the existing precedence for managed and catalog policy content.
  • Fall back independently to the bundled template and bundled policy, and
    preserve explicit empty catalog values.

Testing

  • Cover missing and empty template deserialization, policy precedence, bundled
    fallbacks, and Guardian prewarm instructions.

## What changed

- Add an optional `policy_template` field to auto-review model messages.
- Build Guardian instructions from the catalog template when present, while
  preserving the existing precedence for managed and catalog policy content.
- Fall back independently to the bundled template and bundled policy, and
  preserve explicit empty catalog values.

## Testing

- Cover missing and empty template deserialization, policy precedence, bundled
  fallbacks, and Guardian prewarm instructions.

GitOrigin-RevId: 93116dadbc9bf40527882844a428caed4159fff6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/93116dadbc9bf40527882844a428caed4159fff6 branch from 56f4b64 to 68c6e5d Compare July 14, 2026 22:02
@copyberry
copyberry Bot merged commit 68c6e5d into main Jul 14, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/93116dadbc9bf40527882844a428caed4159fff6 branch July 14, 2026 22:03
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants