diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index e5144aec..ab617f26 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -915,10 +915,12 @@ The remaining live skill config/protocol/analytics residues are now cut too. `SkillScope` / `SkillMetadata` protocol structs, skill invocation analytics, thread skill metric constants, the skill MCP dependency installer, and the stale skill approval integration suite were deleted. `config.schema.json` was -regenerated without a `skills` table. The remaining skill-shaped stumps are the -separate granular `skill_approval` permission flag and old `` / -`` history/snapshot compatibility surfaces; classify and -cut those next instead of treating them as auth/model spine machinery. +regenerated without a `skills` table. The granular `skill_approval` permission +flag was then removed from core protocol, app-server v2 protocol, generated +schemas, permission prompt rendering, and tests. The remaining skill-shaped +stumps are old `` / `` history/snapshot +compatibility surfaces; classify and cut those next instead of treating them as +auth/model spine machinery. That husk has now been cut from `codex-core`. The root core crate no longer exports `plugins`, no longer depends on `codex-core-plugins` or `codex-plugin`, diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index cb5660ec..9057f149 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index f38441e9..1389281d 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -292,8 +292,10 @@ current_status: MCP dependency installer is gone from `codex-mcp`; and the stale skill approval integration suite was deleted instead of preserving a removed path as a test-shaped memorial. `config.schema.json` was regenerated without a - `skills` table. Residue remains in the separate granular - `skill_approval` permission flag and old `` / `` - history/snapshot compatibility surfaces; those are compatibility stumps to - classify next, not keeper auth/model-spine machinery. + `skills` table. The later granular `skill_approval` permission flag was + also removed from core protocol, app-server v2 protocol, generated schemas, + permission prompt rendering, and tests. Residue remains only in old + `` / `` history/snapshot compatibility + surfaces; those are compatibility stumps to classify next, not keeper + auth/model-spine machinery. next_action: Continue starving coordinator/runtime execution and operator surfaces off app-server JSON-RPC and out of `codex_message_processor.rs`; keep the vestigial Codex organ narrowed to subscription auth/model transport. diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json index 00bda024..60b6c977 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/ClientRequest.json @@ -1480,10 +1480,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json index 8650a783..11811a57 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.schemas.json @@ -4627,10 +4627,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json index ff6d7776..8d1020cd 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/codex_app_server_protocol.v2.schemas.json @@ -53,10 +53,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } @@ -14794,19 +14790,6 @@ } } }, - "FuzzyFileSearchSessionCompletedNotification": { - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "FuzzyFileSearchSessionCompletedNotification", - "type": "object", - "required": [ - "sessionId" - ], - "properties": { - "sessionId": { - "type": "string" - } - } - }, "InitializeParams": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InitializeParams", @@ -14830,13 +14813,6 @@ } } }, - "FuzzyFileSearchMatchType": { - "type": "string", - "enum": [ - "file", - "directory" - ] - }, "ClientInfo": { "type": "object", "required": [ @@ -14858,51 +14834,19 @@ } } }, - "FuzzyFileSearchSessionUpdatedNotification": { + "FuzzyFileSearchSessionCompletedNotification": { "$schema": "http://json-schema.org/draft-07/schema#", - "title": "FuzzyFileSearchSessionUpdatedNotification", + "title": "FuzzyFileSearchSessionCompletedNotification", "type": "object", "required": [ - "files", - "query", "sessionId" ], "properties": { - "files": { - "type": "array", - "items": { - "$ref": "#/definitions/FuzzyFileSearchResult" - } - }, - "query": { - "type": "string" - }, "sessionId": { "type": "string" } } }, - "InitializeCapabilities": { - "description": "Client-declared capabilities negotiated during initialize.", - "type": "object", - "properties": { - "experimentalApi": { - "description": "Opt into receiving experimental API methods and fields.", - "default": false, - "type": "boolean" - }, - "optOutNotificationMethods": { - "description": "Exact notification method names that should be suppressed for this connection (for example `thread/started`).", - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - } - }, "FuzzyFileSearchResult": { "description": "Superset of [`codex_file_search::FileMatch`]", "type": "object", @@ -14944,6 +14888,58 @@ } } }, + "InitializeCapabilities": { + "description": "Client-declared capabilities negotiated during initialize.", + "type": "object", + "properties": { + "experimentalApi": { + "description": "Opt into receiving experimental API methods and fields.", + "default": false, + "type": "boolean" + }, + "optOutNotificationMethods": { + "description": "Exact notification method names that should be suppressed for this connection (for example `thread/started`).", + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + } + }, + "FuzzyFileSearchMatchType": { + "type": "string", + "enum": [ + "file", + "directory" + ] + }, + "FuzzyFileSearchSessionUpdatedNotification": { + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "FuzzyFileSearchSessionUpdatedNotification", + "type": "object", + "required": [ + "files", + "query", + "sessionId" + ], + "properties": { + "files": { + "type": "array", + "items": { + "$ref": "#/definitions/FuzzyFileSearchResult" + } + }, + "query": { + "type": "string" + }, + "sessionId": { + "type": "string" + } + } + }, "ClientRequest": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "ClientRequest", diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigReadResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigReadResponse.json index 7faf3114..60eda481 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigReadResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigReadResponse.json @@ -89,10 +89,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.json index 0831db14..47fd1f60 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ConfigRequirementsReadResponse.json @@ -62,10 +62,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json index 76524319..ed7f5364 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkParams.json @@ -162,10 +162,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json index 4e8d67a8..910a8486 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadForkResponse.json @@ -138,10 +138,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json index 2aa7dada..046c6e38 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeParams.json @@ -169,10 +169,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json index 0637c736..77821781 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadResumeResponse.json @@ -138,10 +138,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartParams.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartParams.json index b6ee92d3..f2ec04e3 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartParams.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartParams.json @@ -183,10 +183,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json index c8373b86..b37aac7b 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/ThreadStartResponse.json @@ -138,10 +138,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.json b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.json index 8d59525a..145e5819 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.json +++ b/vendor/codex/codex-rs/app-server-protocol/schema/json/v2/TurnStartParams.json @@ -180,10 +180,6 @@ }, "sandbox_approval": { "type": "boolean" - }, - "skill_approval": { - "default": false, - "type": "boolean" } } } diff --git a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AskForApproval.ts b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AskForApproval.ts index 8d41214e..facfcfbe 100644 --- a/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AskForApproval.ts +++ b/vendor/codex/codex-rs/app-server-protocol/schema/typescript/v2/AskForApproval.ts @@ -2,4 +2,4 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type AskForApproval = "untrusted" | "on-failure" | "on-request" | { "granular": { sandbox_approval: boolean, rules: boolean, skill_approval: boolean, request_permissions: boolean, mcp_elicitations: boolean, } } | "never"; +export type AskForApproval = "untrusted" | "on-failure" | "on-request" | { "granular": { sandbox_approval: boolean, rules: boolean, request_permissions: boolean, mcp_elicitations: boolean, } } | "never"; diff --git a/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs b/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs index de9a3eed..b08ea033 100644 --- a/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs +++ b/vendor/codex/codex-rs/app-server-protocol/src/protocol/v2.rs @@ -277,8 +277,6 @@ pub enum AskForApproval { sandbox_approval: bool, rules: bool, #[serde(default)] - skill_approval: bool, - #[serde(default)] request_permissions: bool, mcp_elicitations: bool, }, @@ -294,13 +292,11 @@ impl AskForApproval { AskForApproval::Granular { sandbox_approval, rules, - skill_approval, request_permissions, mcp_elicitations, } => CoreAskForApproval::Granular(CoreGranularApprovalConfig { sandbox_approval, rules, - skill_approval, request_permissions, mcp_elicitations, }), @@ -318,7 +314,6 @@ impl From for AskForApproval { CoreAskForApproval::Granular(granular_config) => AskForApproval::Granular { sandbox_approval: granular_config.sandbox_approval, rules: granular_config.rules, - skill_approval: granular_config.skill_approval, request_permissions: granular_config.request_permissions, mcp_elicitations: granular_config.mcp_elicitations, }, @@ -9570,7 +9565,6 @@ mod tests { let v2_policy = AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: true, mcp_elicitations: false, }; @@ -9581,7 +9575,6 @@ mod tests { CoreAskForApproval::Granular(CoreGranularApprovalConfig { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: true, mcp_elicitations: false, }) @@ -9607,7 +9600,6 @@ mod tests { AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: true, } @@ -9620,7 +9612,6 @@ mod tests { &AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: true, }, @@ -9643,7 +9634,6 @@ mod tests { approval_policy: Some(AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: true, mcp_elicitations: false, }), @@ -9672,7 +9662,6 @@ mod tests { approval_policy: Some(AskForApproval::Granular { sandbox_approval: false, rules: true, - skill_approval: false, request_permissions: false, mcp_elicitations: true, }), @@ -9756,7 +9745,6 @@ mod tests { approval_policy: Some(AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: true, }), @@ -9840,7 +9828,6 @@ mod tests { allowed_approval_policies: Some(vec![AskForApproval::Granular { sandbox_approval: true, rules: true, - skill_approval: false, request_permissions: false, mcp_elicitations: false, }]), @@ -9864,7 +9851,6 @@ mod tests { approval_policy: Some(AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: true, mcp_elicitations: false, }), @@ -9886,7 +9872,6 @@ mod tests { approval_policy: Some(AskForApproval::Granular { sandbox_approval: false, rules: true, - skill_approval: false, request_permissions: false, mcp_elicitations: true, }), @@ -9908,7 +9893,6 @@ mod tests { approval_policy: Some(AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: true, }), @@ -9931,7 +9915,6 @@ mod tests { approval_policy: Some(AskForApproval::Granular { sandbox_approval: false, rules: true, - skill_approval: false, request_permissions: false, mcp_elicitations: true, }), diff --git a/vendor/codex/codex-rs/app-server/tests/suite/v2/experimental_api.rs b/vendor/codex/codex-rs/app-server/tests/suite/v2/experimental_api.rs index 2fd457fa..bc4b6975 100644 --- a/vendor/codex/codex-rs/app-server/tests/suite/v2/experimental_api.rs +++ b/vendor/codex/codex-rs/app-server/tests/suite/v2/experimental_api.rs @@ -263,7 +263,6 @@ async fn thread_start_granular_approval_policy_requires_experimental_api_capabil approval_policy: Some(AskForApproval::Granular { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: true, mcp_elicitations: false, }), diff --git a/vendor/codex/codex-rs/codex-mcp/src/mcp_connection_manager_tests.rs b/vendor/codex/codex-rs/codex-mcp/src/mcp_connection_manager_tests.rs index 9bc08afb..268ae64e 100644 --- a/vendor/codex/codex-rs/codex-mcp/src/mcp_connection_manager_tests.rs +++ b/vendor/codex/codex-rs/codex-mcp/src/mcp_connection_manager_tests.rs @@ -63,7 +63,6 @@ fn elicitation_granular_policy_defaults_to_prompting() { GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: false, } @@ -77,7 +76,6 @@ fn elicitation_granular_policy_respects_never_and_config() { GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: false, } diff --git a/vendor/codex/codex-rs/core/config.schema.json b/vendor/codex/codex-rs/core/config.schema.json index 3c1bad72..c113203c 100644 --- a/vendor/codex/codex-rs/core/config.schema.json +++ b/vendor/codex/codex-rs/core/config.schema.json @@ -644,11 +644,6 @@ "sandbox_approval": { "description": "Whether to allow shell command approval requests, including inline `with_additional_permissions` and `require_escalated` requests.", "type": "boolean" - }, - "skill_approval": { - "default": false, - "description": "Whether to allow approval prompts triggered by skill script execution.", - "type": "boolean" } }, "required": [ diff --git a/vendor/codex/codex-rs/core/src/context/permissions_instructions.rs b/vendor/codex/codex-rs/core/src/context/permissions_instructions.rs index 6ba4e7c1..7753ed9f 100644 --- a/vendor/codex/codex-rs/core/src/context/permissions_instructions.rs +++ b/vendor/codex/codex-rs/core/src/context/permissions_instructions.rs @@ -256,7 +256,6 @@ fn granular_instructions( "`sandbox_approval`", )), Some((granular_config.allows_rules_approval(), "`rules`")), - Some((granular_config.allows_skill_approval(), "`skill_approval`")), request_permissions_tool_enabled.then_some(( granular_config.allows_request_permissions(), "`request_permissions`", diff --git a/vendor/codex/codex-rs/core/src/context/permissions_instructions_tests.rs b/vendor/codex/codex-rs/core/src/context/permissions_instructions_tests.rs index 866c68b4..9f24efe6 100644 --- a/vendor/codex/codex-rs/core/src/context/permissions_instructions_tests.rs +++ b/vendor/codex/codex-rs/core/src/context/permissions_instructions_tests.rs @@ -263,7 +263,6 @@ fn granular_policy_lists_prompted_and_rejected_categories_separately() { AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: false, rules: true, - skill_approval: false, request_permissions: true, mcp_elicitations: false, }), @@ -283,11 +282,7 @@ fn granular_policy_lists_prompted_and_rejected_categories_separately() { ), granular_categories_section( "These approval categories are automatically rejected instead of prompting the user:", - &[ - "- `sandbox_approval`", - "- `skill_approval`", - "- `mcp_elicitations`", - ], + &["- `sandbox_approval`", "- `mcp_elicitations`"], ), ] .join("\n\n") @@ -300,7 +295,6 @@ fn granular_policy_includes_command_permission_instructions_when_sandbox_approva AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -313,12 +307,7 @@ fn granular_policy_includes_command_permission_instructions_when_sandbox_approva assert_eq!( text, granular_prompt_expected( - &[ - "- `sandbox_approval`", - "- `rules`", - "- `skill_approval`", - "- `mcp_elicitations`", - ], + &["- `sandbox_approval`", "- `rules`", "- `mcp_elicitations`",], &[], /*include_shell_permission_request_instructions*/ true, /*include_request_permissions_tool_section*/ false, @@ -332,7 +321,6 @@ fn granular_policy_omits_shell_permission_instructions_when_inline_requests_are_ AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -345,12 +333,7 @@ fn granular_policy_omits_shell_permission_instructions_when_inline_requests_are_ assert_eq!( text, granular_prompt_expected( - &[ - "- `sandbox_approval`", - "- `rules`", - "- `skill_approval`", - "- `mcp_elicitations`", - ], + &["- `sandbox_approval`", "- `rules`", "- `mcp_elicitations`",], &[], /*include_shell_permission_request_instructions*/ false, /*include_request_permissions_tool_section*/ false, @@ -364,7 +347,6 @@ fn granular_policy_includes_request_permissions_tool_only_when_that_prompt_can_s AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -379,7 +361,6 @@ fn granular_policy_includes_request_permissions_tool_only_when_that_prompt_can_s AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: false, mcp_elicitations: true, }), @@ -397,7 +378,6 @@ fn granular_policy_lists_request_permissions_category_without_tool_section_when_ AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: false, rules: false, - skill_approval: false, request_permissions: true, mcp_elicitations: false, }), diff --git a/vendor/codex/codex-rs/core/src/exec_policy_tests.rs b/vendor/codex/codex-rs/core/src/exec_policy_tests.rs index fe4560a7..3d65a6b4 100644 --- a/vendor/codex/codex-rs/core/src/exec_policy_tests.rs +++ b/vendor/codex/codex-rs/core/src/exec_policy_tests.rs @@ -950,7 +950,6 @@ fn unmatched_granular_policy_still_prompts_for_restricted_sandbox_escalation() { AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -1018,7 +1017,6 @@ async fn exec_approval_requirement_rejects_unmatched_sandbox_escalation_when_gra approval_policy: AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: false, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -1054,7 +1052,6 @@ async fn mixed_rule_and_sandbox_prompt_prioritizes_rule_for_rejection_decision() approval_policy: AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -1091,7 +1088,6 @@ async fn mixed_rule_and_sandbox_prompt_rejects_when_granular_rules_are_disabled( approval_policy: AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: false, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), diff --git a/vendor/codex/codex-rs/core/src/guardian/tests.rs b/vendor/codex/codex-rs/core/src/guardian/tests.rs index c0a011ca..051be524 100644 --- a/vendor/codex/codex-rs/core/src/guardian/tests.rs +++ b/vendor/codex/codex-rs/core/src/guardian/tests.rs @@ -925,7 +925,6 @@ async fn routes_approval_to_guardian_allows_granular_review_policy() { .set(AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, })) diff --git a/vendor/codex/codex-rs/core/src/safety_tests.rs b/vendor/codex/codex-rs/core/src/safety_tests.rs index c0019ce2..75fb0aa2 100644 --- a/vendor/codex/codex-rs/core/src/safety_tests.rs +++ b/vendor/codex/codex-rs/core/src/safety_tests.rs @@ -121,7 +121,6 @@ fn granular_with_all_flags_true_matches_on_request_for_out_of_root_patch() { AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -155,7 +154,6 @@ fn granular_sandbox_approval_false_rejects_out_of_root_patch() { AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: false, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), diff --git a/vendor/codex/codex-rs/core/src/session/tests.rs b/vendor/codex/codex-rs/core/src/session/tests.rs index a3d2ba78..ee2b6386 100644 --- a/vendor/codex/codex-rs/core/src/session/tests.rs +++ b/vendor/codex/codex-rs/core/src/session/tests.rs @@ -3388,7 +3388,6 @@ async fn request_permissions_emits_event_when_granular_policy_allows_requests() .set(AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, })) @@ -3464,7 +3463,6 @@ async fn request_permissions_response_materializes_session_cwd_grants_before_rec .set(AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, })) @@ -3561,7 +3559,6 @@ async fn request_permissions_is_auto_denied_when_granular_policy_blocks_tool_req .set(AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: false, mcp_elicitations: true, })) diff --git a/vendor/codex/codex-rs/core/src/tools/handlers/mod.rs b/vendor/codex/codex-rs/core/src/tools/handlers/mod.rs index c17da43b..332a01c3 100644 --- a/vendor/codex/codex-rs/core/src/tools/handlers/mod.rs +++ b/vendor/codex/codex-rs/core/src/tools/handlers/mod.rs @@ -276,7 +276,6 @@ mod tests { AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: false, mcp_elicitations: true, }), diff --git a/vendor/codex/codex-rs/core/src/tools/runtimes/apply_patch_tests.rs b/vendor/codex/codex-rs/core/src/tools/runtimes/apply_patch_tests.rs index fea640b4..2757e356 100644 --- a/vendor/codex/codex-rs/core/src/tools/runtimes/apply_patch_tests.rs +++ b/vendor/codex/codex-rs/core/src/tools/runtimes/apply_patch_tests.rs @@ -22,7 +22,6 @@ fn wants_no_sandbox_approval_granular_respects_sandbox_flag() { !runtime.wants_no_sandbox_approval(AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: false, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, })) @@ -31,7 +30,6 @@ fn wants_no_sandbox_approval_granular_respects_sandbox_flag() { runtime.wants_no_sandbox_approval(AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, })) diff --git a/vendor/codex/codex-rs/core/src/tools/runtimes/shell/unix_escalation_tests.rs b/vendor/codex/codex-rs/core/src/tools/runtimes/shell/unix_escalation_tests.rs index deaaf067..529dfe01 100644 --- a/vendor/codex/codex-rs/core/src/tools/runtimes/shell/unix_escalation_tests.rs +++ b/vendor/codex/codex-rs/core/src/tools/runtimes/shell/unix_escalation_tests.rs @@ -73,7 +73,6 @@ fn execve_prompt_rejection_keeps_prefix_rules_on_rules_flag() { AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: false, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), @@ -90,7 +89,6 @@ fn execve_prompt_rejection_keeps_unmatched_commands_on_sandbox_flag() { AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: false, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }), diff --git a/vendor/codex/codex-rs/core/src/tools/sandboxing_tests.rs b/vendor/codex/codex-rs/core/src/tools/sandboxing_tests.rs index 4a4dac3e..a446d72b 100644 --- a/vendor/codex/codex-rs/core/src/tools/sandboxing_tests.rs +++ b/vendor/codex/codex-rs/core/src/tools/sandboxing_tests.rs @@ -41,7 +41,6 @@ fn default_exec_approval_requirement_rejects_sandbox_prompt_when_granular_disabl let policy = AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: false, rules: true, - skill_approval: true, request_permissions: true, mcp_elicitations: true, }); @@ -63,7 +62,6 @@ fn default_exec_approval_requirement_keeps_prompt_when_granular_allows_sandbox_a let policy = AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: false, - skill_approval: true, request_permissions: true, mcp_elicitations: false, }); diff --git a/vendor/codex/codex-rs/core/tests/suite/request_permissions.rs b/vendor/codex/codex-rs/core/tests/suite/request_permissions.rs index 0b9dbf58..b796ae0a 100644 --- a/vendor/codex/codex-rs/core/tests/suite/request_permissions.rs +++ b/vendor/codex/codex-rs/core/tests/suite/request_permissions.rs @@ -410,7 +410,6 @@ async fn request_permissions_tool_is_auto_denied_when_granular_request_permissio let approval_policy = AskForApproval::Granular(GranularApprovalConfig { sandbox_approval: true, rules: true, - skill_approval: true, request_permissions: false, mcp_elicitations: true, }); diff --git a/vendor/codex/codex-rs/protocol/src/protocol.rs b/vendor/codex/codex-rs/protocol/src/protocol.rs index 62b73b65..957b148e 100644 --- a/vendor/codex/codex-rs/protocol/src/protocol.rs +++ b/vendor/codex/codex-rs/protocol/src/protocol.rs @@ -954,9 +954,6 @@ pub struct GranularApprovalConfig { pub sandbox_approval: bool, /// Whether to allow prompts triggered by execpolicy `prompt` rules. pub rules: bool, - /// Whether to allow approval prompts triggered by skill script execution. - #[serde(default)] - pub skill_approval: bool, /// Whether to allow prompts triggered by the `request_permissions` tool. #[serde(default)] pub request_permissions: bool, @@ -973,10 +970,6 @@ impl GranularApprovalConfig { self.rules } - pub const fn allows_skill_approval(self) -> bool { - self.skill_approval - } - pub const fn allows_request_permissions(self) -> bool { self.request_permissions } @@ -4225,7 +4218,6 @@ mod tests { GranularApprovalConfig { sandbox_approval: false, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: true, } @@ -4235,7 +4227,6 @@ mod tests { !GranularApprovalConfig { sandbox_approval: false, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: false, } @@ -4243,37 +4234,12 @@ mod tests { ); } - #[test] - fn granular_approval_config_skill_approval_flag_is_field_driven() { - assert!( - GranularApprovalConfig { - sandbox_approval: false, - rules: false, - skill_approval: true, - request_permissions: false, - mcp_elicitations: false, - } - .allows_skill_approval() - ); - assert!( - !GranularApprovalConfig { - sandbox_approval: false, - rules: false, - skill_approval: false, - request_permissions: false, - mcp_elicitations: false, - } - .allows_skill_approval() - ); - } - #[test] fn granular_approval_config_request_permissions_flag_is_field_driven() { assert!( GranularApprovalConfig { sandbox_approval: false, rules: false, - skill_approval: false, request_permissions: true, mcp_elicitations: false, } @@ -4283,7 +4249,6 @@ mod tests { !GranularApprovalConfig { sandbox_approval: false, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: false, } @@ -4305,7 +4270,6 @@ mod tests { GranularApprovalConfig { sandbox_approval: true, rules: false, - skill_approval: false, request_permissions: false, mcp_elicitations: true, }