Skip to content

Use model catalog policies for Guardian auto review - #32875

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/26b61ae2958ea8325a64834dcf91f47e140d74b3
Jul 13, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/26b61ae2958ea8325a64834dcf91f47e140d74b3

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Use model catalog policies for Guardian auto review

What changed

  • Add an auto_review.policy field to model catalog messages.
  • Use the selected Guardian model's catalog policy for review-session instructions, while preserving the precedence of guardian_policy_config and falling back to the built-in policy when neither is present.
  • Preserve auto-review messages when model instruction overrides remove catalog instruction templates.

Testing

  • Cover configured-policy precedence, explicit empty catalog policies, catalog-message preservation, and propagation of the catalog policy into a prewarmed Guardian session.

## What changed

- Add an `auto_review.policy` field to model catalog messages.
- Use the selected Guardian model's catalog policy for review-session instructions, while preserving the precedence of `guardian_policy_config` and falling back to the built-in policy when neither is present.
- Preserve auto-review messages when model instruction overrides remove catalog instruction templates.

## Testing

- Cover configured-policy precedence, explicit empty catalog policies, catalog-message preservation, and propagation of the catalog policy into a prewarmed Guardian session.

GitOrigin-RevId: 26b61ae2958ea8325a64834dcf91f47e140d74b3
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/26b61ae2958ea8325a64834dcf91f47e140d74b3 branch from 66b58c5 to 60b9b55 Compare July 13, 2026 21:26
@copyberry
copyberry Bot merged commit 60b9b55 into main Jul 13, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/26b61ae2958ea8325a64834dcf91f47e140d74b3 branch July 13, 2026 21:27
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 2026

This branch was previously deployed

1 inactive deployment
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.

5 participants