mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Expose shared Guardian reviewer helpers through guardian_review (#43490)
## What changed Add a public `codex_core::guardian_review` module exposing `GuardianAssessment`, the assessment parser and output schema, and the review session configuration builder for reuse by the Guardian extension. Extract assessment handling and reviewer configuration into dedicated modules, preserving the existing parsing defaults, policy prompt, and read-only reviewer settings. ## Testing Move the existing embedded-JSON, bare allow/deny, and output-schema tests alongside the assessment implementation. GitOrigin-RevId: cb2aba3ccdb597e2876015e718e923d4f8f36802
This commit is contained in:
1 parent
16ff14c266
commit
d70044072c
11 files changed
+343
-304
No files matched your search
@@ -0,0 +1,8 @@
|
||||
//! Production synchronous reviewer helpers shared with the Guardian extension.
|
||||
//! These use the current policy, output contract and reviewer configuration;
|
||||
//! making them available does not select a new transcript mode or start a review.
|
||||
|
||||
pub use crate::guardian::GuardianAssessment;
|
||||
pub use crate::guardian::build_guardian_review_session_config;
|
||||
pub use crate::guardian::guardian_output_schema;
|
||||
pub use crate::guardian::parse_guardian_assessment;
|
||||
Reference in new issue
Block a user