mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Move Guardian reviewer settings and execution into the reviewer crate (#44536)
## What changed - Move reviewer configuration overrides, turn request construction, and deadline, cancellation, and completion handling into `codex-guardian-reviewer`. - Adapt core sessions through `ReviewerRuntime`, keeping context construction, managed constraints, and live network rules in core. - Make `GuardianReviewSession` crate-private and remove direct reviewer pool initialization and the reviewer dependency from `guardian-v2`. ## Testing Update the turn-draining test to exercise `wait_for_guardian_review`, checking that prior-turn completion events are ignored and the session remains reusable after draining the current turn. GitOrigin-RevId: fdf2b335b88b3f405d2370298ee68932808e1186
This commit is contained in:
1 parent
713caa89f3
commit
eca63f0803
12 files changed
+441
-281
No files matched your search
@@ -1,5 +1,4 @@
|
||||
//! Opaque host capabilities for the synchronous Guardian extension.
|
||||
//! Core supplies context and runtime operations; the extension owns review policy and pooling.
|
||||
|
||||
pub use crate::guardian::GuardianReviewSession;
|
||||
pub use crate::guardian::GuardianReviewSessionHost;
|
||||
Reference in new issue
Block a user