test: guard broad plugin resolver fixtures

This commit is contained in:
Peter Steinberger
2026-04-29 06:45:57 +01:00
parent 83df409d94
commit 358b4f24cd
4 changed files with 63 additions and 0 deletions

View File

@@ -45,6 +45,9 @@ can affect bundled plugins and third-party plugins.
`api.ts` or `runtime-api.ts` plus generic SDK capabilities. Do not add a
provider-named `src/plugin-sdk/<id>.ts` seam just to make core aware of a
bundled channel's private helpers.
- Resolver/facade loader tests are the exception to broad source API coverage:
use generated tiny plugin fixtures for `api.js` / `runtime-api.js` fallback
behavior. Do not point those tests at real bundled plugin source APIs.
- For provider work, prefer family-level seams over provider-specific seams.
Shared helpers should describe a reusable behavior such as replay policy,
tool-schema compat, payload normalization, stream-wrapper composition, or

View File

@@ -75,6 +75,9 @@ assembly, and contract enforcement.
- If setup, discovery, or doctor flows need plugin runtime, make that need
explicit and narrow. Do not let cold control-plane paths quietly import broad
runtime surfaces.
- Resolver and public-surface loader tests must use generated tiny plugin
fixtures for broad `api.js` / `runtime-api.js` fallback behavior. Do not point
those tests at real bundled plugin source APIs just to prove path resolution.
## Verification