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:
jif authored and copyberry committed 2026-09-10 13:49:08 +00:00
1 parent 713caa89f3
commit eca63f0803
12 files changed
+441 -281

No files matched your search

-1
View File
@@ -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;