Remove the shadow skill ranking experiment (#63993)

## What changed

Remove the background ranking of skill candidates and the metrics that
compared those rankings with skills actually used. Drop the experiment's
per-thread state and metrics wiring.

Continue accepting `skill_search` in existing feature configurations as
an ignored compatibility key.

## Testing

Extend the feature configuration test to cover both `true` and `false`
values for `skill_search`.

GitOrigin-RevId: 9492533bdeea58d4976bc9fbcffb6b82036b7894
This commit is contained in:
jif
2026-11-25 22:41:36 +00:00
committed by copyberry
parent db360f8b00
commit 06c718ae68
61 changed files with 14 additions and 4990 deletions
+4 -4
View File
@@ -444,7 +444,7 @@ pub enum Feature {
SkillMcpDependencyInstall,
/// Omit descriptions from the model-visible available-skills catalog.
OmitSkillDescriptions,
/// Run cheap skill-search methods in shadow mode and emit experiment metrics.
/// Removed compatibility flag for shadow skill ranking.
SkillSearch,
/// Append skill additions and edits within a cumulative context budget.
SkillCatalogDeltas,
@@ -834,7 +834,7 @@ impl Features {
"personality" | "plugin_discovery_prefetch" | "plugin_hooks" => {
continue;
}
"skill_env_var_dependency_prompt" => {
"skill_env_var_dependency_prompt" | "skill_search" => {
continue;
}
"terminal_resize_reflow" => {
@@ -2233,8 +2233,8 @@ pub const FEATURES: &[FeatureSpec] = &[
FeatureSpec {
id: Feature::SkillSearch,
key: "skill_search",
stage: Stage::Stable,
default_enabled: true,
stage: Stage::Removed,
default_enabled: false,
},
FeatureSpec {
id: Feature::SkillCatalogDeltas,
+5 -3
View File
@@ -789,10 +789,12 @@ fn from_sources_ignores_removed_apply_patch_freeform_feature_key() {
}
#[test]
fn from_sources_accepts_and_ignores_removed_personality_feature_values() {
fn from_sources_accepts_and_ignores_removed_boolean_feature_values() {
for enabled in [false, true] {
let features_toml: FeaturesToml = toml::from_str(&format!("personality = {enabled}"))
.expect("legacy personality feature should deserialize");
let features_toml: FeaturesToml = toml::from_str(&format!(
"personality = {enabled}\nskill_search = {enabled}"
))
.expect("legacy feature values should deserialize");
let source = FeatureConfigSource {
features: Some(&features_toml),
..Default::default()