From c437a9c41aa1a61d33afa33b92739ed40e84042f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 13 May 2026 23:21:39 +0100 Subject: [PATCH] Remove bundled skills workspace wiring --- notes/fresh-workspace-handoff.md | 6 ++++ state/ledgers.msgpack | Bin 106998 -> 107363 bytes state/map.yaml | 5 ++- vendor/codex/codex-rs/Cargo.lock | 29 ------------------ vendor/codex/codex-rs/Cargo.toml | 2 -- vendor/codex/codex-rs/core-skills/Cargo.toml | 1 - .../codex/codex-rs/core-skills/src/manager.rs | 3 -- .../codex-rs/core-skills/src/manager_tests.rs | 6 ---- .../codex/codex-rs/core-skills/src/system.rs | 13 ++++++-- 9 files changed, 20 insertions(+), 45 deletions(-) diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 17ff945e..e4f740a5 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -886,6 +886,12 @@ config schema no longer advertises those tables, and app-server README no longer lists dead plugin or external-agent import routes. Old plugin config files should fail loudly rather than receive fake compatibility incense. +The bundled Codex skill payload crate is gone. `codex-skills` and the embedded +imagegen/openai-docs/plugin-creator/skill-creator/skill-installer sample assets +were deleted from the workspace, and `SkillsManager::new` no longer installs +anything into `CODEX_HOME/skills/.system`. The legacy cache path remains only +so stale bundled samples can be removed when bundled skills are disabled. + 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`, and the core plugin manager / marketplace add-remove-sync modules and tests diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 17af655a969e40d0409a6c08b3209294d7d2e2af..819ac7a609226abb01c5747e7006448842cfd447 100644 GIT binary patch delta 314 zcmex%nC Codex Apps no longer have privileged MCP/runtime treatment in the keeper path. MCP exposure is now uniform: small tool sets are direct, large or @@ -373,6 +373,9 @@ current_status: MCP/skill-shaped only. Config no longer accepts `[plugins]` or `[marketplaces]`, and the old marketplace edit helper module plus stale plugin/external-agent app-server README route claims were deleted. + The bundled `codex-skills` crate is gone as well: no embedded sample + skill payloads are installed into `CODEX_HOME/skills/.system`; the old + cache path remains only so stale cached samples can be removed. MCP remains JSON-RPC at the edge; user-declared MCP servers are the only runtime MCP authority. 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/Cargo.lock b/vendor/codex/codex-rs/Cargo.lock index f64770ee..61f768b9 100644 --- a/vendor/codex/codex-rs/Cargo.lock +++ b/vendor/codex/codex-rs/Cargo.lock @@ -2458,7 +2458,6 @@ dependencies = [ "codex-login", "codex-otel", "codex-protocol", - "codex-skills", "codex-utils-absolute-path", "codex-utils-output-truncation", "dirs", @@ -3259,15 +3258,6 @@ dependencies = [ "tracing-subscriber", ] -[[package]] -name = "codex-skills" -version = "0.0.0" -dependencies = [ - "codex-utils-absolute-path", - "include_dir", - "thiserror 2.0.18", -] - [[package]] name = "codex-state" version = "0.0.0" @@ -7548,25 +7538,6 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8a5a9a0ff0086c7a148acb942baaabeadf9504d10400b5a05645853729b9cd2" -[[package]] -name = "include_dir" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" -dependencies = [ - "include_dir_macros", -] - -[[package]] -name = "include_dir_macros" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" -dependencies = [ - "proc-macro2", - "quote", -] - [[package]] name = "indenter" version = "0.3.4" diff --git a/vendor/codex/codex-rs/Cargo.toml b/vendor/codex/codex-rs/Cargo.toml index 8868716c..70d91d76 100644 --- a/vendor/codex/codex-rs/Cargo.toml +++ b/vendor/codex/codex-rs/Cargo.toml @@ -28,7 +28,6 @@ members = [ "device-key", "shell-command", "shell-escalation", - "skills", "core", "core-skills", "hooks", @@ -166,7 +165,6 @@ codex-sandboxing = { path = "sandboxing" } codex-secrets = { path = "secrets" } codex-shell-command = { path = "shell-command" } codex-shell-escalation = { path = "shell-escalation" } -codex-skills = { path = "skills" } codex-state = { path = "state" } codex-stdio-to-uds = { path = "stdio-to-uds" } codex-terminal-detection = { path = "terminal-detection" } diff --git a/vendor/codex/codex-rs/core-skills/Cargo.toml b/vendor/codex/codex-rs/core-skills/Cargo.toml index 61b3e1f0..c89a9b49 100644 --- a/vendor/codex/codex-rs/core-skills/Cargo.toml +++ b/vendor/codex/codex-rs/core-skills/Cargo.toml @@ -21,7 +21,6 @@ codex-exec-server = { workspace = true } codex-login = { workspace = true } codex-otel = { workspace = true } codex-protocol = { workspace = true } -codex-skills = { workspace = true } codex-utils-absolute-path = { workspace = true } codex-utils-output-truncation = { workspace = true } dirs = { workspace = true } diff --git a/vendor/codex/codex-rs/core-skills/src/manager.rs b/vendor/codex/codex-rs/core-skills/src/manager.rs index b7b7a4b6..13f11fd8 100644 --- a/vendor/codex/codex-rs/core-skills/src/manager.rs +++ b/vendor/codex/codex-rs/core-skills/src/manager.rs @@ -19,7 +19,6 @@ use crate::config_rules::skill_config_rules_from_stack; use crate::loader::SkillRoot; use crate::loader::load_skills_from_roots; use crate::loader::skill_roots; -use crate::system::install_system_skills; use crate::system::uninstall_system_skills; use codex_config::SkillsConfig; @@ -74,8 +73,6 @@ impl SkillsManager { // The loader caches bundled skills under `skills/.system`. Clearing that directory is // best-effort cleanup; root selection still enforces the config even if removal fails. uninstall_system_skills(&manager.codex_home); - } else if let Err(err) = install_system_skills(&manager.codex_home) { - tracing::error!("failed to install system skills: {err}"); } manager } diff --git a/vendor/codex/codex-rs/core-skills/src/manager_tests.rs b/vendor/codex/codex-rs/core-skills/src/manager_tests.rs index 3ccde7dd..c95168f6 100644 --- a/vendor/codex/codex-rs/core-skills/src/manager_tests.rs +++ b/vendor/codex/codex-rs/core-skills/src/manager_tests.rs @@ -272,12 +272,6 @@ async fn skills_for_cwd_reuses_cached_entry_even_when_entry_has_extra_roots() { .iter() .any(|skill| skill.name == "extra-skill") ); - assert!( - outcome_with_extra - .skills - .iter() - .any(|skill| skill.scope == SkillScope::System) - ); // The cwd-only API returns the current cached entry for this cwd, even when that entry // was produced with extra roots. diff --git a/vendor/codex/codex-rs/core-skills/src/system.rs b/vendor/codex/codex-rs/core-skills/src/system.rs index 5eec94c7..a8050ef6 100644 --- a/vendor/codex/codex-rs/core-skills/src/system.rs +++ b/vendor/codex/codex-rs/core-skills/src/system.rs @@ -1,8 +1,15 @@ -pub(crate) use codex_skills::install_system_skills; -pub(crate) use codex_skills::system_cache_root_dir; - use codex_utils_absolute_path::AbsolutePathBuf; +const SYSTEM_SKILLS_DIR_NAME: &str = ".system"; +const SKILLS_DIR_NAME: &str = "skills"; + +/// Returns the legacy on-disk cache location for previously embedded system skills. +pub(crate) fn system_cache_root_dir(codex_home: &AbsolutePathBuf) -> AbsolutePathBuf { + codex_home + .join(SKILLS_DIR_NAME) + .join(SYSTEM_SKILLS_DIR_NAME) +} + pub(crate) fn uninstall_system_skills(codex_home: &AbsolutePathBuf) { let _ = std::fs::remove_dir_all(system_cache_root_dir(codex_home)); }