feat(plugins): report setup descriptor drift (#71194)

This commit is contained in:
Vincent Koc
2026-04-24 11:15:30 -07:00
committed by GitHub
parent 3ffd944e6b
commit 6bc0dc8fb6
5 changed files with 181 additions and 1 deletions

View File

@@ -76,7 +76,9 @@ Setup discovery now prefers descriptor-owned ids such as `setup.providers` and
`requiresRuntime` keeps the legacy setup-api fallback for compatibility. If more
than one discovered plugin claims the same normalized setup provider or CLI
backend id, setup lookup refuses the ambiguous owner instead of relying on
discovery order.
discovery order. When setup runtime does execute, registry diagnostics report
drift between `setup.providers` / `setup.cliBackends` and the providers or CLI
backends registered by setup-api without blocking legacy plugins.
### What the loader caches

View File

@@ -338,6 +338,11 @@ Because setup lookup can execute plugin-owned `setup-api` code, normalized
discovered plugins. Ambiguous ownership fails closed instead of picking a
winner from discovery order.
When setup runtime does execute, setup registry diagnostics report descriptor
drift if `setup-api` registers a provider or CLI backend that the manifest
descriptors do not declare, or if a descriptor has no matching runtime
registration. These diagnostics are additive and do not reject legacy plugins.
### setup.providers reference
| Field | Required | Type | What it means |