{"modulePath":"github.com/GoCodeAlone/workflow","version":"v0.87.0","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package main\n\nPackage main — \\`wfctl plugin verify-capabilities\\` subcommand. Spawns a plugin binary, calls PluginService.GetManifest directly via gRPC, diffs returned Manifest against plugin.json. Catches ldflag-missing truth-loop bug from workflow#762/#764.\n\nDesign: docs/plans/2026-05-24-verify-capabilities-design.md Issue:  [https://github.com/GoCodeAlone/workflow/issues/765](https://github.com/GoCodeAlone/workflow/issues/765)\n\n## Constants\n\n```go\nconst (\n\t// PluginCompatibilityModeTypedIaC is the conformance mode that proves a\n\t// plugin registers pb.IaCProviderRequired and passes the Workflow go-plugin\n\t// handshake.  This is the only mode that satisfies typed-IaC registry\n\t// readiness for manifests advertising iacProvider capability.\n\tPluginCompatibilityModeTypedIaC = \"typed-iac\"\n\n\t// PluginCompatibilityModeLegacyHostLoad is the advisory-only mode for\n\t// smoke evidence produced by legacy host-load checks (e.g. sdk.Serve\n\t// module plugins that can load and expose metadata/contracts but have not\n\t// migrated to sdk.ServeIaCPlugin / pb.IaCProviderRequired). This mode is\n\t// NEVER sufficient to satisfy typed-IaC registry readiness; it must not be\n\t// used to gate install/update decisions for plugins that advertise\n\t// iacProvider capability.\n\tPluginCompatibilityModeLegacyHostLoad = \"legacy-host-load\"\n\n\tPluginCompatibilityStatusPass = \"pass\"\n\tPluginCompatibilityStatusFail = \"fail\"\n\n\tCompatibilityTrustFirstParty CompatibilityTrustMode = \"first_party\"\n\tCompatibilityTrustAdvisory   CompatibilityTrustMode = \"advisory\"\n)\n```\n\n```go\nconst (\n\tPluginCompatModeEnforce = \"enforce\"\n\tPluginCompatModeWarn    = \"warn\"\n\n\tPluginCompatForceInstall = \"force-install\"\n\tPluginCompatForceUpdate  = \"force-update\"\n\tPluginCompatForceLock    = \"force-lock\"\n\tPluginCompatWarnReason   = \"compat-mode=warn\"\n)\n```\n\n## Variables\n\n```go\nvar PublishGradeSemverRe = regexp.MustCompile(`^v[0-9]+\\.[0-9]+\\.[0-9]+$`)\n```\nPublishGradeSemverRe matches strict release-grade semver tags (flat M.m.p, no prerelease, no build metadata). Engine ParseSemver requires this shape.\n\nShared by:\n\n  - wfctl plugin validate-contract --for-publish (operator-side gate)\n  - wfctl plugin registry-sync (registry-side gate)\n\nSingle source of truth per workflow#762; eliminates the regex duplication between operator-side and registry-side gates.\n\n## Functions\n\n```go\nfunc AssertIaCPluginAdvertisesRequiredService(pluginName, pluginVersion string, registry *pb.ContractRegistry) error\n```\nAssertIaCPluginAdvertisesRequiredService inspects a \\*pb.ContractRegistry (the response from GetContractRegistry) and returns nil iff the plugin advertises a CONTRACT\\_KIND\\_SERVICE descriptor for workflow.plugin.external.iac.IaCProviderRequired.\n\nThe error names the offending plugin (pluginName + pluginVersion) and points operators at docs/runbooks/iac-typed-cutover.md, plus wraps errLegacyIaCPlugin for errors.Is dispatch.\n\nPer Task 18 of the strict-contracts force-cutover plan: workflow v1.0.0 refuses to start a deploy if any pinned IaC plugin doesn't expose pb.IaCProviderServer registration. The check happens at the plugin-loader boundary (after GetContractRegistry succeeds) so the failure surfaces with a typed mitigation rather than as a generic \"method not found\" gRPC status at the first IaC RPC.\n\npluginName + pluginVersion are forwarded to the error message; pass the values from the plugin's manifest (Manifest.Name + Version). They are advisory — the function still rejects a registry that lacks the typed service even when called with empty strings.\n\n```go\nfunc AttachSBOM(ctx context.Context, imageRef, sbomPath string, out io.Writer) error\n```\nAttachSBOM attaches a local SBOM file to imageRef as an OCI artifact. It tries oras first, then cosign, then logs a warning if neither is available.\n\n```go\nfunc CanonicalEngineVersion(version string) (string, error)\n```\n\n```go\nfunc CanonicalEvidenceEngineVersion(version string) (string, error)\n```\n\n```go\nfunc CanonicalPluginVersion(version string) (string, error)\n```\n\n```go\nfunc ComputeEvidenceDigest(ev PluginCompatibilityEvidence) (string, error)\n```\n\n```go\nfunc DetectPluginInfraNeeds(cfg *config.WorkflowConfig, manifests map[string]*config.PluginManifestFile) []config.InfraRequirement\n```\nDetectPluginInfraNeeds inspects which modules in cfg come from plugins and returns the union of their InfraRequirement declarations. Duplicate requirements (same type+name from multiple instances of the same module type) are collapsed to one entry.\n\n```go\nfunc DetectPluginRequirementsV2(cfg *config.WorkflowConfig, manifests map[string]*config.PluginManifestFile) ([]requirements.Requirement, error)\n```\nDetectPluginRequirementsV2 exposes provider-neutral moduleInfraRequirementsV2 declarations without changing the legacy DetectPluginInfraNeeds return type.\n\n```go\nfunc DispatchCLICommand(entry *CLIRegistryEntry, args []string) error\n```\nDispatchCLICommand invokes the plugin binary for the given dynamic command. args should include the command name and any subsequent arguments. The plugin binary is called as: \\\u003cbinary\u003e --wfctl-cli \\\u003cargs...\u003e The plugin's stdout/stderr are inherited.\n\n```go\nfunc FormatValidationErrors(errs []ValidationError) string\n```\nFormatValidationErrors formats validation errors for display.\n\n```go\nfunc GenerateResourceID(moduleName, moduleType, namespace string) string\n```\nGenerateResourceID produces a deterministic resource identifier that links a workflow module to the infrastructure resource it owns.\n\nFormat: \\\u003ckind\u003e/\\\u003cnamespace\u003e-\\\u003cmoduleName\u003e e.g.  database/prod-orders-db\n\n```go\nfunc GenerateSBOM(ctx context.Context, imageRef string, sec *config.CIBuildSecurity, out io.Writer) error\n```\nGenerateSBOM produces a CycloneDX SBOM for imageRef when security.SBOM is true.\n\nStrategy (in order of preference):\n\n 1. In-process via github.com/anchore/syft/syft (not yet a module dep; skipped).\n 2. Shell out to the \\`syft\\` binary if it is on PATH.\n\nIn dry-run mode (WFCTL\\_BUILD\\_DRY\\_RUN=1) it prints the planned command without executing it and returns nil.\n\n```go\nfunc IntrospectPorts(cfg *config.WorkflowConfig, pluginsDir string) []interfaces.PortSpec\n```\nIntrospectPorts aggregates port declarations from:\n\n 1. Core built-in module types (http.server, observability.metrics, grpc.server, …)\n 2. Installed plugins that declare portPaths in their capabilities\n 3. Explicit ci.build.containers\\[].expose\\_ports overrides\n\nWhen any container declares expose\\_ports, those entries replace auto-detected ports.\n\n```go\nfunc IsLegacyIaCPluginErr(err error) bool\n```\nIsLegacyIaCPluginErr reports whether err signals a failed IaC plugin pre-flight gate. Dispatch sites can use this to attach runbook-specific exit codes / messages without inspecting the error message string.\n\n```go\nfunc IsStateful(moduleType string) bool\n```\nIsStateful returns true if the module type manages persistent state that must survive redeployments.\n\n```go\nfunc KnownModuleTypes() map[string]ModuleTypeInfo\n```\nKnownModuleTypes returns all module types registered in the engine's plugins.\n\n```go\nfunc KnownStepTypes() map[string]StepTypeInfo\n```\nKnownStepTypes returns all step types registered in the engine's plugins.\n\n```go\nfunc KnownTriggerTypes() map[string]bool\n```\nKnownTriggerTypes returns all known trigger types.\n\n```go\nfunc ListPluginNames() ([]string, error)\n```\nListPluginNames returns all plugin names available in the registry.\n\n```go\nfunc LoadPluginManifests(pluginsDir string) (map[string]*config.PluginManifestFile, error)\n```\nLoadPluginManifests loads all plugin.json files from the given plugins directory. Each sub-directory is expected to contain a plugin.json. Returns a map keyed by plugin name. Missing or malformed manifests are silently skipped.\n\n```go\nfunc NormalizeSHA256Hex(value string) (string, error)\n```\n\n```go\nfunc ResolveSecretStore(secretName string, envName string, cfg *config.WorkflowConfig) string\n```\nResolveSecretStore determines which named store a secret should be fetched from, applying the following priority order:\n\n 1. Per-secret Store field (highest priority)\n 2. Environment-level SecretsStoreOverride\n 3. SecretsConfig.DefaultStore\n 4. Legacy SecretsConfig.Provider field\n 5. \"env\" fallback\n\n```go\nfunc ResolveTag(entries []config.TagFromEntry, fallback string) string\n```\nResolveTag walks entries in order, returning the first non-empty resolved value. Each entry is tried in sequence:\n\n 1. If Env is set, os.Getenv is checked — non-empty value wins.\n 2. If Command is set, it is run via sh -c — non-empty trimmed stdout wins.\n\nIf no entry resolves, fallback is returned.\n\n```go\nfunc SaveRegistryConfig(path string, cfg *RegistryConfig) error\n```\nSaveRegistryConfig writes a registry config to a YAML file.\n\n```go\nfunc SaveState(state *DeploymentState, path string) error\n```\nSaveState writes the DeploymentState to a JSON file at path.\n\n```go\nfunc WriteStepSummary(emitter CIGroupEmitter, in SummaryInput) (err error)\n```\nWriteStepSummary appends Markdown to the CI provider's summary destination. No-ops when the provider has no summary destination (all non-GHA for now).\n\n## Types\n\n```go\ntype AlignFinding struct {\n\tRule string // R-A1, R-A2, etc.\n\t// Severity is one of:\n\t//   - \"FAIL\"  — always blocks (exit 1)\n\t//   - \"ERROR\" — always blocks (exit 1); used by rules that want to\n\t//               carry a fix-suggestion in the message (e.g. R-A9)\n\t//   - \"WARN\"  — blocks only under --strict\n\tSeverity string\n\tResource string // affected resource name\n\tMessage  string // human-readable description\n}\n```\nAlignFinding is a single rule violation emitted by an alignment check.\n\n```go\ntype BreakingChange struct {\n\t// Field is the config key that changed (empty if the whole module changed).\n\tField string\n\t// OldValue is the previous value as a string representation.\n\tOldValue string\n\t// NewValue is the new value as a string representation.\n\tNewValue string\n\t// Message is a human-readable description.\n\tMessage string\n}\n```\nBreakingChange describes a single breaking change detected when comparing two module configurations.\n\n```go\nfunc DetectBreakingChanges(oldMod, newMod *config.ModuleConfig) []BreakingChange\n```\nDetectBreakingChanges compares old and new ModuleConfig instances and returns a list of changes that could cause data loss or service disruption. Only meaningful for stateful module types; callers should check IsStateful before acting on an empty result.\n\n```go\ntype BreakingChangeSummary struct {\n\tModuleName string           `json:\"moduleName\"`\n\tChanges    []BreakingChange `json:\"changes\"`\n}\n```\nBreakingChangeSummary aggregates breaking-change warnings across the diff.\n\n```go\ntype CIGroupEmitter interface {\n\tGroupStart(w io.Writer, name string)\n\tGroupEnd(w io.Writer)\n\t// SummaryPath returns the path to append Markdown summary content, or\n\t// \"\" if this CI provider has no step-summary concept.\n\tSummaryPath() string\n}\n```\nCIGroupEmitter wraps output with CI-provider-specific group markers so long outputs (like diagnostics) render as collapsible sections in the UI.\n\n```go\ntype CLIRegistry map[string]*CLIRegistryEntry\n```\nCLIRegistry maps command names to their registry entries.\n\n```go\nfunc BuildCLIRegistry(pluginsDir string) (CLIRegistry, error)\n```\nBuildCLIRegistry scans pluginsDir for installed plugin.json manifests and builds a command-name → entry map.\n\nReturns an error if:\n\n  - A plugin declares a reserved command name.\n  - Two plugins declare the same command name (conflict).\n\n```go\nfunc (r CLIRegistry) LookupCLICommand(name string) *CLIRegistryEntry\n```\nLookupCLICommand returns the registry entry for the given command name, or nil if not found in the dynamic registry. Callers should check static commands first before calling this function.\n\n```go\ntype CLIRegistryEntry struct {\n\tCommand     string // top-level command name\n\tPluginName  string // owning plugin\n\tBinaryPath  string // path to plugin binary\n\tDescription string\n}\n```\nCLIRegistryEntry is a resolved CLI command handler for a plugin.\n\n```go\ntype CloudflareTunnelExposeCfg struct {\n\tTunnelName string\n\tDomain     string\n}\n```\nCloudflareTunnelExposeCfg holds Cloudflare Tunnel settings.\n\n```go\ntype CompatibilityEvidencePolicy struct {\n\tFirstParty         string `json:\"firstParty,omitempty\"`\n\tCommunity          string `json:\"community,omitempty\"`\n\tRequiredFromEngine string `json:\"requiredFromEngine,omitempty\"`\n\tLatestEngine       string `json:\"latestEngine,omitempty\"`\n\tStale              bool   `json:\"stale,omitempty\"`\n}\n```\n\n```go\ntype CompatibilityInfo struct {\n\tMinEngineVersion string   `json:\"minEngineVersion\"`\n\tMaxEngineVersion string   `json:\"maxEngineVersion,omitempty\"`\n\tRequiredSteps    []string `json:\"requiredSteps\"`\n\tRequiredModules  []string `json:\"requiredModules\"`\n\tTestedVersions   []string `json:\"testedVersions\"`\n}\n```\nCompatibilityInfo describes the compatibility requirements and test history of a config.\n\n```go\ntype CompatibilityTrustMode string\n```\nCompatibilityTrustMode controls whether compatibility evidence can affect install/update/lock decisions for a registry source.\n\n```go\nfunc ParseCompatibilityTrustMode(raw string) (CompatibilityTrustMode, error)\n```\n\n```go\nfunc (m *CompatibilityTrustMode) UnmarshalYAML(unmarshal func(any) error) error\n```\n\n```go\ntype Contract struct {\n\tVersion     string             `json:\"version\"`\n\tConfigHash  string             `json:\"configHash\"`\n\tGeneratedAt string             `json:\"generatedAt\"`\n\tEndpoints   []EndpointContract `json:\"endpoints\"`\n\tModules     []ModuleContract   `json:\"modules\"`\n\tSteps       []string           `json:\"steps\"`\n\tEvents      []EventContract    `json:\"events\"`\n}\n```\nContract is a snapshot of what a workflow application config exposes.\n\n```go\ntype DSLReferenceOutput struct {\n\tSections []DSLSection `json:\"sections\"`\n}\n```\nDSLReferenceOutput is the top-level JSON output of the dsl-reference command.\n\n```go\ntype DSLSection struct {\n\tID             string     `json:\"id\"`\n\tTitle          string     `json:\"title\"`\n\tDescription    string     `json:\"description\"`\n\tRequiredFields []FieldDoc `json:\"requiredFields\"`\n\tOptionalFields []FieldDoc `json:\"optionalFields\"`\n\tExample        string     `json:\"example\"`\n\tRelationships  []string   `json:\"relationships\"`\n\tParent         string     `json:\"parent,omitempty\"`\n}\n```\nDSLSection represents one documented section of the workflow DSL.\n\n```go\ntype DeployConfig struct {\n\t// EnvName is the target environment name (e.g. \"staging\", \"production\").\n\tEnvName string\n\t// Env is the resolved CIDeployEnvironment config for the target.\n\tEnv *config.CIDeployEnvironment\n\t// Secrets maps secret name → value, injected as env vars or k8s secrets.\n\tSecrets map[string]string\n\t// AppName is the top-level application name from ci config or binary target.\n\tAppName string\n\t// ImageTag is the container image tag to deploy (e.g. \"myapp:abc1234\").\n\tImageTag string\n\t// Verbose controls whether subcommand output is printed.\n\tVerbose bool\n\t// Services carries the parsed services: map for multi-service deployments.\n\tServices map[string]*config.ServiceConfig\n}\n```\nDeployConfig holds all parameters needed to execute a deployment.\n\n```go\ntype DeployProvider interface {\n\t// Deploy pushes the application to the target infrastructure.\n\tDeploy(ctx context.Context, cfg DeployConfig) error\n\t// HealthCheck polls the deployment until healthy or the timeout elapses.\n\tHealthCheck(ctx context.Context, cfg DeployConfig) error\n}\n```\nDeployProvider handles deploying to a specific infrastructure target.\n\n```go\ntype DeployedK8sResource struct {\n\t// GVK is the GroupVersionKind string (e.g., \"apps/v1/Deployment\").\n\tGVK string `json:\"gvk\"`\n\t// Name is the resource name.\n\tName string `json:\"name\"`\n\t// Namespace is the resource namespace.\n\tNamespace string `json:\"namespace,omitempty\"`\n}\n```\nDeployedK8sResource records a Kubernetes resource created during deployment.\n\n```go\ntype DeployedModuleState struct {\n\t// Type is the module type string (e.g. \"storage.sqlite\").\n\tType string `json:\"type\"`\n\t// Stateful indicates whether this module manages persistent state.\n\tStateful bool `json:\"stateful\"`\n\t// ResourceID is the infrastructure resource identifier generated for this\n\t// module (e.g. \"database/prod-orders-db\").\n\tResourceID string `json:\"resourceId,omitempty\"`\n\t// Config is a snapshot of the module's config at deploy time.\n\tConfig map[string]any `json:\"config,omitempty\"`\n}\n```\nDeployedModuleState records what was deployed for a single module.\n\n```go\ntype DeployedPipelineState struct {\n\t// Trigger is the pipeline trigger type (e.g. \"http\").\n\tTrigger string `json:\"trigger\"`\n\t// Path is the HTTP path if the trigger is HTTP-based.\n\tPath string `json:\"path,omitempty\"`\n\t// Method is the HTTP method if the trigger is HTTP-based.\n\tMethod string `json:\"method,omitempty\"`\n}\n```\nDeployedPipelineState records what was deployed for a single pipeline.\n\n```go\ntype DeployedResources struct {\n\tModules      map[string]DeployedModuleState   `json:\"modules,omitempty\"`\n\tPipelines    map[string]DeployedPipelineState `json:\"pipelines,omitempty\"`\n\tK8sResources []DeployedK8sResource            `json:\"k8sResources,omitempty\"`\n}\n```\nDeployedResources is the top-level resource map inside a DeploymentState.\n\n```go\ntype DeploymentState struct {\n\t// Version is the manifest format version (currently \"1\").\n\tVersion string `json:\"version\"`\n\t// ConfigHash is a SHA-256 hex digest of the config file contents at deploy time.\n\tConfigHash string `json:\"configHash\"`\n\t// DeployedAt is the RFC 3339 timestamp of the deployment.\n\tDeployedAt time.Time `json:\"deployedAt\"`\n\t// ConfigFile is the path to the workflow config file that was deployed.\n\tConfigFile string `json:\"configFile\"`\n\t// Resources contains per-module and per-pipeline state records.\n\tResources DeployedResources `json:\"resources\"`\n\t// SchemaVersion is an integer version for the state file format.\n\tSchemaVersion int `json:\"schemaVersion\"`\n\t// Migrations lists migration IDs that have been applied.\n\tMigrations []string `json:\"migrations,omitempty\"`\n}\n```\nDeploymentState is the full state manifest written after a successful deploy. It is serialised to deployment.state.json alongside the workflow config.\n\n```go\nfunc BuildStateFromConfig(cfg *config.WorkflowConfig, configFile, namespace string, migrations []string) (*DeploymentState, error)\n```\nBuildStateFromConfig constructs a DeploymentState from a loaded WorkflowConfig. configFile is the original config file path (used for display and hashing). namespace is used when generating resource IDs (may be empty). migrations is the optional list of already-applied migration IDs.\n\n```go\nfunc LoadState(path string) (*DeploymentState, error)\n```\nLoadState reads and deserialises a DeploymentState from a JSON file at path. Returns an error if the file does not exist or cannot be parsed.\n\n```go\ntype DiffResult struct {\n\tOldConfig       string                  `json:\"oldConfig\"`\n\tNewConfig       string                  `json:\"newConfig\"`\n\tModules         []ModuleDiff            `json:\"modules\"`\n\tPipelines       []PipelineDiff          `json:\"pipelines\"`\n\tBreakingChanges []BreakingChangeSummary `json:\"breakingChanges,omitempty\"`\n}\n```\nDiffResult is the full structured output of diffConfigs.\n\n```go\ntype DiffStatus string\n```\nDiffStatus describes what happened to a named element between two configs.\n\n```go\nconst (\n\tDiffStatusAdded     DiffStatus = \"added\"\n\tDiffStatusRemoved   DiffStatus = \"removed\"\n\tDiffStatusChanged   DiffStatus = \"changed\"\n\tDiffStatusUnchanged DiffStatus = \"unchanged\"\n)\n```\n\n```go\ntype DryRunAction struct {\n\tAction       string `json:\"action\"`\n\tResourceName string `json:\"resource_name\"`\n\tResourceType string `json:\"resource_type\"`\n\tProvider     string `json:\"provider,omitempty\"`\n}\n```\nDryRunAction describes a single planned infrastructure operation.\n\n```go\ntype DryRunApplyPlan struct {\n\tCommand     string                `json:\"command\"`\n\tConfig      string                `json:\"config\"`\n\tEnvironment string                `json:\"environment,omitempty\"`\n\tActions     []DryRunAction        `json:\"actions\"`\n\tSecrets     []DryRunSecretRef     `json:\"secrets,omitempty\"`\n\tProviders   []DryRunProviderGroup `json:\"providers,omitempty\"`\n\tSummary     DryRunSummary         `json:\"summary\"`\n}\n```\nDryRunApplyPlan is the structured dry-run output for infra apply.\n\n```go\ntype DryRunDeployPlan struct {\n\tCommand        string               `json:\"command\"`\n\tEnvironment    string               `json:\"environment\"`\n\tProvider       string               `json:\"provider\"`\n\tStrategy       string               `json:\"strategy\"`\n\tPreDeploy      []string             `json:\"pre_deploy,omitempty\"`\n\tDeployTarget   string               `json:\"deploy_target\"`\n\tImageRef       string               `json:\"image_ref\"`\n\tImageTagSource string               `json:\"image_tag_source\"`\n\tHealthCheck    *DryRunHealthCheck   `json:\"health_check,omitempty\"`\n\tSecrets        []DryRunSecretRef    `json:\"secrets,omitempty\"`\n\tServices       []DryRunServiceEntry `json:\"services,omitempty\"`\n}\n```\nDryRunDeployPlan is the structured dry-run output for ci run --phase deploy.\n\n```go\ntype DryRunHealthCheck struct {\n\tPath    string `json:\"path\"`\n\tTimeout string `json:\"timeout,omitempty\"`\n}\n```\nDryRunHealthCheck summarizes health check configuration.\n\n```go\ntype DryRunProviderGroup struct {\n\tModuleRef     string `json:\"module_ref\"`\n\tProviderType  string `json:\"provider_type\"`\n\tResourceCount int    `json:\"resource_count\"`\n}\n```\nDryRunProviderGroup summarizes resources grouped by provider.\n\n```go\ntype DryRunSecretRef struct {\n\tKey      string `json:\"key\"`\n\tStore    string `json:\"store,omitempty\"`\n\tRequired bool   `json:\"required\"`\n}\n```\nDryRunSecretRef describes a secret key required by the operation (value never shown).\n\n```go\ntype DryRunServiceEntry struct {\n\tName     string `json:\"name\"`\n\tImageTag string `json:\"image_tag,omitempty\"`\n}\n```\nDryRunServiceEntry describes a service that would be deployed.\n\n```go\ntype DryRunSummary struct {\n\tCreates  int `json:\"creates\"`\n\tUpdates  int `json:\"updates\"`\n\tReplaces int `json:\"replaces\"`\n\tDeletes  int `json:\"deletes\"`\n}\n```\nDryRunSummary provides counts of planned operations.\n\n```go\ntype EndpointContract struct {\n\tMethod         string            `json:\"method\"`\n\tPath           string            `json:\"path\"`\n\tAuthRequired   bool              `json:\"authRequired\"`\n\tPipeline       string            `json:\"pipeline\"`\n\tResponseSchema map[string]string `json:\"responseSchema,omitempty\"` // field name → type\n}\n```\nEndpointContract describes an HTTP endpoint in the contract.\n\n```go\ntype EventContract struct {\n\tTopic     string `json:\"topic\"`\n\tDirection string `json:\"direction\"` // publish or subscribe\n\tPipeline  string `json:\"pipeline\"`\n}\n```\nEventContract describes an event topic in the contract.\n\n```go\ntype ExposedService struct {\n\tName string\n\tPort int\n}\n```\nExposedService describes a locally running service that should be exposed.\n\n```go\ntype FieldDoc struct {\n\tName        string `json:\"name\"`\n\tType        string `json:\"type\"`\n\tDescription string `json:\"description\"`\n}\n```\nFieldDoc documents a single field within a DSL section.\n\n```go\ntype GitHubRegistrySource struct {\n\t// contains filtered or unexported fields\n}\n```\nGitHubRegistrySource implements RegistrySource backed by a GitHub repo with manifest.json files.\n\n```go\nfunc NewGitHubRegistrySource(cfg RegistrySourceConfig) *GitHubRegistrySource\n```\nNewGitHubRegistrySource creates a new GitHub-backed registry source.\n\n```go\nfunc (g *GitHubRegistrySource) FetchManifest(name string) (*RegistryManifest, error)\n```\n\n```go\nfunc (g *GitHubRegistrySource) FetchVersionIndex(name string) (*PluginVersionIndex, error)\n```\n\n```go\nfunc (g *GitHubRegistrySource) ListPlugins() ([]string, error)\n```\n\n```go\nfunc (g *GitHubRegistrySource) Name() string\n```\n\n```go\nfunc (g *GitHubRegistrySource) SearchPlugins(query string) ([]PluginSearchResult, error)\n```\n\n```go\ntype HookDispatcher struct {\n\t// contains filtered or unexported fields\n}\n```\nHookDispatcher scans installed plugins for build-hook capability declarations and dispatches hook events to them via subprocess invocation.\n\n```go\nfunc NewHookDispatcher(pluginsDir string) *HookDispatcher\n```\nNewHookDispatcher creates a dispatcher that reads manifests from pluginsDir.\n\n```go\nfunc (d *HookDispatcher) Dispatch(ctx context.Context, event interfaces.HookEvent, payload interfaces.HookPayload) error\n```\nDispatch fires all handlers registered for the given event in priority order. Returns an error if any handler with fail policy exits non-zero.\n\n```go\ntype InfraConfig = config.InfraConfig\n```\n\n```go\ntype ModuleContract struct {\n\tName     string `json:\"name\"`\n\tType     string `json:\"type\"`\n\tStateful bool   `json:\"stateful\"`\n}\n```\nModuleContract describes a module in the contract.\n\n```go\ntype ModuleDiff struct {\n\tName     string     `json:\"name\"`\n\tStatus   DiffStatus `json:\"status\"`\n\tType     string     `json:\"type,omitempty\"`\n\tStateful bool       `json:\"stateful\"`\n\t// Detail holds a human-readable description of what changed.\n\tDetail string `json:\"detail,omitempty\"`\n\t// ResourceID is the correlated infrastructure resource ID from state, if known.\n\tResourceID string `json:\"resourceId,omitempty\"`\n\t// BreakingChanges lists data-loss risks for this module.\n\tBreakingChanges []BreakingChange `json:\"breakingChanges,omitempty\"`\n}\n```\nModuleDiff captures the diff for a single module.\n\n```go\ntype ModuleTypeInfo struct {\n\tType       string   // e.g., \"storage.sqlite\"\n\tPlugin     string   // e.g., \"storage\"\n\tStateful   bool     // whether this module manages persistent state\n\tConfigKeys []string // known config fields\n}\n```\nModuleTypeInfo holds metadata about a known module type.\n\n```go\ntype MultiRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nMultiRegistry aggregates multiple RegistrySource instances and resolves plugins across them in priority order.\n\n```go\nfunc NewMultiRegistry(cfg *RegistryConfig) *MultiRegistry\n```\nNewMultiRegistry creates a multi-registry from a config. Sources are sorted by priority (lowest number = highest priority).\n\n```go\nfunc NewMultiRegistryFromSources(sources ...RegistrySource) *MultiRegistry\n```\nNewMultiRegistryFromSources creates a multi-registry from pre-built sources (useful for testing).\n\n```go\nfunc (m *MultiRegistry) FetchManifest(name string) (*RegistryManifest, string, error)\n```\nFetchManifest tries each source in priority order, returning the first successful result. It first tries the original name across all sources; if the original name differs from its normalized form (after stripping the \"workflow-plugin-\" prefix) and no source matched the original, it retries with the normalized name as a fallback.\n\nTrying the original name first prevents name collisions where both \"auth\" (a builtin module plugin) and \"workflow-plugin-auth\" (an external plugin) exist in the registry — the caller's intent is respected rather than conflating the two.\n\nSet WFCTL\\_DEBUG=1 to enable per-source trace logging on stderr.\n\n```go\nfunc (m *MultiRegistry) FetchManifestAndVersionIndex(name string) (*RegistryManifest, *PluginVersionIndex, string, error)\n```\n\n```go\nfunc (m *MultiRegistry) FetchVersionIndex(name string) (*PluginVersionIndex, string, error)\n```\nFetchVersionIndex tries each source in priority order, using the same original-name then normalized-name lookup order as FetchManifest.\n\n```go\nfunc (m *MultiRegistry) ListPlugins() ([]string, error)\n```\nListPlugins lists all plugins from all sources, deduplicated.\n\n```go\nfunc (m *MultiRegistry) SearchPlugins(query string) ([]PluginSearchResult, error)\n```\nSearchPlugins searches all sources and returns deduplicated results. When the same plugin appears in multiple registries, the higher-priority source wins. The query is normalized (stripping \"workflow-plugin-\" prefix) before searching.\n\n```go\nfunc (m *MultiRegistry) Sources() []RegistrySource\n```\nSources returns the configured registry sources.\n\n```go\ntype PhaseTiming struct {\n\tName     string\n\tStatus   string\n\tDuration time.Duration\n}\n```\nPhaseTiming records the name, status, and duration of a deployment phase.\n\n```go\ntype PipelineDiff struct {\n\tName   string     `json:\"name\"`\n\tStatus DiffStatus `json:\"status\"`\n\t// Trigger describes the pipeline trigger (e.g. \"http POST /api/v1/orders\").\n\tTrigger string `json:\"trigger,omitempty\"`\n\t// Detail holds a human-readable description of what changed.\n\tDetail string `json:\"detail,omitempty\"`\n}\n```\nPipelineDiff captures the diff for a single pipeline.\n\n```go\ntype PluginAssets struct {\n\tUI     bool `json:\"ui\"`\n\tConfig bool `json:\"config\"`\n}\n```\nPluginAssets describes optional asset files bundled with a plugin release.\n\n```go\ntype PluginCompatDecision struct {\n\tVersion  string\n\tForced   bool\n\tReason   string\n\tWarning  string\n\tEvidence *PluginCompatibilityEvidence\n}\n```\n\n```go\nfunc ResolvePluginCompatibility(index *PluginVersionIndex, manifest *RegistryManifest, opts PluginCompatResolverOptions) (PluginCompatDecision, error)\n```\n\n```go\ntype PluginCompatResolverOptions struct {\n\tRequestedVersion string\n\tEngineVersion    string\n\tCompatMode       string\n\tForce            bool\n\tForceReason      string\n\tTrust            CompatibilityTrustMode\n\tOS               string\n\tArch             string\n}\n```\n\n```go\ntype PluginCompatibilityEvidence struct {\n\tPlugin                string                    `json:\"plugin,omitempty\"`\n\tVersion               string                    `json:\"version,omitempty\"`\n\tEngineVersion         string                    `json:\"engineVersion,omitempty\"`\n\tWfctlVersion          string                    `json:\"wfctlVersion,omitempty\"`\n\tMode                  string                    `json:\"mode,omitempty\"`\n\tStatus                string                    `json:\"status,omitempty\"`\n\tEvidenceDigest        string                    `json:\"evidenceDigest,omitempty\"`\n\tOS                    string                    `json:\"os,omitempty\"`\n\tArch                  string                    `json:\"arch,omitempty\"`\n\tArchiveSHA256         string                    `json:\"archiveSHA256,omitempty\"`\n\tBinarySHA256          string                    `json:\"binarySHA256,omitempty\"`\n\tPluginManifestSHA256  string                    `json:\"pluginManifestSHA256,omitempty\"`\n\tCompatibleEngineRange *PluginCompatibilityRange `json:\"compatibleEngineRange,omitempty\"`\n\tRepository            string                    `json:\"repository,omitempty\"`\n\tRef                   string                    `json:\"ref,omitempty\"`\n\tCommit                string                    `json:\"commit,omitempty\"`\n\tWorkflowRunURL        string                    `json:\"workflowRunURL,omitempty\"`\n\tGeneratedBy           string                    `json:\"generatedBy,omitempty\"`\n\tStdoutTail            string                    `json:\"stdoutTail,omitempty\"`\n\tStderrTail            string                    `json:\"stderrTail,omitempty\"`\n\tFailureReason         string                    `json:\"failureReason,omitempty\"`\n}\n```\n\n```go\nfunc ValidateCompatibilityEvidence(ev PluginCompatibilityEvidence) (PluginCompatibilityEvidence, error)\n```\n\n```go\ntype PluginCompatibilityRange struct {\n\tMin        string `json:\"min\"`\n\tMax        string `json:\"max\"`\n\tDerivation string `json:\"derivation\"`\n}\n```\n\n```go\ntype PluginConfigTarget struct {\n\tProvider    string   `json:\"provider\"`\n\tScopes      []string `json:\"scopes,omitempty\"`\n\tDescription string   `json:\"description,omitempty\"`\n}\n```\nPluginConfigTarget declares variable/config storage targets that a plugin supports for required\\_config\\[] entries.\n\n```go\ntype PluginDependency struct {\n\tName       string `json:\"name\"`\n\tMinVersion string `json:\"minVersion,omitempty\"`\n\tMaxVersion string `json:\"maxVersion,omitempty\"`\n}\n```\nPluginDependency is a required plugin dependency declared in a manifest.\n\n```go\ntype PluginDownload struct {\n\tOS     string `json:\"os\"`\n\tArch   string `json:\"arch\"`\n\tURL    string `json:\"url\"`\n\tSHA256 string `json:\"sha256,omitempty\"`\n}\n```\nPluginDownload describes a platform-specific binary download for a plugin.\n\n```go\ntype PluginLockEntry struct {\n\tVersion    string `yaml:\"version\"`\n\tRepository string `yaml:\"repository,omitempty\"`\n\tSHA256     string `yaml:\"sha256,omitempty\"`\n\tRegistry   string `yaml:\"registry,omitempty\"`\n}\n```\nPluginLockEntry records a pinned plugin version in the lockfile.\n\n```go\ntype PluginLockfile struct {\n\tPlugins map[string]PluginLockEntry\n\t// contains filtered or unexported fields\n}\n```\nPluginLockfile represents the plugins section of .wfctl.yaml. It preserves all other keys in the file for safe round-trip writes.\n\n```go\nfunc (lf *PluginLockfile) Save(path string) error\n```\nSave writes the lockfile back to path, updating the plugins section while preserving all other fields (project, git, deploy, etc.).\n\n```go\ntype PluginRequiredConfig struct {\n\tName        string `json:\"name\"`\n\tKey         string `json:\"key,omitempty\"`\n\tSensitive   bool   `json:\"sensitive,omitempty\"`\n\tDescription string `json:\"description,omitempty\"`\n\tPrompt      string `json:\"prompt,omitempty\"`\n}\n```\nPluginRequiredConfig mirrors plugin.json \\`required\\_config\\[]\\` entries for non-secret provider configuration such as account IDs or allowlisted client IPs.\n\n```go\ntype PluginRequiredSecret struct {\n\tName        string `json:\"name\"`\n\tSensitive   bool   `json:\"sensitive\"`\n\tDescription string `json:\"description,omitempty\"`\n\tPrompt      string `json:\"prompt,omitempty\"`\n}\n```\nPluginRequiredSecret mirrors the plugin.json \\`required\\_secrets\\[]\\` entry. Each entry tells \\`wfctl secrets setup --plugin \\\u003cname\u003e\\` what to prompt for + whether to mask input.\n\n```go\ntype PluginSearchResult struct {\n\tPluginSummary\n\tSource string // registry name this came from\n}\n```\nPluginSearchResult is a search result from a registry source.\n\n```go\ntype PluginSecretTarget struct {\n\tProvider    string   `json:\"provider\"`\n\tScopes      []string `json:\"scopes,omitempty\"`\n\tDescription string   `json:\"description,omitempty\"`\n}\n```\nPluginSecretTarget declares secret storage targets that a plugin supports for its required\\_secrets\\[] entries. Provider is a provider domain such as \"github\", \"vault\", or \"aws-secrets-manager\"; Scopes narrows provider-owned namespaces such as GitHub repo/env/org or Vault mount.\n\n```go\ntype PluginSummary struct {\n\tName        string\n\tVersion     string\n\tDescription string\n\tTier        string\n\tStatus      string // verified | experimental | deprecated; \"\" if not set\n}\n```\nPluginSummary is a brief description of a plugin from the registry.\n\n```go\nfunc SearchPlugins(query string) ([]PluginSummary, error)\n```\nSearchPlugins returns plugins from the registry whose name or description matches query. An empty query returns all plugins.\n\n```go\ntype PluginVersionIndex struct {\n\tPlugin         string                      `json:\"plugin\"`\n\tGeneratedAt    string                      `json:\"generatedAt,omitempty\"`\n\tEvidencePolicy CompatibilityEvidencePolicy `json:\"evidencePolicy,omitempty\"`\n\tVersions       []PluginVersionRecord       `json:\"versions\"`\n}\n```\n\n```go\nfunc NormalizePluginVersionIndex(index *PluginVersionIndex, defaultPlugin string) (*PluginVersionIndex, error)\n```\n\n```go\ntype PluginVersionRecord struct {\n\tVersion          string                        `json:\"version\"`\n\tMinEngineVersion string                        `json:\"minEngineVersion,omitempty\"`\n\tDownloads        []PluginDownload              `json:\"downloads,omitempty\"`\n\tCompatibility    []PluginCompatibilityEvidence `json:\"compatibility,omitempty\"`\n}\n```\n\n```go\ntype RegistryBuildHook struct {\n\tEvent    string `json:\"event\"`\n\tPriority int    `json:\"priority,omitempty\"`\n}\n```\nRegistryBuildHook declares a hook event + priority a plugin handles.\n\n```go\ntype RegistryCLICommand struct {\n\tName        string `json:\"name\"`\n\tDescription string `json:\"description,omitempty\"`\n}\n```\nRegistryCLICommand declares a top-level wfctl subcommand a plugin provides.\n\n```go\ntype RegistryCapabilities struct {\n\tConfigProvider   bool                 `json:\"configProvider,omitempty\"`\n\tModuleTypes      []string             `json:\"moduleTypes,omitempty\"`\n\tStepTypes        []string             `json:\"stepTypes,omitempty\"`\n\tTriggerTypes     []string             `json:\"triggerTypes,omitempty\"`\n\tResourceTypes    []string             `json:\"resourceTypes,omitempty\"`\n\tServiceMethods   []string             `json:\"serviceMethods,omitempty\"`\n\tWorkflowHandlers []string             `json:\"workflowHandlers,omitempty\"`\n\tIaCProvider      *RegistryIaCProvider `json:\"iacProvider,omitempty\"`\n\tBuildHooks       []RegistryBuildHook  `json:\"buildHooks,omitempty\"`\n\tCLICommands      []RegistryCLICommand `json:\"cliCommands,omitempty\"`\n\tMigrationDrivers []string             `json:\"migrationDrivers,omitempty\"`\n\tPortIntrospect   bool                 `json:\"portIntrospect,omitempty\"`\n}\n```\nRegistryCapabilities describes what module/step/trigger types a plugin provides.\n\n```go\ntype RegistryCompatibilityConfig struct {\n\tMode string `yaml:\"mode,omitempty\" json:\"mode,omitempty\"`\n}\n```\n\n```go\ntype RegistryCompatibilityEvidenceConfig struct {\n\tTrust CompatibilityTrustMode `yaml:\"trust,omitempty\" json:\"trust,omitempty\"`\n}\n```\n\n```go\ntype RegistryConfig struct {\n\tRegistries    []RegistrySourceConfig      `yaml:\"registries\" json:\"registries\"`\n\tCompatibility RegistryCompatibilityConfig `yaml:\"compatibility,omitempty\" json:\"compatibility,omitempty\"`\n}\n```\nRegistryConfig defines wfctl plugin registry configuration.\n\n```go\nfunc DefaultRegistryConfig() *RegistryConfig\n```\nDefaultRegistryConfig returns the built-in registry config. The GitHub raw source is the primary registry (priority 0) because it serves manifest.json files directly from the repo and is always up to date. The static GitHub Pages source is a secondary fallback (priority 100) for organisations that mirror the registry to a CDN for lower-latency reads.\n\n```go\nfunc LoadRegistryConfig(explicitPath string) (*RegistryConfig, error)\n```\nLoadRegistryConfig loads configuration from the first found config file, or returns the default. Search order: --registry-config flag path, .wfctl.yaml in CWD, ~/.config/wfctl/config.yaml\n\n```go\nfunc (c *RegistryConfig) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for RegistryConfig (used in \\`registry list --json\\`).\n\n```go\ntype RegistryIaCProvider struct {\n\tName               string   `json:\"name,omitempty\"`\n\tResourceTypes      []string `json:\"resourceTypes,omitempty\"`\n\tComputePlanVersion string   `json:\"computePlanVersion,omitempty\"`\n}\n```\nRegistryIaCProvider describes an IaC provider plugin's provider name and the infra.\\* resource types it manages. findIaCPluginDir reads this from the installed plugin.json to match a requested provider name (e.g. \"digitalocean\") to a plugin directory.\n\n```go\ntype RegistryManifest struct {\n\tName             string                     `json:\"name\"`\n\tVersion          string                     `json:\"version\"`\n\tAuthor           string                     `json:\"author\"`\n\tDescription      string                     `json:\"description\"`\n\tSource           string                     `json:\"source,omitempty\"`\n\tType             string                     `json:\"type\"`\n\tTier             string                     `json:\"tier\"`\n\tStatus           string                     `json:\"status,omitempty\"`  // verified | experimental | deprecated\n\tPrivate          bool                       `json:\"private,omitempty\"` // mirrors manifest.json `private` field\n\tLicense          string                     `json:\"license\"`\n\tMinEngineVersion string                     `json:\"minEngineVersion,omitempty\"`\n\tRepository       string                     `json:\"repository,omitempty\"`\n\tKeywords         []string                   `json:\"keywords,omitempty\"`\n\tHomepage         string                     `json:\"homepage,omitempty\"`\n\tCapabilities     *RegistryCapabilities      `json:\"capabilities,omitempty\"`\n\tIaCProvider      *RegistryIaCProvider       `json:\"iacProvider,omitempty\"`\n\tContracts        []pluginContractDescriptor `json:\"contracts,omitempty\"`\n\tDownloads        []PluginDownload           `json:\"downloads,omitempty\"`\n\tAssets           *PluginAssets              `json:\"assets,omitempty\"`\n\tDependencies     []PluginDependency         `json:\"dependencies,omitempty\"`\n\t// RequiredSecrets mirrors the plugin.json `required_secrets[]`\n\t// block. Consumed by `wfctl secrets setup --plugin \u003cname\u003e` to\n\t// prompt for + write each secret to the chosen GitHub scope.\n\t// Without this field on the registry struct, the secrets[] list\n\t// would be silently dropped at unmarshal time even when the\n\t// upstream manifest declared it.\n\tRequiredSecrets []PluginRequiredSecret `json:\"required_secrets,omitempty\"`\n\t// SecretTargets mirrors plugin.json `secret_targets[]`. It tells\n\t// manifest-backed secrets setup which provider-owned targets are appropriate\n\t// for this plugin's required_secrets[] entries, without hard-coding\n\t// GitHub repo/org/env semantics into unrelated providers.\n\tSecretTargets []PluginSecretTarget `json:\"secret_targets,omitempty\"`\n\t// RequiredConfig mirrors plugin.json `required_config[]`. These entries are\n\t// non-secret provider/application configuration values that should be written\n\t// to variable/config stores rather than secret stores.\n\tRequiredConfig []PluginRequiredConfig `json:\"required_config,omitempty\"`\n\t// ConfigTargets mirrors plugin.json `config_targets[]`, the non-secret\n\t// analog to secret_targets[].\n\tConfigTargets []PluginConfigTarget `json:\"config_targets,omitempty\"`\n}\n```\nRegistryManifest is the manifest format for the GoCodeAlone/workflow-registry.\n\n```go\nfunc FetchManifest(name string) (*RegistryManifest, error)\n```\nFetchManifest fetches a plugin manifest from the registry by plugin name.\n\n```go\nfunc (m *RegistryManifest) FindDownload(goos, goarch string) (*PluginDownload, error)\n```\nFindDownload returns the Download entry matching the given OS and arch.\n\n```go\ntype RegistrySource interface {\n\t// Name returns the configured name of this registry.\n\tName() string\n\t// ListPlugins returns all plugin names in this registry.\n\tListPlugins() ([]string, error)\n\t// FetchManifest retrieves the manifest for a named plugin.\n\tFetchManifest(name string) (*RegistryManifest, error)\n\t// FetchVersionIndex retrieves generated compatibility evidence for a named plugin.\n\tFetchVersionIndex(name string) (*PluginVersionIndex, error)\n\t// SearchPlugins returns plugins matching the query string.\n\tSearchPlugins(query string) ([]PluginSearchResult, error)\n}\n```\nRegistrySource is the interface for a plugin registry backend.\n\n```go\ntype RegistrySourceConfig struct {\n\tName                  string                              `yaml:\"name\" json:\"name\"`         // e.g. \"default\", \"my-org\"\n\tType                  string                              `yaml:\"type\" json:\"type\"`         // \"github\" or \"static\"\n\tOwner                 string                              `yaml:\"owner\" json:\"owner\"`       // GitHub owner/org (type: github)\n\tRepo                  string                              `yaml:\"repo\" json:\"repo\"`         // GitHub repo name (type: github)\n\tBranch                string                              `yaml:\"branch\" json:\"branch\"`     // Git branch, default \"main\" (type: github)\n\tPriority              int                                 `yaml:\"priority\" json:\"priority\"` // Lower = higher priority\n\tURL                   string                              `yaml:\"url\" json:\"url\"`           // Base URL (type: static)\n\tToken                 string                              `yaml:\"token\" json:\"token\"`       // Auth token (optional)\n\tCompatibilityEvidence RegistryCompatibilityEvidenceConfig `yaml:\"compatibilityEvidence,omitempty\" json:\"compatibilityEvidence,omitempty\"`\n}\n```\nRegistrySourceConfig defines a single registry source.\n\n```go\ntype ResolutionDiagnostic struct {\n\tResourceName string\n\tRef          string\n}\n```\nResolutionDiagnostic names a single ${...} reference that survived plan-time resolution unresolved. Surfaces as part of the plan output so operators see WHICH refs collapsed at plan time vs which remain templated for apply-time JIT.\n\n```go\ntype ResourceKind string\n```\nResourceKind categorizes a module's infrastructure resource type.\n\n```go\nconst (\n\tResourceKindDatabase  ResourceKind = \"database\"\n\tResourceKindBroker    ResourceKind = \"broker\"\n\tResourceKindCache     ResourceKind = \"cache\"\n\tResourceKindVolume    ResourceKind = \"volume\"\n\tResourceKindStateless ResourceKind = \"stateless\"\n)\n```\n\n```go\nfunc ClassifyModule(moduleType string) ResourceKind\n```\nClassifyModule maps a workflow module type string to a ResourceKind.\n\n```go\ntype RotationResult struct {\n\tKey       string // canonical generator key, e.g. \"SPACES\"\n\tSource    string // generator source, e.g. \"digitalocean.spaces\"\n\tAccessKey string // newly-minted credential identifier\n\tCreatedAt string // ISO8601 timestamp from provider API\n}\n```\nRotationResult captures rotation metadata in-process during a bootstrap run. It is returned alongside the storage map so callers (e.g. rotate-and-prune) can identify the newly-minted credential without re-running bootstrap as a subprocess and parsing stderr. Per ADR 0020 + review #2 closeout.\n\nAccessKey and CreatedAt come from the provider\\_credential generator output: AccessKey is stored as a GH Secret (it's in providerCredentialSubKeys); CreatedAt is filtered out by the storage-filter and surfaced here + emitted to stderr as a sidecar.\n\n```go\ntype SecretGen = config.SecretGen\n```\n\n```go\ntype SecretState int\n```\nSecretState describes the accessibility of a secret in its backing store.\n\n```go\nconst (\n\t// SecretSet means the secret has a non-empty value in the store.\n\tSecretSet SecretState = iota\n\t// SecretNotSet means the secret key exists in the store but has an empty value.\n\tSecretNotSet\n\t// SecretNoAccess means the store is configured but the caller cannot read the secret\n\t// (e.g. insufficient IAM permissions).\n\tSecretNoAccess\n\t// SecretFetchError means an unexpected error occurred when checking the secret.\n\tSecretFetchError\n\t// SecretUnconfigured means no store is configured for this secret.\n\tSecretUnconfigured\n)\n```\n\n```go\ntype SecretStatus struct {\n\tName        string\n\tStore       string\n\tState       SecretState\n\tError       string\n\tLastRotated time.Time\n\t// IsSet is kept for backward compatibility — true when State == SecretSet.\n\tIsSet bool\n}\n```\nSecretStatus reports the state of a single secret in the provider.\n\n```go\ntype SecretsConfig = config.SecretsConfig\n```\nSecretsConfig, SecretGen and InfraConfig are type aliases for the canonical definitions in the config package. Aliases keep all existing cmd/wfctl code (including test files) working without renaming, while ensuring that any round-trip through config.WorkflowConfig preserves the generate\\[] and infra.auto\\_bootstrap fields (which were previously dropped because the local struct definitions were not reflected in config.WorkflowConfig).\n\n```go\ntype SecretsProvider interface {\n\tGet(ctx context.Context, name string) (string, error)\n\tSet(ctx context.Context, name, value string) error\n\t// Check returns the SecretState for the named secret without returning the value.\n\tCheck(ctx context.Context, name string) (SecretState, error)\n\tList(ctx context.Context) ([]SecretStatus, error)\n\tDelete(ctx context.Context, name string) error\n}\n```\nSecretsProvider is the interface for secret storage backends.\n\n```go\ntype SecurityCheckOpts struct {\n\tStrict        bool\n\tStrictCIDR    bool\n\tMaxChanges    int\n\tExtraRulesDir string\n}\n```\nSecurityCheckOpts holds flags for a security-check run.\n\n```go\ntype SecurityFinding struct {\n\tRuleID   string\n\tSeverity SecuritySeverity\n\tResource string\n\tType     string\n\tMessage  string\n}\n```\nSecurityFinding is a single result from a security rule.\n\n```go\nfunc RunSecurityCheck(plan interfaces.IaCPlan, opts SecurityCheckOpts) []SecurityFinding\n```\nRunSecurityCheck applies all built-in and declarative rules to the plan.\n\n```go\ntype SecuritySeverity string\n```\nSecuritySeverity classifies a finding.\n\n```go\nconst (\n\tSeverityFail SecuritySeverity = \"FAIL\"\n\tSeverityWarn SecuritySeverity = \"WARN\"\n)\n```\n\n```go\ntype StaticRegistrySource struct {\n\t// contains filtered or unexported fields\n}\n```\nStaticRegistrySource implements RegistrySource backed by a static HTTP base URL (e.g. GitHub Pages). It expects:\n\n  - {baseURL}/plugins/{name}/manifest.json  for individual plugin manifests\n  - {baseURL}/index.json                    for the plugin listing/search index\n\n```go\nfunc NewStaticRegistrySource(cfg RegistrySourceConfig) (*StaticRegistrySource, error)\n```\nNewStaticRegistrySource creates a new static-URL-backed registry source. Returns an error if the URL is empty.\n\n```go\nfunc (s *StaticRegistrySource) FetchManifest(name string) (*RegistryManifest, error)\n```\n\n```go\nfunc (s *StaticRegistrySource) FetchVersionIndex(name string) (*PluginVersionIndex, error)\n```\n\n```go\nfunc (s *StaticRegistrySource) ListPlugins() ([]string, error)\n```\n\n```go\nfunc (s *StaticRegistrySource) Name() string\n```\n\n```go\nfunc (s *StaticRegistrySource) SearchPlugins(query string) ([]PluginSearchResult, error)\n```\n\n```go\ntype StepTypeInfo struct {\n\tType       string   // e.g., \"step.json_response\"\n\tPlugin     string   // e.g., \"pipelinesteps\"\n\tConfigKeys []string // known config fields\n}\n```\nStepTypeInfo holds metadata about a known step type.\n\n```go\ntype SummaryInput struct {\n\tOperation   string // \"deploy\" | \"apply\" | \"destroy\"\n\tEnv         string // e.g. \"staging\"\n\tResource    string // resource display name\n\tOutcome     string // \"SUCCESS\" | \"FAILED\"\n\tConsoleURL  string // direct link to provider dashboard\n\tDiagnostics []interfaces.Diagnostic\n\tPhases      []PhaseTiming\n\tRootCause   string\n}\n```\nSummaryInput is the data bundled into a step-summary Markdown block.\n\n```go\ntype TailscaleExposeCfg struct {\n\tFunnel   bool\n\tHostname string\n}\n```\nTailscaleExposeCfg is a local mirror of config.TailscaleConfig for the expose layer.\n\n```go\ntype ValidationError struct {\n\tField   string\n\tMessage string\n}\n```\nValidationError represents a single validation error.\n\n```go\nfunc ValidateManifest(m *RegistryManifest, opts ValidationOptions) []ValidationError\n```\nValidateManifest performs full validation of a registry manifest.\n\n```go\nfunc (e ValidationError) Error() string\n```\n\n```go\ntype ValidationOptions struct {\n\tVerifyURLs      bool   // HEAD-check download URLs\n\tVerifyChecksums bool   // Verify SHA256 format (not content)\n\tEngineVersion   string // Current engine version for minEngineVersion check\n\tTargetOS        string // Filter downloads by OS\n\tTargetArch      string // Filter downloads by arch\n}\n```\nValidationOptions configures validation behavior.\n\n","path":"github.com/GoCodeAlone/workflow/cmd/wfctl","name":"main","synopsis":"Package main — `wfctl plugin verify-capabilities` subcommand.","isRedistributable":true}
