Propagate remote plugin IDs to skill metadata (#35261)

## What changed

- Carry a plugin's local and remote identities together from plugin loading into
  `SkillMetadata`.
- Resolve remote IDs from the installed-plugin snapshot when available, falling
  back to persisted install metadata only when no snapshot exists.
- Include plugin identity in skill cache keys so identity changes refresh cached
  skill metadata.

## Testing

- Cover snapshot and persisted identity resolution, local marketplace isolation,
  cached skill refreshes, and propagation through plugin skill snapshots.

GitOrigin-RevId: aabeeb631a43361fe817358ace7f1ea8ba5db708
This commit is contained in:
jameswt-oai authored and copyberry committed 2026-07-24 23:36:11 +00:00
1 parent 32329b289d
commit 07fd04abb1
28 files changed
+550 -170

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ impl SkillsWatcher {
.await
.into_iter()
// Plugin roots are invalidated by plugin lifecycle operations.
.filter(|root| root.plugin_id.is_none())
.filter(|root| root.plugin_identity.is_none())
.map(|root| WatchPath {
path: root.path.into_path_buf(),
recursive: true,