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:
jif authored and copyberry committed 2026-09-07 15:01:16 +00:00
1 parent 16ff14c266
commit d70044072c
11 files changed
+343 -304

No files matched your search

+1
View File
@@ -68,6 +68,7 @@ mod exec_policy;
#[cfg(test)]
mod git_info_tests;
mod guardian;
pub mod guardian_review;
mod hook_mcp_executor;
mod hook_runtime;
mod image_preparation;