WIP fase 2b-3: rimozione sottosistemi solo-ChatGPT (plugin remoti, image gen, daybreak, cyber, attestation, cloud config, app/connettori) - test in corso
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -403,7 +403,7 @@ impl FeatureConfig for ContextManagementConfigToml {
|
||||
pub struct TokenBudgetConfigToml {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub enabled: Option<bool>,
|
||||
/// Whether to expose the built-in history and notes extension.
|
||||
/// Removed: the hosted history and notes extension was deleted. Accepted and ignored.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub use_history_notes_extension: Option<bool>,
|
||||
/// Number of tokens remaining before auto-compaction when the wrap-up reminder is emitted.
|
||||
|
||||
@@ -102,9 +102,9 @@ pub enum Feature {
|
||||
AnalyticsPlanHistory,
|
||||
/// Discover model catalogs for OpenAI API-key authentication.
|
||||
ApiKeyModelDiscovery,
|
||||
/// Forward explicit programs with builtin OpenAI API keys.
|
||||
/// Removed no-op; explicit access-program forwarding was deleted.
|
||||
ApiKeyCyberAccessPrograms,
|
||||
/// Enable Daybreak controls and automatic access-program selection in CLI clients.
|
||||
/// Removed no-op; Daybreak controls were deleted.
|
||||
CliDaybreak,
|
||||
/// Restrict CLI resume of attributed local threads to their creator.
|
||||
CliResumeAccountCheck,
|
||||
@@ -197,7 +197,7 @@ pub enum Feature {
|
||||
WebSearchCached,
|
||||
/// Expose the extension-backed standalone web search tool.
|
||||
StandaloneWebSearch,
|
||||
/// Let the host authorize MCP search independently of native search through per-turn policy.
|
||||
/// Removed: hosted MCP search policy; the ChatGPT search connector was deleted.
|
||||
HostedSearchPolicy,
|
||||
/// Use the legacy Landlock Linux sandbox fallback instead of the default
|
||||
/// bubblewrap pipeline.
|
||||
@@ -231,7 +231,7 @@ pub enum Feature {
|
||||
BackgroundPaginatedRolloutMigration,
|
||||
/// Enable the Chronicle sidecar for passive screen-context memories.
|
||||
Chronicle,
|
||||
/// Compress request bodies (zstd) when sending streaming requests to codex-backend.
|
||||
/// Removed compatibility flag: request compression only applied to the hosted Codex backend.
|
||||
EnableRequestCompression,
|
||||
/// Keep active sampling turns alive until a failed network connection recovers.
|
||||
UnboundedConnectionRetries,
|
||||
@@ -288,13 +288,13 @@ pub enum Feature {
|
||||
McpConnectionSharing,
|
||||
/// Defer optional stdio server startup in regular chats with a warm tool catalog.
|
||||
McpLazyStdioStartup,
|
||||
/// Enable MCP protocol version 2026-07-28 for the host-owned Codex Apps server.
|
||||
/// Removed: protocol mode for the deleted host-owned Codex Apps server.
|
||||
CodexAppsMcp20260728,
|
||||
/// Let host-owned Apps catalog reads overlap the initial tool inventory.
|
||||
/// Removed: early catalog reads for the deleted host-owned Codex Apps server.
|
||||
AppsEarlyResourceDiscovery,
|
||||
/// Let RMCP coordinate OAuth refresh through the configured credential store.
|
||||
McpOAuthRefreshCoordination,
|
||||
/// Enable enterprise refresh-token authorization for configured MCP resources.
|
||||
/// Removed: enterprise refresh-token authorization (EMA) for MCP resources.
|
||||
UseXaa,
|
||||
/// Removed compatibility flag for the legacy Apps MCP path override.
|
||||
AppsMcpPathOverride,
|
||||
@@ -380,17 +380,17 @@ pub enum Feature {
|
||||
///
|
||||
/// Requirements-only gate: this should be set from requirements, not user config.
|
||||
ComputerUse,
|
||||
/// Enable the PS-backed remote plugin catalog.
|
||||
/// Removed compatibility flag for the deleted remote plugin catalog.
|
||||
RemotePlugin,
|
||||
/// Removed compatibility flag for plugin discovery prefetch.
|
||||
PluginDiscoveryPrefetch,
|
||||
/// Enable remote plugin sharing flows.
|
||||
/// Removed compatibility flag for the deleted remote plugin sharing flows.
|
||||
PluginSharing,
|
||||
/// Removed compatibility flag retained as a no-op.
|
||||
ExternalMigration,
|
||||
/// Enable extension-backed image generation.
|
||||
/// Removed compatibility flag for the deleted hosted image generation tool.
|
||||
ImageGeneration,
|
||||
/// Allow the image-generation tool to request a backend-assembled GIF.
|
||||
/// Removed compatibility flag for the deleted hosted image generation tool.
|
||||
ImageGenerationAnimation,
|
||||
/// Omit inline image and audio content from app-server item notifications.
|
||||
OmitAppServerNotificationMedia,
|
||||
@@ -443,9 +443,9 @@ pub enum Feature {
|
||||
GuardianEnhancedNodeReplTranscripts,
|
||||
/// Include completed node_repl or cua_repl Code Mode response images in Guardian reviews.
|
||||
GuardianNodeReplTranscriptImages,
|
||||
/// Trust connector identities from the plugin service orchestrator in Guardian V2.
|
||||
/// Removed: trusted hosted connector identities; ChatGPT connectors were deleted.
|
||||
GuardianTrustOrchestratorConnectors,
|
||||
/// Give Guardian access to the root conversation's message history tools.
|
||||
/// Removed: Guardian conversation history tools backed by the hosted Apps server.
|
||||
GuardianConversationHistoryTools,
|
||||
/// Resample a synchronous Guardian denial once before publishing it.
|
||||
GuardianDenialReconsideration,
|
||||
@@ -648,11 +648,6 @@ impl Features {
|
||||
self.enabled.contains(&f)
|
||||
}
|
||||
|
||||
/// Whether to advertise GIF output in the image-generation tool.
|
||||
pub fn image_generation_animation_enabled(&self) -> bool {
|
||||
self.enabled(Feature::ImageGenerationAnimation)
|
||||
}
|
||||
|
||||
/// Whether a routing tier is enabled, independently of model catalog support.
|
||||
pub fn service_tier_enabled(&self, service_tier: &str) -> bool {
|
||||
match service_tier {
|
||||
@@ -1409,7 +1404,7 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::HostedSearchPolicy,
|
||||
key: "hosted_search_policy",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -1577,20 +1572,20 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::CliDaybreak,
|
||||
key: "cli_daybreak",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::ApiKeyCyberAccessPrograms,
|
||||
key: "api_key_cyber_access_programs",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::EnableRequestCompression,
|
||||
key: "enable_request_compression",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::UnboundedConnectionRetries,
|
||||
@@ -1717,7 +1712,7 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::Psp,
|
||||
key: "psp",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -1753,13 +1748,13 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::AppsEarlyResourceDiscovery,
|
||||
key: "apps_early_resource_discovery",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::CodexAppsMcp20260728,
|
||||
key: "codex_apps_mcp_2026_07_28",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -1771,7 +1766,7 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::UseXaa,
|
||||
key: "use_xaa",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -1963,8 +1958,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::RemotePlugin,
|
||||
key: "remote_plugin",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::PluginDiscoveryPrefetch,
|
||||
@@ -1975,8 +1970,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::PluginSharing,
|
||||
key: "plugin_sharing",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::ExternalMigration,
|
||||
@@ -1987,13 +1982,13 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::ImageGeneration,
|
||||
key: "image_generation",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::ImageGenerationAnimation,
|
||||
key: "image_generation_animation",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -2161,13 +2156,13 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::GuardianTrustOrchestratorConnectors,
|
||||
key: "guardian_trust_orchestrator_connectors",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::GuardianConversationHistoryTools,
|
||||
key: "guardian_conversation_history_tools",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
|
||||
@@ -117,30 +117,6 @@ fn cwd_relative_turn_diffs_is_an_opt_in_map_feature() {
|
||||
assert!(!features.enabled(Feature::CwdRelativeTurnDiffs));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn codex_apps_mcp_protocol_can_be_enabled_independently_of_generic_mcp() {
|
||||
let features_toml = FeaturesToml::from(BTreeMap::from([
|
||||
(Feature::CodexAppsMcp20260728.key().to_string(), true),
|
||||
(Feature::Mcp20260728.key().to_string(), false),
|
||||
]));
|
||||
let features = Features::from_sources(
|
||||
FeatureConfigSource {
|
||||
features: Some(&features_toml),
|
||||
..Default::default()
|
||||
},
|
||||
FeatureConfigSource::default(),
|
||||
FeatureOverrides::default(),
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
(
|
||||
features.enabled(Feature::CodexAppsMcp20260728),
|
||||
features.enabled(Feature::Mcp20260728),
|
||||
),
|
||||
(true, false),
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn default_enabled_features_have_shipped() {
|
||||
for spec in crate::FEATURES {
|
||||
|
||||
Reference in New Issue
Block a user