Governance
Validate skill deployment configuration before startup
Catch incompatible settings and unintended destinations without exposing sensitive values.
A skill package can pass tests while a deployment points it at the wrong collection or grants a capability intended only for a test environment. Validate configuration before the worker accepts tasks and record enough identity to diagnose the exact settings in use.
Declare legitimate configuration values
Use a schema for required environment names, known mode values, and destination references. Apply checks for relationships that schema alone cannot enforce, such as whether a production identity belongs to the configured tenant. Reference secrets by approved handles and avoid printing their values during validation.
Fail at the smallest appropriate boundary
A missing optional adapter may disable a feature without preventing unrelated work. An invalid default write destination should prevent workflows that could use it. Show a concise reason to operators so they can distinguish a deployment fault from request validation.
Compare intended and actual config
Test staging and production-like configuration through the same bootstrap path. Include a fixture for a stale resource reference and another for a misspelled capability. Record the selected configuration revision in deployment results to support later audit and rollback.