mirror of
https://github.com/openai/codex.git
synced 2026-11-28 07:32:19 +00:00
Move synchronous Guardian orchestration into the reviewer extension (#44252)
## What changed Move the synchronous review loop, outcome mapping, deadline helpers, and session pool into `codex-guardian-reviewer`. Core supplies adapters for evidence capture, authorization checks, session creation, and event publication through the new host interfaces. Have `guardian-v2` initialize the reviewer pool and host separately, with the pool managing prewarming, session reuse, concurrent forks, invalidation, and shutdown. ## Testing Extend the app-server reviewer lifecycle test to cover interrupted concurrent reviews as well as completed reviews, including resuming a reviewer after parent shutdown. Adapt core reviewer tests to use the pool and factory interfaces. GitOrigin-RevId: 2d69bd20c169b20534764b98cbdb63f38564a530
This commit is contained in:
1 parent
eb7bd64ef9
commit
2617ed2e1c
27 files changed
+1570
-1417
No files matched your search
@@ -62,8 +62,8 @@ pub enum ApprovalDecision {
|
||||
AskUser,
|
||||
}
|
||||
|
||||
/// Runs the existing synchronous review for the bound action and cancellation token.
|
||||
/// Implementations must not resolve policy or reuse an async score.
|
||||
/// Runs an extension-owned synchronous review already bound to an action by the host.
|
||||
/// Implementations must not resolve approval routing or reuse an async score.
|
||||
pub trait SynchronousApprovalReviewer: Send + Sync {
|
||||
fn review(
|
||||
&self,
|
||||
|
||||
Reference in new issue
Block a user