Add incremental skill catalogs behind skill_catalog_deltas (#57262)

## What changed

- Add the disabled-by-default `skill_catalog_deltas` feature flag to append new and updated skills without repeating unchanged catalog entries.
- Share a cumulative metadata budget across executor, cloud, and host catalogs, preserving usage across turns and resume. Removals emit no update and do not refund budget.
- Rebuild the current catalog and reset its budget after compaction, including any required skill root mappings in updates.

## Testing

Add unit and integration coverage for update costs, shared source budgets, feature rollback, and catalog updates across resume and compaction, with a request-history snapshot.

GitOrigin-RevId: e88b4265d7361498113d43fdc2e0260a9f930bbc
This commit is contained in:
Alex Daley
2026-10-26 21:20:21 +00:00
committed by copyberry
parent bd72161881
commit 3cacafa0b7
37 changed files with 1780 additions and 84 deletions
+8
View File
@@ -378,6 +378,8 @@ pub enum Feature {
SkillMcpDependencyInstall,
/// Run cheap skill-search methods in shadow mode and emit experiment metrics.
SkillSearch,
/// Append skill additions and edits within a cumulative context budget.
SkillCatalogDeltas,
/// Removed compatibility flag for deleted skill env var dependency prompting.
SkillEnvVarDependencyPrompt,
/// Enable the unified mention popup used by default in the TUI.
@@ -1897,6 +1899,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::SkillCatalogDeltas,
key: "skill_catalog_deltas",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::SkillEnvVarDependencyPrompt,
key: "skill_env_var_dependency_prompt",