Files
codex/codex-rs/core/src/guardian_review.rs
T
jif d70044072c 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
2026-09-07 15:01:16 +00:00

9 lines
451 B
Rust

//! 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;