test(plugins): fail auth-literal parity when a declared provider never registers

Silent skip on missing runtime registration recreated the drift class the
test guards (ClawSweeper finding); capability-only plugins now must register
zero text providers to be exempt.
This commit is contained in:
Ayaan Zaidi
2026-07-12 08:02:19 +05:30
parent 0e154d0467
commit 8f14f88690
@@ -157,8 +157,13 @@ describe("bundled provider manifest↔runtime auth literal parity", () => {
const provider = findRegisteredProvider(captured.providers, parityCase.providerId);
if (!provider) {
// Capability-only plugins (video/image onboard flags) declare CLI keys in
// the manifest without a text ProviderPlugin.auth surface to compare.
// Capability-only plugins (video/image onboard flags) register no text
// providers at all. A plugin that registers text providers but not the
// manifest-declared id has drifted — the exact mismatch this test guards.
expect(
captured.providers.map((entry) => entry.id),
`${parityCase.pluginId} manifest declares provider ${parityCase.providerId} but runtime registers different providers`,
).toEqual([]);
return;
}