Repository navigation
Centralize Guardian policy resolution in config and protocol - #45957
Merged
copyberry[bot] merged 1 commit intoSep 16, 2026
Conversation
## What changed - Extend `GuardianModelPolicy` with controls for uncategorized tools, unscored actions, the initial computer-use call allowance, and sandboxed command coverage. - Add `GuardianPolicyLoader` in `codex-config` to translate legacy settings, preserve catalog policy precedence, and enforce reviewer requirements. Apply live model review requirements through `ConfigRequirements::constrain_guardian_policy`. - Use the shared model policy for Guardian scoring and approval, replacing the extension-local policy wrapper while retaining legacy defaults. ## Testing Add configuration tests for catalog precedence, legacy scope fallback, required-model constraints, and legacy computer-use opt-in and feature gating. Adapt existing extension tests to consume the shared policy. GitOrigin-RevId: 6fed1c3a831964ad28ea7de5cb19e74e323c1204
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6fed1c3a831964ad28ea7de5cb19e74e323c1204
branch
from
September 16, 2026 14:56
911acbb to
7275afc
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6fed1c3a831964ad28ea7de5cb19e74e323c1204
branch
September 16, 2026 14:57
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Centralize Guardian policy resolution in config and protocol
What changed
GuardianModelPolicywith controls for uncategorized tools, unscored actions, the initial computer-use call allowance, and sandboxed command coverage.GuardianPolicyLoaderincodex-configto translate legacy settings, preserve catalog policy precedence, and enforce reviewer requirements. Apply live model review requirements throughConfigRequirements::constrain_guardian_policy.Testing
Add configuration tests for catalog precedence, legacy scope fallback, required-model constraints, and legacy computer-use opt-in and feature gating. Adapt existing extension tests to consume the shared policy.