mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Configure Guardian V3 shadow reviews from the root thread (#64187)
## Why Shadow reviews used default routing and retrieval instructions even when the root thread supplied Guardian V3 settings. ## What changed - Replace `features.guardianv3_shadow` with `features.guardianv3.shadow_enabled` to opt into shadow reviews alongside Guardian V2. Project config cannot set the toggle, and feature requirements can override it. - Use the root thread's routing instructions, retrieval instructions, and board size limit for its shadow board. Child reviewers share the root's board and retrieval instructions. - Keep shadow boards in memory and skip shadow reviews when `features.guardianv3.message_board_in_memory` is explicitly false. ## Testing Add coverage for shadow-only opt-in, config precedence, in-memory enrollment, and root routing and retrieval instructions. GitOrigin-RevId: 085089d70a66c535a86d31906ff59a449ffcb61f
This commit is contained in:
@@ -12648,6 +12648,7 @@ async fn explicit_feature_config_is_normalized_by_requirements() -> std::io::Res
|
||||
[features]
|
||||
view_image = false
|
||||
shell_tool = true
|
||||
guardianv3.shadow_enabled = true
|
||||
"#,
|
||||
)?;
|
||||
|
||||
@@ -12660,6 +12661,7 @@ shell_tool = true
|
||||
[features]
|
||||
view_image = true
|
||||
shell_tool = false
|
||||
"guardianv3.shadow_enabled" = false
|
||||
"#,
|
||||
),
|
||||
)
|
||||
@@ -12668,6 +12670,7 @@ shell_tool = false
|
||||
|
||||
assert!(config.features.enabled(Feature::ViewImage));
|
||||
assert!(!config.features.enabled(Feature::ShellTool));
|
||||
assert!(!config.features.enabled(Feature::GuardianV3Shadow));
|
||||
assert!(
|
||||
!config
|
||||
.startup_warnings
|
||||
|
||||
Reference in New Issue
Block a user