diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json index a499adc0a93..4f8b8ff3923 100644 --- a/codex-rs/core/config.schema.json +++ b/codex-rs/core/config.schema.json @@ -539,6 +539,9 @@ "guardian_approval": { "type": "boolean" }, + "guardianv2": { + "type": "boolean" + }, "hooks": { "type": "boolean" }, @@ -5060,6 +5063,9 @@ "guardian_approval": { "type": "boolean" }, + "guardianv2": { + "type": "boolean" + }, "hooks": { "type": "boolean" }, diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs index f7360e13402..e705d337c74 100644 --- a/codex-rs/features/src/lib.rs +++ b/codex-rs/features/src/lib.rs @@ -225,6 +225,8 @@ pub enum Feature { DefaultModeRequestUserInput, /// Enable automatic review for approval prompts. GuardianApproval, + /// Enable Guardian V2 automatic approval reviews. + GuardianV2, /// Enable persisted thread goals and automatic goal continuation. Goals, /// Add current context-window metadata to model-visible context. @@ -1276,6 +1278,12 @@ pub const FEATURES: &[FeatureSpec] = &[ stage: Stage::Stable, default_enabled: true, }, + FeatureSpec { + id: Feature::GuardianV2, + key: "guardianv2", + stage: Stage::UnderDevelopment, + default_enabled: false, + }, FeatureSpec { id: Feature::Goals, key: "goals",