Repository navigation
Refresh managed Guardian policy independently of MCP - #62276
Merged
copyberry[bot] merged 1 commit intoNov 18, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Managed approval requirements can change while an MCP runtime is still in use. Later turns need to honor those changes without restarting MCP, while in-flight MCP actions need to retain the mandatory review requirements of their issuing turn. ## What changed - Add `CodexThread::refresh_guardian_policy` to apply managed policy updates to an existing thread. MCP configuration refreshes preserve the active Guardian policy, including when a policy update lands while MCP configuration is loading. - Resolve MCP tool and elicitation reviewers against the issuing turn's policy. Live requirements can still require Guardian review, and a live policy change cannot waive mandatory review captured by the turn. ## Testing Extend coverage for overlapping Guardian and MCP refreshes and for an existing MCP runtime that must prompt the user on the next turn after a policy update allows only the `user` reviewer. GitOrigin-RevId: 5a1649f917313f6fb152a206bc89986fe6345481
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/5a1649f917313f6fb152a206bc89986fe6345481
branch
from
November 18, 2026 13:09
ad9b30b to
a05444b
Compare
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/5a1649f917313f6fb152a206bc89986fe6345481
branch
November 18, 2026 13:09
Contributor
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
freigenie
temporarily deployed
to
issue-triage
November 18, 2026 13:15 — with
GitHub Actions
Inactive
freigenie
temporarily deployed
to
issue-triage
November 18, 2026 13:15 — with
GitHub Actions
Inactive
freigenie
temporarily deployed
to
issue-triage
November 18, 2026 13:15 — with
GitHub Actions
Inactive
grishapeinjob-dotcom
temporarily deployed
to
issue-triage
November 18, 2026 13:31 — with
GitHub Actions
Inactive
grishapeinjob-dotcom
temporarily deployed
to
issue-triage
November 18, 2026 13:31 — with
GitHub Actions
Inactive
grishapeinjob-dotcom
temporarily deployed
to
issue-triage
November 18, 2026 13:31 — with
GitHub Actions
Inactive
grishapeinjob-dotcom
temporarily deployed
to
issue-triage
November 18, 2026 13:32 — with
GitHub Actions
Inactive
wrth1337
temporarily deployed
to
issue-triage
November 18, 2026 13:37 — with
GitHub Actions
Inactive
wrth1337
temporarily deployed
to
issue-triage
November 18, 2026 13:37 — with
GitHub Actions
Inactive
wrth1337
temporarily deployed
to
issue-triage
November 18, 2026 13:37 — with
GitHub Actions
Inactive
wrth1337
temporarily deployed
to
issue-triage
November 18, 2026 13:38 — with
GitHub Actions
Inactive
Lukydechile
temporarily deployed
to
issue-triage
November 18, 2026 13:47 — with
GitHub Actions
Inactive
Lukydechile
temporarily deployed
to
issue-triage
November 18, 2026 13:47 — with
GitHub Actions
Inactive
Lukydechile
temporarily deployed
to
issue-triage
November 18, 2026 13:47 — with
GitHub Actions
Inactive
CentiMatrix
temporarily deployed
to
issue-triage
November 18, 2026 13:52 — with
GitHub Actions
Inactive
CentiMatrix
temporarily deployed
to
issue-triage
November 18, 2026 13:52 — with
GitHub Actions
Inactive
CentiMatrix
temporarily deployed
to
issue-triage
November 18, 2026 13:52 — with
GitHub Actions
Inactive
sofiafiayur
temporarily deployed
to
issue-triage
November 18, 2026 13:57 — with
GitHub Actions
Inactive
sofiafiayur
temporarily deployed
to
issue-triage
November 18, 2026 13:57 — with
GitHub Actions
Inactive
sofiafiayur
temporarily deployed
to
issue-triage
November 18, 2026 13:57 — with
GitHub Actions
Inactive
sofiafiayur
temporarily deployed
to
issue-triage
November 18, 2026 13:58 — with
GitHub Actions
Inactive
This branch was previously 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.
Refresh managed Guardian policy independently of MCP
Why
Managed approval requirements can change while an MCP runtime is still in use.
Later turns need to honor those changes without restarting MCP, while in-flight
MCP actions need to retain the mandatory review requirements of their issuing
turn.
What changed
CodexThread::refresh_guardian_policyto apply managed policy updates toan existing thread. MCP configuration refreshes preserve the active Guardian
policy, including when a policy update lands while MCP configuration is loading.
Live requirements can still require Guardian review, and a live policy change
cannot waive mandatory review captured by the turn.
Testing
Extend coverage for overlapping Guardian and MCP refreshes and for an existing
MCP runtime that must prompt the user on the next turn after a policy update
allows only the
userreviewer.