{"modulePath":"github.com/GoCodeAlone/workflow","version":"v0.87.0","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package module\n\nThis file implements the config.provider module type and config registry.\n\nplatform\\_kubernetes\\_core.go holds the SDK-free Kubernetes backends (kind/k3s/eks/aks) and registers them. The lone SDK-bearing backend, gke, lives in platform\\_kubernetes\\_gke.go — see the cloud-SDK-extraction design.\n\nplatform\\_kubernetes\\_grpc.go — the host-side kubernetesBackend that dispatches the \\`gke\\` cluster type to a plugin-served ResourceDriver gRPC client.\n\nPer ADR 0037 (decisions/0037-gke-cross-process-contract.md), \\`gke\\` folds into the existing ResourceDriver contract — ZERO new proto surface. A GKE cluster is a managed resource served by workflow-plugin-gcp under the resource type \\`infra.k8s\\_cluster\\`:\n\n\tkubernetesBackend  →  ResourceDriver RPC\n\tplan               →  Read   (probe existence, synthesize create|noop plan)\n\tapply              →  Create (AlreadyExists resolves to success)\n\tstatus             →  Read   (project outputs_json onto KubernetesClusterState)\n\tdestroy            →  Delete (NotFound resolves to success)\n\nPrecedent: the Phase A grpcIaCStateStore adapter (module/iac\\_state\\_grpc\\_client.go).\n\nPackage module defines core interfaces for the workflow engine\n\n## Constants\n\n```go\nconst (\n\tGrantTypeClientCredentials = \"client_credentials\"\n\t//nolint:gosec // G101: This is an OAuth2 grant type name, not a credential value.\n\tGrantTypeJWTBearer = \"urn:ietf:params:oauth:grant-type:jwt-bearer\"\n)\n```\nGrantType constants for OAuth2 M2M flows.\n\n```go\nconst (\n\tPartitionTypeList  = \"list\"\n\tPartitionTypeRange = \"range\"\n)\n```\nPartition types supported by PostgreSQL.\n\n```go\nconst (\n\tLifecycleStarted   = \"started\"\n\tLifecycleCompleted = \"completed\"\n\tLifecycleFailed    = \"failed\"\n)\n```\nLifecycle constants for workflow and step events.\n\n```go\nconst CLICommandRegistryServiceName = \"cliCommandRegistry\"\n```\nCLICommandRegistryServiceName is the well-known service name used to register CLICommandRegistry in the application service registry so that step.cli\\_invoke can locate it at execution time.\n\n```go\nconst CLITriggerName = \"trigger.cli\"\n```\nCLITriggerName is the canonical name / service key for the CLI trigger.\n\n```go\nconst CreateTableSQL = `\nCREATE TABLE IF NOT EXISTS iac_resources (\n    name           TEXT PRIMARY KEY,\n    type           TEXT NOT NULL DEFAULT '',\n    provider       TEXT NOT NULL DEFAULT '',\n    provider_ref   TEXT NOT NULL DEFAULT '',\n    provider_id    TEXT NOT NULL DEFAULT '',\n    status         TEXT NOT NULL DEFAULT '',\n    config_hash    TEXT NOT NULL DEFAULT '',\n    applied_config JSONB NOT NULL DEFAULT '{}',\n    outputs        JSONB NOT NULL DEFAULT '{}',\n    dependencies   TEXT[] NOT NULL DEFAULT '{}',\n    lifecycle      JSONB,\n    created_at     TIMESTAMPTZ NOT NULL DEFAULT NOW(),\n    updated_at     TIMESTAMPTZ NOT NULL DEFAULT NOW()\n)`\n```\nCreateTableSQL is the DDL for the iac\\_resources table. Exported so tests can assert schema completeness.\n\n```go\nconst EventBusBridgeName = \"messaging.broker.eventbus\"\n```\nEventBusBridgeName is the default service name for the EventBus bridge adapter.\n\n```go\nconst (\n\t// EventBusTriggerName is the standard name for the EventBus trigger.\n\tEventBusTriggerName = \"trigger.eventbus\"\n)\n```\n\n```go\nconst (\n\t// EventTriggerName is the standard name for event triggers\n\tEventTriggerName = \"trigger.event\"\n)\n```\n\n```go\nconst (\n\t// HTTPTriggerName is the standard name for HTTP triggers\n\tHTTPTriggerName = \"trigger.http\"\n)\n```\n\n```go\nconst (\n\tInMemoryMessageBrokerName = \"messaging.broker.memory\"\n)\n```\nStandard module name constants\n\n```go\nconst MCPToolTriggerName = \"trigger.mcp_tool\"\n```\nMCPToolTriggerName is the canonical name / service key for the MCP tool trigger.\n\n```go\nconst (\n\t// ReconciliationTriggerName is the standard name for reconciliation triggers.\n\tReconciliationTriggerName = \"trigger.reconciliation\"\n)\n```\n\n```go\nconst RedactionPlaceholder = \"[REDACTED]\"\n```\nRedactionPlaceholder is substituted for sensitive field values.\n\n```go\nconst SandboxRemoteRunnerServiceName = \"sandbox.remote_runners\"\n```\nSandboxRemoteRunnerServiceName is the service name under which the RemoteRunnerRegistry is registered in the modular service registry.\n\n```go\nconst (\n\t// ScheduleTriggerName is the standard name for schedule triggers\n\tScheduleTriggerName = \"trigger.schedule\"\n)\n```\n\n```go\nconst (\n\tSimpleMessageHandlerName = \"messaging.handler\"\n)\n```\nStandard module name constants\n\n```go\nconst (\n\tStateMachineEngineName = \"statemachine.engine\"\n)\n```\nStandard module name constants\n\n```go\nconst StateMachineStateConnectorName = \"workflow.connector.statemachine\"\n```\nStateMachineStateConnectorName is the standard service name\n\n```go\nconst StateTrackerName = \"workflow.service.statetracker\"\n```\nStateTrackerName is the standard name for the state tracker service\n\n```go\nconst TenantRegistryServiceName = \"tenant_registry\"\n```\nTenantRegistryServiceName is the service registry key for interfaces.TenantRegistry.\n\n## Variables\n\n```go\nvar (\n\tSHA256 scram.HashGeneratorFcn = sha256.New\n\tSHA512 scram.HashGeneratorFcn = sha512.New\n)\n```\nSHA256 and SHA512 are hash generator functions used by the SCRAM client.\n\n```go\nvar ErrTenantMismatch = errors.New(\"tenant.mismatch\")\n```\nErrTenantMismatch is returned by Resolve when selectors disagree in all\\_must\\_match mode.\n\n```go\nvar HTTPRequestContextKey = httpReqContextKey{}\n```\nHTTPRequestContextKey is the context key used to pass an \\*http.Request through the pipeline execution context. Pipeline.Execute extracts this value and injects it into PipelineContext.Metadata\\[\"\\_http\\_request\"] so that steps can read request headers, path parameters, and the request body.\n\n```go\nvar HTTPResponseWriterContextKey = httpRWContextKey{}\n```\nHTTPResponseWriterContextKey is the context key used to pass an http.ResponseWriter through the pipeline execution context. Pipeline.Execute extracts this value and injects it into PipelineContext.Metadata\\[\"\\_http\\_response\\_writer\"] so that steps like step.json\\_response can write directly to the HTTP response.\n\n```go\nvar MigrateTableSQL = []string{\n\t`ALTER TABLE iac_resources ADD COLUMN IF NOT EXISTS provider TEXT NOT NULL DEFAULT ''`,\n\t`ALTER TABLE iac_resources ADD COLUMN IF NOT EXISTS provider_ref TEXT NOT NULL DEFAULT ''`,\n\t`ALTER TABLE iac_resources ADD COLUMN IF NOT EXISTS provider_id TEXT NOT NULL DEFAULT ''`,\n\t`ALTER TABLE iac_resources ADD COLUMN IF NOT EXISTS config_hash TEXT NOT NULL DEFAULT ''`,\n\t`ALTER TABLE iac_resources ADD COLUMN IF NOT EXISTS dependencies TEXT[] NOT NULL DEFAULT '{}'`,\n\t`ALTER TABLE iac_resources ADD COLUMN IF NOT EXISTS lifecycle JSONB`,\n}\n```\nMigrateTableSQL is additive DDL for iac\\_resources tables created by older Workflow versions before provider metadata and config\\_hash were tracked.\n\n```go\nvar NewExprEngine = pipeline.NewExprEngine\n```\nNewExprEngine creates a new ExprEngine. Delegates to pipeline.NewExprEngine.\n\n```go\nvar NewPipelineContext = interfaces.NewPipelineContext\n```\nNewPipelineContext creates a PipelineContext initialized with trigger data. Delegates to interfaces.NewPipelineContext.\n\n```go\nvar NewTemplateEngine = pipeline.NewTemplateEngine\n```\nNewTemplateEngine creates a new TemplateEngine. Delegates to pipeline.NewTemplateEngine.\n\n```go\nvar PipelineContextKey = pipelineContextKey{}\n```\nPipelineContextKey is the context key used to capture the full PipelineContext (including StepOutputs) from TriggerWorkflow. Callers that need per-step output visibility inject a \\*PipelineContextHolder into the context before calling TriggerWorkflow; the pipeline handler populates it after execution.\n\n```go\nvar PipelineResultContextKey = pipelineResultKey{}\n```\nPipelineResultContextKey is the context key used to capture pipeline execution results from TriggerWorkflow. HTTP trigger handlers store a \\*PipelineResultHolder in the context before calling TriggerWorkflow; the engine populates it with the pipeline's result.Current map after execution. This lets the trigger apply response\\_status/response\\_body/response\\_headers from the pipeline output when no step wrote directly to the HTTP response writer.\n\n```go\nvar SensitiveFieldPatterns = []string{\n\t\"secret\",\n\t\"password\",\n\t\"token\",\n\t\"credential\",\n\t\"authorization\",\n\t\"cookie\",\n\t\"signature\",\n\t\"request_body\",\n\t\"raw_body\",\n\t\"artifact_content\",\n\t\"content_b64\",\n\t\"transmission_sig\",\n\t\"api_key\",\n\t\"api-key\",\n\t\"apikey\",\n\t\"private_key\",\n\t\"access_key\",\n\t\"backup_code\",\n\t\"totp_secret\",\n\t\"mfa_secret\",\n}\n```\nSensitiveFieldPatterns contains field name substrings that trigger redaction. Matching is case-insensitive via strings.Contains on the lowercased field name.\n\n## Functions\n\n```go\nfunc BuildDeleteSQL(table string, where string, whereArgs ...any) (string, []any, error)\n```\nBuildDeleteSQL builds a DELETE SQL string (exported for testing). Returns an error if the table name contains unsafe characters.\n\n```go\nfunc BuildInsertSQL(table string, data map[string]any) (string, []any, error)\n```\nBuildInsertSQL builds an INSERT SQL string and returns it with values (exported for testing). Returns an error if table or column names contain unsafe characters.\n\n```go\nfunc BuildUpdateSQL(table string, data map[string]any, where string, whereArgs ...any) (string, []any, error)\n```\nBuildUpdateSQL builds an UPDATE SQL string and returns it with values (exported for testing). Returns an error if table or column names contain unsafe characters.\n\n```go\nfunc CalculateBackoff(initialBackoff time.Duration, multiplier float64, maxBackoff time.Duration, attempt int) time.Duration\n```\nCalculateBackoff is exported for testing\n\n```go\nfunc CreateIsolatedApp(t *testing.T) modular.Application\n```\nCreateIsolatedApp creates an isolated application for tests\n\n```go\nfunc DefaultSummaryFields() []string\n```\nDefaultSummaryFields returns the default list of fields to include in summary responses.\n\n```go\nfunc DefaultTransitionMap() map[string]string\n```\nDefaultTransitionMap returns the default sub-action to state machine transition mapping.\n\n```go\nfunc DetectTransportMutation(snapshot http.RoundTripper) bool\n```\nDetectTransportMutation reports whether http.DefaultTransport differs from the snapshot, indicating that something mutated the global transport.\n\n```go\nfunc ExpandConfigRefsMap(registry *ConfigRegistry, cfg map[string]any)\n```\nExpandConfigRefsMap recursively walks a config map and expands all {{config \"key\"}} references in string values using the given registry.\n\n```go\nfunc ExpandEnvString(s string) string\n```\nExpandEnvString resolves ${VAR} and $VAR environment variable references.\n\n```go\nfunc GatewayTimeout(route *GatewayRoute, defaultTimeout time.Duration) time.Duration\n```\nGatewayTimeout returns the parsed timeout for a route, or the default.\n\n```go\nfunc GetRequestID(ctx context.Context) string\n```\nGetRequestID extracts the request ID from the context.\n\n```go\nfunc LoadConfigSources(registry *ConfigRegistry, sources []map[string]any, schemaEntries map[string]SchemaEntry) error\n```\nLoadConfigSources loads configuration values into the registry from the declared sources in order. Later sources override earlier ones. Supported source types: \"defaults\" (from schema defaults) and \"env\" (from environment variables, with optional prefix).\n\n```go\nfunc NewGRPCIaCStateStore(c pb.IaCStateBackendClient) *grpcIaCStateStore\n```\nNewGRPCIaCStateStore wraps an IaCStateBackendClient as an IaCStateStore. It is exported for wfctl direct-path commands, which load plugin-served state backends without constructing a full engine.\n\n```go\nfunc NewInfraModuleFactory(infraType string) func(name string, cfg map[string]any) modular.Module\n```\nNewInfraModuleFactory returns a ModuleFactory that always creates InfraModules of the given infraType. Register one per infra.\\* type in the plugin.\n\n```go\nfunc NewTenantDisableStepFactory() func(name string, config map[string]any, app tenantAppProvider) (PipelineStep, error)\n```\nNewTenantDisableStepFactory returns a factory for step.tenant\\_disable.\n\n```go\nfunc NewTenantEnsureStepFactory() func(name string, config map[string]any, app tenantAppProvider) (PipelineStep, error)\n```\nNewTenantEnsureStepFactory returns a factory for step.tenant\\_ensure. The returned function accepts any tenantAppProvider (including modular.Application and lightweight test fakes). To register in the StepFactory registry call the returned func directly — it accepts modular.Application too since modular.Application satisfies tenantAppProvider.\n\n```go\nfunc NewTenantGetByDomainStepFactory() func(name string, config map[string]any, app tenantAppProvider) (PipelineStep, error)\n```\nNewTenantGetByDomainStepFactory returns a factory for step.tenant\\_get\\_by\\_domain.\n\n```go\nfunc NewTenantListStepFactory() func(name string, config map[string]any, app tenantAppProvider) (PipelineStep, error)\n```\nNewTenantListStepFactory returns a factory for step.tenant\\_list.\n\n```go\nfunc NewTenantUpdateStepFactory() func(name string, config map[string]any, app tenantAppProvider) (PipelineStep, error)\n```\nNewTenantUpdateStepFactory returns a factory for step.tenant\\_update.\n\n```go\nfunc ParseSchema(raw map[string]any) (map[string]SchemaEntry, error)\n```\nParseSchema parses a schema definition from a config map.\n\n```go\nfunc RedactStepOutput(output map[string]any) map[string]any\n```\nRedactStepOutput recursively scans output and replaces values of sensitive fields with RedactionPlaceholder. Field names are matched case-insensitively against SensitiveFieldPatterns. Fields ending with \"\\_display\" are never redacted regardless of their name. The original map is not modified.\n\n```go\nfunc RedactStepOutputWithPatterns(output map[string]any, extraPatterns []string) map[string]any\n```\nRedactStepOutputWithPatterns is like RedactStepOutput but appends extraPatterns to the default SensitiveFieldPatterns.\n\n```go\nfunc RegisterAdminSchemas(gen *OpenAPIGenerator)\n```\nRegisterAdminSchemas registers all admin API request/response schemas on the given OpenAPI generator. Call after BuildSpec and before ApplySchemas.\n\n```go\nfunc RegisterCredentialResolver(r CloudCredentialResolver)\n```\nRegisterCredentialResolver registers a CloudCredentialResolver in the global registry. It is safe to call from init() functions.\n\n```go\nfunc RegisterDNSBackend(provider string, factory DNSBackendFactory)\n```\nRegisterDNSBackend registers a DNSBackendFactory for the given provider name.\n\n```go\nfunc RegisterIaCStateBackend(name string, client pb.IaCStateBackendClient) error\n```\nRegisterIaCStateBackend associates an iac.state backend name with a plugin-served gRPC client in the package-level registry. The engine calls this at plugin-load for each backend name a loaded plugin advertises; IaCModule.Init then resolves \\`backend: \\\u003cname\u003e\\` configs against it. Reserved core backend names (memory/filesystem/postgres) and empty names / nil clients are rejected — see iacStateBackendRegistry.register. Amendment A2 (decisions/0035).\n\n```go\nfunc RegisterKubernetesBackend(clusterType string, factory KubernetesBackendFactory)\n```\nRegisterKubernetesBackend registers a KubernetesBackendFactory for the given cluster type.\n\n```go\nfunc RegisterKubernetesBackendClient(name string, client pb.ResourceDriverClient) error\n```\nRegisterKubernetesBackendClient associates a platform.kubernetes cluster type with a plugin-served ResourceDriver gRPC client in the package-level registry. The engine calls this at plugin-load for each kubernetes backend a loaded plugin serves (e.g. \\`gke\\` via workflow-plugin-gcp); PlatformKubernetes.Init then resolves \\`type: \\\u003cname\u003e\\` configs against it. Reserved in-core type names (kind/k3s/eks/aks) and empty names / nil clients are rejected — see kubernetesBackendClientRegistry.register. Per ADR 0037.\n\n```go\nfunc RestoreDefaultTransport(snapshot http.RoundTripper)\n```\nRestoreDefaultTransport resets http.DefaultTransport to the given snapshot.\n\n```go\nfunc SeverityRank(severity string) int\n```\nSeverityRank returns a numeric rank for severity comparison (higher = more severe).\n\n```go\nfunc SkipTestWithContext(ctx context.Context, skip bool) context.Context\n```\nSkip tests with a context.Context parameter\n\n```go\nfunc SnapshotDefaultTransport() http.RoundTripper\n```\nSnapshotDefaultTransport captures the current value of http.DefaultTransport. Call this before a plugin is initialized to record the baseline.\n\n```go\nfunc StepTopic(workflowType, stepName, lifecycle string) string\n```\nStepTopic returns the event bus topic for a step lifecycle event. Format: \"workflow.\\\u003cworkflowType\u003e.step.\\\u003cstepName\u003e.\\\u003clifecycle\u003e\"\n\n```go\nfunc TenantFromContext(ctx context.Context) interfaces.Tenant\n```\nTenantFromContext retrieves the tenant stored by WithTenant. Returns the zero Tenant if none is set.\n\n```go\nfunc TenantMiddleware(resolver interfaces.TenantResolver, next http.Handler) http.Handler\n```\nTenantMiddleware returns an http.Handler that resolves the tenant and stores it in the request context via WithTenant before calling next.\n\nError discrimination:\n\n  - ErrTenantMismatch → 403 Forbidden + JSON {\"error\":\"tenant.mismatch\"}\n  - Any other error   → 500 Internal Server Error + plain text\n\n```go\nfunc TenantsMigrationsFS() (fs.FS, error)\n```\nTenantsMigrationsFS returns the embedded SQL migration files for the tenants table. It implements the ProvidesMigrations contract from interfaces.MigrationProvider.\n\n```go\nfunc ValidateRequired(registry *ConfigRegistry, schemaEntries map[string]SchemaEntry) error\n```\nValidateRequired checks that all required schema keys have values in the registry. Returns an error listing all missing keys.\n\n```go\nfunc WithTenant(ctx context.Context, t interfaces.Tenant) context.Context\n```\nWithTenant stores t in ctx and returns the updated context.\n\n```go\nfunc WorkflowTopic(workflowType, lifecycle string) string\n```\nWorkflowTopic returns the event bus topic for a workflow lifecycle event. Format: \"workflow.\\\u003cworkflowType\u003e.\\\u003clifecycle\u003e\"\n\n```go\nfunc WriteIaCStateFile(path string, data []byte) error\n```\nWriteIaCStateFile replaces a state record using the native durability boundary (rename plus directory sync on Unix, write-through replacement on Windows). Callers create the directory first. Temporary files are private (0600) and never end in .json, so state listings cannot expose uncommitted records.\n\n## Types\n\n```go\ntype AIClassifyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAIClassifyStep takes input text and a list of categories, then uses an AI provider to classify the text into one of the categories.\n\n```go\nfunc (s *AIClassifyStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *AIClassifyStep) Name() string\n```\n\n```go\ntype AICompleteStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAICompleteStep invokes an AI provider to produce a text completion.\n\n```go\nfunc (s *AICompleteStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *AICompleteStep) Name() string\n```\n\n```go\ntype AIExtractStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAIExtractStep takes input text and an extraction schema, then uses an AI provider with tool use to extract structured data from the text.\n\n```go\nfunc (s *AIExtractStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *AIExtractStep) Name() string\n```\n\n```go\ntype APIGateway struct {\n\t// contains filtered or unexported fields\n}\n```\nAPIGateway is a composable gateway module that combines routing, auth, rate limiting, and proxying into a single module.\n\nEach APIGateway instance maintains its own independent rate limiter state. Rate limiters are never shared across instances, so multiple APIGateway instances (e.g. in multi-tenant deployments) do not interfere with each other.\n\n```go\nfunc NewAPIGateway(name string, opts ...APIGatewayOption) *APIGateway\n```\nNewAPIGateway creates a new APIGateway module. Optional functional options can be provided to configure the instance at construction time (e.g. WithRateLimit).\n\n```go\nfunc (g *APIGateway) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle processes incoming HTTP requests through the gateway pipeline: CORS -\u003e rate limiting -\u003e auth -\u003e method check -\u003e proxy.\n\n```go\nfunc (g *APIGateway) Init(_ modular.Application) error\n```\nInit initializes the module.\n\n```go\nfunc (g *APIGateway) Name() string\n```\nName returns the module name.\n\n```go\nfunc (g *APIGateway) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (g *APIGateway) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns no dependencies.\n\n```go\nfunc (g *APIGateway) Routes() []GatewayRoute\n```\nRoutes returns the configured routes (for introspection/testing).\n\n```go\nfunc (g *APIGateway) SetAuth(cfg *AuthConfig)\n```\nSetAuth configures authentication settings.\n\n```go\nfunc (g *APIGateway) SetCORS(cfg *CORSConfig)\n```\nSetCORS configures CORS settings.\n\n```go\nfunc (g *APIGateway) SetGlobalRateLimit(cfg *RateLimitConfig)\n```\nSetGlobalRateLimit is deprecated: use SetRateLimit instead. The rate limiter has always been instance-scoped; this method was misleadingly named.\n\nDeprecated: Use SetRateLimit.\n\n```go\nfunc (g *APIGateway) SetRateLimit(cfg *RateLimitConfig)\n```\nSetRateLimit configures an instance-level rate limit applied to all routes on this gateway. The limiter is scoped to this APIGateway instance and does not affect any other instance. Prefer injecting rate limit config via WithRateLimit at construction time when possible.\n\n```go\nfunc (g *APIGateway) SetRoutes(routes []GatewayRoute) error\n```\nSetRoutes configures the gateway routes.\n\n```go\nfunc (g *APIGateway) Start(_ context.Context) error\n```\nStart launches background cleanup goroutines for all rate limiters.\n\n```go\nfunc (g *APIGateway) Stop(_ context.Context) error\n```\nStop shuts down background cleanup goroutines for all rate limiters.\n\n```go\ntype APIGatewayOption func(*APIGateway)\n```\nAPIGatewayOption is a functional option for configuring an APIGateway at construction time.\n\n```go\nfunc WithRateLimit(cfg *RateLimitConfig) APIGatewayOption\n```\nWithRateLimit sets an instance-level rate limit applied to all requests before per-route limits are checked. The limiter is scoped to this APIGateway instance and does not affect any other instance.\n\n```go\ntype AppContainerModule struct {\n\t// contains filtered or unexported fields\n}\n```\nAppContainerModule manages application containers on top of platform modules. Config:\n\n\tenvironment: name of a platform.kubernetes module (service registry)\n\timage:       container image (required)\n\treplicas:    desired replica count (default: 1)\n\tports:       list of container ports\n\tcpu:         CPU request/limit (default: \"256m\")\n\tmemory:      memory request/limit (default: \"512Mi\")\n\tenv:         environment variables\n\thealth_path: HTTP health check path (default: \"/healthz\")\n\thealth_port: health check port (default: first port or 8080)\n\n```go\nfunc NewAppContainerModule(name string, cfg map[string]any) *AppContainerModule\n```\nNewAppContainerModule creates a new AppContainerModule.\n\n```go\nfunc (m *AppContainerModule) Deploy() (*AppDeployResult, error)\n```\nDeploy stores the previous deployment state and creates a new deployment. The mock backend immediately transitions to \"active\".\n\n```go\nfunc (m *AppContainerModule) DeployWithSpec(spec AppContainerSpec) (*AppDeployResult, error)\n```\nDeployWithSpec deploys using an operation-specific spec without changing the module's configured default spec.\n\n```go\nfunc (m *AppContainerModule) Init(app modular.Application) error\n```\nInit resolves the environment module and initialises the platform backend.\n\n```go\nfunc (m *AppContainerModule) Manifests() (any, error)\n```\nManifests returns the generated platform-specific resource manifests.\n\n```go\nfunc (m *AppContainerModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *AppContainerModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *AppContainerModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — environment is resolved by name, not declared.\n\n```go\nfunc (m *AppContainerModule) Rollback() (*AppDeployResult, error)\n```\nRollback reverts the deployment to the previous image/config. Returns an error if there is no previous deployment to roll back to.\n\n```go\nfunc (m *AppContainerModule) Spec() AppContainerSpec\n```\nSpec returns the parsed AppContainerSpec (used in tests and pipeline steps).\n\n```go\nfunc (m *AppContainerModule) Status() (*AppDeployResult, error)\n```\nStatus returns the current deployment result.\n\n```go\ntype AppContainerSpec struct {\n\tImage      string            `json:\"image\"`\n\tReplicas   int               `json:\"replicas\"`\n\tPorts      []int             `json:\"ports\"`\n\tEnv        map[string]string `json:\"env\"`\n\tCPU        string            `json:\"cpu\"`\n\tMemory     string            `json:\"memory\"`\n\tHealthPath string            `json:\"healthPath\"`\n\tHealthPort int               `json:\"healthPort\"`\n}\n```\nAppContainerSpec describes the desired state of an application container.\n\n```go\ntype AppDeployResult struct {\n\tPlatform string `json:\"platform\"` // kubernetes, ecs\n\tName     string `json:\"name\"`\n\tStatus   string `json:\"status\"` // deploying, active, failed, rolled_back\n\tEndpoint string `json:\"endpoint\"`\n\tReplicas int    `json:\"replicas\"`\n\tImage    string `json:\"image\"`\n}\n```\nAppDeployResult holds the current deployment state.\n\n```go\ntype AppDeployStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAppDeployStep deploys an app.container module.\n\n```go\nfunc (s *AppDeployStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *AppDeployStep) Name() string\n```\n\n```go\ntype AppRollbackStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAppRollbackStep rolls back an app.container module to the previous deployment state.\n\n```go\nfunc (s *AppRollbackStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *AppRollbackStep) Name() string\n```\n\n```go\ntype AppStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAppStatusStep returns the current deployment status of an app.container module.\n\n```go\nfunc (s *AppStatusStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *AppStatusStep) Name() string\n```\n\n```go\ntype ArgoContainer struct {\n\tImage   string            `json:\"image\"`\n\tCommand []string          `json:\"command,omitempty\"`\n\tEnv     map[string]string `json:\"env,omitempty\"`\n}\n```\nArgoContainer describes the container spec for a container template.\n\n```go\ntype ArgoDAGTask struct {\n\tName         string   `json:\"name\"`\n\tTemplate     string   `json:\"template\"`\n\tDependencies []string `json:\"dependencies,omitempty\"`\n}\n```\nArgoDAGTask is a task node in a DAG template.\n\n```go\ntype ArgoDeleteStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArgoDeleteStep removes a completed or failed Argo Workflow run.\n\n```go\nfunc (s *ArgoDeleteStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArgoDeleteStep) Name() string\n```\n\n```go\ntype ArgoEphemeralRunner struct {\n\t// contains filtered or unexported fields\n}\n```\nArgoEphemeralRunner implements sandbox.SandboxRunner by submitting a one-off Argo Workflow on Kubernetes and polling until it reaches a terminal status. It is wired as exec\\_env: ephemeral in step.sandbox\\_exec.\n\nExit-code limitation: Argo exposes a workflow-level status phase, not the individual container exit code. ArgoEphemeralRunner maps:\n\n  - \"Succeeded\" → ExitCode 0\n  - \"Failed\" / \"Error\" → ExitCode 1\n\nFine-grained exit codes (e.g. 2, 127) are not available from the Argo status API and cannot be recovered without instrumenting the workflow template to capture them. This is documented as a known limitation (ADR 0020).\n\nSecret refs: env values may carry \"secret://\" references. ArgoEphemeralRunner does NOT resolve them engine-side; it passes them through as-is into the Argo Workflow spec. Production deployments are expected to resolve secret refs via Kubernetes secretKeyRef / projected volumes at pod-launch time (ADR 0017). The engine-side secret:// string is intentionally preserved so the k8s admission/mutation webhook or a sidecar can substitute the real value.\n\n```go\nfunc (r *ArgoEphemeralRunner) Close() error\n```\nClose is a no-op: ArgoEphemeralRunner holds no persistent connections.\n\n```go\nfunc (r *ArgoEphemeralRunner) Exec(ctx context.Context, cmd []string) (*sandbox.ExecResult, error)\n```\nExec submits a single-container Argo Workflow for cmd, polls until terminal, then returns the combined log output as Stdout and maps Argo status to ExitCode.\n\nWorkflow name: derived as \"ephemeral-exec-\\\u003cmonotonic-counter\u003e\" so that names are unique per process lifetime without relying on time or random sources. The counter is module-global and thread-safe (atomic.Uint64).\n\nctx cancellation: ctx is threaded into every SubmitWorkflow/WorkflowStatus/ WorkflowLogs call so an in-flight HTTP request aborts on cancellation, and a select on ctx.Done() is also checked between poll ticks. On cancellation ctx.Err() is returned promptly.\n\n```go\ntype ArgoListStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArgoListStep lists Argo Workflow runs with an optional label selector.\n\n```go\nfunc (s *ArgoListStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArgoListStep) Name() string\n```\n\n```go\ntype ArgoLogsStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArgoLogsStep retrieves log lines from an Argo Workflow run.\n\n```go\nfunc (s *ArgoLogsStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArgoLogsStep) Name() string\n```\n\n```go\ntype ArgoStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArgoStatusStep checks the execution status of an Argo Workflow run.\n\n```go\nfunc (s *ArgoStatusStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArgoStatusStep) Name() string\n```\n\n```go\ntype ArgoSubmitStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArgoSubmitStep submits an Argo Workflow built from pipeline step configs.\n\n```go\nfunc (s *ArgoSubmitStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArgoSubmitStep) Name() string\n```\n\n```go\ntype ArgoTemplate struct {\n\tName      string         `json:\"name\"`\n\tKind      string         `json:\"kind\"` // dag, steps, container\n\tDAG       []ArgoDAGTask  `json:\"dag,omitempty\"`\n\tContainer *ArgoContainer `json:\"container,omitempty\"`\n}\n```\nArgoTemplate is a single template (DAG or step list) within an Argo Workflow.\n\n```go\ntype ArgoWorkflowSpec struct {\n\tAPIVersion string            `json:\"apiVersion\"`\n\tKind       string            `json:\"kind\"`\n\tName       string            `json:\"name\"`\n\tNamespace  string            `json:\"namespace\"`\n\tEntrypoint string            `json:\"entrypoint\"`\n\tTemplates  []ArgoTemplate    `json:\"templates\"`\n\tArguments  map[string]string `json:\"arguments,omitempty\"`\n\n\t// TTLSecondsAfterFinished, when \u003e 0, instructs the Argo controller to\n\t// auto-delete the Workflow object this many seconds after it completes\n\t// (succeeds, fails, or errors). It maps to spec.ttlStrategy.secondsAfterCompletion\n\t// in the Argo Workflow CRD. Used by the ephemeral runner to prevent\n\t// completed one-off workflows from accumulating in the namespace.\n\tTTLSecondsAfterFinished int `json:\"ttlSecondsAfterFinished,omitempty\"`\n}\n```\nArgoWorkflowSpec is the translated Argo Workflow CRD spec derived from pipeline config.\n\n```go\nfunc TranslatePipelineToArgo(workflowName, namespace string, steps []map[string]any) *ArgoWorkflowSpec\n```\nTranslatePipelineToArgo converts a list of pipeline step configs into an ArgoWorkflowSpec using a DAG template where each step becomes a task with sequential dependencies.\n\n```go\ntype ArgoWorkflowState struct {\n\tName      string    `json:\"name\"`\n\tNamespace string    `json:\"namespace\"`\n\tVersion   string    `json:\"version\"`\n\tStatus    string    `json:\"status\"` // pending, creating, running, deleting, deleted\n\tEndpoint  string    `json:\"endpoint\"`\n\tCreatedAt time.Time `json:\"createdAt\"`\n}\n```\nArgoWorkflowState holds the current state of a managed Argo Workflows installation.\n\n```go\ntype ArgoWorkflowsModule struct {\n\t// contains filtered or unexported fields\n}\n```\nArgoWorkflowModule manages an Argo Workflows installation on Kubernetes. Config:\n\n\tcluster:    name of a platform.kubernetes module (resolved from service registry)\n\tnamespace:  Kubernetes namespace for Argo (default: argo)\n\tversion:    Argo Workflows version (e.g. \"3.5\")\n\n```go\nfunc NewArgoWorkflowsModule(name string, cfg map[string]any) *ArgoWorkflowsModule\n```\nNewArgoWorkflowsModule creates a new ArgoWorkflowsModule.\n\n```go\nfunc (m *ArgoWorkflowsModule) Apply() (*PlatformResult, error)\n```\nApply installs or updates Argo Workflows.\n\n```go\nfunc (m *ArgoWorkflowsModule) DeleteWorkflow(ctx context.Context, workflowName string) error\n```\nDeleteWorkflow removes a completed or failed workflow. The context bounds the underlying HTTP call in the real backend.\n\n```go\nfunc (m *ArgoWorkflowsModule) Destroy() error\n```\nDestroy uninstalls Argo Workflows.\n\n```go\nfunc (m *ArgoWorkflowsModule) Init(app modular.Application) error\n```\nInit resolves optional cluster reference and initialises the backend. Config options:\n\n\tbackend:   mock (default) | real\n\tendpoint:  Argo Server URL, e.g. http://localhost:2746 (required for backend: real)\n\ttoken:     Bearer token for Argo Server auth (optional)\n\n```go\nfunc (m *ArgoWorkflowsModule) ListWorkflows(ctx context.Context, labelSelector string) ([]string, error)\n```\nListWorkflows lists workflows matching the optional label selector. The context bounds the underlying HTTP call in the real backend.\n\n```go\nfunc (m *ArgoWorkflowsModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *ArgoWorkflowsModule) Plan() (*PlatformPlan, error)\n```\nPlan returns the changes needed to install Argo Workflows.\n\n```go\nfunc (m *ArgoWorkflowsModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *ArgoWorkflowsModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — cluster is resolved by name, not declared.\n\n```go\nfunc (m *ArgoWorkflowsModule) Status() (any, error)\n```\nStatus returns the current Argo Workflows installation state.\n\n```go\nfunc (m *ArgoWorkflowsModule) SubmitWorkflow(ctx context.Context, spec *ArgoWorkflowSpec) (string, error)\n```\nSubmitWorkflow translates a pipeline config into an Argo Workflow spec and submits it. Returns the workflow run name. The context bounds the underlying HTTP call in the real backend so cancellation/deadline aborts an in-flight request.\n\n```go\nfunc (m *ArgoWorkflowsModule) WorkflowLogs(ctx context.Context, workflowName string) ([]string, error)\n```\nWorkflowLogs returns log lines from a workflow run. The context bounds the underlying HTTP call in the real backend.\n\n```go\nfunc (m *ArgoWorkflowsModule) WorkflowStatus(ctx context.Context, workflowName string) (string, error)\n```\nWorkflowStatus returns the execution status of a workflow run. The context bounds the underlying HTTP call in the real backend.\n\n```go\ntype ArtifactDeleteStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactDeleteStep removes an artifact from a named ArtifactStore.\n\n```go\nfunc (s *ArtifactDeleteStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArtifactDeleteStep) Name() string\n```\n\n```go\ntype ArtifactDownloadStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactDownloadStep downloads an artifact from a named ArtifactStore to a local path or step output.\n\n```go\nfunc (s *ArtifactDownloadStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArtifactDownloadStep) Name() string\n```\n\n```go\ntype ArtifactFSConfig struct {\n\tBasePath string\n\tMaxSize  int64 // 0 means unlimited\n}\n```\nArtifactFSConfig holds configuration for the filesystem artifact store module.\n\n```go\ntype ArtifactFSModule struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactFSModule is a modular.Module that provides a filesystem-backed ArtifactStore. Module type: storage.artifact with backend: filesystem.\n\n```go\nfunc NewArtifactFSModule(name string, cfg ArtifactFSConfig) *ArtifactFSModule\n```\nNewArtifactFSModule creates a new filesystem artifact store module.\n\n```go\nfunc (m *ArtifactFSModule) Delete(_ context.Context, key string) error\n```\nDelete removes the artifact and its sidecar.\n\n```go\nfunc (m *ArtifactFSModule) Download(_ context.Context, key string) (io.ReadCloser, map[string]string, error)\n```\nDownload retrieves content and metadata for key.\n\n```go\nfunc (m *ArtifactFSModule) Exists(_ context.Context, key string) (bool, error)\n```\nExists reports whether an artifact with the given key exists.\n\n```go\nfunc (m *ArtifactFSModule) Init(app modular.Application) error\n```\n\n```go\nfunc (m *ArtifactFSModule) List(_ context.Context, prefix string) ([]ArtifactInfo, error)\n```\nList returns ArtifactInfo for all artifacts whose key starts with prefix.\n\n```go\nfunc (m *ArtifactFSModule) Name() string\n```\n\n```go\nfunc (m *ArtifactFSModule) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *ArtifactFSModule) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *ArtifactFSModule) Start(_ context.Context) error\n```\n\n```go\nfunc (m *ArtifactFSModule) Stop(_ context.Context) error\n```\n\n```go\nfunc (m *ArtifactFSModule) Upload(_ context.Context, key string, reader io.Reader, metadata map[string]string) error\n```\nUpload stores content under key with optional metadata.\n\n```go\ntype ArtifactInfo struct {\n\tKey      string\n\tSize     int64\n\tModified time.Time\n\tMetadata map[string]string\n}\n```\nArtifactInfo describes a stored artifact.\n\n```go\ntype ArtifactListStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactListStep lists artifacts in a named ArtifactStore.\n\n```go\nfunc (s *ArtifactListStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArtifactListStep) Name() string\n```\n\n```go\ntype ArtifactOutput struct {\n\tKey  string `yaml:\"key\"`\n\tPath string `yaml:\"path\"`\n}\n```\nArtifactOutput defines an artifact to collect after shell execution.\n\n```go\ntype ArtifactPullStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactPullStep retrieves an artifact from a configured source (previous execution, URL, or S3) and writes it to a destination path.\n\n```go\nfunc (s *ArtifactPullStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute pulls the artifact from the configured source and writes it to dest.\n\n```go\nfunc (s *ArtifactPullStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ArtifactPushStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactPushStep reads a file from sourcePath and stores it in the artifact store.\n\n```go\nfunc (s *ArtifactPushStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute reads the source file and stores it as an artifact.\n\n```go\nfunc (s *ArtifactPushStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ArtifactS3Config struct {\n\tBucket      string\n\tPrefix      string\n\tRegion      string\n\tEndpoint    string // \"local\" → filesystem fallback; otherwise S3 endpoint URL\n\tBasePath    string // used when Endpoint == \"local\"\n\tCredentials struct {\n\t\tAccessKeyID     string\n\t\tSecretAccessKey string\n\t}\n}\n```\nArtifactS3Config holds configuration for the S3 artifact store module.\n\nWhen Endpoint is set to \"local\", the module falls back to a filesystem backend rooted at BasePath (useful for local development and testing).\n\nFull S3 implementation would use:\n\n  - aws-sdk-go-v2/service/s3 PutObject / GetObject / ListObjectsV2 / DeleteObject\n  - object key = Prefix + \"/\" + key\n  - metadata stored as S3 object user metadata (x-amz-meta-\\*)\n  - Exists implemented via HeadObject\n\n```go\ntype ArtifactS3Module struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactS3Module is a modular.Module that provides an S3-backed ArtifactStore. Module type: storage.artifact with backend: s3.\n\nFor MVP: when Endpoint == \"local\", delegates to the filesystem backend. Production S3 support requires wiring the aws-sdk-go-v2 S3 client.\n\n```go\nfunc NewArtifactS3Module(name string, cfg ArtifactS3Config) *ArtifactS3Module\n```\nNewArtifactS3Module creates a new S3 artifact store module.\n\n```go\nfunc (m *ArtifactS3Module) Delete(ctx context.Context, key string) error\n```\n\n```go\nfunc (m *ArtifactS3Module) Download(ctx context.Context, key string) (io.ReadCloser, map[string]string, error)\n```\n\n```go\nfunc (m *ArtifactS3Module) Exists(ctx context.Context, key string) (bool, error)\n```\n\n```go\nfunc (m *ArtifactS3Module) Init(app modular.Application) error\n```\n\n```go\nfunc (m *ArtifactS3Module) List(ctx context.Context, prefix string) ([]ArtifactInfo, error)\n```\n\n```go\nfunc (m *ArtifactS3Module) Name() string\n```\n\n```go\nfunc (m *ArtifactS3Module) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *ArtifactS3Module) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *ArtifactS3Module) Start(ctx context.Context) error\n```\n\n```go\nfunc (m *ArtifactS3Module) Stop(_ context.Context) error\n```\n\n```go\nfunc (m *ArtifactS3Module) Upload(ctx context.Context, key string, reader io.Reader, metadata map[string]string) error\n```\n\n```go\ntype ArtifactStore interface {\n\t// Upload stores content under key. metadata is optional.\n\tUpload(ctx context.Context, key string, reader io.Reader, metadata map[string]string) error\n\n\t// Download retrieves the content and metadata stored under key.\n\t// The caller must close the returned ReadCloser.\n\tDownload(ctx context.Context, key string) (io.ReadCloser, map[string]string, error)\n\n\t// List returns all artifacts whose key starts with prefix.\n\t// Pass an empty prefix to list all artifacts.\n\tList(ctx context.Context, prefix string) ([]ArtifactInfo, error)\n\n\t// Delete removes the artifact stored under key.\n\tDelete(ctx context.Context, key string) error\n\n\t// Exists reports whether an artifact with the given key exists.\n\tExists(ctx context.Context, key string) (bool, error)\n}\n```\nArtifactStore is the interface for a named artifact storage backend. Unlike the execution-scoped artifact.Store, keys here are global (or caller-scoped) and support arbitrary metadata.\n\n```go\ntype ArtifactUploadStep struct {\n\t// contains filtered or unexported fields\n}\n```\nArtifactUploadStep uploads file-backed or context-backed content to a named ArtifactStore.\n\n```go\nfunc (s *ArtifactUploadStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *ArtifactUploadStep) Name() string\n```\n\n```go\ntype AuthConfig struct {\n\tType   string `json:\"type\"`   // \"bearer\", \"api_key\", \"basic\"\n\tHeader string `json:\"header\"` // header name to check\n}\n```\nAuthConfig defines authentication settings for the gateway.\n\n```go\ntype AuthMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nAuthMiddleware implements an HTTP authorization middleware\n\n```go\nfunc NewAuthMiddleware(name string, authType string) *AuthMiddleware\n```\nNewAuthMiddleware creates a new authentication middleware\n\n```go\nfunc (m *AuthMiddleware) AddProvider(validTokens map[string]map[string]any)\n```\nAddProvider creates and registers a simple token-based auth provider\n\n```go\nfunc (m *AuthMiddleware) Init(app modular.Application) error\n```\nInit initializes the middleware with the application context\n\n```go\nfunc (m *AuthMiddleware) Name() string\n```\nName returns the module name\n\n```go\nfunc (m *AuthMiddleware) Process(next http.Handler) http.Handler\n```\nProcess implements the HTTPMiddleware interface\n\n```go\nfunc (m *AuthMiddleware) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module\n\n```go\nfunc (m *AuthMiddleware) RegisterProvider(provider AuthProvider)\n```\nRegisterProvider adds an authentication provider\n\n```go\nfunc (m *AuthMiddleware) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module\n\n```go\nfunc (m *AuthMiddleware) Start(ctx context.Context) error\n```\nStart is a no-op for this middleware\n\n```go\nfunc (m *AuthMiddleware) Stop(ctx context.Context) error\n```\nStop is a no-op for this middleware\n\n```go\ntype AuthProvider interface {\n\tAuthenticate(token string) (bool, map[string]any, error)\n}\n```\nAuthProvider defines methods for authentication providers\n\n```go\ntype AuthValidateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAuthValidateStep validates a Bearer token against a registered AuthProvider module and outputs the claims returned by the provider into the pipeline context.\n\n```go\nfunc (s *AuthValidateStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute validates the Bearer token and outputs claims from the AuthProvider.\n\n```go\nfunc (s *AuthValidateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype AuthzCheckStep struct {\n\t// contains filtered or unexported fields\n}\n```\nAuthzCheckStep evaluates a policy engine decision for the current pipeline subject. On denial it writes a 403 Forbidden JSON response to the HTTP response writer (when present) and stops the pipeline, matching the pattern used by step.auth\\_validate for 401 responses.\n\n```go\nfunc (s *AuthzCheckStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute evaluates the policy engine and writes a 403 response on denial.\n\n```go\nfunc (s *AuthzCheckStep) Name() string\n```\nName returns the step name.\n\n```go\ntype Base64DecodeStep struct {\n\t// contains filtered or unexported fields\n}\n```\nBase64DecodeStep decodes base64-encoded content (raw or data-URI), optionally validating the MIME type and decoded size.\n\n```go\nfunc (s *Base64DecodeStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute decodes the base64 content from the pipeline context, validates it, and returns structured metadata plus the re-encoded base64 data.\n\n```go\nfunc (s *Base64DecodeStep) Name() string\n```\nName returns the step name.\n\n```go\ntype BlueGreenDriver interface {\n\tPrevalidatedRollingDriver\n}\n```\nBlueGreenDriver extends DeployDriver with the ability to manage two environments (blue/green) and switch traffic between them.\n\nDeprecated: use PrevalidatedRollingDriver for providers whose implementation validates a candidate deployment before rolling the stable service.\n\n```go\ntype BlueGreenDriverProvider interface {\n\t// ProvideBlueGreenDriver returns a BlueGreenDriver for the named resource, or nil.\n\tProvideBlueGreenDriver(resourceName string) BlueGreenDriver\n}\n```\nBlueGreenDriverProvider is an optional extension of interfaces.IaCProvider for providers that support blue/green deployments.\n\nDeprecated: use PrevalidatedRollingDriverProvider for providers whose strategy validates a candidate deployment before rolling the stable service.\n\n```go\ntype BranchStep struct {\n\t// contains filtered or unexported fields\n}\n```\nBranchStep evaluates a field and executes only the matched branch's sub-steps inline, then routes to merge\\_step. Unlike step.conditional (which jumps to a single named step and falls through the remaining pipeline steps), step.branch runs an isolated sub-pipeline for the matched branch and jumps to merge\\_step when done, skipping all other branches.\n\n```go\nfunc (s *BranchStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the field value, selects the matching branch, runs its sub-steps sequentially on the shared PipelineContext, and returns NextStep=merge\\_step so the parent executor jumps to the merge point.\n\n```go\nfunc (s *BranchStep) Name() string\n```\nName returns the step name.\n\n```go\ntype BuildBinaryStep struct {\n\t// contains filtered or unexported fields\n}\n```\nBuildBinaryStep reads a workflow config YAML, generates a self-contained Go project that embeds the config, and compiles it into a standalone binary.\n\n```go\nfunc (s *BuildBinaryStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute generates the Go project and optionally compiles it.\n\n```go\nfunc (s *BuildBinaryStep) Name() string\n```\nName returns the step name.\n\n```go\ntype BuildFromConfigStep struct {\n\t// contains filtered or unexported fields\n}\n```\nBuildFromConfigStep reads a workflow config YAML file, assembles a Docker build context with the server binary and any required plugin binaries, generates a Dockerfile, builds the image, and optionally pushes it.\n\n```go\nfunc (s *BuildFromConfigStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute assembles the build context, generates a Dockerfile, builds the Docker image, and optionally pushes it.\n\n```go\nfunc (s *BuildFromConfigStep) Name() string\n```\nName returns the step name.\n\n```go\ntype BuildUIStep struct {\n\t// contains filtered or unexported fields\n}\n```\nBuildUIStep executes a UI build pipeline natively (without Docker), producing static assets in a target directory for static.fileserver to serve. This enables config-driven UI builds without requiring external CLI commands.\n\n```go\nfunc (s *BuildUIStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs the UI build process natively:\n\n 1. Resolves source and output directories\n 2. Runs npm install (or equivalent)\n 3. Runs the build command\n 4. Copies build output to the target directory\n\n```go\nfunc (s *BuildUIStep) Name() string\n```\nName returns the step name.\n\n```go\ntype CLICommandFunc func(args []string) error\n```\nCLICommandFunc is the type for CLI command implementations. It matches the signature used by wfctl command handlers (func(args \\[]string) error).\n\n```go\ntype CLICommandRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nCLICommandRegistry is a shared service that maps CLI command names to their Go function implementations. It is registered in the app under the name CLICommandRegistryServiceName before BuildFromConfig is called so that step.cli\\_invoke can look up and invoke the correct function at execution time.\n\nUsage in cmd/wfctl/main.go:\n\n\tregistry := module.NewCLICommandRegistry()\n\tfor name, fn := range commands {\n\t    registry.Register(name, module.CLICommandFunc(fn))\n\t}\n\tengineInst.App().RegisterService(module.CLICommandRegistryServiceName, registry)\n\n```go\nfunc NewCLICommandRegistry() *CLICommandRegistry\n```\nNewCLICommandRegistry creates a new empty CLICommandRegistry.\n\n```go\nfunc (r *CLICommandRegistry) Get(name string) (CLICommandFunc, bool)\n```\nGet returns the function registered for name, if any.\n\n```go\nfunc (r *CLICommandRegistry) Register(name string, fn CLICommandFunc)\n```\nRegister adds or replaces the function for the named command.\n\n```go\ntype CLIInvokeStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCLIInvokeStep calls a registered Go CLI command function from within a pipeline. It looks up the CLICommandRegistry service in the application and invokes the function registered under the configured command name.\n\nStep type: step.cli\\_invoke\n\nConfig fields:\n\n  - command  (required) — the command name as registered in CLICommandRegistry\n\nPipeline context inputs:\n\n  - args  (\\[]string) — forwarded as the args parameter to the Go function; passed from the CLI trigger data as pc.Current\\[\"args\"]\n\nStep output:\n\n  - command  (string) — the command name that was executed\n  - success  (bool)   — always true on success (error path returns a non-nil error)\n\n```go\nfunc (s *CLIInvokeStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the CLICommandRegistry service, looks up the configured command, extracts args from the pipeline context, and calls the function.\n\n```go\nfunc (s *CLIInvokeStep) Name() string\n```\nName returns the step name.\n\n```go\ntype CLIPrintStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCLIPrintStep writes a template-resolved message to stdout or stderr. Use this step to produce output in workflow-powered CLI applications.\n\nStep type: step.cli\\_print\n\nConfig fields:\n\n  - message  (required) — Go template expression resolved against the pipeline context (e.g. \"PASS {{.config\\_file}}\")\n  - newline  (optional, default true) — append a trailing newline\n  - target   (optional, \"stdout\" | \"stderr\", default \"stdout\")\n\n```go\nfunc (s *CLIPrintStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the message template and writes it to the configured target. It sets \"printed\" in the step output to the resolved message string.\n\n```go\nfunc (s *CLIPrintStep) Name() string\n```\nName returns the step name.\n\n```go\ntype CLITrigger struct {\n\t// contains filtered or unexported fields\n}\n```\nCLITrigger maps CLI command names to workflow pipelines. It implements the interfaces.Trigger contract so it can be registered with the engine via engine.RegisterTrigger() or DefaultTriggers().\n\nIn a workflow config file, CLI commands are wired to pipelines via the \"cli\" pipeline trigger type:\n\n\tpipelines:\n\t  cmd-validate:\n\t    trigger:\n\t      type: cli\n\t      config:\n\t        command: validate\n\t    steps:\n\t      - name: run\n\t        type: step.cli_invoke\n\t        config:\n\t          command: validate\n\nThe engine's wrapPipelineTriggerConfig helper enriches the flat config with a \"workflowType\" key before calling Configure, so the trigger receives:\n\n\t{command: \"validate\", workflowType: \"pipeline:cmd-validate\"}\n\n```go\nfunc NewCLITrigger() *CLITrigger\n```\nNewCLITrigger creates a new CLITrigger.\n\n```go\nfunc (t *CLITrigger) Configure(app modular.Application, triggerConfig any) error\n```\nConfigure processes a single command→pipeline mapping. It is called once per pipeline that carries a \"cli\" inline trigger config. The enriched config map must contain:\n\n\tcommand      — the CLI command name (e.g. \"validate\")\n\tworkflowType — the pipeline workflow identifier (e.g. \"pipeline:cmd-validate\")\n\nConfigure also registers the trigger as the \"trigger.cli\" service so that CLIWorkflowHandler can discover it via the application service registry.\n\n```go\nfunc (t *CLITrigger) Dependencies() []string\n```\nDependencies returns nil — the CLI trigger has no module dependencies.\n\n```go\nfunc (t *CLITrigger) DispatchCommand(ctx context.Context, cmd string, args []string) error\n```\nDispatchCommand invokes TriggerWorkflow for the named CLI command, passing the original command name and its arguments as trigger data. The pipeline context will expose these values as pc.Current\\[\"command\"] and pc.Current\\[\"args\"] respectively.\n\n```go\nfunc (t *CLITrigger) HasCommand(cmd string) bool\n```\nHasCommand returns true if a pipeline mapping is registered for cmd.\n\n```go\nfunc (t *CLITrigger) Init(_ modular.Application) error\n```\nInit is a no-op; triggers registered via engine.RegisterTrigger are not Init-ed through the module system. Registration as a service happens in Configure, which IS called during engine configuration.\n\n```go\nfunc (t *CLITrigger) Name() string\n```\nName returns the trigger's canonical name (\"trigger.cli\").\n\n```go\nfunc (t *CLITrigger) Start(_ context.Context) error\n```\nStart is a no-op for the CLI trigger — CLI commands are dispatched synchronously by the application, not by a background goroutine.\n\n```go\nfunc (t *CLITrigger) Stop(_ context.Context) error\n```\nStop is a no-op for the CLI trigger.\n\n```go\ntype CORSConfig struct {\n\tAllowOrigins []string `json:\"allowOrigins\"`\n\tAllowMethods []string `json:\"allowMethods\"`\n\tAllowHeaders []string `json:\"allowHeaders\"`\n\tMaxAge       int      `json:\"maxAge\"`\n}\n```\nCORSConfig defines CORS settings for the gateway.\n\n```go\ntype CORSMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nCORSMiddleware provides CORS support\n\n```go\nfunc NewCORSMiddleware(name string, allowedOrigins, allowedMethods []string) *CORSMiddleware\n```\nNewCORSMiddleware creates a new CORS middleware with default allowed headers.\n\n```go\nfunc NewCORSMiddlewareWithConfig(name string, cfg CORSMiddlewareConfig) *CORSMiddleware\n```\nNewCORSMiddlewareWithConfig creates a new CORS middleware with full configuration. If AllowedHeaders is empty, it defaults to \\[\"Content-Type\", \"Authorization\"].\n\n```go\nfunc (m *CORSMiddleware) Init(app modular.Application) error\n```\nInit initializes the middleware\n\n```go\nfunc (m *CORSMiddleware) Name() string\n```\nName returns the module name\n\n```go\nfunc (m *CORSMiddleware) Process(next http.Handler) http.Handler\n```\nProcess implements middleware processing\n\n```go\nfunc (m *CORSMiddleware) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this middleware\n\n```go\nfunc (m *CORSMiddleware) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this middleware\n\n```go\nfunc (m *CORSMiddleware) Start(ctx context.Context) error\n```\nStart is a no-op for this middleware\n\n```go\nfunc (m *CORSMiddleware) Stop(ctx context.Context) error\n```\nStop is a no-op for this middleware\n\n```go\ntype CORSMiddlewareConfig struct {\n\t// AllowedOrigins is the list of origins allowed to make cross-origin requests.\n\t// Use \"*\" to allow all origins. Supports wildcard subdomain patterns like \"*.example.com\".\n\tAllowedOrigins []string\n\t// AllowedMethods is the list of HTTP methods allowed in CORS requests.\n\tAllowedMethods []string\n\t// AllowedHeaders is the list of HTTP headers allowed in CORS requests.\n\t// Defaults to [\"Content-Type\", \"Authorization\"] when empty.\n\tAllowedHeaders []string\n\t// AllowCredentials indicates whether the request can include user credentials.\n\t// When true, the actual request Origin is reflected (never \"*\").\n\tAllowCredentials bool\n\t// MaxAge specifies how long (in seconds) the preflight response may be cached.\n\t// Zero means no caching directive is sent.\n\tMaxAge int\n}\n```\nCORSMiddlewareConfig holds configuration for the CORS middleware.\n\n```go\ntype CacheDeleteStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCacheDeleteStep removes a key from a named CacheModule.\n\n```go\nfunc (s *CacheDeleteStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CacheDeleteStep) Name() string\n```\n\n```go\ntype CacheGetStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCacheGetStep reads a value from a named CacheModule and stores it in the pipeline context under a configurable output field.\n\n```go\nfunc (s *CacheGetStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CacheGetStep) Name() string\n```\n\n```go\ntype CacheModule interface {\n\tGet(ctx context.Context, key string) (string, error)\n\tSet(ctx context.Context, key, value string, ttl time.Duration) error\n\tDelete(ctx context.Context, key string) error\n}\n```\nCacheModule defines the interface for cache operations used by pipeline steps.\n\n```go\ntype CacheSetStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCacheSetStep writes a value to a named CacheModule.\n\n```go\nfunc (s *CacheSetStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CacheSetStep) Name() string\n```\n\n```go\ntype CanaryDriver interface {\n\tDeployDriver\n\t// CreateCanary creates a canary instance with the given image.\n\tCreateCanary(ctx context.Context, image string) error\n\t// RoutePercent shifts the given percentage of traffic to the canary.\n\tRoutePercent(ctx context.Context, percent int) error\n\t// CheckMetricGate evaluates the named metric gate. Returns nil if the gate passes.\n\tCheckMetricGate(ctx context.Context, gate string) error\n\t// PromoteCanary replaces the stable instance with the canary.\n\tPromoteCanary(ctx context.Context) error\n\t// DestroyCanary removes the canary instance and routes all traffic back to stable.\n\tDestroyCanary(ctx context.Context) error\n}\n```\nCanaryDriver extends DeployDriver with canary-specific traffic routing and metric gate evaluation.\n\n```go\ntype CanaryDriverProvider interface {\n\t// ProvideCanaryDriver returns a CanaryDriver for the named resource, or nil.\n\tProvideCanaryDriver(resourceName string) CanaryDriver\n}\n```\nCanaryDriverProvider is an optional extension of interfaces.IaCProvider for providers that support canary deployments.\n\n```go\ntype CanaryStage struct {\n\tPercent    int\n\tDuration   time.Duration\n\tMetricGate string\n}\n```\nCanaryStage describes a single stage in a canary rollout.\n\n```go\ntype CircuitBreakerStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCircuitBreakerStep implements the circuit breaker pattern as a pipeline step. It tracks failures per service and opens the circuit when the failure threshold is reached, preventing further calls until recovery.\n\n```go\nfunc (s *CircuitBreakerStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute checks the circuit state. When closed or half-open the request is allowed through. When open the request is rejected unless the timeout has elapsed, in which case the circuit transitions to half-open.\n\n```go\nfunc (s *CircuitBreakerStep) Name() string\n```\nName returns the step name.\n\n```go\nfunc (s *CircuitBreakerStep) RecordFailure()\n```\nRecordFailure records a failed call. If the failure threshold is reached the circuit opens.\n\n```go\nfunc (s *CircuitBreakerStep) RecordSuccess()\n```\nRecordSuccess records a successful call through the circuit breaker.\n\n```go\nfunc (s *CircuitBreakerStep) State() CircuitState\n```\nState returns the current circuit state.\n\n```go\ntype CircuitState string\n```\nCircuitState represents the current state of a circuit breaker.\n\n```go\nconst (\n\tCircuitClosed   CircuitState = \"closed\"\n\tCircuitOpen     CircuitState = \"open\"\n\tCircuitHalfOpen CircuitState = \"half-open\"\n)\n```\n\n```go\ntype CloudAccount struct {\n\t// contains filtered or unexported fields\n}\n```\nCloudAccount is a workflow module that stores cloud provider credentials and exposes them via the CloudCredentialProvider interface in the service registry.\n\n```go\nfunc NewCloudAccount(name string, cfg map[string]any) *CloudAccount\n```\nNewCloudAccount creates a new CloudAccount module.\n\n```go\nfunc (m *CloudAccount) GetCredentials(_ context.Context) (*CloudCredentials, error)\n```\nGetCredentials returns the resolved credentials.\n\n```go\nfunc (m *CloudAccount) Init(app modular.Application) error\n```\nInit resolves credentials and registers the module as a service.\n\n```go\nfunc (m *CloudAccount) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *CloudAccount) Provider() string\n```\nProvider returns the cloud provider name (e.g. \"aws\", \"gcp\", \"mock\").\n\n```go\nfunc (m *CloudAccount) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *CloudAccount) Region() string\n```\nRegion returns the primary region.\n\n```go\nfunc (m *CloudAccount) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — cloud.account has no service dependencies.\n\n```go\ntype CloudCredentialProvider interface {\n\tProvider() string\n\tRegion() string\n\tGetCredentials(ctx context.Context) (*CloudCredentials, error)\n}\n```\nCloudCredentialProvider provides cloud credentials to other modules.\n\n```go\ntype CloudCredentialResolver interface {\n\t// Provider returns the cloud provider name (e.g., \"aws\", \"gcp\", \"azure\", \"digitalocean\", \"kubernetes\").\n\tProvider() string\n\t// CredentialType returns the credential type this resolver handles (e.g., \"static\", \"env\", \"profile\", \"role_arn\").\n\tCredentialType() string\n\t// Resolve resolves credentials from the given config and stores them in the CloudAccount.\n\tResolve(m *CloudAccount) error\n}\n```\nCloudCredentialResolver resolves credentials for a specific cloud provider and credential type.\n\n```go\ntype CloudCredentials struct {\n\tProvider string\n\tRegion   string\n\t// AWS\n\tAccessKey    string //nolint:gosec // G117: config struct field, not a hardcoded secret\n\tSecretKey    string\n\tSessionToken string //nolint:gosec // G117: config struct field, not a hardcoded secret\n\tRoleARN      string\n\t// GCP\n\tProjectID          string\n\tServiceAccountJSON []byte\n\t// Azure\n\tTenantID       string\n\tClientID       string\n\tClientSecret   string //nolint:gosec // G117: config struct field, not a hardcoded secret\n\tSubscriptionID string\n\t// Kubernetes\n\tKubeconfig []byte\n\tContext    string\n\t// Generic / DigitalOcean\n\tToken string\n\tExtra map[string]string\n}\n```\nCloudCredentials holds resolved credentials for a cloud provider.\n\n```go\ntype CloudValidateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCloudValidateStep validates that a cloud.account's credentials are resolvable and non-empty. It looks up a CloudCredentialProvider from the service registry by account name, calls GetCredentials, and returns a summary JSON result.\n\n```go\nfunc (s *CloudValidateStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute validates the configured cloud account's credentials.\n\n```go\nfunc (s *CloudValidateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype CodeBuildBuild struct {\n\tID          string            `json:\"id\"`\n\tProjectName string            `json:\"projectName\"`\n\tStatus      string            `json:\"status\"` // IN_PROGRESS, SUCCEEDED, FAILED, STOPPED\n\tPhase       string            `json:\"phase\"`\n\tStartTime   time.Time         `json:\"startTime\"`\n\tEndTime     *time.Time        `json:\"endTime,omitempty\"`\n\tLogs        []string          `json:\"logs\"`\n\tEnvVars     map[string]string `json:\"envVars,omitempty\"`\n\tBuildNumber int64             `json:\"buildNumber\"`\n}\n```\nCodeBuildBuild represents a single CodeBuild build invocation.\n\n```go\ntype CodeBuildCreateProjectStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCodeBuildCreateProjectStep creates or updates a CodeBuild project.\n\n```go\nfunc (s *CodeBuildCreateProjectStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CodeBuildCreateProjectStep) Name() string\n```\n\n```go\ntype CodeBuildDeleteProjectStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCodeBuildDeleteProjectStep removes a CodeBuild project.\n\n```go\nfunc (s *CodeBuildDeleteProjectStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CodeBuildDeleteProjectStep) Name() string\n```\n\n```go\ntype CodeBuildListBuildsStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCodeBuildListBuildsStep lists builds for a CodeBuild project.\n\n```go\nfunc (s *CodeBuildListBuildsStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CodeBuildListBuildsStep) Name() string\n```\n\n```go\ntype CodeBuildLogsStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCodeBuildLogsStep retrieves logs for a CodeBuild build.\n\n```go\nfunc (s *CodeBuildLogsStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CodeBuildLogsStep) Name() string\n```\n\n```go\ntype CodeBuildModule struct {\n\t// contains filtered or unexported fields\n}\n```\nCodeBuildModule manages AWS CodeBuild projects and builds via pluggable backends. Config:\n\n\taccount:      name of a cloud.account module (resolved from service registry)\n\tprovider:     mock | aws (default: mock; aws selected when account is set)\n\tregion:       AWS region (e.g. us-east-1)\n\tservice_role: IAM role ARN for CodeBuild\n\tcompute_type: BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, etc.\n\timage:        CodeBuild managed image (e.g. aws/codebuild/standard:7.0)\n\tsource_type:  GITHUB, CODECOMMIT, BITBUCKET, NO_SOURCE (default: NO_SOURCE)\n\n```go\nfunc NewCodeBuildModule(name string, cfg map[string]any) *CodeBuildModule\n```\nNewCodeBuildModule creates a new CodeBuildModule.\n\n```go\nfunc (m *CodeBuildModule) CreateProject() error\n```\nCreateProject creates or updates the CodeBuild project.\n\n```go\nfunc (m *CodeBuildModule) DeleteProject() error\n```\nDeleteProject removes the CodeBuild project.\n\n```go\nfunc (m *CodeBuildModule) GenerateBuildspec(pipelineConfig map[string]any) string\n```\nGenerateBuildspec translates a pipeline step config into a CodeBuild buildspec YAML string. Supported config keys: install\\_commands, pre\\_build\\_commands, build\\_commands, post\\_build\\_commands, artifact\\_files, artifact\\_dir, cache\\_paths, env\\_variables.\n\n```go\nfunc (m *CodeBuildModule) GetBuildLogs(buildID string) ([]string, error)\n```\nGetBuildLogs retrieves the log lines for a build.\n\n```go\nfunc (m *CodeBuildModule) GetBuildStatus(buildID string) (*CodeBuildBuild, error)\n```\nGetBuildStatus returns the current status of a build.\n\n```go\nfunc (m *CodeBuildModule) Init(app modular.Application) error\n```\nInit resolves the cloud.account service and initializes the backend.\n\n```go\nfunc (m *CodeBuildModule) ListBuilds() ([]*CodeBuildBuild, error)\n```\nListBuilds returns all builds for this project.\n\n```go\nfunc (m *CodeBuildModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *CodeBuildModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *CodeBuildModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — cloud.account is resolved by name, not declared.\n\n```go\nfunc (m *CodeBuildModule) StartBuild(envOverrides map[string]string) (*CodeBuildBuild, error)\n```\nStartBuild starts a new build, optionally overriding environment variables.\n\n```go\ntype CodeBuildProjectState struct {\n\tName          string            `json:\"name\"`\n\tRegion        string            `json:\"region\"`\n\tServiceRole   string            `json:\"serviceRole\"`\n\tComputeType   string            `json:\"computeType\"`\n\tImage         string            `json:\"image\"`\n\tStatus        string            `json:\"status\"` // pending, creating, ready, deleting, deleted\n\tSourceType    string            `json:\"sourceType\"`\n\tBuildspecPath string            `json:\"buildspecPath\"`\n\tEnvVars       map[string]string `json:\"envVars,omitempty\"`\n\tCreatedAt     time.Time         `json:\"createdAt\"`\n\tARN           string            `json:\"arn\"`\n}\n```\nCodeBuildProjectState holds the current state of a managed CodeBuild project.\n\n```go\ntype CodeBuildStartStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCodeBuildStartStep starts a new build on a CodeBuild project.\n\n```go\nfunc (s *CodeBuildStartStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CodeBuildStartStep) Name() string\n```\n\n```go\ntype CodeBuildStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nCodeBuildStatusStep checks the status of a CodeBuild build.\n\n```go\nfunc (s *CodeBuildStatusStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *CodeBuildStatusStep) Name() string\n```\n\n```go\ntype CommandFunc func(ctx context.Context, r *http.Request) (any, error)\n```\nCommandFunc is a state-changing command function that returns a result or an error.\n\n```go\ntype CommandHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nCommandHandler dispatches POST/PUT/DELETE requests to named command functions. Each command is registered by name and dispatched by extracting the last path segment from the request URL. Route pipelines can be attached for composable per-route processing. A delegate service can be configured to handle requests that don't match any registered command name.\n\n```go\nfunc NewCommandHandler(name string) *CommandHandler\n```\nNewCommandHandler creates a new CommandHandler with the given name.\n\n```go\nfunc (h *CommandHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle dispatches an HTTP request to the appropriate command function.\n\n```go\nfunc (h *CommandHandler) Init(app modular.Application) error\n```\nInit initializes the command handler and resolves the delegate service.\n\n```go\nfunc (h *CommandHandler) Name() string\n```\nName returns the unique identifier for this module.\n\n```go\nfunc (h *CommandHandler) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns a list of services provided by this module.\n\n```go\nfunc (h *CommandHandler) RegisterCommand(name string, fn CommandFunc)\n```\nRegisterCommand adds a named command function to the handler.\n\n```go\nfunc (h *CommandHandler) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns a list of services required by this module.\n\n```go\nfunc (h *CommandHandler) ResolveDelegatePostStart()\n```\nResolveDelegatePostStart is called after engine.Start to resolve delegates that may not have been available during Init (e.g., services registered by post-start hooks).\n\n```go\nfunc (h *CommandHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements the http.Handler interface. It looks up a route pipeline by the full \"METHOD /path\" pattern (set by Go 1.22+ ServeMux), falling back to the last path segment for backward compatibility with registered commands. Dispatch chain: RegisteredCommandFunc -\u003e RoutePipeline -\u003e DelegateHandler -\u003e 404\n\n```go\nfunc (h *CommandHandler) SetDelegate(name string)\n```\nSetDelegate sets the delegate service name. The service must implement http.Handler and will be resolved from the service registry during Init.\n\n```go\nfunc (h *CommandHandler) SetDelegateHandler(handler http.Handler)\n```\nSetDelegateHandler directly sets the HTTP handler used for delegation.\n\n```go\nfunc (h *CommandHandler) SetExecutionTracker(t ExecutionTrackerProvider)\n```\nSetExecutionTracker sets the execution tracker for recording pipeline executions.\n\n```go\nfunc (h *CommandHandler) SetRoutePipeline(routePath string, pipeline interfaces.PipelineRunner)\n```\nSetRoutePipeline attaches a pipeline to a specific route path.\n\n```go\ntype CompositeTransitionHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nCompositeTransitionHandler combines multiple transition handlers\n\n```go\nfunc NewCompositeTransitionHandler() *CompositeTransitionHandler\n```\nNewCompositeTransitionHandler creates a new composite handler\n\n```go\nfunc (c *CompositeTransitionHandler) AddHandler(handler TransitionHandler)\n```\nAddHandler adds a handler to the composite\n\n```go\nfunc (c *CompositeTransitionHandler) HandleTransition(ctx context.Context, event TransitionEvent) error\n```\nHandleTransition calls all handlers in sequence\n\n```go\ntype ConditionalStep struct {\n\t// contains filtered or unexported fields\n}\n```\nConditionalStep routes pipeline execution to different steps based on a field value in pc.Current.\n\n```go\nfunc (s *ConditionalStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the field value and determines the next step.\n\n```go\nfunc (s *ConditionalStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ConfigProviderModule struct {\n\t// contains filtered or unexported fields\n}\n```\nConfigProviderModule implements modular.Module for the config.provider type. It acts as a no-op module at runtime since all config resolution happens at build time via the ConfigTransformHook. The module exists to hold the config registry reference for service discovery.\n\n```go\nfunc NewConfigProviderModule(name string, cfg map[string]any) *ConfigProviderModule\n```\nNewConfigProviderModule creates a new ConfigProviderModule.\n\n```go\nfunc (m *ConfigProviderModule) Dependencies() []string\n```\nDependencies returns an empty slice — config.provider has no dependencies.\n\n```go\nfunc (m *ConfigProviderModule) Init(app modular.Application) error\n```\nInit registers the config registry as a service in the application.\n\n```go\nfunc (m *ConfigProviderModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *ConfigProviderModule) Registry() *ConfigRegistry\n```\nRegistry returns the underlying ConfigRegistry.\n\n```go\ntype ConfigRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nConfigRegistry is a thread-safe, immutable store of resolved configuration values.\n\n```go\nfunc GetConfigRegistry() *ConfigRegistry\n```\nGetConfigRegistry returns the global config registry singleton.\n\n```go\nfunc NewConfigRegistry() *ConfigRegistry\n```\nNewConfigRegistry creates a fresh ConfigRegistry. Primarily used for testing.\n\n```go\nfunc (r *ConfigRegistry) ExpandConfigTemplate(s string) string\n```\nExpandConfigTemplate replaces all {{config \"key\"}} references in a string with their resolved values from the registry. Unresolved keys are left as-is.\n\n```go\nfunc (r *ConfigRegistry) Freeze()\n```\nFreeze makes the registry immutable. After calling Freeze, Set will return an error.\n\n```go\nfunc (r *ConfigRegistry) Get(key string) (string, bool)\n```\nGet retrieves a value from the registry.\n\n```go\nfunc (r *ConfigRegistry) IsSensitive(key string) bool\n```\nIsSensitive returns whether a key is marked as sensitive.\n\n```go\nfunc (r *ConfigRegistry) Keys() []string\n```\nKeys returns all registered configuration key names.\n\n```go\nfunc (r *ConfigRegistry) RedactedValue(key string) string\n```\nRedactedValue returns the value for display purposes. Sensitive values are replaced with \"\\*\\*\\*\\*\\*\\*\\*\\*\".\n\n```go\nfunc (r *ConfigRegistry) Reset()\n```\nReset clears all values and unfreezes the registry. Intended for testing.\n\n```go\nfunc (r *ConfigRegistry) Set(key, value string, sensitive bool) error\n```\nSet stores a value in the registry. Returns an error if the registry is frozen.\n\n```go\ntype ConstraintCheckStep struct {\n\t// contains filtered or unexported fields\n}\n```\nConstraintCheckStep implements a pipeline step that validates capability declarations against a set of constraints. It uses the platform package's ConstraintValidator to check each declaration and outputs any violations.\n\n```go\nfunc (s *ConstraintCheckStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute validates each capability declaration against the configured constraints.\n\n```go\nfunc (s *ConstraintCheckStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ContainerBuildStep struct {\n\t// contains filtered or unexported fields\n}\n```\nContainerBuildStep builds a container image using the local docker/podman CLI, then pushes it to a configured registry.\n\n```go\nfunc (s *ContainerBuildStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute builds the container image and pushes it to the registry.\n\n```go\nfunc (s *ContainerBuildStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ContainerRegistry interface {\n\t// PushImage pushes a locally built image (by reference) to the registry.\n\t// Returns the image digest on success.\n\tPushImage(ctx context.Context, imageRef string) (string, error)\n\t// RegistryURL returns the registry's base URL used to prefix image tags.\n\tRegistryURL() string\n}\n```\nContainerRegistry is a service that can receive pushed container images. Implementations are looked up from the application service registry.\n\n```go\ntype ContainerScanOpts struct {\n\tScanner           string\n\tTargetImage       string\n\tSeverityThreshold string\n\tIgnoreUnfixed     bool\n\tOutputFormat      string\n}\n```\nContainerScanOpts configures a container vulnerability scan.\n\n```go\ntype CookieSelector struct {\n\tCookie string // e.g. \"tenant_id\"\n}\n```\nCookieSelector returns the value of a named cookie as the tenant key.\n\n```go\nfunc (s *CookieSelector) Match(r *http.Request) (string, bool, error)\n```\n\n```go\ntype CronScheduler struct {\n\t// contains filtered or unexported fields\n}\n```\nCronScheduler implements a cron-based scheduler\n\n```go\nfunc NewCronScheduler(name string, cronExpression string) *CronScheduler\n```\nNewCronScheduler creates a new cron scheduler\n\n```go\nfunc (s *CronScheduler) Init(app modular.Application) error\n```\nInit initializes the scheduler\n\n```go\nfunc (s *CronScheduler) Name() string\n```\nName returns the module name\n\n```go\nfunc (s *CronScheduler) Schedule(job Job) error\n```\nSchedule adds a job to the scheduler\n\n```go\nfunc (s *CronScheduler) Start(ctx context.Context) error\n```\nStart starts the scheduler\n\n```go\nfunc (s *CronScheduler) Stop(ctx context.Context) error\n```\nStop stops the scheduler\n\n```go\ntype CrossWorkflowRouter struct {\n\t// contains filtered or unexported fields\n}\n```\nCrossWorkflowRouter routes events from one workflow to linked target workflows.\n\n```go\nfunc NewCrossWorkflowRouter(linkStore store.CrossWorkflowLinkStore, getEngine func(uuid.UUID) (any, bool), logger *slog.Logger) *CrossWorkflowRouter\n```\nNewCrossWorkflowRouter creates a new router. The getEngine callback must return a value whose concrete type has a field or method that provides a TriggerWorkflower. In practice this is \\*workflow.ManagedEngine.\n\n```go\nfunc (r *CrossWorkflowRouter) RefreshLinks(ctx context.Context) error\n```\nRefreshLinks reloads link configurations from the database.\n\n```go\nfunc (r *CrossWorkflowRouter) RouteEvent(ctx context.Context, sourceWorkflowID uuid.UUID, eventType string, eventData any) error\n```\nRouteEvent checks if an event from a source workflow should be forwarded to any target workflows based on configured links.\n\n```go\ntype DBCreatePartitionStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDBCreatePartitionStep creates a PostgreSQL LIST partition for a given tenant value on all tables managed by a database.partitioned module.\n\n```go\nfunc (s *DBCreatePartitionStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *DBCreatePartitionStep) Name() string\n```\n\n```go\ntype DBDriverProvider interface {\n\tDBProvider\n\tDriverName() string\n}\n```\nDBDriverProvider is optionally implemented by DBProvider modules that expose the underlying driver name (e.g. \"pgx\", \"sqlite3\"). This allows pipeline steps to normalize SQL placeholder syntax automatically.\n\n```go\ntype DBExecStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDBExecStep executes parameterized SQL INSERT/UPDATE/DELETE against a named database service.\n\n```go\nfunc (s *DBExecStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *DBExecStep) Name() string\n```\n\n```go\ntype DBProvider interface {\n\tDB() *sql.DB\n}\n```\nDBProvider is implemented by modules that provide a \\*sql.DB connection. Both SQLiteStorage and WorkflowDatabase satisfy this interface.\n\n```go\ntype DBQueryCachedStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDBQueryCachedStep executes a parameterized SQL SELECT and caches the result in an in-process, TTL-aware cache keyed by a template-resolved cache key. Concurrent pipeline executions are safe: access is protected by a read-write mutex.\n\n```go\nfunc (s *DBQueryCachedStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute checks the in-memory cache first; on a miss (or expiry) it queries the database, stores the result, and returns it.\n\n```go\nfunc (s *DBQueryCachedStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DBQueryStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDBQueryStep executes a parameterized SQL SELECT against a named database service.\n\n```go\nfunc (s *DBQueryStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *DBQueryStep) Name() string\n```\n\n```go\ntype DBSyncPartitionsStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDBSyncPartitionsStep synchronizes partitions from a source table (e.g., tenants) for all tables managed by a database.partitioned module. This enables automatic partition creation when new tenants are onboarded.\n\n```go\nfunc (s *DBSyncPartitionsStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *DBSyncPartitionsStep) Name() string\n```\n\n```go\ntype DLQReplayStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDLQReplayStep replays messages from a DLQ topic back to the original topic. When used in a pipeline triggered by a DLQ consumer, pc.Current holds the DLQ message (or a \"messages\" array for batch replay).\n\n```go\nfunc (s *DLQReplayStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute replays messages from the DLQ to the target topic.\n\n```go\nfunc (s *DLQReplayStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DLQSendStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDLQSendStep sends a failed message to a dead letter queue topic.\n\n```go\nfunc (s *DLQSendStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute sends the current message to the DLQ topic with error metadata.\n\n```go\nfunc (s *DLQSendStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DLQServiceConfig struct {\n\t// MaxRetries is reserved for future implementation of per-entry retry limits.\n\t// It is stored and exposed via MaxRetries() but not yet applied to the DLQ store.\n\tMaxRetries int `yaml:\"max_retries\" default:\"3\"`\n\t// RetentionDays is reserved for future implementation of automatic DLQ entry purging.\n\t// It is stored and exposed via RetentionDays() but not yet applied to the DLQ store.\n\tRetentionDays int `yaml:\"retention_days\" default:\"30\"`\n}\n```\nDLQServiceConfig holds the configuration for the DLQ service module.\n\n```go\ntype DLQServiceModule struct {\n\t// contains filtered or unexported fields\n}\n```\nDLQServiceModule wraps an evstore.DLQHandler as a modular.Module. It initializes the in-memory DLQ store and handler, making them available in the modular service registry.\n\n```go\nfunc NewDLQServiceModule(name string, cfg DLQServiceConfig) *DLQServiceModule\n```\nNewDLQServiceModule creates a new DLQ service module with the given name and config.\n\n```go\nfunc (m *DLQServiceModule) DLQMux() http.Handler\n```\nDLQMux returns the HTTP mux for DLQ endpoints.\n\n```go\nfunc (m *DLQServiceModule) Init(_ modular.Application) error\n```\nInit implements modular.Module.\n\n```go\nfunc (m *DLQServiceModule) MaxRetries() int\n```\nMaxRetries returns the configured max retry count.\n\n```go\nfunc (m *DLQServiceModule) Name() string\n```\nName implements modular.Module.\n\n```go\nfunc (m *DLQServiceModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices implements modular.Module. The DLQ handler mux is registered under the module name and also under {name}.admin for admin route delegation.\n\n```go\nfunc (m *DLQServiceModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices implements modular.Module.\n\n```go\nfunc (m *DLQServiceModule) RetentionDays() int\n```\nRetentionDays returns the configured retention period.\n\n```go\nfunc (m *DLQServiceModule) Store() *evstore.InMemoryDLQStore\n```\nStore returns the underlying DLQ store.\n\n```go\ntype DNSApplyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDNSApplyStep calls Apply() on a named platform.dns module.\n\n```go\nfunc (s *DNSApplyStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *DNSApplyStep) Name() string\n```\n\n```go\ntype DNSBackendFactory func(cfg map[string]any) (dnsBackend, error)\n```\nDNSBackendFactory creates a dnsBackend for a given provider config.\n\n```go\ntype DNSPlan struct {\n\tZone    DNSZoneConfig     `json:\"zone\"`\n\tRecords []DNSRecordConfig `json:\"records\"`\n\tChanges []string          `json:\"changes\"`\n}\n```\nDNSPlan holds the planned DNS changes.\n\n```go\ntype DNSPlanStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDNSPlanStep calls Plan() on a named platform.dns module.\n\n```go\nfunc (s *DNSPlanStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *DNSPlanStep) Name() string\n```\n\n```go\ntype DNSRecordConfig struct {\n\tName  string `json:\"name\"`\n\tType  string `json:\"type\"`\n\tValue string `json:\"value\"`\n\tTTL   int    `json:\"ttl\"`\n}\n```\nDNSRecordConfig describes a single DNS record.\n\n```go\ntype DNSState struct {\n\tZoneID   string            `json:\"zoneId\"`\n\tZoneName string            `json:\"zoneName\"`\n\tRecords  []DNSRecordConfig `json:\"records\"`\n\tStatus   string            `json:\"status\"` // pending, active, deleting, deleted\n}\n```\nDNSState describes the current state of a DNS zone.\n\n```go\ntype DNSStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDNSStatusStep calls Status() on a named platform.dns module.\n\n```go\nfunc (s *DNSStatusStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *DNSStatusStep) Name() string\n```\n\n```go\ntype DNSZoneConfig struct {\n\tName    string `json:\"name\"`\n\tComment string `json:\"comment\"`\n\tPrivate bool   `json:\"private\"`\n\tVPCID   string `json:\"vpcId\"` // for private hosted zones\n}\n```\nDNSZoneConfig describes a DNS zone.\n\n```go\ntype DataTransformer struct {\n\t// contains filtered or unexported fields\n}\n```\nDataTransformer provides named data transformation pipelines\n\n```go\nfunc NewDataTransformer(name string) *DataTransformer\n```\nNewDataTransformer creates a new DataTransformer module\n\n```go\nfunc (dt *DataTransformer) Init(app modular.Application) error\n```\nInit registers the data transformer as a service\n\n```go\nfunc (dt *DataTransformer) Name() string\n```\nName returns the module name\n\n```go\nfunc (dt *DataTransformer) RegisterPipeline(pipeline *TransformPipeline)\n```\nRegisterPipeline registers a named transformation pipeline\n\n```go\nfunc (dt *DataTransformer) Transform(ctx context.Context, pipelineName string, data any) (any, error)\n```\nTransform runs a named pipeline on the given data\n\n```go\nfunc (dt *DataTransformer) TransformWithOps(ctx context.Context, ops []TransformOperation, data any) (any, error)\n```\nTransformWithOps runs a sequence of operations on the given data\n\n```go\ntype DatabaseConfig struct {\n\tDriver          string            `json:\"driver\" yaml:\"driver\" editor:\"type=select,options=postgres|mysql|sqlite3,required,description=Database driver to use,label=Driver\"`\n\tDSN             string            `json:\"dsn\" yaml:\"dsn\" editor:\"type=string,required,sensitive,description=Data source name / connection string,placeholder=postgres://user:pass@localhost/db?sslmode=disable,label=DSN\"` //nolint:gosec // G117: placeholder DSN example in struct tag, not a hardcoded secret\n\tMaxOpenConns    int               `json:\"maxOpenConns\" yaml:\"maxOpenConns\" editor:\"type=number,description=Maximum number of open database connections,default=25,label=Max Open Connections\"`\n\tMaxIdleConns    int               `json:\"maxIdleConns\" yaml:\"maxIdleConns\" editor:\"type=number,description=Maximum number of idle connections in the pool,default=5,label=Max Idle Connections\"`\n\tConnMaxLifetime time.Duration     `json:\"connMaxLifetime\" yaml:\"connMaxLifetime\"`\n\tMigrationsDir   string            `json:\"migrationsDir\" yaml:\"migrationsDir\"`\n\tTLS             DatabaseTLSConfig `json:\"tls\" yaml:\"tls\"`\n}\n```\nDatabaseConfig holds configuration for the workflow database module\n\n```go\ntype DatabaseIntegrationConnector struct {\n\t// contains filtered or unexported fields\n}\n```\nDatabaseIntegrationConnector implements IntegrationConnector for database operations\n\n```go\nfunc NewDatabaseIntegrationConnector(name string, db *WorkflowDatabase) *DatabaseIntegrationConnector\n```\nNewDatabaseIntegrationConnector creates a new database integration connector\n\n```go\nfunc (c *DatabaseIntegrationConnector) Connect(ctx context.Context) error\n```\nConnect opens the database connection\n\n```go\nfunc (c *DatabaseIntegrationConnector) Disconnect(ctx context.Context) error\n```\nDisconnect closes the database connection\n\n```go\nfunc (c *DatabaseIntegrationConnector) Execute(ctx context.Context, action string, params map[string]any) (map[string]any, error)\n```\nExecute dispatches to the appropriate WorkflowDatabase method based on action\n\n```go\nfunc (c *DatabaseIntegrationConnector) GetName() string\n```\nGetName returns the connector name\n\n```go\nfunc (c *DatabaseIntegrationConnector) IsConnected() bool\n```\nIsConnected returns whether the connector is connected\n\n```go\ntype DatabaseTLSConfig struct {\n\t// Mode controls SSL behaviour: disable | require | verify-ca | verify-full (PostgreSQL naming).\n\tMode   string `json:\"mode\" yaml:\"mode\"`\n\tCAFile string `json:\"ca_file\" yaml:\"ca_file\"`\n}\n```\nDatabaseTLSConfig holds TLS settings for database connections.\n\n```go\ntype DelegateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDelegateStep forwards the HTTP request to a named service implementing http.Handler. This is a \"passthrough\" pipeline step: the delegate service handles the full HTTP response (status, headers, body). Because the delegate writes to the ResponseWriter directly, this step sets \\_response\\_handled in pipeline metadata and returns Stop: true.\n\n```go\nfunc (s *DelegateStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute forwards the request to the delegate service. It reads \\_http\\_request and \\_http\\_response\\_writer from the pipeline context metadata. If these are present (live HTTP context), the delegate writes directly to the response writer. If not present (e.g., test context), it uses httptest.ResponseRecorder and returns the captured response as output.\n\n```go\nfunc (s *DelegateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DeployBlueGreenStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDeployBlueGreenStep creates a new \"green\" environment, validates it via health checks, switches traffic, and destroys the old \"blue\" environment.\n\n```go\nfunc (s *DeployBlueGreenStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute performs a blue/green deployment.\n\n```go\nfunc (s *DeployBlueGreenStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DeployCanaryStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDeployCanaryStep gradually shifts traffic to a new image via configurable stages. Each stage routes a percentage of traffic, waits a duration, and evaluates an optional metric gate. If any gate fails the canary is destroyed.\n\n```go\nfunc (s *DeployCanaryStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute performs a canary deployment through all configured stages.\n\n```go\nfunc (s *DeployCanaryStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DeployDriver interface {\n\t// Update replaces the running image for the service.\n\tUpdate(ctx context.Context, image string) error\n\t// HealthCheck performs a health check on the service. Returns nil if healthy.\n\tHealthCheck(ctx context.Context, path string) error\n\t// CurrentImage returns the image currently running for the service.\n\tCurrentImage(ctx context.Context) (string, error)\n\t// ReplicaCount returns the number of replicas currently running.\n\tReplicaCount(ctx context.Context) (int, error)\n}\n```\nDeployDriver is the interface used by deployment steps to update and health-check a service. Implementations are looked up from the application service registry by service name.\n\n```go\ntype DeployDriverProvider interface {\n\t// ProvideDeployDriver returns a DeployDriver for the named resource, or nil.\n\tProvideDeployDriver(resourceName string) DeployDriver\n}\n```\nDeployDriverProvider is an optional extension of interfaces.IaCProvider. Providers that support rolling deployments can implement this to expose a per-resource DeployDriver that deploy steps can use directly.\n\n```go\ntype DeployHistoryEntry struct {\n\tService    string    `json:\"service\"`\n\tImage      string    `json:\"image\"`\n\tVersion    string    `json:\"version\"`\n\tDeployedAt time.Time `json:\"deployed_at\"`\n}\n```\nDeployHistoryEntry describes a single deployment event.\n\n```go\ntype DeployHistoryStore interface {\n\t// RecordDeploy records a new deployment entry.\n\tRecordDeploy(service, image, version string) error\n\t// GetHistory returns all deployment entries for a service, newest first.\n\tGetHistory(service string) ([]DeployHistoryEntry, error)\n\t// GetVersion returns the entry matching the specified version string, or\n\t// the most recent entry if version is \"previous\".\n\tGetVersion(service, version string) (*DeployHistoryEntry, error)\n}\n```\nDeployHistoryStore manages a per-service deployment history so that rollback can target a specific previous version.\n\n```go\ntype DeployRollbackStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDeployRollbackStep retrieves a target deployment version from history and re-deploys it via the service's DeployDriver.\n\n```go\nfunc (s *DeployRollbackStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute rolls back the service to the target version.\n\n```go\nfunc (s *DeployRollbackStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DeployRollingStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDeployRollingStep performs a rolling deployment of a new image, updating instances in batches and health-checking each batch before continuing.\n\n```go\nfunc (s *DeployRollingStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute performs a rolling deployment.\n\n```go\nfunc (s *DeployRollingStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DeployStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDeployStep executes a deployment through the deploy.Executor, bridging pipeline execution to cloud providers via deployment strategies.\n\n```go\nfunc (s *DeployStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute builds a deploy request and delegates to the deploy.Executor.\n\n```go\nfunc (s *DeployStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DeployVerifyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDeployVerifyStep runs a set of HTTP and/or metrics checks against a service to confirm it is operating correctly after a deployment.\n\n```go\nfunc (s *DeployVerifyStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute runs all configured checks and returns a pass/fail summary.\n\n```go\nfunc (s *DeployVerifyStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DepsScanOpts struct {\n\tScanner        string\n\tSourcePath     string\n\tFailOnSeverity string\n\tOutputFormat   string\n}\n```\nDepsScanOpts configures a dependency vulnerability scan.\n\n```go\ntype DockerBuildStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDockerBuildStep builds a Docker image from a context directory and Dockerfile.\n\n```go\nfunc (s *DockerBuildStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute builds a Docker image using the Docker CLI.\n\n```go\nfunc (s *DockerBuildStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DockerPushStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDockerPushStep pushes a Docker image to a remote registry.\n\n```go\nfunc (s *DockerPushStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute pushes the image to the configured registry using the Docker CLI.\n\n```go\nfunc (s *DockerPushStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DockerRunStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDockerRunStep runs a command inside a Docker container using the sandbox.\n\n```go\nfunc (s *DockerRunStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute runs the container and returns exit code, stdout, and stderr.\n\n```go\nfunc (s *DockerRunStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DriftCheckStep struct {\n\t// contains filtered or unexported fields\n}\n```\nDriftCheckStep implements a pipeline step that checks for configuration drift by comparing expected resource state against the actual provider state. For each resource, it calls the provider's resource driver Diff method.\n\n```go\nfunc (s *DriftCheckStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute checks each resource for drift by comparing desired properties against the provider's actual state using the Diff method on resource drivers.\n\n```go\nfunc (s *DriftCheckStep) Name() string\n```\nName returns the step name.\n\n```go\ntype DriftReport struct {\n\t// ResourceName is the name of the resource that was checked.\n\tResourceName string `json:\"resourceName\"`\n\n\t// ResourceType is the provider-specific resource type.\n\tResourceType string `json:\"resourceType\"`\n\n\t// Drifted indicates whether drift was detected.\n\tDrifted bool `json:\"drifted\"`\n\n\t// Diffs contains the field-level differences between desired and actual state.\n\tDiffs []platform.DiffEntry `json:\"diffs,omitempty\"`\n\n\t// Error is set if the drift check failed for this resource.\n\tError string `json:\"error,omitempty\"`\n}\n```\nDriftReport describes drift detected for a single resource.\n\n```go\ntype DynamoDBNoSQL struct {\n\t// contains filtered or unexported fields\n}\n```\nDynamoDBNoSQL is the nosql.dynamodb module. In local mode (endpoint: \"local\") it delegates to MemoryNoSQL. For a real AWS implementation, replace the backend field with a DynamoDB client and implement Get/Put/Delete/Query using dynamodb.GetItem, PutItem, DeleteItem, Scan.\n\n```go\nfunc NewDynamoDBNoSQL(name string, cfg DynamoDBNoSQLConfig) *DynamoDBNoSQL\n```\nNewDynamoDBNoSQL creates a new DynamoDBNoSQL module.\n\n```go\nfunc (d *DynamoDBNoSQL) Delete(ctx context.Context, key string) error\n```\n\n```go\nfunc (d *DynamoDBNoSQL) Get(ctx context.Context, key string) (map[string]any, error)\n```\n\n```go\nfunc (d *DynamoDBNoSQL) Init(_ modular.Application) error\n```\n\n```go\nfunc (d *DynamoDBNoSQL) Name() string\n```\n\n```go\nfunc (d *DynamoDBNoSQL) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (d *DynamoDBNoSQL) Put(ctx context.Context, key string, item map[string]any) error\n```\n\n```go\nfunc (d *DynamoDBNoSQL) Query(ctx context.Context, params map[string]any) ([]map[string]any, error)\n```\n\n```go\nfunc (d *DynamoDBNoSQL) RequiresServices() []modular.ServiceDependency\n```\n\n```go\ntype DynamoDBNoSQLConfig struct {\n\tTableName   string `json:\"tableName\"   yaml:\"tableName\"`\n\tRegion      string `json:\"region\"      yaml:\"region\"`\n\tEndpoint    string `json:\"endpoint\"    yaml:\"endpoint\"`    // \"local\" =\u003e in-memory fallback\n\tCredentials string `json:\"credentials\" yaml:\"credentials\"` // ref to cloud.account module name\n}\n```\nDynamoDBNoSQLConfig holds configuration for the nosql.dynamodb module.\n\nFull AWS DynamoDB implementation would use:\n\n  - github.com/aws/aws-sdk-go-v2/service/dynamodb\n  - github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue\n\nWhen endpoint == \"local\" the module falls back to the in-memory backend, which is useful for local development and tests without a real DynamoDB endpoint.\n\n```go\ntype ErrorStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nErrorStatusStep wraps a PipelineStep and converts any step error into a ValidationError with a configured HTTP status code. This allows YAML pipeline authors to declare that a step's failure is a client error (4xx), not a server error (500), by setting error\\_status on the step config.\n\n```go\nfunc NewErrorStatusStep(inner interfaces.PipelineStep, status int) *ErrorStatusStep\n```\nNewErrorStatusStep wraps inner so that any error it returns is wrapped in a ValidationError with the given HTTP status code.\n\n```go\nfunc (s *ErrorStatusStep) Execute(ctx context.Context, pc *PipelineContext) (*interfaces.StepResult, error)\n```\nExecute runs the wrapped step. If it returns an error that is not already a ValidationError, the error is wrapped in one with the configured status code.\n\n```go\nfunc (s *ErrorStatusStep) Name() string\n```\nName delegates to the wrapped step.\n\n```go\ntype ErrorStrategy string\n```\nErrorStrategy defines how a pipeline handles step errors.\n\n```go\nconst (\n\tErrorStrategyStop       ErrorStrategy = \"stop\"\n\tErrorStrategySkip       ErrorStrategy = \"skip\"\n\tErrorStrategyCompensate ErrorStrategy = \"compensate\"\n)\n```\n\n```go\ntype EventBridgeCarrier struct {\n\tDetail map[string]any\n}\n```\nEventBridgeCarrier wraps a map\\[string]any as a TextMapCarrier. Only string values are propagated; non-string values are ignored on Get.\n\n```go\nfunc (c EventBridgeCarrier) Get(key string) string\n```\n\n```go\nfunc (c EventBridgeCarrier) Keys() []string\n```\n\n```go\nfunc (c EventBridgeCarrier) Set(key, value string)\n```\n\n```go\ntype EventBridgeTracePropagator struct {\n\t// contains filtered or unexported fields\n}\n```\nEventBridgeTracePropagator propagates trace context in EventBridge event detail metadata.\n\n```go\nfunc NewEventBridgeTracePropagator() *EventBridgeTracePropagator\n```\nNewEventBridgeTracePropagator creates an EventBridge trace propagator.\n\n```go\nfunc (p *EventBridgeTracePropagator) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context\n```\n\n```go\nfunc (p *EventBridgeTracePropagator) ExtractDetail(ctx context.Context, detail map[string]any) context.Context\n```\nExtractDetail extracts trace context from an EventBridge detail map.\n\n```go\nfunc (p *EventBridgeTracePropagator) Inject(ctx context.Context, carrier propagation.TextMapCarrier) error\n```\n\n```go\nfunc (p *EventBridgeTracePropagator) InjectDetail(ctx context.Context, detail map[string]any) error\n```\nInjectDetail injects trace context into an EventBridge detail map.\n\n```go\ntype EventBusBridge struct {\n\t// contains filtered or unexported fields\n}\n```\nEventBusBridge adapts the modular framework's EventBusModule to the workflow engine's MessageBroker interface. It allows the workflow engine to publish and subscribe to events through the EventBus using the existing MessageBroker API.\n\n```go\nfunc NewEventBusBridge(name string) *EventBusBridge\n```\nNewEventBusBridge creates a new EventBusBridge with the given name.\n\n```go\nfunc (b *EventBusBridge) Consumer() MessageConsumer\n```\nConsumer returns the bridge itself, which implements MessageConsumer.\n\n```go\nfunc (b *EventBusBridge) Init(app modular.Application) error\n```\nInit registers the bridge as a service in the application's service registry. It does not look up the EventBus here; that is done via SetEventBus or InitFromApp after the application has been fully initialized.\n\n```go\nfunc (b *EventBusBridge) InitFromApp(app modular.Application) error\n```\nInitFromApp looks up the EventBusModule from the application's service registry using the well-known service name \"eventbus.provider\".\n\n```go\nfunc (b *EventBusBridge) Name() string\n```\nName returns the bridge's service name.\n\n```go\nfunc (b *EventBusBridge) Producer() MessageProducer\n```\nProducer returns the bridge itself, which implements MessageProducer.\n\n```go\nfunc (b *EventBusBridge) SendMessage(topic string, message []byte) error\n```\nSendMessage publishes a message to the EventBus. The message bytes are unmarshalled from JSON into an interface{} payload. If unmarshalling fails, the raw bytes are published as the payload. Returns nil (no-op) if no EventBus has been set.\n\n```go\nfunc (b *EventBusBridge) SetEventBus(eb *eventbus.EventBusModule)\n```\nSetEventBus injects the EventBusModule directly. This is useful when the engine already has a reference to the EventBus after app.Init().\n\n```go\nfunc (b *EventBusBridge) Start(_ context.Context) error\n```\nStart is a no-op; the EventBus lifecycle is managed externally.\n\n```go\nfunc (b *EventBusBridge) Stop(_ context.Context) error\n```\nStop cancels all active subscriptions and clears the subscription map.\n\n```go\nfunc (b *EventBusBridge) Subscribe(topic string, handler MessageHandler) error\n```\nSubscribe registers a MessageHandler to receive events from the EventBus on the given topic. Events are marshalled to JSON before being passed to the handler. Returns nil (no-op) if no EventBus has been set.\n\n```go\nfunc (b *EventBusBridge) Unsubscribe(topic string) error\n```\nUnsubscribe cancels the subscription for the given topic and removes it.\n\n```go\ntype EventBusTrigger struct {\n\t// contains filtered or unexported fields\n}\n```\nEventBusTrigger implements the Trigger interface and starts workflows in response to events published on the EventBus.\n\n```go\nfunc NewEventBusTrigger() *EventBusTrigger\n```\nNewEventBusTrigger creates a new EventBus trigger with default namespace.\n\n```go\nfunc NewEventBusTriggerWithNamespace(namespace ModuleNamespaceProvider) *EventBusTrigger\n```\nNewEventBusTriggerWithNamespace creates a new EventBus trigger with namespace support.\n\n```go\nfunc (t *EventBusTrigger) Configure(app modular.Application, triggerConfig any) error\n```\nConfigure parses the trigger config and resolves the EventBus and engine services from the application.\n\n```go\nfunc (t *EventBusTrigger) Init(app modular.Application) error\n```\nInit registers the trigger as a service.\n\n```go\nfunc (t *EventBusTrigger) InvokeForTopic(ctx context.Context, topic string, data map[string]any) error\n```\nInvokeForTopic synchronously invokes all subscriptions matching topic with the supplied context and data. It mirrors what createHandler does but skips the async eventbus channel, making it safe for in-process test injection. Subscriptions with a non-empty Event filter are still respected.\n\n```go\nfunc (t *EventBusTrigger) Name() string\n```\nName returns the trigger name.\n\n```go\nfunc (t *EventBusTrigger) SetEventBusAndEngine(eb *eventbus.EventBusModule, engine WorkflowEngine)\n```\nSetEventBusAndEngine allows directly setting the EventBus and engine for testing.\n\n```go\nfunc (t *EventBusTrigger) Start(ctx context.Context) error\n```\nStart subscribes to the configured EventBus topics.\n\n```go\nfunc (t *EventBusTrigger) Stop(_ context.Context) error\n```\nStop cancels all active EventBus subscriptions.\n\n```go\ntype EventBusTriggerSubscription struct {\n\tTopic    string         `json:\"topic\" yaml:\"topic\"`\n\tEvent    string         `json:\"event,omitempty\" yaml:\"event,omitempty\"`\n\tWorkflow string         `json:\"workflow\" yaml:\"workflow\"`\n\tAction   string         `json:\"action\" yaml:\"action\"`\n\tAsync    bool           `json:\"async,omitempty\" yaml:\"async,omitempty\"`\n\tParams   map[string]any `json:\"params,omitempty\" yaml:\"params,omitempty\"`\n}\n```\nEventBusTriggerSubscription defines a single subscription that the trigger listens to on the EventBus and maps to a workflow execution.\n\n```go\ntype EventData struct {\n\tEventType  string         `json:\"eventType\"`\n\tTimestamp  time.Time      `json:\"timestamp\"`\n\tSourceID   string         `json:\"sourceId\"`\n\tCorrelID   string         `json:\"correlId,omitempty\"`\n\tData       map[string]any `json:\"data,omitempty\"`\n\tRawMessage []byte         `json:\"-\"`\n}\n```\nEventData represents an event in the system\n\n```go\ntype EventDecryptStep struct {\n\t// contains filtered or unexported fields\n}\n```\nEventDecryptStep decrypts field-level encryption applied by step.event\\_publish. It reads the CloudEvents extension attributes (\"encrypteddek\", \"encryptedfields\", \"keyid\") from the current pipeline context and decrypts the specified fields inside the event's \"data\" object.\n\n```go\nfunc (s *EventDecryptStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute decrypts the fields in the incoming CloudEvent.\n\nExpected shape of pc.Current (CloudEvents envelope from step.event\\_publish):\n\n\t{\n\t  \"specversion\":     \"1.0\",          // optional\n\t  \"type\":            \"...\",           // optional\n\t  \"source\":          \"...\",           // optional\n\t  \"id\":              \"...\",           // optional\n\t  \"time\":            \"...\",           // optional\n\t  \"encryption\":      \"AES-256-GCM\",  // extension — validated before decryption\n\t  \"keyid\":           \"\u003ckey-id\u003e\",      // extension\n\t  \"encrypteddek\":    \"\u003cbase64\u003e\",      // extension\n\t  \"encryptedfields\": \"field1,field2\", // extension\n\t  \"data\": {                           // payload with encrypted fields\n\t    \"field1\": \"\u003cbase64-ciphertext\u003e\",\n\t    \"field2\": \"\u003cbase64-ciphertext\u003e\",\n\t    ...\n\t  }\n\t}\n\nThe step returns the same envelope structure with \"data\" containing the decrypted field values. The encryption extension attributes are preserved.\n\n```go\nfunc (s *EventDecryptStep) Name() string\n```\nName returns the step name.\n\n```go\ntype EventEncryptionConfig struct {\n\t// Provider is the encryption provider: \"aes\" or \"envelope\" (default: \"aes\").\n\tProvider string\n\t// KeyID is the encryption key identifier. Supports \"${ENV_VAR}\" env-var references.\n\tKeyID string\n\t// Fields lists the payload field names to encrypt.\n\tFields []string\n\t// Algorithm is the encryption algorithm (currently only \"AES-256-GCM\" is supported).\n\tAlgorithm string\n}\n```\nEventEncryptionConfig holds the field-level encryption configuration for event publishing.\n\n```go\ntype EventHandler interface {\n\tHandlePattern(ctx context.Context, match PatternMatch) error\n}\n```\nEventHandler processes matched event patterns\n\n```go\ntype EventPattern struct {\n\tPatternID    string         `json:\"patternId\" yaml:\"patternId\"`\n\tEventTypes   []string       `json:\"eventTypes\" yaml:\"eventTypes\"`\n\tWindowTime   time.Duration  `json:\"windowTime\" yaml:\"windowTime\"`\n\tCondition    string         `json:\"condition\" yaml:\"condition\"`\n\tMinOccurs    int            `json:\"minOccurs\" yaml:\"minOccurs\"`\n\tMaxOccurs    int            `json:\"maxOccurs\" yaml:\"maxOccurs\"`\n\tOrderMatters bool           `json:\"orderMatters\" yaml:\"orderMatters\"`\n\tExtraParams  map[string]any `json:\"extraParams,omitempty\" yaml:\"extraParams,omitempty\"`\n}\n```\nEventPattern defines a pattern for matching complex event sequences\n\n```go\ntype EventProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\nEventProcessor processes complex event patterns\n\n```go\nfunc GetProcessor(app modular.Application) (*EventProcessor, error)\n```\nGetProcessor is a utility to get an event processor from the app\n\n```go\nfunc NewEventProcessor(name string) *EventProcessor\n```\nNewEventProcessor creates a new complex event processor\n\n```go\nfunc (p *EventProcessor) AddPattern(pattern *EventPattern)\n```\nAddPattern adds a new event pattern to monitor\n\n```go\nfunc (p *EventProcessor) Error() string\n```\nError returns the last error from the processor - implements the error interface\n\n```go\nfunc (p *EventProcessor) GetService(name string, out any) error\n```\nGetService implements the service functionality expected by handlers. It follows the modular.Application interface signature\n\n```go\nfunc (p *EventProcessor) Init(app modular.Application) error\n```\nInit initializes the event processor\n\n```go\nfunc (p *EventProcessor) Name() string\n```\nName returns the module name\n\n```go\nfunc (p *EventProcessor) ProcessEvent(ctx context.Context, event EventData) error\n```\nProcessEvent processes a new event and checks for pattern matches\n\n```go\nfunc (p *EventProcessor) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns services provided by this processor\n\n```go\nfunc (p *EventProcessor) RegisterHandler(patternID string, handler EventHandler) error\n```\nRegisterHandler registers a handler for a specific pattern\n\n```go\nfunc (p *EventProcessor) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this processor\n\n```go\nfunc (p *EventProcessor) Service(name string) any\n```\nService provides access to a named service\n\n```go\nfunc (p *EventProcessor) Services() map[string]any\n```\nServices returns a map of all available services\n\n```go\nfunc (p *EventProcessor) SetError(err error)\n```\nSetError sets the processor error\n\n```go\nfunc (p *EventProcessor) Start(ctx context.Context) error\n```\nStart starts the event processor\n\n```go\nfunc (p *EventProcessor) Stop(ctx context.Context) error\n```\nStop stops the event processor\n\n```go\ntype EventProcessorLocator struct {\n\tApp modular.Application\n}\n```\nEventProcessorLocator helps locate the event processor\n\n```go\nfunc NewEventProcessorLocator(app modular.Application) *EventProcessorLocator\n```\nNewEventProcessorLocator creates a new locator\n\n```go\nfunc (l *EventProcessorLocator) Locate(name string) (*EventProcessor, error)\n```\nLocate finds an event processor by name\n\n```go\nfunc (l *EventProcessorLocator) LocateDefault() (*EventProcessor, error)\n```\nLocateDefault finds the default event processor\n\n```go\ntype EventPublishStep struct {\n\t// contains filtered or unexported fields\n}\n```\nEventPublishStep publishes events to a messaging broker, EventPublisher, or EventBus from pipeline execution. It supports CloudEvents envelope format and multiple provider backends including external plugins (e.g., Bento).\n\n```go\nfunc (s *EventPublishStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves templates in topic, payload, source, and headers then publishes the event.\n\n```go\nfunc (s *EventPublishStep) Name() string\n```\nName returns the step name.\n\n```go\ntype EventPublisher interface {\n\t// PublishEvent publishes a structured event to the given topic/stream.\n\t// The event map typically follows the CloudEvents envelope format with\n\t// fields like specversion, type, source, id, time, and data.\n\tPublishEvent(ctx context.Context, topic string, event map[string]any) error\n}\n```\nEventPublisher is a generic interface for publishing structured events. It provides a high-level abstraction over various messaging backends (Kafka, NATS, Kinesis, SQS, in-memory, etc.) and external plugins such as the Bento plugin (workflow-plugin-bento).\n\nServices implementing this interface can be registered with the application and referenced by name in step.event\\_publish configurations via the \"provider\" or \"broker\" config fields.\n\n```go\ntype EventRecorder = interfaces.EventRecorder\n```\nEventRecorder is an optional interface for recording execution events. When set on Pipeline, execution events are appended for observability. The store.EventStore can satisfy this via an adapter at the wiring layer. This is a type alias for interfaces.EventRecorder so callers using module.EventRecorder or interfaces.EventRecorder interchangeably are unaffected.\n\n```go\ntype EventStoreServiceConfig struct {\n\tDBPath string `yaml:\"db_path\" default:\"data/events.db\"`\n\t// RetentionDays is reserved for future implementation of automatic event pruning.\n\t// It is stored and exposed via RetentionDays() but not yet applied to the store.\n\tRetentionDays int `yaml:\"retention_days\" default:\"90\"`\n}\n```\nEventStoreServiceConfig holds the configuration for the event store service module.\n\n```go\ntype EventStoreServiceModule struct {\n\t// contains filtered or unexported fields\n}\n```\nEventStoreServiceModule wraps an evstore.SQLiteEventStore as a modular.Module. It initializes the store and makes it available in the modular service registry.\n\n```go\nfunc NewEventStoreServiceModule(name string, cfg EventStoreServiceConfig) (*EventStoreServiceModule, error)\n```\nNewEventStoreServiceModule creates a new event store service module with the given name and config.\n\n```go\nfunc (m *EventStoreServiceModule) Init(_ modular.Application) error\n```\nInit implements modular.Module.\n\n```go\nfunc (m *EventStoreServiceModule) Name() string\n```\nName implements modular.Module.\n\n```go\nfunc (m *EventStoreServiceModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices implements modular.Module. The event store is registered under the module name so other modules (timeline, replay, DLQ) can look it up.\n\n```go\nfunc (m *EventStoreServiceModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices implements modular.Module.\n\n```go\nfunc (m *EventStoreServiceModule) RetentionDays() int\n```\nRetentionDays returns the configured retention period.\n\n```go\nfunc (m *EventStoreServiceModule) Store() *evstore.SQLiteEventStore\n```\nStore returns the underlying SQLiteEventStore for direct use.\n\n```go\ntype EventTrigger struct {\n\t// contains filtered or unexported fields\n}\n```\nEventTrigger implements a trigger that starts workflows from messaging events\n\n```go\nfunc NewEventTrigger() *EventTrigger\n```\nNewEventTrigger creates a new event trigger\n\n```go\nfunc NewEventTriggerWithNamespace(namespace ModuleNamespaceProvider) *EventTrigger\n```\nNewEventTriggerWithNamespace creates a new event trigger with namespace support\n\n```go\nfunc (t *EventTrigger) Configure(app modular.Application, triggerConfig any) error\n```\nConfigure sets up the trigger from configuration\n\n```go\nfunc (t *EventTrigger) Init(app modular.Application) error\n```\nInit initializes the trigger\n\n```go\nfunc (t *EventTrigger) Name() string\n```\nName returns the name of this trigger\n\n```go\nfunc (t *EventTrigger) SetBrokerAndEngine(broker MessageBroker, engine WorkflowEngine)\n```\nSetBrokerAndEngine allows directly setting the broker and engine for testing\n\n```go\nfunc (t *EventTrigger) Start(ctx context.Context) error\n```\nStart starts the trigger\n\n```go\nfunc (t *EventTrigger) Stop(ctx context.Context) error\n```\nStop stops the trigger\n\n```go\ntype EventTriggerConfig struct {\n\tSubscriptions []EventTriggerSubscription `json:\"subscriptions\" yaml:\"subscriptions\"`\n}\n```\nEventTriggerConfig represents the configuration for an event trigger\n\n```go\ntype EventTriggerSubscription struct {\n\tTopic    string         `json:\"topic\" yaml:\"topic\"`\n\tEvent    string         `json:\"event\" yaml:\"event\"`\n\tWorkflow string         `json:\"workflow\" yaml:\"workflow\"`\n\tAction   string         `json:\"action\" yaml:\"action\"`\n\tParams   map[string]any `json:\"params,omitempty\" yaml:\"params,omitempty\"`\n}\n```\nEventTriggerSubscription represents a subscription to a message topic\n\n```go\ntype ExecutionTracker struct {\n\tStore      *V1Store\n\tWorkflowID string\n\n\t// EventStoreRecorder is an optional EventRecorder (typically the\n\t// EventRecorderAdapter wrapping the SQLite event store) that should\n\t// receive copies of all events. When CQRS handler pipelines don't\n\t// have their own EventRecorder, this ensures events still flow to\n\t// the event store for the store browser and timeline features.\n\tEventStoreRecorder EventRecorder\n\n\t// Tracer is an optional OTEL WorkflowTracer. When set, the tracker\n\t// creates spans for each execution and step alongside DB writes.\n\tTracer *tracing.WorkflowTracer\n\n\t// ConfigHash is an optional SHA-256 hash of the workflow config that produced\n\t// this tracker. When set, it is stored in every execution's metadata to\n\t// link traces back to the config version that generated them.\n\tConfigHash string\n\t// contains filtered or unexported fields\n}\n```\nExecutionTracker wraps pipeline execution with V1Store recording. It also implements EventRecorder so the pipeline can push step-level events that are persisted to execution\\_steps and execution\\_logs.\n\nAll per-execution mutable state is stored in executionState values inside the executions map, keyed by executionID. This makes concurrent requests fully independent with no shared mutable state between executions.\n\n```go\nfunc (t *ExecutionTracker) RecordEvent(ctx context.Context, executionID string, eventType string, data map[string]any) error\n```\nRecordEvent implements EventRecorder. It is called by the Pipeline for each execution event (step.started, step.completed, step.failed, etc.). Events are recorded best-effort — errors are silently ignored.\n\n```go\nfunc (t *ExecutionTracker) SetEventStoreRecorder(r EventRecorder)\n```\nSetEventStoreRecorder sets the optional event store recorder that receives copies of all execution events. This is used by the server to wire the SQLite event store without directly assigning the exported field.\n\n```go\nfunc (t *ExecutionTracker) TrackPipelineExecution(\n\tctx context.Context,\n\tpipeline *Pipeline,\n\ttriggerData map[string]any,\n\tr *http.Request,\n) (*PipelineContext, error)\n```\nTrackPipelineExecution wraps a pipeline execution call, recording the execution and its steps in the V1Store. It returns the PipelineContext and any error from the underlying pipeline execution.\n\n```go\ntype ExecutionTrackerProvider interface {\n\tTrackPipelineExecution(ctx context.Context, pipeline *Pipeline, triggerData map[string]any, r *http.Request) (*PipelineContext, error)\n}\n```\nExecutionTrackerProvider is the minimal interface required to track pipeline executions. \\*ExecutionTracker satisfies this interface.\n\n```go\ntype Executor interface {\n\tExecute(ctx context.Context, params map[string]any) (map[string]any, error)\n}\n```\nExecutor is the interface that dynamic components satisfy.\n\n```go\ntype ExprEngine = pipeline.ExprEngine\n```\nExprEngine evaluates ${ ... } expressions against a PipelineContext. Aliased from pipeline.ExprEngine for backwards compatibility.\n\n```go\ntype ExternalOperation struct {\n\tMethod      string   `json:\"method\"`\n\tPath        string   `json:\"path\"`\n\tOperationID string   `json:\"operationId\"`\n\tSummary     string   `json:\"summary\"`\n\tTags        []string `json:\"tags\"`\n\tHasBody     bool     `json:\"hasBody\"`\n}\n```\nExternalOperation describes a callable operation from an external API spec.\n\n```go\ntype ExternalStateMachineDefinition struct {\n\tID           string                                  `json:\"id\" yaml:\"id\"`\n\tDescription  string                                  `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tInitialState string                                  `json:\"initialState\" yaml:\"initialState\"`\n\tStates       map[string]StateMachineStateConfig      `json:\"states\" yaml:\"states\"`\n\tTransitions  map[string]StateMachineTransitionConfig `json:\"transitions\" yaml:\"transitions\"`\n}\n```\nExternalStateMachineDefinition is used for registering state machines from configuration\n\n```go\ntype FFGateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nFFGateStep combines feature flag evaluation with conditional routing. Based on the flag result, it routes to either the on\\_enabled or on\\_disabled step.\n\n```go\nfunc (s *FFGateStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute evaluates the flag and routes to the appropriate next step.\n\n```go\nfunc (s *FFGateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype FSIaCStateStore struct {\n\t// contains filtered or unexported fields\n}\n```\nFSIaCStateStore persists IaC state as JSON files under a configured directory. Lock files (resourceID + \".lock\") are used for concurrent safety.\n\n```go\nfunc NewFSIaCStateStore(dir string) *FSIaCStateStore\n```\nNewFSIaCStateStore creates a filesystem-backed state store rooted at dir. The directory is created on first use if it does not exist.\n\n```go\nfunc (s *FSIaCStateStore) DeleteState(ctx context.Context, resourceID string) error\n```\nDeleteState removes the JSON state file for resourceID.\n\n```go\nfunc (s *FSIaCStateStore) GetState(ctx context.Context, resourceID string) (*IaCState, error)\n```\nGetState reads the JSON state file for resourceID. Returns nil, nil when not found.\n\n```go\nfunc (s *FSIaCStateStore) ListStates(ctx context.Context, filter map[string]string) ([]*IaCState, error)\n```\nListStates reads all JSON files from the directory and returns those matching filter. Supported filter keys: \"resource\\_type\", \"provider\", \"status\".\n\n```go\nfunc (s *FSIaCStateStore) Lock(ctx context.Context, resourceID string) error\n```\nLock creates a lock file for resourceID. Fails if the lock file already exists.\n\n```go\nfunc (s *FSIaCStateStore) SaveState(ctx context.Context, state *IaCState) error\n```\nSaveState writes the state record as a JSON file, creating the directory as needed.\n\n```go\nfunc (s *FSIaCStateStore) Unlock(ctx context.Context, resourceID string) error\n```\nUnlock removes the lock file for resourceID.\n\n```go\ntype FeatureFlagAdmin interface {\n\t// ListFlags returns all flag definitions as JSON-serializable objects.\n\tListFlags() ([]any, error)\n\t// GetFlag returns a single flag by key.\n\tGetFlag(key string) (any, error)\n\t// CreateFlag creates a new flag from a JSON body.\n\tCreateFlag(data json.RawMessage) (any, error)\n\t// UpdateFlag updates an existing flag from a JSON body.\n\tUpdateFlag(key string, data json.RawMessage) (any, error)\n\t// DeleteFlag removes a flag by key.\n\tDeleteFlag(key string) error\n\t// SetOverrides replaces overrides for a flag from a JSON body.\n\tSetOverrides(key string, data json.RawMessage) (any, error)\n\t// EvaluateFlag evaluates a flag with the given user/group context.\n\tEvaluateFlag(key string, user string, group string) (any, error)\n\t// SSEHandler returns an http.Handler that streams flag change events.\n\tSSEHandler() http.Handler\n}\n```\nFeatureFlagAdmin is the interface the feature flag service must implement for the admin API handler. This is defined here to avoid a hard dependency on the featureflag package — the service is wired in via SetFeatureFlagService.\n\n```go\ntype FeatureFlagAdminAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\nFeatureFlagAdminAdapter bridges the featureflag.Service and generic.Store to the FeatureFlagAdmin interface required by V1APIHandler.\n\n```go\nfunc NewFeatureFlagAdminAdapter(service *featureflag.Service, store *generic.Store) *FeatureFlagAdminAdapter\n```\nNewFeatureFlagAdminAdapter creates an adapter implementing FeatureFlagAdmin.\n\n```go\nfunc (a *FeatureFlagAdminAdapter) CreateFlag(data json.RawMessage) (any, error)\n```\n\n```go\nfunc (a *FeatureFlagAdminAdapter) DeleteFlag(key string) error\n```\n\n```go\nfunc (a *FeatureFlagAdminAdapter) EvaluateFlag(key string, user string, group string) (any, error)\n```\n\n```go\nfunc (a *FeatureFlagAdminAdapter) GetFlag(key string) (any, error)\n```\n\n```go\nfunc (a *FeatureFlagAdminAdapter) ListFlags() ([]any, error)\n```\n\n```go\nfunc (a *FeatureFlagAdminAdapter) SSEHandler() http.Handler\n```\n\n```go\nfunc (a *FeatureFlagAdminAdapter) SetOverrides(key string, data json.RawMessage) (any, error)\n```\n\n```go\nfunc (a *FeatureFlagAdminAdapter) UpdateFlag(key string, data json.RawMessage) (any, error)\n```\n\n```go\ntype FeatureFlagModule struct {\n\t// contains filtered or unexported fields\n}\n```\nFeatureFlagModule wraps a featureflag.Service as a modular.Module. It initializes the configured provider and makes the service available in the modular service registry.\n\n```go\nfunc NewFeatureFlagModule(name string, cfg FeatureFlagModuleConfig) (*FeatureFlagModule, error)\n```\nNewFeatureFlagModule creates a new feature flag module with the given name and config.\n\n```go\nfunc (m *FeatureFlagModule) Init(_ modular.Application) error\n```\nInit implements modular.Module.\n\n```go\nfunc (m *FeatureFlagModule) Name() string\n```\nName implements modular.Module.\n\n```go\nfunc (m *FeatureFlagModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices implements modular.Module. The service is registered under the module name so other modules (and the engine) can look it up. A FeatureFlagAdmin adapter is also registered so that the V1 API handler can discover it from the service registry without explicit wiring in main.\n\n```go\nfunc (m *FeatureFlagModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices implements modular.Module.\n\n```go\nfunc (m *FeatureFlagModule) SSEEnabled() bool\n```\nSSEEnabled returns whether SSE streaming is enabled for this module.\n\n```go\nfunc (m *FeatureFlagModule) Service() *featureflag.Service\n```\nService returns the underlying FF service for direct use (e.g. step factories).\n\n```go\nfunc (m *FeatureFlagModule) Stop(_ context.Context) error\n```\nStop closes the underlying store's database connection during shutdown.\n\n```go\nfunc (m *FeatureFlagModule) Store() *generic.Store\n```\nStore returns the underlying generic store, or nil if using a non-generic provider.\n\n```go\ntype FeatureFlagModuleConfig struct {\n\tProvider   string `yaml:\"provider\" default:\"generic\"`\n\tCacheTTL   string `yaml:\"cache_ttl\" default:\"30s\"`\n\tSSEEnabled bool   `yaml:\"sse_enabled\" default:\"true\"`\n\tDBPath     string `yaml:\"db_path\" default:\"data/featureflags.db\"`\n}\n```\nFeatureFlagModuleConfig holds the configuration for the feature flag module.\n\n```go\ntype FeatureFlagStep struct {\n\t// contains filtered or unexported fields\n}\n```\nFeatureFlagStep evaluates a feature flag within a pipeline and stores the result in the pipeline context under a configurable output key.\n\n```go\nfunc (s *FeatureFlagStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute evaluates the configured feature flag and puts the result into the pipeline context. The output is a map keyed by output\\_key containing:\n\n\t{enabled: bool, variant: string, value: any}\n\n```go\nfunc (s *FeatureFlagStep) Name() string\n```\nName returns the step name.\n\n```go\ntype FieldEncryptor struct {\n\t// contains filtered or unexported fields\n}\n```\nFieldEncryptor provides AES-256-GCM encryption for PII fields in data maps. It encrypts specific fields before storage and decrypts them on retrieval, ensuring data at rest contains no plaintext PII.\n\n```go\nfunc NewFieldEncryptor(keyStr string) *FieldEncryptor\n```\nNewFieldEncryptor creates a FieldEncryptor from a key string. If the key is empty, encryption is disabled (passthrough mode).\n\n```go\nfunc NewFieldEncryptorFromEnv() *FieldEncryptor\n```\nNewFieldEncryptorFromEnv creates a FieldEncryptor using the ENCRYPTION\\_KEY environment variable. Returns a disabled encryptor if the var is not set.\n\n```go\nfunc (e *FieldEncryptor) DecryptJSON(data []byte) ([]byte, error)\n```\nDecryptJSON decrypts an entire JSON payload (for Kafka messages). Non-encrypted payloads (no \"\\_encrypted\" key) are returned as-is.\n\n```go\nfunc (e *FieldEncryptor) DecryptPIIFields(data map[string]any) (map[string]any, error)\n```\nDecryptPIIFields decrypts known PII fields in a data map. Values without the \"enc::\" prefix are returned as-is (backward compatible).\n\n```go\nfunc (e *FieldEncryptor) DecryptValue(encoded string) (string, error)\n```\nDecryptValue decrypts a single AES-256-GCM encrypted value. Values without the \"enc::\" prefix are returned as-is (plaintext passthrough).\n\n```go\nfunc (e *FieldEncryptor) Enabled() bool\n```\nEnabled returns whether encryption is active.\n\n```go\nfunc (e *FieldEncryptor) EncryptJSON(data []byte) ([]byte, error)\n```\nEncryptJSON encrypts an entire JSON payload (for Kafka messages). The entire message is encrypted as a single blob.\n\n```go\nfunc (e *FieldEncryptor) EncryptPIIFields(data map[string]any) (map[string]any, error)\n```\nEncryptPIIFields encrypts known PII fields in a data map. It handles nested \"messages\" arrays where each message may contain PII.\n\n```go\nfunc (e *FieldEncryptor) EncryptValue(plaintext string) (string, error)\n```\nEncryptValue encrypts a single string value using AES-256-GCM. Returns the encrypted value prefixed with \"enc::\" for identification.\n\n```go\ntype FieldMapping struct {\n\t// contains filtered or unexported fields\n}\n```\nFieldMapping provides configurable field name resolution with fallback chains. Each logical field name maps to an ordered list of actual field names to try when reading from a data map. This eliminates hard-coded field references and allows YAML configuration to remap fields without code changes.\n\n```go\nfunc DefaultRESTFieldMapping() *FieldMapping\n```\nDefaultRESTFieldMapping returns the default field mapping for REST API handlers. This matches the existing hard-coded behavior for full backwards compatibility.\n\n```go\nfunc FieldMappingFromConfig(cfg map[string]any) *FieldMapping\n```\nFieldMappingFromConfig parses a field mapping from a config map. The config format is: {\"logicalName\": \\[\"actual1\", \"actual2\"]} or {\"logicalName\": \"actual1\"}\n\n```go\nfunc NewFieldMapping() *FieldMapping\n```\nNewFieldMapping creates a FieldMapping with no mappings defined.\n\n```go\nfunc (fm *FieldMapping) Clone() *FieldMapping\n```\nClone returns a deep copy of the field mapping.\n\n```go\nfunc (fm *FieldMapping) Has(logical string) bool\n```\nHas returns true if a mapping is defined for the given logical name.\n\n```go\nfunc (fm *FieldMapping) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler for FieldMapping.\n\n```go\nfunc (fm *FieldMapping) Merge(other *FieldMapping)\n```\nMerge copies all mappings from other into fm. Existing mappings are overwritten.\n\n```go\nfunc (fm *FieldMapping) Primary(logical string) string\n```\nPrimary returns the primary (first) field name for a logical field. If no mapping is defined, returns the logical name itself.\n\n```go\nfunc (fm *FieldMapping) Resolve(data map[string]any, logical string) (any, bool)\n```\nResolve looks up a logical field name in data, trying each actual name in order. Returns the value and true if found, or nil and false if no actual name matched.\n\n```go\nfunc (fm *FieldMapping) ResolveSlice(data map[string]any, logical string) []any\n```\nResolveSlice resolves a logical field name to a \\[]interface{} value. Returns nil if not found or not a slice.\n\n```go\nfunc (fm *FieldMapping) ResolveString(data map[string]any, logical string) string\n```\nResolveString resolves a logical field name to a string value. Returns empty string if not found or not a string.\n\n```go\nfunc (fm *FieldMapping) Set(logical string, actual ...string)\n```\nSet defines the actual field name(s) for a logical field. The first name is the \"primary\" used for writes; all names are tried in order for reads.\n\n```go\nfunc (fm *FieldMapping) SetValue(data map[string]any, logical string, value any)\n```\nSetValue sets a value in data using the primary (first) field name for a logical field.\n\n```go\nfunc (fm *FieldMapping) String() string\n```\nString returns a human-readable representation of the field mapping.\n\n```go\nfunc (fm *FieldMapping) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements json.Unmarshaler for FieldMapping.\n\n```go\ntype FieldProtectionModule struct {\n\t// contains filtered or unexported fields\n}\n```\nFieldProtectionModule implements modular.Module for security.field-protection.\n\n```go\nfunc NewFieldProtectionModule(name string, cfg map[string]any) (*FieldProtectionModule, error)\n```\nNewFieldProtectionModule parses config and creates a FieldProtectionModule.\n\n```go\nfunc (m *FieldProtectionModule) Init(_ modular.Application) error\n```\nInit initializes the module.\n\n```go\nfunc (m *FieldProtectionModule) Manager() *ProtectedFieldManager\n```\nManager returns the ProtectedFieldManager.\n\n```go\nfunc (m *FieldProtectionModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *FieldProtectionModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (m *FieldProtectionModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns service dependencies (none).\n\n```go\ntype FieldReencryptStep struct {\n\t// contains filtered or unexported fields\n}\n```\nFieldReencryptStep re-encrypts pipeline context data with the latest key version.\n\n```go\nfunc (s *FieldReencryptStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute re-encrypts data by decrypting with the old key and encrypting with the current key.\n\n```go\nfunc (s *FieldReencryptStep) Name() string\n```\nName returns the step name.\n\n```go\ntype Finding struct {\n\tRuleID   string `json:\"rule_id\"`\n\tSeverity string `json:\"severity\"` // \"critical\", \"high\", \"medium\", \"low\", \"info\"\n\tMessage  string `json:\"message\"`\n\tLocation string `json:\"location\"`\n\tLine     int    `json:\"line,omitempty\"`\n}\n```\nFinding represents a single issue found by a scanner.\n\n```go\ntype ForEachStep struct {\n\t// contains filtered or unexported fields\n}\n```\nForEachStep iterates over a collection and executes sub-steps for each item.\n\n```go\nfunc (s *ForEachStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute iterates over the collection and runs sub-steps for each item.\n\n```go\nfunc (s *ForEachStep) Name() string\n```\nName returns the step name.\n\n```go\ntype FunctionHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nFunctionHandler is a simple EventHandler that executes a function\n\n```go\nfunc NewFunctionHandler(fn func(ctx context.Context, match PatternMatch) error) *FunctionHandler\n```\nNewFunctionHandler creates a new function-based event handler\n\n```go\nfunc (h *FunctionHandler) HandlePattern(ctx context.Context, match PatternMatch) error\n```\nHandlePattern handles a pattern match by calling the function\n\n```go\ntype FunctionJob struct {\n\t// contains filtered or unexported fields\n}\n```\nFunctionJob is a Job implementation that executes a function\n\n```go\nfunc NewFunctionJob(fn func(context.Context) error) *FunctionJob\n```\nNewFunctionJob creates a new job from a function\n\n```go\nfunc (j *FunctionJob) Execute(ctx context.Context) error\n```\nExecute runs the job function\n\n```go\ntype FunctionMessageHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nFunctionMessageHandler adapts a function to the MessageHandler interface\n\n```go\nfunc NewFunctionMessageHandler(fn func(message []byte) error) *FunctionMessageHandler\n```\nNewFunctionMessageHandler creates a new message handler from a function\n\n```go\nfunc (h *FunctionMessageHandler) HandleMessage(message []byte) error\n```\nHandleMessage implements the MessageHandler interface\n\n```go\ntype FunctionTransitionHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nFunctionTransitionHandler is a simple TransitionHandler that executes a function\n\n```go\nfunc NewFunctionTransitionHandler(fn func(ctx context.Context, event TransitionEvent) error) *FunctionTransitionHandler\n```\nNewFunctionTransitionHandler creates a new function-based transition handler\n\n```go\nfunc (h *FunctionTransitionHandler) HandleTransition(ctx context.Context, event TransitionEvent) error\n```\nHandleTransition handles a state transition by calling the function\n\n```go\ntype GateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nGateStep implements an approval gate within a pipeline. It supports manual, automated, and scheduled gate types.\n\n```go\nfunc (s *GateStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute evaluates the gate based on its type and returns a gate result.\n\n```go\nfunc (s *GateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype GatewayRoute struct {\n\tPathPrefix  string           `json:\"pathPrefix\"`\n\tBackend     string           `json:\"backend\"`\n\tStripPrefix bool             `json:\"stripPrefix\"`\n\tMethods     []string         `json:\"methods\"`\n\tRateLimit   *RateLimitConfig `json:\"rateLimit,omitempty\"`\n\tAuth        bool             `json:\"auth\"`\n\tTimeout     string           `json:\"timeout\"`\n}\n```\nGatewayRoute defines a single route in the API gateway.\n\n```go\ntype GitCheckoutStep struct {\n\t// contains filtered or unexported fields\n}\n```\nGitCheckoutStep checks out a branch, tag, or creates a new branch.\n\n```go\nfunc (s *GitCheckoutStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute checks out the configured branch or creates it.\n\n```go\nfunc (s *GitCheckoutStep) Name() string\n```\nName returns the step name.\n\n```go\ntype GitCloneStep struct {\n\t// contains filtered or unexported fields\n}\n```\nGitCloneStep clones a git repository to a local directory.\n\n```go\nfunc (s *GitCloneStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute clones the repository to the configured directory.\n\n```go\nfunc (s *GitCloneStep) Name() string\n```\nName returns the step name.\n\n```go\ntype GitCommitStep struct {\n\t// contains filtered or unexported fields\n}\n```\nGitCommitStep creates a git commit in a local repository.\n\n```go\nfunc (s *GitCommitStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute stages files and creates a commit.\n\n```go\nfunc (s *GitCommitStep) Name() string\n```\nName returns the step name.\n\n```go\ntype GitExecFn func(ctx context.Context, argv []string, env map[string]string, workDir string) (string, error)\n```\nGitExecFn executes a git/gh command and returns its combined output.\n\nargv is the COMPLETE argument vector including the binary as argv\\[0] (e.g. {\"git\",\"commit\",\"-m\",\"msg\"} or {\"gh\",\"pr\",\"create\",\"--fill\",...}); the prod implementation runs argv\\[0] directly with no shell and no entrypoint prefix. env carries extra environment variables (merged over the host environment so GH\\_TOKEN/GITHUB\\_TOKEN are forwarded automatically). workDir is the git working directory the command runs in (the step's repo\\_dir).\n\nThe prod implementation in plugins/platform/plugin.go runs host-native via os/exec — the engine committing to its own repo is not untrusted-code execution. Tests inject a stub.\n\n```go\ntype GitPushStep struct {\n\t// contains filtered or unexported fields\n}\n```\nGitPushStep pushes commits to a remote repository.\n\n```go\nfunc (s *GitPushStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute pushes commits to the configured remote.\n\n```go\nfunc (s *GitPushStep) Name() string\n```\nName returns the step name.\n\n```go\ntype GitTagStep struct {\n\t// contains filtered or unexported fields\n}\n```\nGitTagStep creates and optionally pushes a git tag.\n\n```go\nfunc (s *GitTagStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute creates the tag and optionally pushes it.\n\n```go\nfunc (s *GitTagStep) Name() string\n```\nName returns the step name.\n\n```go\ntype GraphQLStep struct {\n\t// contains filtered or unexported fields\n}\n```\nGraphQLStep executes GraphQL queries and mutations as a pipeline step.\n\n```go\nfunc (s *GraphQLStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs the GraphQL query/mutation and returns the result.\n\n```go\nfunc (s *GraphQLStep) Name() string\n```\nName returns the step name.\n\n```go\ntype HTTPCallStep struct {\n\t// contains filtered or unexported fields\n}\n```\nHTTPCallStep makes an HTTP request as a pipeline step.\n\n```go\nfunc (s *HTTPCallStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute performs the HTTP request and returns the response.\n\n```go\nfunc (s *HTTPCallStep) Name() string\n```\nName returns the step name.\n\n```go\ntype HTTPClient interface {\n\t// Client returns the ready-to-use, authenticated *http.Client.\n\tClient() *http.Client\n\t// BaseURL returns the optional base URL configured for this client.\n\t// Empty string when not set.\n\tBaseURL() string\n}\n```\nHTTPClient is the service interface exposed by HTTPClientModule. Other modules and pipeline steps resolve this interface from the DI registry by the configured module name.\n\n```go\ntype HTTPClientAuthConfig struct {\n\t// Type selects the auth strategy.  One of: none, static_bearer,\n\t// oauth2_client_credentials, oauth2_refresh_token.\n\tType string `json:\"type\" yaml:\"type\"`\n\n\t// static_bearer fields\n\t// BearerToken is the raw token value (inline).  Prefer BearerTokenRef for\n\t// production use to avoid committing credentials.\n\tBearerToken    string    `json:\"bearer_token\"     yaml:\"bearer_token\"`     //nolint:gosec // G117: config DTO for bearer token\n\tBearerTokenRef SecretRef `json:\"bearer_token_ref\" yaml:\"bearer_token_ref\"` //nolint:gosec // G117: config DTO reference\n\n\t// oauth2_client_credentials + oauth2_refresh_token shared fields\n\tTokenURL    string    `json:\"token_url\"          yaml:\"token_url\"`\n\tClientID    string    `json:\"client_id\"          yaml:\"client_id\"`\n\tClientIDRef SecretRef `json:\"client_id_from_secret\" yaml:\"client_id_from_secret\"`\n\t// ClientCredential holds the client secret value.  Named \"credential\" to avoid\n\t// taint-tracking false positives on the word \"secret\".\n\tClientCredential    string    `json:\"client_secret\"          yaml:\"client_secret\"` //nolint:gosec // G117: config DTO for OAuth2 client secret\n\tClientCredentialRef SecretRef `json:\"client_secret_from_secret\" yaml:\"client_secret_from_secret\"`\n\tScopes              []string  `json:\"scopes\" yaml:\"scopes\"`\n\n\t// oauth2_refresh_token exclusive fields\n\t// TokenProviderName is the service-registry name of the secrets module that\n\t// persists the oauth2.Token JSON blob.\n\tTokenProviderName string `json:\"token_secrets\"     yaml:\"token_secrets\"`\n\t// TokenProviderKey is the key within that provider where the token is stored.\n\tTokenProviderKey string `json:\"token_secrets_key\" yaml:\"token_secrets_key\"`\n}\n```\nHTTPClientAuthConfig holds the auth block for the http.client module.\n\n```go\ntype HTTPClientConfig struct {\n\t// BaseURL is prepended to requests that use relative URLs (optional).\n\tBaseURL string `json:\"base_url\" yaml:\"base_url\"`\n\t// Timeout controls the per-request deadline.  Default: 30s.\n\tTimeout time.Duration `json:\"timeout\" yaml:\"timeout\"`\n\t// Auth configures authentication.\n\tAuth HTTPClientAuthConfig `json:\"auth\" yaml:\"auth\"`\n}\n```\nHTTPClientConfig is the top-level config for the http.client module.\n\n```go\ntype HTTPClientModule struct {\n\t// contains filtered or unexported fields\n}\n```\nHTTPClientModule wraps a configured \\*http.Client as a modular service.\n\n```go\nfunc HTTPClientModuleFactory(name string, cfg map[string]any) *HTTPClientModule\n```\nHTTPClientModuleFactory creates an HTTPClientModule from a YAML/JSON config map. Supported keys:\n\n\tbase_url  string          (optional)\n\ttimeout   string          (e.g. \"30s\"; default 30s)\n\tauth.type string          one of: none, static_bearer,\n\t                          oauth2_client_credentials, oauth2_refresh_token\n\nSee HTTPClientAuthConfig for the full field list.\n\n```go\nfunc NewHTTPClientModule(name string) *HTTPClientModule\n```\nNewHTTPClientModule creates a new HTTPClientModule with the given name.\n\n```go\nfunc (m *HTTPClientModule) BaseURL() string\n```\nBaseURL implements HTTPClient.\n\n```go\nfunc (m *HTTPClientModule) Client() *http.Client\n```\nClient implements HTTPClient.\n\n```go\nfunc (m *HTTPClientModule) Init(app modular.Application) error\n```\nInit implements modular.Module.\n\n```go\nfunc (m *HTTPClientModule) Name() string\n```\nName implements modular.Module.\n\n```go\nfunc (m *HTTPClientModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices registers this module in the DI service registry under its name.\n\n```go\nfunc (m *HTTPClientModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices declares the secrets-provider dependencies inferred from the auth configuration.  By declaring them here the DI graph ensures referenced provider modules are started before this module's Start() runs.\n\nCollected provider names:\n\n  - auth.bearer\\_token\\_ref.provider\n  - auth.client\\_id\\_from\\_secret.provider\n  - auth.client\\_secret\\_from\\_secret.provider\n  - auth.token\\_secrets (the module name, not a ref)\n\n```go\nfunc (m *HTTPClientModule) Start(ctx context.Context) error\n```\nStart builds the underlying \\*http.Client and wires authentication. For oauth2\\_refresh\\_token the secrets provider is looked up from the service registry.\n\n```go\nfunc (m *HTTPClientModule) Stop(_ context.Context) error\n```\nStop is a no-op (http.Client has no shutdown).\n\n```go\ntype HTTPDeployDriver struct {\n\tBaseURL    string\n\tCurrentImg string\n\tReplicaCnt int\n\tUpdateFn   func(ctx context.Context, image string) error\n\tHealthFn   func(ctx context.Context, path string) error\n\t// contains filtered or unexported fields\n}\n```\nHTTPDeployDriver is a simple DeployDriver backed by a mock or HTTP-reachable service. It is provided for testing and simple HTTP-based deployments.\n\n```go\nfunc (d *HTTPDeployDriver) CurrentImage(_ context.Context) (string, error)\n```\nCurrentImage returns the current image.\n\n```go\nfunc (d *HTTPDeployDriver) HealthCheck(ctx context.Context, path string) error\n```\nHealthCheck calls the user-provided HealthFn or does an HTTP GET.\n\n```go\nfunc (d *HTTPDeployDriver) ReplicaCount(_ context.Context) (int, error)\n```\nReplicaCount returns the current replica count.\n\n```go\nfunc (d *HTTPDeployDriver) Update(_ context.Context, image string) error\n```\nUpdate calls the user-provided UpdateFn or sets CurrentImg directly.\n\n```go\ntype HTTPHandler interface {\n\tHandle(w http.ResponseWriter, r *http.Request)\n}\n```\nHTTPHandler defines the interface for HTTP request handlers\n\n```go\ntype HTTPHandlerAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\nHTTPHandlerAdapter adapts an http.Handler to the HTTPHandler interface\n\n```go\nfunc NewHTTPHandlerAdapter(handler http.Handler) *HTTPHandlerAdapter\n```\nNewHTTPHandlerAdapter creates a new adapter for an http.Handler\n\n```go\nfunc (a *HTTPHandlerAdapter) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle implements the HTTPHandler interface\n\n```go\ntype HTTPIntegrationConnector struct {\n\t// contains filtered or unexported fields\n}\n```\nHTTPIntegrationConnector implements a connector using HTTP requests\n\n```go\nfunc NewHTTPIntegrationConnector(name, baseURL string) *HTTPIntegrationConnector\n```\nNewHTTPIntegrationConnector creates a new HTTP-based integration connector\n\n```go\nfunc (c *HTTPIntegrationConnector) AllowPrivateIPs()\n```\nAllowPrivateIPs enables requests to private/internal IP addresses. This should only be used for testing or trusted internal services.\n\n```go\nfunc (c *HTTPIntegrationConnector) Connect(ctx context.Context) error\n```\nConnect establishes a connection to the external service\n\n```go\nfunc (c *HTTPIntegrationConnector) DisallowPrivateIPs()\n```\nDisallowPrivateIPs disables requests to private/internal IP addresses, restoring SSRF protection (this is the default).\n\n```go\nfunc (c *HTTPIntegrationConnector) Disconnect(ctx context.Context) error\n```\nDisconnect closes the connection to the external service\n\n```go\nfunc (c *HTTPIntegrationConnector) Execute(ctx context.Context, action string, params map[string]any) (map[string]any, error)\n```\nExecute performs an action on the external service\n\n```go\nfunc (c *HTTPIntegrationConnector) GetName() string\n```\nGetName returns the connector name\n\n```go\nfunc (c *HTTPIntegrationConnector) IsConnected() bool\n```\nIsConnected checks if the connector is connected\n\n```go\nfunc (c *HTTPIntegrationConnector) SetBasicAuth(username, password string)\n```\nSetBasicAuth sets basic authentication for the connector\n\n```go\nfunc (c *HTTPIntegrationConnector) SetBearerAuth(token string)\n```\nSetBearerAuth sets bearer token authentication for the connector\n\n```go\nfunc (c *HTTPIntegrationConnector) SetDefaultHeader(key, value string)\n```\nSetDefaultHeader is an alias for SetHeader for backward compatibility\n\n```go\nfunc (c *HTTPIntegrationConnector) SetHeader(key, value string)\n```\nSetHeader sets a custom header for requests\n\n```go\nfunc (c *HTTPIntegrationConnector) SetRateLimit(requestsPerMinute int)\n```\nSetRateLimit sets a rate limit for requests\n\n```go\nfunc (c *HTTPIntegrationConnector) SetTimeout(timeout time.Duration)\n```\nSetTimeout sets the request timeout\n\n```go\ntype HTTPMiddleware interface {\n\tProcess(next http.Handler) http.Handler\n}\n```\nHTTPMiddleware defines a middleware that can process HTTP requests\n\n```go\ntype HTTPProxyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nHTTPProxyStep forwards the original HTTP request to a dynamically resolved backend URL and writes the backend response directly to the client. It is designed for API gateway / reverse-proxy use cases where the backend URL is determined by earlier pipeline steps (e.g. a database lookup).\n\n```go\nfunc (s *HTTPProxyStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute forwards the original HTTP request to the resolved backend URL and writes the backend response directly to the response writer.\n\n```go\nfunc (s *HTTPProxyStep) Name() string\n```\nName returns the step name.\n\n```go\ntype HTTPRouter interface {\n\tAddRoute(method, path string, handler HTTPHandler)\n}\n```\nHTTPRouter interface for routing HTTP requests\n\n```go\ntype HTTPServer interface {\n\tAddRouter(router HTTPRouter)\n\tStart(ctx context.Context) error\n\tStop(ctx context.Context) error\n}\n```\nHTTPServer interface for HTTP server modules\n\n```go\ntype HTTPServerConfig struct {\n\tAddress      string `json:\"address\" yaml:\"address\" editor:\"type=string,description=Canonical host:port to listen on (e.g. :8080 or 0.0.0.0:80),default=:8080,placeholder=:8080\"`\n\tReadTimeout  string `json:\"readTimeout\" yaml:\"readTimeout\" editor:\"type=duration,description=Maximum duration for reading the full request,default=30s,placeholder=30s\"`\n\tWriteTimeout string `json:\"writeTimeout\" yaml:\"writeTimeout\" editor:\"type=duration,description=Maximum duration before timing out writes of the response,default=30s,placeholder=30s\"`\n}\n```\nHTTPServerConfig holds configuration for the standard HTTP server module.\n\n```go\ntype HTTPServerTLSConfig struct {\n\tMode         string                 `yaml:\"mode\" json:\"mode\"` // manual | autocert | disabled\n\tManual       tlsutil.TLSConfig      `yaml:\"manual\" json:\"manual\"`\n\tAutocert     tlsutil.AutocertConfig `yaml:\"autocert\" json:\"autocert\"`\n\tClientCAFile string                 `yaml:\"client_ca_file\" json:\"client_ca_file\"`\n\tClientAuth   string                 `yaml:\"client_auth\" json:\"client_auth\"` // require | request | none\n}\n```\nHTTPServerTLSConfig holds TLS configuration for the HTTP server.\n\n```go\ntype HTTPTracePropagator struct {\n\t// contains filtered or unexported fields\n}\n```\nHTTPTracePropagator propagates trace context via W3C TraceContext HTTP headers.\n\n```go\nfunc NewHTTPTracePropagator() *HTTPTracePropagator\n```\nNewHTTPTracePropagator creates an HTTP trace propagator using the global OTEL propagator.\n\n```go\nfunc (p *HTTPTracePropagator) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context\n```\n\n```go\nfunc (p *HTTPTracePropagator) ExtractHeaders(ctx context.Context, headers http.Header) context.Context\n```\nExtractHeaders extracts trace context from an http.Header.\n\n```go\nfunc (p *HTTPTracePropagator) Inject(ctx context.Context, carrier propagation.TextMapCarrier) error\n```\n\n```go\nfunc (p *HTTPTracePropagator) InjectHeaders(ctx context.Context, headers http.Header) error\n```\nInjectHeaders injects trace context into an http.Header.\n\n```go\ntype HTTPTrigger struct {\n\t// contains filtered or unexported fields\n}\n```\nHTTPTrigger implements a trigger that starts workflows from HTTP requests\n\n```go\nfunc NewHTTPTrigger() *HTTPTrigger\n```\nNewHTTPTrigger creates a new HTTP trigger\n\n```go\nfunc NewHTTPTriggerWithNamespace(namespace ModuleNamespaceProvider) *HTTPTrigger\n```\nNewHTTPTriggerWithNamespace creates a new HTTP trigger with namespace support\n\n```go\nfunc (t *HTTPTrigger) Configure(app modular.Application, triggerConfig any) error\n```\nConfigure sets up the trigger from configuration\n\n```go\nfunc (t *HTTPTrigger) Init(app modular.Application) error\n```\nInit initializes the trigger\n\n```go\nfunc (t *HTTPTrigger) Name() string\n```\nName returns the name of this trigger\n\n```go\nfunc (t *HTTPTrigger) Start(ctx context.Context) error\n```\nStart starts the trigger\n\n```go\nfunc (t *HTTPTrigger) Stop(ctx context.Context) error\n```\nStop stops the trigger\n\n```go\ntype HTTPTriggerConfig struct {\n\tRoutes []HTTPTriggerRoute `json:\"routes\" yaml:\"routes\"`\n}\n```\nHTTPTriggerConfig represents the configuration for an HTTP trigger\n\n```go\ntype HTTPTriggerRoute struct {\n\tPath           string         `json:\"path\" yaml:\"path\"`\n\tMethod         string         `json:\"method\" yaml:\"method\"`\n\tWorkflow       string         `json:\"workflow\" yaml:\"workflow\"`\n\tAction         string         `json:\"action\" yaml:\"action\"`\n\tParams         map[string]any `json:\"params,omitempty\" yaml:\"params,omitempty\"`\n\tIncludeRawBody bool           `json:\"include_raw_body,omitempty\" yaml:\"include_raw_body,omitempty\"`\n\t// MaxBodyBytes bounds the first body read when configured. Omission preserves\n\t// legacy routes; explicit webhook routes must set a positive cap (1 MiB for GitHub).\n\tMaxBodyBytes int64 `json:\"max_body_bytes,omitempty\" yaml:\"max_body_bytes,omitempty\"`\n}\n```\nHTTPTriggerRoute represents a single HTTP route configuration\n\n```go\ntype HashStep struct {\n\t// contains filtered or unexported fields\n}\n```\nHashStep computes a cryptographic hash of a template-resolved input string.\n\n```go\nfunc (s *HashStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the input template, computes the hash, and returns the hex digest.\n\n```go\nfunc (s *HashStep) Name() string\n```\nName returns the step name.\n\n```go\ntype HeaderSelector struct {\n\tHeader string // e.g. \"X-Tenant-ID\"\n}\n```\nHeaderSelector returns the value of a named HTTP header as the tenant key.\n\n```go\nfunc (s *HeaderSelector) Match(r *http.Request) (string, bool, error)\n```\n\n```go\ntype HealthCheck func(ctx context.Context) HealthCheckResult\n```\nHealthCheck is a function that performs a health check.\n\n```go\ntype HealthCheckConfig struct {\n\tInterval  int    `json:\"interval\"`  // seconds between checks\n\tTimeout   int    `json:\"timeout\"`   // seconds before timeout\n\tPath      string `json:\"path\"`      // HTTP path for health check\n\tThreshold int    `json:\"threshold\"` // failures before marking degraded\n}\n```\nHealthCheckConfig describes health check settings for a region.\n\n```go\ntype HealthCheckResult struct {\n\tStatus  string `json:\"status\"`\n\tMessage string `json:\"message,omitempty\"`\n}\n```\nHealthCheckResult represents the result of a health check.\n\n```go\ntype HealthCheckSpec struct {\n\tPath     string `json:\"path\"`\n\tPort     int    `json:\"port\"`\n\tInterval int    `json:\"interval\"` // seconds\n}\n```\nHealthCheckSpec defines the HTTP health check for a container.\n\n```go\ntype HealthCheckable interface {\n\tHealthStatus() HealthCheckResult\n}\n```\nHealthCheckable is implemented by modules that can report their own health. The health checker auto-discovers services implementing this interface.\n\n```go\ntype HealthChecker struct {\n\t// contains filtered or unexported fields\n}\n```\nHealthChecker provides /health, /ready, /live HTTP endpoints.\n\n```go\nfunc NewHealthChecker(name string) *HealthChecker\n```\nNewHealthChecker creates a new HealthChecker module.\n\n```go\nfunc (h *HealthChecker) AutoDiscover() bool\n```\nAutoDiscover returns whether auto-discovery of HealthCheckable services is enabled.\n\n```go\nfunc (h *HealthChecker) DiscoverHealthCheckables()\n```\nDiscoverHealthCheckables scans the service registry for services implementing HealthCheckable and auto-registers them as health checks.\n\n```go\nfunc (h *HealthChecker) HealthHandler() http.HandlerFunc\n```\nHealthHandler returns an HTTP handler that runs all health checks.\n\n```go\nfunc (h *HealthChecker) HealthPath() string\n```\nHealthPath returns the configured health endpoint path.\n\n```go\nfunc (h *HealthChecker) Init(app modular.Application) error\n```\nInit registers the health checker as a service.\n\n```go\nfunc (h *HealthChecker) LiveHandler() http.HandlerFunc\n```\nLiveHandler returns an HTTP handler for liveness checks. Always returns 200 with {\"status\":\"alive\"}.\n\n```go\nfunc (h *HealthChecker) LivePath() string\n```\nLivePath returns the configured liveness endpoint path.\n\n```go\nfunc (h *HealthChecker) Name() string\n```\nName returns the module name.\n\n```go\nfunc (h *HealthChecker) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (h *HealthChecker) ReadyHandler() http.HandlerFunc\n```\nReadyHandler returns an HTTP handler that checks readiness. Returns 200 only if started AND all checks pass, else 503.\n\n```go\nfunc (h *HealthChecker) ReadyPath() string\n```\nReadyPath returns the configured readiness endpoint path.\n\n```go\nfunc (h *HealthChecker) RegisterCheck(name string, check HealthCheck)\n```\nRegisterCheck adds a named health check function.\n\n```go\nfunc (h *HealthChecker) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\nfunc (h *HealthChecker) SetConfig(cfg HealthCheckerConfig)\n```\nSetConfig applies configuration to the health checker.\n\n```go\nfunc (h *HealthChecker) SetStarted(started bool)\n```\nSetStarted marks the health checker as started or stopped.\n\n```go\ntype HealthCheckerConfig struct {\n\tHealthPath   string        `yaml:\"healthPath\" json:\"healthPath\" editor:\"type=string,description=Health check endpoint path,default=/healthz,placeholder=/healthz\"`\n\tReadyPath    string        `yaml:\"readyPath\" json:\"readyPath\" editor:\"type=string,description=Readiness probe endpoint path,default=/readyz,placeholder=/readyz\"`\n\tLivePath     string        `yaml:\"livePath\" json:\"livePath\" editor:\"type=string,description=Liveness probe endpoint path,default=/livez,placeholder=/livez\"`\n\tCheckTimeout time.Duration `yaml:\"checkTimeout\" json:\"checkTimeout\" editor:\"type=duration,description=Per-check timeout duration,default=5s,placeholder=5s\"`\n\tAutoDiscover bool          `yaml:\"autoDiscover\" json:\"autoDiscover\" editor:\"type=boolean,description=Automatically discover HealthCheckable services,default=true,label=Auto-Discover\"`\n}\n```\nHealthCheckerConfig holds configuration for the HealthChecker module.\n\n```go\nfunc DefaultHealthCheckerConfig() HealthCheckerConfig\n```\nDefaultHealthCheckerConfig returns the default configuration.\n\n```go\ntype HealthHTTPHandler struct {\n\tHandler http.HandlerFunc\n}\n```\nHealthHTTPHandler adapts an http.HandlerFunc to the HTTPHandler interface\n\n```go\nfunc (h *HealthHTTPHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle implements the HTTPHandler interface\n\n```go\ntype HostSelector struct{}\n```\nHostSelector returns the request's Host header (without port) as the tenant key.\n\n```go\nfunc (s *HostSelector) Match(r *http.Request) (string, bool, error)\n```\n\n```go\ntype IaCApplyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCApplyStep calls Apply() on a PlatformProvider and updates state to \"active\".\n\n```go\nfunc (s *IaCApplyStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCApplyStep) Name() string\n```\n\n```go\ntype IaCCommitBackStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCCommitBackStep serialises the authored specs to YAML and commits the result back to a git branch — but ONLY when the preceding apply step completed with full success (no errors + action\\_count matches the plan).\n\nPartial apply → {committed:false, reason:\"partial-apply\"} (no commit). Full success but git failure → {state\\_diverged:true, reason:...} (route maps to HTTP 207; the apply already happened).\n\n```go\nfunc (s *IaCCommitBackStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCCommitBackStep) Name() string\n```\n\n```go\ntype IaCDestroyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCDestroyStep calls Destroy() and marks state as \"destroyed\".\n\n```go\nfunc (s *IaCDestroyStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCDestroyStep) Name() string\n```\n\n```go\ntype IaCDriftDetectStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCDriftDetectStep compares the stored config snapshot against the current platform provider config and reports whether drift has occurred.\n\n```go\nfunc (s *IaCDriftDetectStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCDriftDetectStep) Name() string\n```\n\n```go\ntype IaCDriftDiff struct {\n\tKey      string `json:\"key\"`\n\tStored   any    `json:\"stored\"`\n\tCurrent  any    `json:\"current\"`\n\tDiffType string `json:\"diff_type\"` // added, removed, changed\n}\n```\nIaCDriftDiff describes a single configuration difference.\n\n```go\ntype IaCModule struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCModule registers an IaCStateStore in the service registry. Supported in-core backends: \"memory\" (default), \"filesystem\", and \"postgres\" — plus any backend provided by a loaded plugin (e.g. \"azure\\_blob\" via workflow-plugin-azure, \"spaces\" via workflow-plugin-digitalocean, \"s3\" via workflow-plugin-aws, \"gcs\" via workflow-plugin-gcp).\n\nConfig example:\n\n\tmodules:\n\t  - name: iac-state\n\t    type: iac.state\n\t    config:\n\t      backend: filesystem\n\t      directory: /var/lib/workflow/iac-state\n\n```go\nfunc NewIaCModule(name string, cfg map[string]any) *IaCModule\n```\nNewIaCModule creates a new IaC state module.\n\n```go\nfunc (m *IaCModule) Init(app modular.Application) error\n```\nInit constructs the state store backend and registers it as a service.\n\n```go\nfunc (m *IaCModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *IaCModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the IaCStateStore service.\n\n```go\nfunc (m *IaCModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — iac.state has no service dependencies.\n\n```go\nfunc (m *IaCModule) Start(_ context.Context) error\n```\nStart is a no-op for the memory backend; the filesystem backend creates the directory.\n\n```go\nfunc (m *IaCModule) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\ntype IaCPlanStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCPlanStep resolves a PlatformProvider, calls Plan(), and saves a \"planned\" state.\n\n```go\nfunc (s *IaCPlanStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCPlanStep) Name() string\n```\n\n```go\ntype IaCProviderApplyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderApplyStep implements the stateless two-phase apply:\n\n 1. Resolve the IaCProvider.\n 2. Recompute the desired-state hash from current live state.\n 3. Compare against the client-submitted desired\\_hash — mismatch → reject.\n 4. Dispatch via the injected applyFn (wfctlhelpers.ApplyPlanWithHooks in prod).\n\n```go\nfunc (s *IaCProviderApplyStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCProviderApplyStep) Name() string\n```\n\n```go\ntype IaCProviderCatalogStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderCatalogStep resolves an IaCProvider, fetches regions and resource type capabilities, and returns a catalog suitable for UI rendering.\n\n```go\nfunc (s *IaCProviderCatalogStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCProviderCatalogStep) Name() string\n```\n\n```go\ntype IaCProviderDestroyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderDestroyStep resolves an IaCProvider and destroys the specified resources by ref list.\n\n```go\nfunc (s *IaCProviderDestroyStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCProviderDestroyStep) Name() string\n```\n\n```go\ntype IaCProviderDriftStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderDriftStep resolves an IaCProvider and checks for configuration drift. It type-asserts to providerclient.DriftDetectorProvider for the config-aware drift path; if the provider does not advertise the optional IaCProviderDriftDetector service, it returns {supported:false}.\n\n```go\nfunc (s *IaCProviderDriftStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCProviderDriftStep) Name() string\n```\n\n```go\ntype IaCProviderListStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderListStep resolves an IaCProvider and lists current resource statuses.\n\n```go\nfunc (s *IaCProviderListStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCProviderListStep) Name() string\n```\n\n```go\ntype IaCProviderModule struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderModule aliases an external plugin-served IaC provider into the application service graph under an app-local module name.\n\nConfig keys:\n\n  - plugin: external plugin service name to use, for example workflow-plugin-aws\n  - service: fallback spelling for plugin\n  - provider: legacy/provider shorthand such as aws or digitalocean\n  - remaining keys are passed to provider.Initialize\n\n```go\nfunc NewIaCProviderModule(name string, cfg map[string]any) *IaCProviderModule\n```\nNewIaCProviderModule creates an iac.provider module.\n\n```go\nfunc (m *IaCProviderModule) Init(app modular.Application) error\n```\nInit resolves the external provider service, initializes it with the provider-specific config, and registers the provider under this module name.\n\n```go\nfunc (m *IaCProviderModule) Name() string\n```\n\n```go\nfunc (m *IaCProviderModule) Provider() interfaces.IaCProvider\n```\nProvider returns the resolved provider after Init.\n\n```go\nfunc (m *IaCProviderModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the app-local IaCProvider service alias.\n\n```go\nfunc (m *IaCProviderModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices declares the external plugin service dependency.\n\n```go\nfunc (m *IaCProviderModule) Start(context.Context) error\n```\n\n```go\nfunc (m *IaCProviderModule) Stop(context.Context) error\n```\n\n```go\ntype IaCProviderPlanStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderPlanStep resolves an IaCProvider, fetches current state, computes a DesiredStateHash with a NO-OP env resolver, builds a plan, and returns the plan JSON plus the stable hash.\n\n```go\nfunc (s *IaCProviderPlanStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCProviderPlanStep) Name() string\n```\n\n```go\ntype IaCProviderReconcileStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCProviderReconcileStep implements step.iac\\_provider\\_reconcile.\n\n```go\nfunc (s *IaCProviderReconcileStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCProviderReconcileStep) Name() string\n```\n\n```go\ntype IaCSecretReachabilityStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCSecretReachabilityStep pre-flights whether the secrets referenced in a set of IaC resource specs can be read from the chosen execution environment.\n\nIt resolves the secrets provider from the app service registry (mirrors the resolveProvider pattern in SecretSetStep), gathers all distinct secret:// references from the spec configs (including nested maps and slices), calls secrets.Reachability once for the provider, and reports per-ref results.\n\nOutput shape:\n\n\t{\n\t  \"secrets\":       [ {ref, reachable, reason}, ... ],\n\t  \"all_reachable\": bool,\n\t}\n\nWhen there are zero secret:// refs, all\\_reachable is true with an empty list.\n\n```go\nfunc (s *IaCSecretReachabilityStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCSecretReachabilityStep) Name() string\n```\n\n```go\ntype IaCState struct {\n\tResourceID   string                        `json:\"resource_id\"`\n\tResourceType string                        `json:\"resource_type\"` // e.g. \"kubernetes\", \"ecs\"\n\tProvider     string                        `json:\"provider\"`      // e.g. \"aws\", \"gcp\", \"local\"\n\tProviderRef  string                        `json:\"provider_ref,omitempty\"`\n\tProviderID   string                        `json:\"provider_id,omitempty\"`\n\tConfigHash   string                        `json:\"config_hash,omitempty\"`\n\tStatus       string                        `json:\"status\"`  // planned, provisioning, active, destroying, destroyed, error\n\tOutputs      map[string]any                `json:\"outputs\"` // provider-specific outputs\n\tConfig       map[string]any                `json:\"config\"`  // the config used to provision\n\tDependencies []string                      `json:\"dependencies,omitempty\"`\n\tCreatedAt    string                        `json:\"created_at\"`\n\tUpdatedAt    string                        `json:\"updated_at\"`\n\tError        string                        `json:\"error,omitempty\"`\n\tLifecycle    *interfaces.ResourceLifecycle `json:\"lifecycle,omitempty\"`\n}\n```\nIaCState tracks the state of an infrastructure resource.\n\n```go\ntype IaCStateStore interface {\n\t// GetState retrieves a state record by resource ID. Returns nil, nil when not found.\n\tGetState(ctx context.Context, resourceID string) (*IaCState, error)\n\n\t// SaveState inserts or replaces a state record.\n\tSaveState(ctx context.Context, state *IaCState) error\n\n\t// ListStates returns all state records matching the provided key=value filter.\n\t// Pass a nil or empty map to return all records — both are treated as \"no\n\t// filter\" (ranging over a nil map is valid Go, and most call sites pass nil).\n\tListStates(ctx context.Context, filter map[string]string) ([]*IaCState, error)\n\n\t// DeleteState removes a state record by resource ID.\n\tDeleteState(ctx context.Context, resourceID string) error\n\n\t// Lock acquires an exclusive lock for the given resource ID.\n\t// Returns an error if the resource is already locked.\n\tLock(ctx context.Context, resourceID string) error\n\n\t// Unlock releases the lock for the given resource ID.\n\tUnlock(ctx context.Context, resourceID string) error\n}\n```\nIaCStateStore is the interface for IaC state persistence backends.\n\n```go\ntype IaCStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nIaCStatusStep reads stored state and calls Status() on the PlatformProvider.\n\n```go\nfunc (s *IaCStatusStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *IaCStatusStep) Name() string\n```\n\n```go\ntype InMemoryMessageBroker struct {\n\t// contains filtered or unexported fields\n}\n```\nInMemoryMessageBroker provides a simple in-memory implementation of MessageBroker\n\n```go\nfunc NewInMemoryMessageBroker(name string) *InMemoryMessageBroker\n```\nNewInMemoryMessageBroker creates a new in-memory message broker\n\n```go\nfunc NewInMemoryMessageBrokerWithNamespace(name string, namespace ModuleNamespaceProvider) *InMemoryMessageBroker\n```\nNewInMemoryMessageBrokerWithNamespace creates a new in-memory message broker with namespace support\n\n```go\nfunc NewStandardInMemoryMessageBroker(namespace ModuleNamespaceProvider) *InMemoryMessageBroker\n```\nNewStandardInMemoryMessageBroker creates an in-memory message broker with the standard name\n\n```go\nfunc (b *InMemoryMessageBroker) Consumer() MessageConsumer\n```\nConsumer returns the message consumer interface\n\n```go\nfunc (b *InMemoryMessageBroker) DeliveryTimeout() time.Duration\n```\nDeliveryTimeout returns the configured delivery timeout.\n\n```go\nfunc (b *InMemoryMessageBroker) Init(app modular.Application) error\n```\nInit initializes the module with the application context\n\n```go\nfunc (b *InMemoryMessageBroker) MaxQueueSize() int\n```\nMaxQueueSize returns the configured maximum queue size per topic.\n\n```go\nfunc (b *InMemoryMessageBroker) Name() string\n```\nName returns the unique identifier for this module\n\n```go\nfunc (b *InMemoryMessageBroker) Producer() MessageProducer\n```\nProducer returns the message producer interface\n\n```go\nfunc (b *InMemoryMessageBroker) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns a list of services provided by this module\n\n```go\nfunc (b *InMemoryMessageBroker) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns a list of services required by this module\n\n```go\nfunc (b *InMemoryMessageBroker) SendMessage(topic string, message []byte) error\n```\nSendMessage is a convenience method to send a message to a topic\n\n```go\nfunc (b *InMemoryMessageBroker) SetDeliveryTimeout(d time.Duration)\n```\nSetDeliveryTimeout sets the message delivery timeout.\n\n```go\nfunc (b *InMemoryMessageBroker) SetMaxQueueSize(n int)\n```\nSetMaxQueueSize sets the maximum message queue size per topic.\n\n```go\nfunc (b *InMemoryMessageBroker) Start(ctx context.Context) error\n```\nStart starts the message broker\n\n```go\nfunc (b *InMemoryMessageBroker) Stop(ctx context.Context) error\n```\nStop stops the message broker\n\n```go\nfunc (b *InMemoryMessageBroker) Subscribe(topic string, handler MessageHandler) error\n```\nSubscribe is a convenience method to subscribe a handler to a topic\n\n```go\ntype InfraModule struct {\n\t// contains filtered or unexported fields\n}\n```\nInfraModule bridges a YAML \\`infra.\\*\\` module declaration to an [interfaces.IaCProvider](/github.com/GoCodeAlone/workflow/interfaces#IaCProvider)'s [interfaces.ResourceDriver](/github.com/GoCodeAlone/workflow/interfaces#ResourceDriver) for a single resource type.\n\nOne factory function covers all 13 infra.\\* types — the type string is baked in at registration time via [NewInfraModuleFactory](#NewInfraModuleFactory).\n\nConfig keys:\n\n  - provider  — name of the module that registered an IaCProvider service (required)\n  - size      — xs/s/m/l/xl sizing tier (optional, defaults to \"s\")\n  - resources — map with cpu/memory/storage override hints (optional)\n  - Any additional keys are forwarded verbatim to the driver as resource config.\n\n```go\nfunc NewInfraModule(name, infraType string, cfg map[string]any) *InfraModule\n```\nNewInfraModule creates an InfraModule for the given infraType (e.g. \"infra.database\").\n\n```go\nfunc (m *InfraModule) Create(ctx context.Context) (*interfaces.ResourceOutput, error)\n```\nCreate provisions a new resource by delegating to the underlying driver.\n\n```go\nfunc (m *InfraModule) Delete(ctx context.Context) error\n```\nDelete removes the resource via the underlying driver.\n\n```go\nfunc (m *InfraModule) Driver() interfaces.ResourceDriver\n```\nDriver returns the underlying ResourceDriver (nil before Init).\n\n```go\nfunc (m *InfraModule) Hints() *interfaces.ResourceHints\n```\nHints returns the resource hints, or nil if none were configured.\n\n```go\nfunc (m *InfraModule) InfraType() string\n```\nInfraType returns the abstract resource type string (e.g. \"infra.database\").\n\n```go\nfunc (m *InfraModule) Init(app modular.Application) error\n```\nInit resolves the IaCProvider, obtains the ResourceDriver for this module's resource type, and registers the module as \"\\\u003cname\u003e.driver\" in the SvcRegistry.\n\n```go\nfunc (m *InfraModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *InfraModule) Provider() interfaces.IaCProvider\n```\nProvider returns the underlying IaCProvider (nil before Init).\n\n```go\nfunc (m *InfraModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the driver service registrations.\n\n```go\nfunc (m *InfraModule) Read(ctx context.Context) (*interfaces.ResourceOutput, error)\n```\nRead retrieves the current state of the resource from the provider.\n\n```go\nfunc (m *InfraModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices declares a dependency on the configured IaCProvider service.\n\n```go\nfunc (m *InfraModule) ResourceConfig() map[string]any\n```\nResourceConfig returns the module config with standard keys (provider, size, resources) stripped, leaving only the resource-specific fields.\n\n```go\nfunc (m *InfraModule) ResourceRef() interfaces.ResourceRef\n```\nResourceRef returns the live IaC resource reference represented by this module.\n\n```go\nfunc (m *InfraModule) ResourceSpec() interfaces.ResourceSpec\n```\nResourceSpec returns the desired IaC resource spec represented by this module. Pipeline steps use this to operate on named app resources without duplicating their infrastructure config.\n\n```go\nfunc (m *InfraModule) Size() interfaces.Size\n```\nSize returns the resolved size tier.\n\n```go\nfunc (m *InfraModule) Update(ctx context.Context) (*interfaces.ResourceOutput, error)\n```\nUpdate reconciles the resource to match the current config.\n\n```go\ntype IntegrationConnector interface {\n\t// Connect establishes a connection to the external service\n\tConnect(ctx context.Context) error\n\n\t// Disconnect closes the connection to the external service\n\tDisconnect(ctx context.Context) error\n\n\t// Execute performs an action on the external service\n\tExecute(ctx context.Context, action string, params map[string]any) (map[string]any, error)\n\n\t// GetName returns the name of the connector\n\tGetName() string\n\n\t// IsConnected checks if the connector is connected\n\tIsConnected() bool\n}\n```\nIntegrationConnector represents a connector to a third-party service\n\n```go\ntype IntegrationRegistry interface {\n\t// Name returns the name of the registry\n\tName() string\n\t// Init initializes the registry\n\tInit(app modular.Application) error\n\t// Start starts the registry\n\tStart() error\n\t// Stop stops the registry\n\tStop() error\n\t// RegisterConnector registers a new integration connector\n\tRegisterConnector(connector IntegrationConnector)\n\t// GetConnector retrieves a connector by name\n\tGetConnector(name string) (IntegrationConnector, error)\n\t// ListConnectors lists all registered connectors\n\tListConnectors() []string\n}\n```\n\n```go\ntype JQStep struct {\n\t// contains filtered or unexported fields\n}\n```\nJQStep applies JQ expressions to pipeline data for complex transformations. It uses the gojq library (a pure-Go JQ implementation) to support the full JQ expression language including field access, pipes, map/select, object construction, arithmetic, conditionals, and more.\n\n```go\nfunc (s *JQStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute applies the compiled JQ expression to the pipeline context's current data and returns the result. If input\\_from is configured, the expression is applied to the value at that path instead of the full current map.\n\n```go\nfunc (s *JQStep) Name() string\n```\nName returns the step name.\n\n```go\ntype JSONParseStep struct {\n\t// contains filtered or unexported fields\n}\n```\nJSONParseStep parses a JSON string value from the pipeline context into a structured Go value (map, slice, etc.) and stores the result as step output.\n\nThis is useful when a pipeline step (e.g. step.db\\_query against a legacy driver, or step.http\\_call) returns a JSON column/field as a raw string rather than as a pre-parsed Go type. It is the explicit counterpart to the automatic json/jsonb detection that step.db\\_query performs for the pgx driver.\n\nConfiguration:\n\n\tsource: \"steps.fetch.row.json_column\"  # dot-path to the JSON string value (required)\n\ttarget: \"parsed_data\"                  # output key name (optional, defaults to \"value\")\n\n```go\nfunc (s *JSONParseStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the source path, parses the value as JSON if it is a string, and stores the result under the configured target key.\n\n```go\nfunc (s *JSONParseStep) Name() string\n```\nName returns the step name.\n\n```go\ntype JSONResponseStep struct {\n\t// contains filtered or unexported fields\n}\n```\nJSONResponseStep writes an HTTP JSON response with a custom status code and stops the pipeline.\n\n```go\nfunc (s *JSONResponseStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *JSONResponseStep) Name() string\n```\n\n```go\ntype JWTAuthModule struct {\n\t// contains filtered or unexported fields\n}\n```\nJWTAuthModule handles JWT authentication with an in-memory user store. When an auth.user-store service is available, it delegates user CRUD to it; otherwise it uses its own internal map for backward compatibility.\n\n```go\nfunc NewJWTAuthModule(name, secret string, tokenExpiry time.Duration, issuer string) *JWTAuthModule\n```\nNewJWTAuthModule creates a new JWT auth module\n\n```go\nfunc (j *JWTAuthModule) Authenticate(tokenStr string) (bool, map[string]any, error)\n```\nAuthenticate implements AuthProvider\n\n```go\nfunc (j *JWTAuthModule) CreateOAuthUser(oauthKey, name string, meta map[string]any) (*User, error)\n```\nCreateOAuthUser creates (or returns an existing) user identified by the given oauthKey (e.g. \"oauth:google:12345\").  The oauthKey is used as the user's email so it can be looked up without any email-based account merging. If a user already exists for that key, the existing user is returned.\n\n```go\nfunc (j *JWTAuthModule) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle routes auth requests\n\n```go\nfunc (j *JWTAuthModule) Init(app modular.Application) error\n```\nInit initializes the module\n\n```go\nfunc (j *JWTAuthModule) Name() string\n```\nName returns the module name\n\n```go\nfunc (j *JWTAuthModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module\n\n```go\nfunc (j *JWTAuthModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module\n\n```go\nfunc (j *JWTAuthModule) SetAllowRegistration(allow bool)\n```\nSetAllowRegistration enables or disables open self-registration. When true, any visitor may register; when false (default), registration is only permitted when no users exist (initial setup mode).\n\n```go\nfunc (j *JWTAuthModule) SetAudience(audience string)\n```\nSetAudience opts into issuer and audience validation for every JWT entry point. Configure this before Init. Explicitly configured audiences must be nonempty. Omit this call to preserve legacy validation.\n\n```go\nfunc (j *JWTAuthModule) SetResponseFormat(format string)\n```\nSetResponseFormat sets the response format for auth endpoints. \"v1\" returns {access\\_token, refresh\\_token, expires\\_in, user} and adds /auth/refresh, /auth/me, /auth/logout handlers. \"standard\" (default) returns {token, user}.\n\n```go\nfunc (j *JWTAuthModule) SetSeedFile(path string)\n```\nSetSeedFile sets the path to a JSON file of seed users to load on start.\n\n```go\nfunc (j *JWTAuthModule) SetTokenBlacklist(bl TokenBlacklist)\n```\nSetTokenBlacklist wires a TokenBlacklist to this module so that revoked tokens are rejected during Authenticate.\n\n```go\nfunc (j *JWTAuthModule) Start(ctx context.Context) error\n```\nStart loads persisted users if available, then seed users.\n\n```go\nfunc (j *JWTAuthModule) Stop(ctx context.Context) error\n```\nStop is a no-op\n\n```go\ntype JWTClaimSelector struct {\n\tClaim string // e.g. \"tenant_id\"\n}\n```\nJWTClaimSelector extracts a named claim from the JWT claims already stored in the request context by the auth middleware. Requires the auth middleware to have run before this selector is invoked.\n\n```go\nfunc (s *JWTClaimSelector) Match(r *http.Request) (string, bool, error)\n```\n\n```go\ntype Job interface {\n\tExecute(ctx context.Context) error\n}\n```\nJob represents a scheduled job\n\n```go\ntype K8sApplyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nK8sApplyStep calls Apply() on a named platform.kubernetes module.\n\n```go\nfunc (s *K8sApplyStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *K8sApplyStep) Name() string\n```\n\n```go\ntype K8sContainerPort struct {\n\tContainerPort int `json:\"containerPort\"`\n}\n```\nK8sContainerPort is a port exposed by a container.\n\n```go\ntype K8sContainerSpec struct {\n\tName           string             `json:\"name\"`\n\tImage          string             `json:\"image\"`\n\tPorts          []K8sContainerPort `json:\"ports,omitempty\"`\n\tEnv            []K8sEnvVar        `json:\"env,omitempty\"`\n\tResources      K8sResourceReq     `json:\"resources\"`\n\tReadinessProbe *K8sProbe          `json:\"readinessProbe,omitempty\"`\n}\n```\nK8sContainerSpec is the spec for a container within a pod.\n\n```go\ntype K8sDeploymentManifest struct {\n\tAPIVersion string            `json:\"apiVersion\"`\n\tKind       string            `json:\"kind\"`\n\tMetadata   K8sObjectMeta     `json:\"metadata\"`\n\tSpec       K8sDeploymentSpec `json:\"spec\"`\n}\n```\nK8sDeploymentManifest represents a Kubernetes Deployment resource.\n\n```go\ntype K8sDeploymentSpec struct {\n\tReplicas int            `json:\"replicas\"`\n\tSelector K8sSelector    `json:\"selector\"`\n\tTemplate K8sPodTemplate `json:\"template\"`\n}\n```\nK8sDeploymentSpec is the spec for a Kubernetes Deployment.\n\n```go\ntype K8sDestroyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nK8sDestroyStep calls Destroy() on a named platform.kubernetes module.\n\n```go\nfunc (s *K8sDestroyStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *K8sDestroyStep) Name() string\n```\n\n```go\ntype K8sEnvVar struct {\n\tName  string `json:\"name\"`\n\tValue string `json:\"value\"`\n}\n```\nK8sEnvVar is an environment variable in a container.\n\n```go\ntype K8sHTTPGetAction struct {\n\tPath string `json:\"path\"`\n\tPort int    `json:\"port\"`\n}\n```\nK8sHTTPGetAction defines an HTTP GET health check.\n\n```go\ntype K8sIngressBackend struct {\n\tService K8sIngressSvcBackend `json:\"service\"`\n}\n```\nK8sIngressBackend defines the backend for an ingress path.\n\n```go\ntype K8sIngressHTTP struct {\n\tPaths []K8sIngressPath `json:\"paths\"`\n}\n```\nK8sIngressHTTP defines the HTTP routes in an ingress rule.\n\n```go\ntype K8sIngressManifest struct {\n\tAPIVersion string         `json:\"apiVersion\"`\n\tKind       string         `json:\"kind\"`\n\tMetadata   K8sObjectMeta  `json:\"metadata\"`\n\tSpec       K8sIngressSpec `json:\"spec\"`\n}\n```\nK8sIngressManifest represents a Kubernetes Ingress resource.\n\n```go\ntype K8sIngressPath struct {\n\tPath     string            `json:\"path\"`\n\tPathType string            `json:\"pathType\"`\n\tBackend  K8sIngressBackend `json:\"backend\"`\n}\n```\nK8sIngressPath defines an HTTP path in an ingress rule.\n\n```go\ntype K8sIngressRule struct {\n\tHost string         `json:\"host,omitempty\"`\n\tHTTP K8sIngressHTTP `json:\"http\"`\n}\n```\nK8sIngressRule defines an ingress routing rule.\n\n```go\ntype K8sIngressSpec struct {\n\tRules []K8sIngressRule `json:\"rules\"`\n}\n```\nK8sIngressSpec defines a Kubernetes Ingress.\n\n```go\ntype K8sIngressSvcBackend struct {\n\tName string            `json:\"name\"`\n\tPort K8sServicePortRef `json:\"port\"`\n}\n```\nK8sIngressSvcBackend defines the service backend for an ingress.\n\n```go\ntype K8sManifests struct {\n\tDeployment *K8sDeploymentManifest `json:\"deployment\"`\n\tService    *K8sServiceManifest    `json:\"service\"`\n\tIngress    *K8sIngressManifest    `json:\"ingress,omitempty\"`\n}\n```\nK8sManifests holds the generated Kubernetes manifests for an app container.\n\n```go\ntype K8sObjectMeta struct {\n\tName      string            `json:\"name\"`\n\tNamespace string            `json:\"namespace,omitempty\"`\n\tLabels    map[string]string `json:\"labels,omitempty\"`\n}\n```\nK8sObjectMeta holds Kubernetes resource metadata.\n\n```go\ntype K8sPlanStep struct {\n\t// contains filtered or unexported fields\n}\n```\nK8sPlanStep calls Plan() on a named platform.kubernetes module.\n\n```go\nfunc (s *K8sPlanStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *K8sPlanStep) Name() string\n```\n\n```go\ntype K8sPodSpec struct {\n\tContainers []K8sContainerSpec `json:\"containers\"`\n}\n```\nK8sPodSpec is the spec for a pod.\n\n```go\ntype K8sPodTemplate struct {\n\tMetadata K8sObjectMeta `json:\"metadata\"`\n\tSpec     K8sPodSpec    `json:\"spec\"`\n}\n```\nK8sPodTemplate is the pod template in a Deployment spec.\n\n```go\ntype K8sProbe struct {\n\tHTTPGet             K8sHTTPGetAction `json:\"httpGet\"`\n\tInitialDelaySeconds int              `json:\"initialDelaySeconds,omitempty\"`\n\tPeriodSeconds       int              `json:\"periodSeconds,omitempty\"`\n}\n```\nK8sProbe defines a health check probe.\n\n```go\ntype K8sResourceReq struct {\n\tLimits   map[string]string `json:\"limits,omitempty\"`\n\tRequests map[string]string `json:\"requests,omitempty\"`\n}\n```\nK8sResourceReq holds resource requests and limits.\n\n```go\ntype K8sSelector struct {\n\tMatchLabels map[string]string `json:\"matchLabels\"`\n}\n```\nK8sSelector selects pods by label.\n\n```go\ntype K8sServiceManifest struct {\n\tAPIVersion string         `json:\"apiVersion\"`\n\tKind       string         `json:\"kind\"`\n\tMetadata   K8sObjectMeta  `json:\"metadata\"`\n\tSpec       K8sServiceSpec `json:\"spec\"`\n}\n```\nK8sServiceManifest represents a Kubernetes Service resource.\n\n```go\ntype K8sServicePort struct {\n\tPort       int    `json:\"port\"`\n\tTargetPort int    `json:\"targetPort\"`\n\tProtocol   string `json:\"protocol,omitempty\"`\n}\n```\nK8sServicePort defines a port exposed by a Service.\n\n```go\ntype K8sServicePortRef struct {\n\tNumber int `json:\"number\"`\n}\n```\nK8sServicePortRef defines a port reference in an ingress service backend.\n\n```go\ntype K8sServiceSpec struct {\n\tSelector map[string]string `json:\"selector\"`\n\tPorts    []K8sServicePort  `json:\"ports\"`\n\tType     string            `json:\"type,omitempty\"`\n}\n```\nK8sServiceSpec defines a Kubernetes Service.\n\n```go\ntype K8sStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nK8sStatusStep calls Status() on a named platform.kubernetes module.\n\n```go\nfunc (s *K8sStatusStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *K8sStatusStep) Name() string\n```\n\n```go\ntype KafkaBroker struct {\n\t// contains filtered or unexported fields\n}\n```\nKafkaBroker implements the MessageBroker interface using Apache Kafka via Sarama.\n\n```go\nfunc NewKafkaBroker(name string) *KafkaBroker\n```\nNewKafkaBroker creates a new Kafka message broker.\n\n```go\nfunc (b *KafkaBroker) Consumer() MessageConsumer\n```\nConsumer returns the message consumer interface.\n\n```go\nfunc (b *KafkaBroker) HealthStatus() HealthCheckResult\n```\nHealthStatus implements the HealthCheckable interface.\n\n```go\nfunc (b *KafkaBroker) Init(app modular.Application) error\n```\nInit initializes the module with the application context.\n\n```go\nfunc (b *KafkaBroker) Name() string\n```\nName returns the module name.\n\n```go\nfunc (b *KafkaBroker) Producer() MessageProducer\n```\nProducer returns the message producer interface.\n\n```go\nfunc (b *KafkaBroker) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (b *KafkaBroker) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns the services required by this module.\n\n```go\nfunc (b *KafkaBroker) SetBrokers(brokers []string)\n```\nSetBrokers sets the Kafka broker addresses.\n\n```go\nfunc (b *KafkaBroker) SetFieldProtection(mgr *ProtectedFieldManager)\n```\nSetTLSConfig sets the TLS and SASL configuration for the Kafka broker. SetFieldProtection sets the field-level encryption manager for this broker. When set, individual protected fields are encrypted/decrypted in JSON payloads before the legacy whole-message encryptor runs.\n\n```go\nfunc (b *KafkaBroker) SetGroupID(groupID string)\n```\nSetGroupID sets the Kafka consumer group ID.\n\n```go\nfunc (b *KafkaBroker) SetTLSConfig(cfg KafkaTLSConfig)\n```\n\n```go\nfunc (b *KafkaBroker) Start(ctx context.Context) error\n```\nStart connects to Kafka and begins consuming.\n\n```go\nfunc (b *KafkaBroker) Stop(_ context.Context) error\n```\nStop disconnects from Kafka.\n\n```go\nfunc (b *KafkaBroker) Subscribe(topic string, handler MessageHandler) error\n```\nSubscribe is a convenience method to subscribe a handler to a topic.\n\n```go\ntype KafkaSASLConfig struct {\n\tMechanism string `yaml:\"mechanism\" json:\"mechanism\"` // PLAIN | SCRAM-SHA-256 | SCRAM-SHA-512\n\tUsername  string `yaml:\"username\" json:\"username\"`\n\tPassword  string `yaml:\"password\" json:\"password\"` //nolint:gosec // G117: config struct field\n}\n```\nKafkaSASLConfig holds SASL authentication configuration for Kafka.\n\n```go\ntype KafkaTLSConfig struct {\n\ttlsutil.TLSConfig `yaml:\",inline\" json:\",inline\"`\n\tSASL              KafkaSASLConfig `yaml:\"sasl\" json:\"sasl\"`\n}\n```\nKafkaTLSConfig holds TLS and SASL configuration for the Kafka broker.\n\n```go\ntype KafkaTracePropagator struct {\n\t// contains filtered or unexported fields\n}\n```\nKafkaTracePropagator propagates trace context via Kafka message headers (map\\[string]string).\n\n```go\nfunc NewKafkaTracePropagator() *KafkaTracePropagator\n```\nNewKafkaTracePropagator creates a Kafka trace propagator using the global OTEL propagator.\n\n```go\nfunc (p *KafkaTracePropagator) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context\n```\n\n```go\nfunc (p *KafkaTracePropagator) ExtractMap(ctx context.Context, headers map[string]string) context.Context\n```\nExtractMap extracts trace context from a map\\[string]string (Kafka headers).\n\n```go\nfunc (p *KafkaTracePropagator) Inject(ctx context.Context, carrier propagation.TextMapCarrier) error\n```\n\n```go\nfunc (p *KafkaTracePropagator) InjectMap(ctx context.Context, headers map[string]string) error\n```\nInjectMap injects trace context into a map\\[string]string (Kafka headers).\n\n```go\ntype KubernetesBackendFactory func(cfg map[string]any) (kubernetesBackend, error)\n```\nKubernetesBackendFactory creates a kubernetesBackend for a given cluster type config.\n\n```go\ntype KubernetesClusterState struct {\n\tName       string           `json:\"name\"`\n\tProvider   string           `json:\"provider\"` // eks, gke, aks, kind, k3s\n\tVersion    string           `json:\"version\"`\n\tStatus     string           `json:\"status\"` // pending, creating, running, deleting, deleted\n\tEndpoint   string           `json:\"endpoint\"`\n\tNodeGroups []NodeGroupState `json:\"nodeGroups\"`\n\tCreatedAt  time.Time        `json:\"createdAt\"`\n}\n```\nKubernetesClusterState holds the current state of a managed Kubernetes cluster.\n\n```go\ntype LicenseModule struct {\n\t// contains filtered or unexported fields\n}\n```\nLicenseModule wraps a licensing.HTTPValidator as a modular.Module. It starts a background refresh on Start and exposes a status API endpoint.\n\n```go\nfunc NewLicenseModule(name string, cfg map[string]any) (*LicenseModule, error)\n```\nNewLicenseModule creates a new LicenseModule from a name and config map.\n\n```go\nfunc (m *LicenseModule) Init(_ modular.Application) error\n```\nInit implements modular.Module.\n\n```go\nfunc (m *LicenseModule) Name() string\n```\nName implements modular.Module.\n\n```go\nfunc (m *LicenseModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices implements modular.Module. The validator is registered under both the module name and the canonical \"license-validator\" name so other modules can look it up by either.\n\n```go\nfunc (m *LicenseModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices implements modular.Module.\n\n```go\nfunc (m *LicenseModule) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP serves the GET /api/v1/license/status endpoint. It returns the current license info as JSON.\n\n```go\nfunc (m *LicenseModule) Start(ctx context.Context) error\n```\nStart implements StartStopModule. It performs an initial license validation and starts the background refresh goroutine.\n\n```go\nfunc (m *LicenseModule) Stop(ctx context.Context) error\n```\nStop implements StartStopModule. It stops the background refresh goroutine.\n\n```go\nfunc (m *LicenseModule) Validator() *licensing.HTTPValidator\n```\nValidator returns the underlying HTTPValidator for direct use.\n\n```go\ntype LicenseModuleConfig struct {\n\tServerURL       string `yaml:\"server_url\"`\n\tLicenseKey      string `yaml:\"license_key\"`\n\tCacheTTL        string `yaml:\"cache_ttl\" default:\"1h\"`\n\tGracePeriod     string `yaml:\"grace_period\" default:\"72h\"`\n\tRefreshInterval string `yaml:\"refresh_interval\" default:\"1h\"`\n}\n```\nLicenseModuleConfig holds the configuration for the license validator module.\n\n```go\ntype ListenerAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\nListenerAdapter adapts a TransitionListener function to a TransitionHandler\n\n```go\nfunc NewListenerAdapter(listener TransitionListener) *ListenerAdapter\n```\nNewListenerAdapter creates a new adapter for a transition listener\n\n```go\nfunc (a *ListenerAdapter) HandleTransition(ctx context.Context, event TransitionEvent) error\n```\nHandleTransition implements the TransitionHandler interface\n\n```go\ntype LocalStorageModule struct {\n\t// contains filtered or unexported fields\n}\n```\nLocalStorageModule wraps a store.LocalStorage as a modular.Module.\n\n```go\nfunc NewLocalStorageModule(name, rootDir string) *LocalStorageModule\n```\nNewLocalStorageModule creates a new local filesystem storage module.\n\n```go\nfunc (m *LocalStorageModule) Delete(ctx context.Context, path string) error\n```\n\n```go\nfunc (m *LocalStorageModule) Get(ctx context.Context, path string) (io.ReadCloser, error)\n```\n\n```go\nfunc (m *LocalStorageModule) Init(app modular.Application) error\n```\n\n```go\nfunc (m *LocalStorageModule) List(ctx context.Context, prefix string) ([]store.FileInfo, error)\n```\n\n```go\nfunc (m *LocalStorageModule) Name() string\n```\n\n```go\nfunc (m *LocalStorageModule) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *LocalStorageModule) Put(ctx context.Context, path string, reader io.Reader) error\n```\n\n```go\nfunc (m *LocalStorageModule) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *LocalStorageModule) Start(_ context.Context) error\n```\n\n```go\nfunc (m *LocalStorageModule) Stat(ctx context.Context, path string) (store.FileInfo, error)\n```\n\n```go\nfunc (m *LocalStorageModule) Stop(_ context.Context) error\n```\n\n```go\nfunc (m *LocalStorageModule) Storage() store.StorageProvider\n```\nStorage returns the underlying StorageProvider, or nil if not started.\n\n```go\ntype LogCollector struct {\n\t// contains filtered or unexported fields\n}\n```\nLogCollector collects log entries from modules implementing LogEmitter and exposes them via a /logs HTTP endpoint.\n\n```go\nfunc NewLogCollector(name string, cfg LogCollectorConfig) *LogCollector\n```\nNewLogCollector creates a new LogCollector module.\n\n```go\nfunc (lc *LogCollector) AddEntry(entry LogEntry)\n```\nAddEntry adds a single log entry to the collector.\n\n```go\nfunc (lc *LogCollector) CollectFromEmitters()\n```\nCollectFromEmitters scans the service registry for LogEmitter services and drains their log entries.\n\n```go\nfunc (lc *LogCollector) Entries() []LogEntry\n```\nEntries returns a copy of the current log entries.\n\n```go\nfunc (lc *LogCollector) Init(app modular.Application) error\n```\nInit registers the log collector as a service.\n\n```go\nfunc (lc *LogCollector) LogHandler() http.HandlerFunc\n```\nLogHandler returns an HTTP handler that serves collected logs.\n\n```go\nfunc (lc *LogCollector) Name() string\n```\nName returns the module name.\n\n```go\nfunc (lc *LogCollector) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (lc *LogCollector) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\nfunc (lc *LogCollector) StartCollectionLoop(ctx context.Context, interval time.Duration) context.CancelFunc\n```\nStartCollectionLoop runs a background goroutine that periodically collects logs from emitters. Call the returned cancel function to stop.\n\n```go\ntype LogCollectorConfig struct {\n\tLogLevel      string `yaml:\"logLevel\" json:\"logLevel\"`\n\tOutputFormat  string `yaml:\"outputFormat\" json:\"outputFormat\"`\n\tRetentionDays int    `yaml:\"retentionDays\" json:\"retentionDays\"`\n}\n```\nLogCollectorConfig holds the configuration for the log collector module.\n\n```go\ntype LogEmitter interface {\n\tDrainLogs() []LogEntry\n}\n```\nLogEmitter is implemented by modules that produce log entries. The log collector auto-discovers services implementing this interface.\n\n```go\ntype LogEntry struct {\n\tTimestamp time.Time `json:\"timestamp\"`\n\tModule    string    `json:\"module\"`\n\tLevel     string    `json:\"level\"`\n\tMessage   string    `json:\"message\"`\n}\n```\nLogEntry represents a single log message collected from a module.\n\n```go\ntype LogHTTPHandler struct {\n\tHandler http.HandlerFunc\n}\n```\nLogHTTPHandler adapts an http.HandlerFunc to the HTTPHandler interface.\n\n```go\nfunc (h *LogHTTPHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle implements the HTTPHandler interface.\n\n```go\ntype LogStep struct {\n\t// contains filtered or unexported fields\n}\n```\nLogStep logs a template-resolved message at a specified level.\n\n```go\nfunc (s *LogStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the message template and logs it at the configured level.\n\n```go\nfunc (s *LogStep) Name() string\n```\nName returns the step name.\n\n```go\ntype LoggingMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nLoggingMiddleware provides request logging\n\n```go\nfunc NewLoggingMiddleware(name string, logLevel string) *LoggingMiddleware\n```\nNewLoggingMiddleware creates a new logging middleware\n\n```go\nfunc (m *LoggingMiddleware) Init(app modular.Application) error\n```\nInit initializes the middleware\n\n```go\nfunc (m *LoggingMiddleware) Name() string\n```\nName returns the module name\n\n```go\nfunc (m *LoggingMiddleware) Process(next http.Handler) http.Handler\n```\nProcess implements middleware processing\n\n```go\nfunc (m *LoggingMiddleware) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this middleware\n\n```go\nfunc (m *LoggingMiddleware) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this middleware\n\n```go\ntype M2MAuthModule struct {\n\t// contains filtered or unexported fields\n}\n```\nM2MAuthModule provides machine-to-machine (server-to-server) OAuth2 authentication. It supports the client\\_credentials grant and the JWT-bearer grant, and can issue tokens signed with either HS256 (shared secret) or ES256 (ECDSA P-256).\n\n```go\nfunc NewM2MAuthModule(name string, hmacSecret string, tokenExpiry time.Duration, issuer string) *M2MAuthModule\n```\nNewM2MAuthModule creates a new M2MAuthModule with HS256 signing. Use SetECDSAKey or GenerateECDSAKey to switch to ES256 signing.\n\n```go\nfunc (m *M2MAuthModule) AddTrustedKey(keyID string, pubKey *ecdsa.PublicKey)\n```\nAddTrustedKey registers a trusted ECDSA public key for JWT-bearer assertion validation. The keyID is used to look up the key; it can be an issuer name or any unique identifier.\n\n```go\nfunc (m *M2MAuthModule) AddTrustedKeyFromPEM(issuer, publicKeyPEM string, audiences []string, claimMapping map[string]string) error\n```\nAddTrustedKeyFromPEM parses a PEM-encoded EC public key and registers it as a trusted key for JWT-bearer assertion validation.  Literal \\`\\\\n\\` sequences in the PEM string are normalised to real newlines so that env-var-injected keys (Docker/Kubernetes) work without additional preprocessing by the caller.\n\naudiences is an optional list; when non-empty the assertion's \\`aud\\` claim must match at least one entry.  claimMapping renames external claims before they are forwarded into the issued token (map key = external name, map value = local name).\n\n```go\nfunc (m *M2MAuthModule) Authenticate(tokenStr string) (bool, map[string]any, error)\n```\nAuthenticate implements the AuthProvider interface so M2MAuthModule can be used as a provider in AuthMiddleware.  It validates the token's signature using the configured algorithm and returns the embedded claims. Tokens whose JTI has been revoked via the /oauth/revoke endpoint are rejected.\n\n```go\nfunc (m *M2MAuthModule) GenerateECDSAKey() error\n```\nGenerateECDSAKey generates a new P-256 key pair and switches the module to ES256 signing.\n\n```go\nfunc (m *M2MAuthModule) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle routes M2M OAuth2 requests.\n\nRoutes (path suffixes are configurable via SetEndpoints):\n\n\tPOST \u003cendpoints.Token\u003e      — token endpoint (client_credentials + jwt-bearer grants)\n\tPOST \u003cendpoints.Revoke\u003e     — token revocation (RFC 7009)\n\tPOST \u003cendpoints.Introspect\u003e — token introspection (RFC 7662)\n\tGET  \u003cendpoints.JWKS\u003e       — JSON Web Key Set (ES256 public key)\n\n```go\nfunc (m *M2MAuthModule) Init(_ modular.Application) error\n```\nInit validates the module configuration. It also surfaces any key-setup error that occurred in the factory (stored in initErr).\n\n```go\nfunc (m *M2MAuthModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *M2MAuthModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (m *M2MAuthModule) RegisterClient(client M2MClient)\n```\nRegisterClient registers a new OAuth2 client.\n\n```go\nfunc (m *M2MAuthModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns an empty list (no external dependencies).\n\n```go\nfunc (m *M2MAuthModule) SetECDSAKey(pemKey string) error\n```\nSetECDSAKey loads a PEM-encoded EC private key and switches the module to ES256 signing. Only P-256 keys are accepted; other curves are rejected.\n\n```go\nfunc (m *M2MAuthModule) SetEndpoints(paths M2MEndpointPaths) error\n```\nSetEndpoints overrides the URL path suffixes used by Handle() to route incoming requests to the token, revocation, introspection, and JWKS sub-handlers. Any empty field in paths is left at its current value (defaulting to the standard paths set by NewM2MAuthModule).\n\nEach path must begin with '/' and all four resulting paths must be distinct to prevent ambiguous suffix matching. An error is returned if validation fails; the module's previous endpoint configuration is not modified.\n\nExample – to match Fosite/Auth0-style paths:\n\n\tif err := m.SetEndpoints(M2MEndpointPaths{\n\t    Revoke:     \"/oauth/token/revoke\",\n\t    Introspect: \"/oauth/token/introspect\",\n\t}); err != nil {\n\t    // handle error\n\t}\n\n```go\nfunc (m *M2MAuthModule) SetInitErr(err error)\n```\nSetInitErr stores a deferred initialization error to be returned by Init(). This is used by factory functions which cannot return errors directly.\n\n```go\nfunc (m *M2MAuthModule) SetIntrospectPolicy(allowOthers bool, requiredScope, requiredClaim, requiredClaimVal string)\n```\nSetIntrospectPolicy configures access control for the POST /oauth/introspect endpoint.\n\nBy default (allowOthers=false) only self-inspection is permitted: a caller may only introspect its own token (the token being inspected must have the same sub as the authenticated caller's identity).\n\nWhen allowOthers=true, any authenticated caller may introspect any token. Two optional prerequisites can narrow this further when the caller authenticates with a Bearer token:\n\n  - requiredScope: the caller's token must contain this scope (e.g. \"introspect:admin\").\n  - requiredClaim / requiredClaimVal: the caller's token must have this claim, and if requiredClaimVal is non-empty, the claim value must equal that string.\n\nCallers authenticating via HTTP Basic Auth (client\\_id + client\\_secret) are always considered admin-level and satisfy any scope/claim requirement when allowOthers=true.\n\n```go\nfunc (m *M2MAuthModule) SetRevocationStore(store TokenRevocationStore)\n```\nSetRevocationStore configures an optional persistent backend for token revocations. When set, every call to POST /oauth/revoke will also call store.RevokeToken. Revocation checks consult the store in addition to the in-memory blacklist, allowing revocations to survive process restarts.\n\nThe store is called with a background context. Pass nil to remove a previously set store.\n\n```go\ntype M2MClient struct {\n\tClientID     string         `json:\"clientId\"`\n\tClientSecret string         `json:\"clientSecret\"` //nolint:gosec // G117: config DTO field\n\tDescription  string         `json:\"description,omitempty\"`\n\tScopes       []string       `json:\"scopes,omitempty\"`\n\tClaims       map[string]any `json:\"claims,omitempty\"`\n}\n```\nM2MClient represents a registered machine-to-machine OAuth2 client.\n\n```go\ntype M2MEndpointPaths struct {\n\t// Token is the path suffix for the token endpoint (default: /oauth/token).\n\tToken string\n\t// Revoke is the path suffix for the revocation endpoint (default: /oauth/revoke).\n\tRevoke string\n\t// Introspect is the path suffix for the introspection endpoint (default: /oauth/introspect).\n\tIntrospect string\n\t// JWKS is the path suffix for the JWKS endpoint (default: /oauth/jwks).\n\tJWKS string\n}\n```\nM2MEndpointPaths configures the URL path suffixes for the OAuth2 endpoints exposed by the M2M auth module. Each field is matched using strings.HasSuffix against the incoming request path, so a prefix such as /api/v1 is allowed.\n\nThe zero value is not useful; use DefaultM2MEndpointPaths() to obtain defaults.\n\n```go\nfunc DefaultM2MEndpointPaths() M2MEndpointPaths\n```\nDefaultM2MEndpointPaths returns the default OAuth2 endpoint path suffixes.\n\n```go\ntype MCPRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nMCPRegistry tracks all MCP servers and tools for audit and admin purposes.\n\n```go\nfunc NewMCPRegistry() *MCPRegistry\n```\nNewMCPRegistry creates a new, empty MCPRegistry.\n\n```go\nfunc (r *MCPRegistry) HandleServers(w http.ResponseWriter, _ *http.Request)\n```\nHandleServers writes the registered MCP servers as JSON. Suitable for use as an http.HandlerFunc.\n\n```go\nfunc (r *MCPRegistry) HandleTools(w http.ResponseWriter, _ *http.Request)\n```\nHandleTools writes all tools across all registered servers as JSON. Suitable for use as an http.HandlerFunc.\n\n```go\nfunc (r *MCPRegistry) ListAllTools() []MCPToolInfo\n```\nListAllTools returns all tools across all registered servers, annotated with their origin.\n\n```go\nfunc (r *MCPRegistry) ListServers() []MCPServerInfo\n```\nListServers returns a snapshot of all registered MCP servers.\n\n```go\nfunc (r *MCPRegistry) Logger() *slog.Logger\n```\nLogger returns the logger used by this registry.\n\n```go\nfunc (r *MCPRegistry) RegisterServer(name string, info MCPServerInfo)\n```\nRegisterServer adds or replaces an MCP server entry in the registry. The info.Name field is set to name to ensure consistent tool listings.\n\n```go\nfunc (r *MCPRegistry) UnregisterServer(name string)\n```\nUnregisterServer removes a server from the registry.\n\n```go\ntype MCPRegistryConfig struct {\n\tLogOnInit      bool `yaml:\"log_on_init\" json:\"log_on_init\"`\n\tExposeAdminAPI bool `yaml:\"expose_admin_api\" json:\"expose_admin_api\"`\n\tAuditToolCalls bool `yaml:\"audit_tool_calls\" json:\"audit_tool_calls\"`\n}\n```\nMCPRegistryConfig configures the mcp.registry module.\n\n```go\ntype MCPServerInfo struct {\n\tName  string   `json:\"name\"`\n\tType  string   `json:\"type\"` // \"in-process\", \"workflow\", \"external\"\n\tTools []string `json:\"tools\"`\n}\n```\nMCPServerInfo describes a registered MCP server.\n\n```go\ntype MCPToolDefinition struct {\n\tName        string             `json:\"name\"`\n\tDescription string             `json:\"description\"`\n\tInputSchema MCPToolInputSchema `json:\"inputSchema\"`\n}\n```\nMCPToolDefinition is the MCP-compatible tool schema used for tool discovery.\n\n```go\ntype MCPToolInfo struct {\n\tName       string `json:\"name\"`\n\tServerName string `json:\"server_name\"`\n\tServerType string `json:\"server_type\"`\n}\n```\nMCPToolInfo describes a tool along with its server origin.\n\n```go\ntype MCPToolInputSchema struct {\n\tType       string                    `json:\"type\"`\n\tProperties map[string]MCPToolPropDef `json:\"properties\"`\n\tRequired   []string                  `json:\"required,omitempty\"`\n}\n```\nMCPToolInputSchema is the JSON Schema for an MCP tool's parameters.\n\n```go\ntype MCPToolParameter struct {\n\tName        string   `yaml:\"name\" json:\"name\"`\n\tType        string   `yaml:\"type\" json:\"type\"` // string, integer, number, boolean, array, object\n\tRequired    bool     `yaml:\"required\" json:\"required\"`\n\tDescription string   `yaml:\"description,omitempty\" json:\"description,omitempty\"`\n\tEnum        []string `yaml:\"enum,omitempty\" json:\"enum,omitempty\"`\n}\n```\nMCPToolParameter defines a parameter for an MCP tool exposed via a pipeline trigger.\n\n```go\ntype MCPToolPropDef struct {\n\tType        string   `json:\"type\"`\n\tDescription string   `json:\"description,omitempty\"`\n\tEnum        []string `json:\"enum,omitempty\"`\n}\n```\nMCPToolPropDef is a single property definition in the JSON Schema for tool inputs.\n\n```go\ntype MCPToolTrigger struct {\n\t// contains filtered or unexported fields\n}\n```\nMCPToolTrigger implements interfaces.Trigger for the mcp\\_tool trigger type. It maps MCP tool calls to pipeline executions.\n\n```go\nfunc NewMCPToolTrigger() *MCPToolTrigger\n```\nNewMCPToolTrigger creates a new MCPToolTrigger.\n\n```go\nfunc (t *MCPToolTrigger) Configure(app modular.Application, triggerConfig any) error\n```\nConfigure processes a single tool→pipeline mapping from a pipeline's trigger config. The enriched config map must contain:\n\n\ttool_name     — the MCP tool name (e.g. \"analyze_logs\")\n\tworkflowType  — pipeline identifier (e.g. \"pipeline:analyze-logs\"), injected by engine\n\nOptional fields: description, parameters.\n\n```go\nfunc (t *MCPToolTrigger) Dependencies() []string\n```\nDependencies returns nil — the MCP tool trigger has no module dependencies.\n\n```go\nfunc (t *MCPToolTrigger) GetRuntime(toolName string) (*MCPToolTriggerRuntime, bool)\n```\nGetRuntime returns the runtime for the given tool name, if registered.\n\n```go\nfunc (t *MCPToolTrigger) Init(_ modular.Application) error\n```\nInit is a no-op.\n\n```go\nfunc (t *MCPToolTrigger) ListTools() []MCPToolDefinition\n```\nListTools returns MCP tool definitions for all registered tool pipelines.\n\n```go\nfunc (t *MCPToolTrigger) Name() string\n```\nName returns the trigger's canonical name.\n\n```go\nfunc (t *MCPToolTrigger) Start(_ context.Context) error\n```\nStart is a no-op — MCP tool calls are dispatched synchronously.\n\n```go\nfunc (t *MCPToolTrigger) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\ntype MCPToolTriggerConfig struct {\n\tToolName    string             `yaml:\"tool_name\" json:\"tool_name\"`\n\tDescription string             `yaml:\"description\" json:\"description\"`\n\tParameters  []MCPToolParameter `yaml:\"parameters,omitempty\" json:\"parameters,omitempty\"`\n}\n```\nMCPToolTriggerConfig configures a pipeline to be exposed as an MCP tool.\n\n```go\nfunc (c *MCPToolTriggerConfig) ToToolDefinition() MCPToolDefinition\n```\nToToolDefinition converts the trigger config to an MCP tool definition.\n\n```go\ntype MCPToolTriggerRuntime struct {\n\t// contains filtered or unexported fields\n}\n```\nMCPToolTriggerRuntime bridges MCP tool calls to pipeline execution. It is created by MCPToolTrigger.Configure() for each registered pipeline tool.\n\n```go\nfunc NewMCPToolTriggerRuntime(config MCPToolTriggerConfig, pipeline string, executor interfaces.PipelineExecutor) *MCPToolTriggerRuntime\n```\nNewMCPToolTriggerRuntime creates a runtime bound to a specific pipeline.\n\n```go\nfunc (r *MCPToolTriggerRuntime) Definition() MCPToolDefinition\n```\nDefinition returns the MCP tool definition for this runtime.\n\n```go\nfunc (r *MCPToolTriggerRuntime) HandleToolCall(ctx context.Context, args map[string]any) (any, error)\n```\nHandleToolCall executes the bound pipeline with the given tool arguments.\n\n```go\nfunc (r *MCPToolTriggerRuntime) ToolName() string\n```\nToolName returns the MCP tool name for this runtime.\n\n```go\ntype MapCarrier struct {\n\t// contains filtered or unexported fields\n}\n```\nMapCarrier wraps a map\\[string]string as a TextMapCarrier for use with OTEL propagators.\n\n```go\nfunc NewMapCarrier(m map[string]string) MapCarrier\n```\nNewMapCarrier creates a MapCarrier backed by the given map. If m is nil, an empty map is allocated.\n\n```go\nfunc (c MapCarrier) Get(key string) string\n```\n\n```go\nfunc (c MapCarrier) GetMap() map[string]string\n```\nGetMap returns the underlying map.\n\n```go\nfunc (c MapCarrier) Keys() []string\n```\n\n```go\nfunc (c MapCarrier) Set(key, value string)\n```\n\n```go\ntype MarketplaceDetailStep struct {\n\t// contains filtered or unexported fields\n}\n```\nMarketplaceDetailStep retrieves detailed info for a named plugin.\n\n```go\nfunc (s *MarketplaceDetailStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *MarketplaceDetailStep) Name() string\n```\n\n```go\ntype MarketplaceEntry struct {\n\tName        string   `json:\"name\"`\n\tVersion     string   `json:\"version\"`\n\tDescription string   `json:\"description\"`\n\tAuthor      string   `json:\"author\"`\n\tCategory    string   `json:\"category\"`\n\tTags        []string `json:\"tags\"`\n\tDownloads   int      `json:\"downloads\"`\n\tRating      float64  `json:\"rating\"`\n\tInstalled   bool     `json:\"installed\"`\n\tInstalledAt string   `json:\"installedAt,omitempty\"`\n}\n```\nMarketplaceEntry is a plugin entry in the marketplace registry.\n\n```go\ntype MarketplaceInstallStep struct {\n\t// contains filtered or unexported fields\n}\n```\nMarketplaceInstallStep triggers installation of a named plugin.\n\n```go\nfunc (s *MarketplaceInstallStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *MarketplaceInstallStep) Name() string\n```\n\n```go\ntype MarketplaceInstalledStep struct {\n\t// contains filtered or unexported fields\n}\n```\nMarketplaceInstalledStep lists all installed plugins.\n\n```go\nfunc (s *MarketplaceInstalledStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *MarketplaceInstalledStep) Name() string\n```\n\n```go\ntype MarketplaceRegistry interface {\n\tSearch(query, category string, tags []string) ([]MarketplaceEntry, error)\n\tDetail(name string) (*MarketplaceEntry, error)\n\tInstall(name string) error\n\tUninstall(name string) error\n\tUpdate(name string) (*MarketplaceEntry, error)\n\tListInstalled() ([]MarketplaceEntry, error)\n}\n```\nMarketplaceRegistry is the backend used by marketplace pipeline steps.\n\n```go\ntype MarketplaceSearchStep struct {\n\t// contains filtered or unexported fields\n}\n```\nMarketplaceSearchStep searches the plugin registry.\n\n```go\nfunc (s *MarketplaceSearchStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *MarketplaceSearchStep) Name() string\n```\n\n```go\ntype MarketplaceUninstallStep struct {\n\t// contains filtered or unexported fields\n}\n```\nMarketplaceUninstallStep removes an installed plugin.\n\n```go\nfunc (s *MarketplaceUninstallStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *MarketplaceUninstallStep) Name() string\n```\n\n```go\ntype MarketplaceUpdateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nMarketplaceUpdateStep updates an installed plugin to its latest version.\n\n```go\nfunc (s *MarketplaceUpdateStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *MarketplaceUpdateStep) Name() string\n```\n\n```go\ntype MemoryDeployHistoryStore struct {\n\t// contains filtered or unexported fields\n}\n```\nMemoryDeployHistoryStore is an in-memory DeployHistoryStore used for testing.\n\n```go\nfunc NewMemoryDeployHistoryStore() *MemoryDeployHistoryStore\n```\nNewMemoryDeployHistoryStore creates a new in-memory history store.\n\n```go\nfunc (s *MemoryDeployHistoryStore) GetHistory(service string) ([]DeployHistoryEntry, error)\n```\nGetHistory returns all entries for the service, newest first.\n\n```go\nfunc (s *MemoryDeployHistoryStore) GetVersion(service, version string) (*DeployHistoryEntry, error)\n```\nGetVersion returns the entry for the requested version, or the most recent previous entry when version is \"previous\".\n\n```go\nfunc (s *MemoryDeployHistoryStore) RecordDeploy(service, image, version string) error\n```\nRecordDeploy appends a deployment entry for the service.\n\n```go\ntype MemoryIaCStateStore struct {\n\t// contains filtered or unexported fields\n}\n```\nMemoryIaCStateStore is an in-memory implementation of IaCStateStore. Suitable for testing and development; state is lost on restart.\n\n```go\nfunc NewMemoryIaCStateStore() *MemoryIaCStateStore\n```\nNewMemoryIaCStateStore creates a new empty in-memory state store.\n\n```go\nfunc (s *MemoryIaCStateStore) DeleteState(ctx context.Context, resourceID string) error\n```\nDeleteState removes a state record by resource ID.\n\n```go\nfunc (s *MemoryIaCStateStore) GetState(ctx context.Context, resourceID string) (*IaCState, error)\n```\nGetState retrieves a state record by resource ID. Returns nil, nil when not found.\n\n```go\nfunc (s *MemoryIaCStateStore) ListStates(ctx context.Context, filter map[string]string) ([]*IaCState, error)\n```\nListStates returns all state records matching the provided key=value filter. Supported filter keys: \"resource\\_type\", \"provider\", \"status\".\n\n```go\nfunc (s *MemoryIaCStateStore) Lock(ctx context.Context, resourceID string) error\n```\nLock acquires an exclusive advisory lock for the given resource ID.\n\n```go\nfunc (s *MemoryIaCStateStore) SaveState(ctx context.Context, state *IaCState) error\n```\nSaveState inserts or replaces a state record.\n\n```go\nfunc (s *MemoryIaCStateStore) Unlock(ctx context.Context, resourceID string) error\n```\nUnlock releases the advisory lock for the given resource ID.\n\n```go\ntype MemoryNoSQL struct {\n\t// contains filtered or unexported fields\n}\n```\nMemoryNoSQL is a thread-safe in-memory NoSQL store. type: nosql.memory — useful for testing and local scenarios.\n\n```go\nfunc NewMemoryNoSQL(name string, cfg MemoryNoSQLConfig) *MemoryNoSQL\n```\nNewMemoryNoSQL creates a new MemoryNoSQL module.\n\n```go\nfunc (m *MemoryNoSQL) Delete(_ context.Context, key string) error\n```\nDelete removes an item by key. Does not error if key does not exist.\n\n```go\nfunc (m *MemoryNoSQL) Get(_ context.Context, key string) (map[string]any, error)\n```\nGet retrieves an item by key. Returns nil, nil when the key does not exist.\n\n```go\nfunc (m *MemoryNoSQL) Init(_ modular.Application) error\n```\n\n```go\nfunc (m *MemoryNoSQL) Name() string\n```\n\n```go\nfunc (m *MemoryNoSQL) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *MemoryNoSQL) Put(_ context.Context, key string, item map[string]any) error\n```\nPut inserts or replaces an item.\n\n```go\nfunc (m *MemoryNoSQL) Query(_ context.Context, params map[string]any) ([]map[string]any, error)\n```\nQuery returns items matching the params filter. Supported params: \"prefix\" (string key prefix filter).\n\n```go\nfunc (m *MemoryNoSQL) RequiresServices() []modular.ServiceDependency\n```\n\n```go\ntype MemoryNoSQLConfig struct {\n\tCollection string `json:\"collection\" yaml:\"collection\"`\n}\n```\nMemoryNoSQLConfig holds configuration for the nosql.memory module.\n\n```go\ntype MessageBroker interface {\n\tProducer() MessageProducer\n\tConsumer() MessageConsumer\n\tSubscribe(topic string, handler MessageHandler) error\n\tStart(ctx context.Context) error\n\tStop(ctx context.Context) error\n}\n```\nMessageBroker interface for message broker modules\n\n```go\ntype MessageConsumer interface {\n\tSubscribe(topic string, handler MessageHandler) error\n\tUnsubscribe(topic string) error\n}\n```\nMessageConsumer interface for consuming messages\n\n```go\ntype MessageHandler interface {\n\tHandleMessage(message []byte) error\n}\n```\nMessageHandler interface for handling messages\n\n```go\ntype MessageHandlerAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\nMessageHandlerAdapter adapts a function to the MessageHandler interface\n\n```go\nfunc (a *MessageHandlerAdapter) HandleMessage(msg []byte) error\n```\nHandleMessage implements the MessageHandler interface\n\n```go\ntype MessageHandlerJobAdapter struct {\n\t// contains filtered or unexported fields\n}\n```\nMessageHandlerJobAdapter adapts a MessageHandler to the Job interface\n\n```go\nfunc NewMessageHandlerJobAdapter(handler MessageHandler) *MessageHandlerJobAdapter\n```\nNewMessageHandlerJobAdapter creates a new adapter from MessageHandler to Job\n\n```go\nfunc (a *MessageHandlerJobAdapter) Execute(ctx context.Context) error\n```\nExecute runs the job by calling HandleMessage with an empty message\n\n```go\ntype MessageProducer interface {\n\tSendMessage(topic string, message []byte) error\n}\n```\nMessageProducer interface for producing messages\n\n```go\ntype MetricsCollector struct {\n\tWorkflowExecutions  *prometheus.CounterVec\n\tWorkflowDuration    *prometheus.HistogramVec\n\tHTTPRequestsTotal   *prometheus.CounterVec\n\tHTTPRequestDuration *prometheus.HistogramVec\n\tModuleOperations    *prometheus.CounterVec\n\tActiveWorkflows     *prometheus.GaugeVec\n\t// contains filtered or unexported fields\n}\n```\nMetricsCollector wraps Prometheus metrics for the workflow engine. It registers as service \"metrics.collector\" and provides pre-defined metric vectors.\n\n```go\nfunc NewMetricsCollector(name string) *MetricsCollector\n```\nNewMetricsCollector creates a new MetricsCollector with its own Prometheus registry.\n\n```go\nfunc NewMetricsCollectorWithConfig(name string, cfg MetricsCollectorConfig) *MetricsCollector\n```\nNewMetricsCollectorWithConfig creates a new MetricsCollector with the given config.\n\n```go\nfunc (m *MetricsCollector) Gather() ([]*dto.MetricFamily, error)\n```\nGather returns the current Prometheus metric families without exposing an HTTP endpoint.\n\n```go\nfunc (m *MetricsCollector) Init(app modular.Application) error\n```\nInit registers the metrics collector as a service.\n\n```go\nfunc (m *MetricsCollector) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *MetricsCollector) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (m *MetricsCollector) RecordHTTPRequest(method, path string, statusCode int, duration time.Duration)\n```\nRecordHTTPRequest records an HTTP request metric.\n\n```go\nfunc (m *MetricsCollector) RecordModuleOperation(module, operation, status string)\n```\nRecordModuleOperation records a module operation metric.\n\n```go\nfunc (m *MetricsCollector) RecordWorkflowDuration(workflowType, action string, duration time.Duration)\n```\nRecordWorkflowDuration records the duration of a workflow execution.\n\n```go\nfunc (m *MetricsCollector) RecordWorkflowExecution(workflowType, action, status string)\n```\nRecordWorkflowExecution increments the workflow execution counter.\n\n```go\nfunc (m *MetricsCollector) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\nfunc (m *MetricsCollector) SetActiveWorkflows(workflowType string, count float64)\n```\nSetActiveWorkflows sets the gauge for active workflows of a given type.\n\n```go\ntype MetricsCollectorConfig struct {\n\tNamespace      string   `yaml:\"namespace\" json:\"namespace\" editor:\"type=string,description=Prometheus metric namespace prefix,default=workflow,placeholder=workflow\"`\n\tSubsystem      string   `yaml:\"subsystem\" json:\"subsystem\" editor:\"type=string,description=Prometheus metric subsystem,placeholder=api\"`\n\tEnabledMetrics []string `yaml:\"enabledMetrics\" json:\"enabledMetrics\" editor:\"type=array,arrayItemType=string,description=Which metric groups to register (workflow http module active_workflows)\"`\n}\n```\nMetricsCollectorConfig holds configuration for the MetricsCollector module.\n\n```go\nfunc DefaultMetricsCollectorConfig() MetricsCollectorConfig\n```\nDefaultMetricsCollectorConfig returns the default configuration.\n\n```go\ntype MetricsProvider interface {\n\t// QueryMetric evaluates a metrics query over the given window.\n\t// It returns the numeric result and nil on success, or an error on failure.\n\tQueryMetric(ctx context.Context, query string, window time.Duration) (float64, error)\n}\n```\nMetricsProvider is an optional interface that a DeployDriver may implement to support step.deploy\\_verify metric checks.\n\n```go\ntype MockApplication struct {\n\tServices         map[string]any\n\tConfig           map[string]any\n\tConfigSectionMap map[string]modular.ConfigProvider\n\tMockLogger       *MockLogger\n\tModules          map[string]modular.Module\n}\n```\nMockApplication is a mock implementation of modular.Application for testing\n\n```go\nfunc NewMockApplication() *MockApplication\n```\nNewMockApplication creates a new instance of a MockApplication\n\n```go\nfunc (a *MockApplication) ConfigProvider() modular.ConfigProvider\n```\n\n```go\nfunc (a *MockApplication) ConfigSections() map[string]modular.ConfigProvider\n```\n\n```go\nfunc (a *MockApplication) GetAllModules() map[string]modular.Module\n```\nGetAllModules returns a map of all registered modules\n\n```go\nfunc (a *MockApplication) GetConfig() map[string]any\n```\n\n```go\nfunc (a *MockApplication) GetConfigSection(section string) (modular.ConfigProvider, error)\n```\n\n```go\nfunc (a *MockApplication) GetModule(name string) modular.Module\n```\nGetModule returns the module with the given name\n\n```go\nfunc (a *MockApplication) GetService(name string, out any) error\n```\n\n```go\nfunc (a *MockApplication) GetServiceEntry(serviceName string) (*modular.ServiceRegistryEntry, bool)\n```\nGetServiceEntry retrieves detailed information about a registered service\n\n```go\nfunc (a *MockApplication) GetServicesByInterface(interfaceType reflect.Type) []*modular.ServiceRegistryEntry\n```\nGetServicesByInterface returns all services that implement the given interface\n\n```go\nfunc (a *MockApplication) GetServicesByModule(moduleName string) []string\n```\nGetServicesByModule returns all services provided by a specific module\n\n```go\nfunc (a *MockApplication) Init() error\n```\n\n```go\nfunc (a *MockApplication) IsVerboseConfig() bool\n```\nIsVerboseConfig returns whether verbose config debugging is enabled\n\n```go\nfunc (a *MockApplication) Logger() modular.Logger\n```\n\n```go\nfunc (a *MockApplication) OnConfigLoaded(hook func(modular.Application) error)\n```\nOnConfigLoaded registers a callback to run after config loading\n\n```go\nfunc (a *MockApplication) RegisterConfigSection(name string, config modular.ConfigProvider)\n```\n\n```go\nfunc (a *MockApplication) RegisterModule(module modular.Module)\n```\nRegisterModule registers a module with the application\n\n```go\nfunc (a *MockApplication) RegisterService(name string, service any) error\n```\n\n```go\nfunc (a *MockApplication) Run() error\n```\nRun satisfies the modular.Application interface\n\n```go\nfunc (a *MockApplication) SetLogger(logger modular.Logger)\n```\nSetLogger sets the application's logger\n\n```go\nfunc (a *MockApplication) SetVerboseConfig(enabled bool)\n```\nSetVerboseConfig sets verbose config debugging (no-op for tests)\n\n```go\nfunc (a *MockApplication) Start() error\n```\n\n```go\nfunc (a *MockApplication) StartTime() time.Time\n```\nStartTime returns the time when the application was started\n\n```go\nfunc (a *MockApplication) Stop() error\n```\n\n```go\nfunc (a *MockApplication) SvcRegistry() modular.ServiceRegistry\n```\nSvcRegistry satisfies the modular.Application interface\n\n```go\ntype MockConfigProvider struct {\n\tConfig map[string]any // Changed from lowercase config to Config to match usage elsewhere\n}\n```\nMockConfigProvider is a mock implementation of modular.ConfigProvider for testing\n\n```go\nfunc (p *MockConfigProvider) GetConfig() any\n```\n\n```go\ntype MockLogger struct {\n\tMessages []string\n}\n```\nMockLogger implements modular.Logger for testing\n\n```go\nfunc (l *MockLogger) Debug(format string, args ...any)\n```\n\n```go\nfunc (l *MockLogger) Error(format string, args ...any)\n```\n\n```go\nfunc (l *MockLogger) Fatal(format string, args ...any)\n```\n\n```go\nfunc (l *MockLogger) Info(format string, args ...any)\n```\n\n```go\nfunc (l *MockLogger) Warn(format string, args ...any)\n```\n\n```go\ntype MockScheduler struct {\n\t// contains filtered or unexported fields\n}\n```\nMockScheduler is a mock implementation of the Scheduler interface\n\n```go\nfunc NewMockScheduler() *MockScheduler\n```\n\n```go\nfunc (s *MockScheduler) Init(registry modular.ServiceRegistry) error\n```\n\n```go\nfunc (s *MockScheduler) Name() string\n```\n\n```go\nfunc (s *MockScheduler) Schedule(job Job) error\n```\n\n```go\nfunc (s *MockScheduler) SetCronExpression(index int, cronExpression string)\n```\nFor our tests, we'll add this method to set the cron expression for a scheduled job\n\n```go\nfunc (s *MockScheduler) Start(ctx context.Context) error\n```\n\n```go\nfunc (s *MockScheduler) Stop(ctx context.Context) error\n```\n\n```go\ntype MockWorkflowEngine struct {\n\t// contains filtered or unexported fields\n}\n```\nMockWorkflowEngine is a mock implementation of the WorkflowEngine interface\n\n```go\nfunc NewMockWorkflowEngine() *MockWorkflowEngine\n```\n\n```go\nfunc (e *MockWorkflowEngine) TriggerWorkflow(ctx context.Context, workflowType string, action string, data map[string]any) error\n```\n\n```go\ntype ModuleNamespace struct {\n\t// contains filtered or unexported fields\n}\n```\nModuleNamespace represents the legacy struct (for backward compatibility)\n\n```go\nfunc NewModuleNamespace(prefix string, suffix string) *ModuleNamespace\n```\nNewModuleNamespace creates a new module namespace with optional prefix and suffix\n\n```go\nfunc (ns *ModuleNamespace) FormatName(baseName string) string\n```\nFormatName formats a module name with the namespace prefix/suffix\n\n```go\nfunc (ns *ModuleNamespace) ResolveDependency(dependencyName string) string\n```\nResolveDependency formats a dependency name with the namespace prefix/suffix\n\n```go\nfunc (ns *ModuleNamespace) ResolveServiceName(serviceName string) string\n```\nResolveServiceName formats a service name with the namespace prefix/suffix\n\n```go\ntype ModuleNamespaceProvider interface {\n\t// FormatName formats a module name with the namespace\n\tFormatName(baseName string) string\n\n\t// ResolveDependency formats a dependency name with the namespace\n\tResolveDependency(dependencyName string) string\n\n\t// ResolveServiceName formats a service name with the namespace\n\tResolveServiceName(serviceName string) string\n\n\t// ValidateModuleName checks if a module name conforms to namespace requirements\n\tValidateModuleName(moduleName string) error\n}\n```\nModuleNamespaceProvider defines the interface for module namespace functionality\n\n```go\ntype ModuleNamespaceProviderFunc struct {\n\tFormatNameFunc         func(baseName string) string\n\tResolveDependencyFunc  func(dependencyName string) string\n\tResolveServiceNameFunc func(serviceName string) string\n\tValidateModuleNameFunc func(moduleName string) error\n}\n```\nModuleNamespaceProviderFunc provides a functional implementation of ModuleNamespaceProvider\n\n```go\nfunc (m ModuleNamespaceProviderFunc) FormatName(baseName string) string\n```\nFormatName formats a base name with the namespace\n\n```go\nfunc (m ModuleNamespaceProviderFunc) ResolveDependency(dependencyName string) string\n```\nResolveDependency resolves a dependency name with the namespace\n\n```go\nfunc (m ModuleNamespaceProviderFunc) ResolveServiceName(serviceName string) string\n```\nResolveServiceName resolves a service name with the namespace\n\n```go\nfunc (m ModuleNamespaceProviderFunc) ValidateModuleName(moduleName string) error\n```\nValidateModuleName validates a module name\n\n```go\ntype MongoDBNoSQL struct {\n\t// contains filtered or unexported fields\n}\n```\nMongoDBNoSQL is the nosql.mongodb module. In memory mode (uri: \"memory://\") it delegates to MemoryNoSQL. For real MongoDB, replace backend with a mongo.Collection and implement Get/Put/Delete/Query using FindOne, ReplaceOne, DeleteOne, Find.\n\n```go\nfunc NewMongoDBNoSQL(name string, cfg MongoDBNoSQLConfig) *MongoDBNoSQL\n```\nNewMongoDBNoSQL creates a new MongoDBNoSQL module.\n\n```go\nfunc (m *MongoDBNoSQL) Delete(ctx context.Context, key string) error\n```\n\n```go\nfunc (m *MongoDBNoSQL) Get(ctx context.Context, key string) (map[string]any, error)\n```\n\n```go\nfunc (m *MongoDBNoSQL) Init(_ modular.Application) error\n```\n\n```go\nfunc (m *MongoDBNoSQL) Name() string\n```\n\n```go\nfunc (m *MongoDBNoSQL) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *MongoDBNoSQL) Put(ctx context.Context, key string, item map[string]any) error\n```\n\n```go\nfunc (m *MongoDBNoSQL) Query(ctx context.Context, params map[string]any) ([]map[string]any, error)\n```\n\n```go\nfunc (m *MongoDBNoSQL) RequiresServices() []modular.ServiceDependency\n```\n\n```go\ntype MongoDBNoSQLConfig struct {\n\tURI        string `json:\"uri\"        yaml:\"uri\"` // \"memory://\" =\u003e in-memory fallback\n\tDatabase   string `json:\"database\"   yaml:\"database\"`\n\tCollection string `json:\"collection\" yaml:\"collection\"`\n}\n```\nMongoDBNoSQLConfig holds configuration for the nosql.mongodb module.\n\nFull MongoDB implementation would use:\n\n  - go.mongodb.org/mongo-driver/mongo\n\nWhen uri == \"memory://\" the module falls back to the in-memory backend.\n\n```go\ntype MultiPartitionManager interface {\n\tPartitionManager\n\t// PartitionConfigs returns all configured partition groups.\n\tPartitionConfigs() []PartitionConfig\n\t// EnsurePartitionForKey creates partitions for the specified partition key\n\t// and value on all tables that belong to that partition config. Returns an\n\t// error if no config with that partitionKey is registered.\n\tEnsurePartitionForKey(ctx context.Context, partitionKey, value string) error\n\t// SyncPartitionsForKey syncs partitions for the specified partition key's\n\t// configured source table. No-ops if no sourceTable is configured for that\n\t// key. Returns an error if no config with that partitionKey is registered.\n\tSyncPartitionsForKey(ctx context.Context, partitionKey string) error\n}\n```\nMultiPartitionManager extends PartitionManager for databases that can have more than one partition key configuration (e.g. tenant-partitioned tables AND api-version-partitioned tables in the same database). It is implemented by PartitionedDatabase; the additional methods are primarily meaningful when multiple partition configs are configured.\n\n```go\ntype MultiRegionModule struct {\n\t// contains filtered or unexported fields\n}\n```\nMultiRegionModule manages region-aware deployments with failover and traffic routing. Config:\n\n\tprovider: mock\n\tregions:  list of region definitions (name, provider, endpoint, priority, health_check)\n\tprimary:  primary region name\n\n```go\nfunc NewMultiRegionModule(name string, cfg map[string]any) *MultiRegionModule\n```\nNewMultiRegionModule creates a new MultiRegionModule.\n\n```go\nfunc (m *MultiRegionModule) CheckHealth() ([]RegionHealth, error)\n```\nCheckHealth checks health across all regions.\n\n```go\nfunc (m *MultiRegionModule) Deploy(region string) error\n```\nDeploy deploys to the specified region.\n\n```go\nfunc (m *MultiRegionModule) Failover(from, to string) error\n```\nFailover triggers failover from one region to another.\n\n```go\nfunc (m *MultiRegionModule) Init(app modular.Application) error\n```\nInit initialises the backend and sets up initial state.\n\n```go\nfunc (m *MultiRegionModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *MultiRegionModule) Promote(region string) error\n```\nPromote promotes a region to primary.\n\n```go\nfunc (m *MultiRegionModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *MultiRegionModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil.\n\n```go\nfunc (m *MultiRegionModule) SetWeight(region string, weight int) error\n```\nSetWeight adjusts the traffic weight for a region.\n\n```go\nfunc (m *MultiRegionModule) Status() (*MultiRegionState, error)\n```\nStatus returns the current multi-region state.\n\n```go\nfunc (m *MultiRegionModule) Sync() error\n```\nSync synchronises state/config across all regions.\n\n```go\nfunc (m *MultiRegionModule) Weights() map[string]int\n```\nWeights returns current traffic routing weights.\n\n```go\ntype MultiRegionRoutingModule struct {\n\t// contains filtered or unexported fields\n}\n```\nMultiRegionRoutingModule manages region routing for a tenant deployment. It wraps a MultiRegionModule and provides routing logic (latency or geo). Config:\n\n\tmodule:  name of the platform.region module to route through\n\tmode:    latency | geo (default: latency)\n\n```go\nfunc NewMultiRegionRoutingModule(name string, cfg map[string]any) *MultiRegionRoutingModule\n```\nNewMultiRegionRoutingModule creates a new routing module.\n\n```go\nfunc (r *MultiRegionRoutingModule) Failover(from, to string) error\n```\nFailover transitions a region through the failover state machine. Transitions: healthy/degraded → failed (from), recovering → healthy (to).\n\n```go\nfunc (r *MultiRegionRoutingModule) Init(app modular.Application) error\n```\nInit registers the module as a service and optionally loads region config from the platform.region module.\n\n```go\nfunc (r *MultiRegionRoutingModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (r *MultiRegionRoutingModule) RouteRequest(ctx context.Context) (RegionDeployConfig, error)\n```\nRouteRequest selects the best region based on the configured routing mode.\n\n```go\nfunc (r *MultiRegionRoutingModule) SetRegions(regions []RegionDeployConfig)\n```\nSetRegions configures the regions available for routing.\n\n```go\nfunc (r *MultiRegionRoutingModule) SetState(region string, state RegionFailoverState) error\n```\nSetState directly sets the failover state for a region (for testing / external control).\n\n```go\nfunc (r *MultiRegionRoutingModule) State(region string) (RegionFailoverState, bool)\n```\nState returns the failover state for a region.\n\n```go\nfunc (r *MultiRegionRoutingModule) Weights() map[string]int\n```\nWeights returns the current traffic routing weights.\n\n```go\ntype MultiRegionState struct {\n\tRegions       []RegionHealth `json:\"regions\"`\n\tActiveRegion  string         `json:\"activeRegion\"`\n\tPrimaryRegion string         `json:\"primaryRegion\"`\n\tWeights       map[string]int `json:\"weights\"`\n\tStatus        string         `json:\"status\"` // initializing, active, failing-over, degraded\n}\n```\nMultiRegionState tracks current multi-region deployment state.\n\n```go\ntype NATSBroker struct {\n\t// contains filtered or unexported fields\n}\n```\nNATSBroker implements the MessageBroker interface using NATS.\n\n```go\nfunc NewNATSBroker(name string) *NATSBroker\n```\nNewNATSBroker creates a new NATS message broker.\n\n```go\nfunc (b *NATSBroker) Consumer() MessageConsumer\n```\nConsumer returns the message consumer interface.\n\n```go\nfunc (b *NATSBroker) Init(app modular.Application) error\n```\nInit initializes the module with the application context.\n\n```go\nfunc (b *NATSBroker) Name() string\n```\nName returns the module name.\n\n```go\nfunc (b *NATSBroker) Producer() MessageProducer\n```\nProducer returns the message producer interface.\n\n```go\nfunc (b *NATSBroker) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (b *NATSBroker) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns the services required by this module.\n\n```go\nfunc (b *NATSBroker) SetTLSConfig(cfg tlsutil.TLSConfig)\n```\nSetTLSConfig configures TLS for the NATS broker connection.\n\n```go\nfunc (b *NATSBroker) SetURL(url string)\n```\nSetURL sets the NATS server URL.\n\n```go\nfunc (b *NATSBroker) Start(ctx context.Context) error\n```\nStart connects to NATS and activates any pending subscriptions.\n\n```go\nfunc (b *NATSBroker) Stop(_ context.Context) error\n```\nStop disconnects from NATS.\n\n```go\nfunc (b *NATSBroker) Subscribe(topic string, handler MessageHandler) error\n```\nSubscribe is a convenience method to subscribe a handler to a topic.\n\n```go\ntype NoSQLDeleteStep struct {\n\t// contains filtered or unexported fields\n}\n```\nNoSQLDeleteStep deletes an item by key from a named NoSQL store.\n\n```go\nfunc (s *NoSQLDeleteStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *NoSQLDeleteStep) Name() string\n```\n\n```go\ntype NoSQLGetStep struct {\n\t// contains filtered or unexported fields\n}\n```\nNoSQLGetStep retrieves an item by key from a named NoSQL store.\n\n```go\nfunc (s *NoSQLGetStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *NoSQLGetStep) Name() string\n```\n\n```go\ntype NoSQLPutStep struct {\n\t// contains filtered or unexported fields\n}\n```\nNoSQLPutStep inserts or replaces an item in a named NoSQL store.\n\n```go\nfunc (s *NoSQLPutStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *NoSQLPutStep) Name() string\n```\n\n```go\ntype NoSQLQueryStep struct {\n\t// contains filtered or unexported fields\n}\n```\nNoSQLQueryStep queries items from a named NoSQL store with optional filters.\n\n```go\nfunc (s *NoSQLQueryStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *NoSQLQueryStep) Name() string\n```\n\n```go\ntype NoSQLStore interface {\n\t// Get retrieves an item by key. Returns nil, nil when the key does not exist.\n\tGet(ctx context.Context, key string) (map[string]any, error)\n\n\t// Put inserts or replaces an item.\n\tPut(ctx context.Context, key string, item map[string]any) error\n\n\t// Delete removes an item by key. Does not error if the key does not exist.\n\tDelete(ctx context.Context, key string) error\n\n\t// Query returns all items that match the provided filter params.\n\t// Supported params: \"prefix\" (string) — key prefix filter.\n\tQuery(ctx context.Context, params map[string]any) ([]map[string]any, error)\n}\n```\nNoSQLStore is the common interface implemented by all NoSQL backend modules. Backends: nosql.memory, nosql.dynamodb, nosql.mongodb, nosql.redis.\n\n```go\ntype NodeGroupState struct {\n\tName         string `json:\"name\"`\n\tInstanceType string `json:\"instanceType\"`\n\tMin          int    `json:\"min\"`\n\tMax          int    `json:\"max\"`\n\tCurrent      int    `json:\"current\"`\n}\n```\nNodeGroupState describes a node group within a cluster.\n\n```go\ntype OAuth2Module struct {\n\t// contains filtered or unexported fields\n}\n```\nOAuth2Module implements the OAuth2 authorization code flow for multiple providers.\n\n```go\nfunc NewOAuth2Module(name string, providerCfgs []OAuth2ProviderConfig, jwtAuth *JWTAuthModule) *OAuth2Module\n```\nNewOAuth2Module creates a new OAuth2Module. The jwtAuth parameter is used to issue JWT tokens after successful OAuth2 login.\n\n```go\nfunc (m *OAuth2Module) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle routes OAuth2 requests. Routes handled:\n\n\tGET /auth/oauth2/{provider}/login    — redirect to provider\n\tGET /auth/oauth2/{provider}/callback — exchange code, issue JWT\n\n```go\nfunc (m *OAuth2Module) Init(_ modular.Application) error\n```\nInit is a no-op; dependencies are injected via NewOAuth2Module.\n\n```go\nfunc (m *OAuth2Module) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *OAuth2Module) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (m *OAuth2Module) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns an empty list (dependencies injected directly).\n\n```go\nfunc (m *OAuth2Module) SetJWTAuth(j *JWTAuthModule)\n```\nSetJWTAuth sets the JWTAuthModule used to issue tokens after a successful OAuth2 login.  This is called by the plugin's wiring hook.\n\n```go\ntype OAuth2ProviderConfig struct {\n\tName         string   `json:\"name\"         yaml:\"name\"`\n\tClientID     string   `json:\"clientId\"     yaml:\"clientId\"`\n\tClientSecret string   `json:\"clientSecret\" yaml:\"clientSecret\"` //nolint:gosec // G117: config DTO field for OAuth2 client secret\n\tAuthURL      string   `json:\"authUrl\"      yaml:\"authUrl\"`\n\tTokenURL     string   `json:\"tokenUrl\"     yaml:\"tokenUrl\"`\n\tUserInfoURL  string   `json:\"userInfoUrl\"  yaml:\"userInfoUrl\"`\n\tScopes       []string `json:\"scopes\"       yaml:\"scopes\"`\n\tRedirectURL  string   `json:\"redirectUrl\"  yaml:\"redirectUrl\"`\n}\n```\nOAuth2ProviderConfig holds configuration for a single OAuth2 provider.\n\n```go\ntype OTelMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nOTelMiddleware instruments HTTP requests with OpenTelemetry tracing.\n\n```go\nfunc NewOTelMiddleware(name, serverName string) *OTelMiddleware\n```\nNewOTelMiddleware creates a new OpenTelemetry HTTP tracing middleware.\n\n```go\nfunc (m *OTelMiddleware) Init(_ modular.Application) error\n```\nInit initializes the middleware.\n\n```go\nfunc (m *OTelMiddleware) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *OTelMiddleware) Process(next http.Handler) http.Handler\n```\nProcess wraps the handler with OpenTelemetry HTTP instrumentation.\n\n```go\nfunc (m *OTelMiddleware) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this middleware.\n\n```go\nfunc (m *OTelMiddleware) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this middleware.\n\n```go\nfunc (m *OTelMiddleware) Start(_ context.Context) error\n```\nStart is a no-op for this middleware.\n\n```go\nfunc (m *OTelMiddleware) Stop(_ context.Context) error\n```\nStop is a no-op for this middleware.\n\n```go\ntype OTelTracing struct {\n\t// contains filtered or unexported fields\n}\n```\nOTelTracing provides OpenTelemetry distributed tracing. It implements the modular.Module interface.\n\n```go\nfunc NewOTelTracing(name string) *OTelTracing\n```\nNewOTelTracing creates a new OpenTelemetry tracing module.\n\n```go\nfunc (o *OTelTracing) Init(app modular.Application) error\n```\nInit initializes the module with the application context.\n\n```go\nfunc (o *OTelTracing) Name() string\n```\nName returns the module name.\n\n```go\nfunc (o *OTelTracing) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (o *OTelTracing) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns the services required by this module.\n\n```go\nfunc (o *OTelTracing) SetEndpoint(endpoint string)\n```\nSetEndpoint sets the OTLP endpoint.\n\n```go\nfunc (o *OTelTracing) SetServiceName(serviceName string)\n```\nSetServiceName sets the service name used in traces.\n\n```go\nfunc (o *OTelTracing) Start(ctx context.Context) error\n```\nStart initializes the OTLP exporter and TracerProvider.\n\n```go\nfunc (o *OTelTracing) Stop(ctx context.Context) error\n```\nStop shuts down the TracerProvider gracefully.\n\n```go\ntype OpenAPIComponents struct {\n\tSchemas map[string]*OpenAPISchema `json:\"schemas,omitempty\" yaml:\"schemas,omitempty\"`\n}\n```\nOpenAPIComponents holds reusable schema components.\n\n```go\ntype OpenAPIConfig struct {\n\tSpecFile       string                  `yaml:\"spec_file\"       json:\"spec_file\"`\n\tBasePath       string                  `yaml:\"base_path\"       json:\"base_path\"`\n\tValidation     OpenAPIValidationConfig `yaml:\"validation\"      json:\"validation\"`\n\tSwaggerUI      OpenAPISwaggerUIConfig  `yaml:\"swagger_ui\"      json:\"swagger_ui\"`\n\tRouterName     string                  `yaml:\"router\"          json:\"router\"`          // optional: explicit router to attach to\n\tMaxBodyBytes   int64                   `yaml:\"max_body_bytes\"  json:\"max_body_bytes\"`  // max request body size (bytes); 0 = use default\n\tRegisterRoutes *bool                   `yaml:\"register_routes\" json:\"register_routes\"` // when false, skip spec-path route registration; default true\n}\n```\nOpenAPIConfig holds the full configuration for an OpenAPI module.\n\n```go\ntype OpenAPIConsumer struct {\n\t// contains filtered or unexported fields\n}\n```\nOpenAPIConsumer parses an external OpenAPI spec and generates typed HTTP client methods matching the spec operations. It provides an ExternalAPIClient service that other modules can use to call the external API.\n\n```go\nfunc NewOpenAPIConsumer(name string, config OpenAPIConsumerConfig) *OpenAPIConsumer\n```\nNewOpenAPIConsumer creates a new OpenAPI consumer module.\n\n```go\nfunc (c *OpenAPIConsumer) CallOperation(ctx context.Context, operationID string, data map[string]any) (map[string]any, error)\n```\nCallOperation invokes an external API operation by its operation ID. It resolves path parameters from the provided data map, applies field mappings, and returns the response.\n\n```go\nfunc (c *OpenAPIConsumer) GetFieldMapping() *FieldMapping\n```\nGetFieldMapping returns the current field mapping.\n\n```go\nfunc (c *OpenAPIConsumer) GetSpec() *OpenAPISpec\n```\nGetSpec returns the loaded OpenAPI spec.\n\n```go\nfunc (c *OpenAPIConsumer) Init(app modular.Application) error\n```\nInit registers the consumer as a service and loads the spec.\n\n```go\nfunc (c *OpenAPIConsumer) ListOperations() []ExternalOperation\n```\nListOperations returns all operations defined in the loaded spec.\n\n```go\nfunc (c *OpenAPIConsumer) Name() string\n```\nName returns the module name.\n\n```go\nfunc (c *OpenAPIConsumer) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (c *OpenAPIConsumer) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\nfunc (c *OpenAPIConsumer) ServeOperations(w http.ResponseWriter, _ *http.Request)\n```\nServeOperations serves the list of available operations as JSON.\n\n```go\nfunc (c *OpenAPIConsumer) ServeSpec(w http.ResponseWriter, _ *http.Request)\n```\nServeSpec serves the loaded spec directly.\n\n```go\nfunc (c *OpenAPIConsumer) SetClient(client *http.Client)\n```\nSetClient sets a custom HTTP client (useful for testing).\n\n```go\nfunc (c *OpenAPIConsumer) SetFieldMapping(fm *FieldMapping)\n```\nSetFieldMapping sets the field mapping for transforming data between local workflow data and external API schemas.\n\n```go\ntype OpenAPIConsumerConfig struct {\n\tSpecURL  string `json:\"specUrl\" yaml:\"specUrl\"`\n\tSpecFile string `json:\"specFile\" yaml:\"specFile\"`\n}\n```\nOpenAPIConsumerConfig holds configuration for the OpenAPI consumer module.\n\n```go\ntype OpenAPIGenerator struct {\n\t// contains filtered or unexported fields\n}\n```\nOpenAPIGenerator is a module that scans workflow route definitions and generates an OpenAPI 3.0 specification, serving it at configurable endpoints.\n\n```go\nfunc NewOpenAPIGenerator(name string, config OpenAPIGeneratorConfig) *OpenAPIGenerator\n```\nNewOpenAPIGenerator creates a new OpenAPI generator module.\n\n```go\nfunc (g *OpenAPIGenerator) ApplySchemas()\n```\nApplySchemas applies all registered component schemas and operation schema overrides to the current spec. Call this after BuildSpec.\n\n```go\nfunc (g *OpenAPIGenerator) BuildSpec(workflows map[string]any)\n```\nBuildSpec scans the workflow config and builds the OpenAPI spec. This should be called after all modules and workflows are registered.\n\n```go\nfunc (g *OpenAPIGenerator) BuildSpecFromRoutes(routes []RouteDefinition)\n```\nBuildSpecFromRoutes builds an OpenAPI spec from explicit route definitions.\n\n```go\nfunc (g *OpenAPIGenerator) GetSpec() *OpenAPISpec\n```\nGetSpec returns the current OpenAPI spec.\n\n```go\nfunc (g *OpenAPIGenerator) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle dispatches to JSON or YAML handler based on path suffix.\n\n```go\nfunc (g *OpenAPIGenerator) Init(app modular.Application) error\n```\nInit registers the generator as a service and builds the initial spec.\n\n```go\nfunc (g *OpenAPIGenerator) Name() string\n```\nName returns the module name.\n\n```go\nfunc (g *OpenAPIGenerator) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (g *OpenAPIGenerator) RegisterAdminSchemas()\n```\nRegisterAdminSchemas satisfies the interfaces.SchemaRegistrar interface. It delegates to the package-level RegisterAdminSchemas function, registering all admin API request/response schemas onto this generator.\n\n```go\nfunc (g *OpenAPIGenerator) RegisterComponentSchema(name string, schema *OpenAPISchema)\n```\nRegisterComponentSchema adds a named schema to the components/schemas section. Call this before BuildSpec or after BuildSpec to add reusable schemas.\n\n```go\nfunc (g *OpenAPIGenerator) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\nfunc (g *OpenAPIGenerator) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements http.Handler.\n\n```go\nfunc (g *OpenAPIGenerator) ServeJSON(w http.ResponseWriter, _ *http.Request)\n```\nServeJSON serves the OpenAPI spec as JSON.\n\n```go\nfunc (g *OpenAPIGenerator) ServeYAML(w http.ResponseWriter, _ *http.Request)\n```\nServeYAML serves the OpenAPI spec as YAML.\n\n```go\nfunc (g *OpenAPIGenerator) SetOperationSchema(method, path string, req, resp *OpenAPISchema)\n```\nSetOperationSchema sets request/response schemas for a specific operation. The method and path must match what appears in the workflow route definitions.\n\n```go\nfunc (g *OpenAPIGenerator) SortedPaths() []string\n```\nSortedPaths returns the spec paths sorted alphabetically (useful for stable output).\n\n```go\ntype OpenAPIGeneratorConfig struct {\n\tTitle       string   `json:\"title\" yaml:\"title\"`\n\tVersion     string   `json:\"version\" yaml:\"version\"`\n\tDescription string   `json:\"description\" yaml:\"description\"`\n\tServers     []string `json:\"servers\" yaml:\"servers\"`\n}\n```\nOpenAPIGeneratorConfig holds configuration for the OpenAPI generator module.\n\n```go\ntype OpenAPIHTTPHandler struct {\n\tHandler http.HandlerFunc\n}\n```\nOpenAPIHTTPHandler adapts the OpenAPIGenerator to the HTTPHandler interface.\n\n```go\nfunc (h *OpenAPIHTTPHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle implements the HTTPHandler interface.\n\n```go\ntype OpenAPIInfo struct {\n\tTitle       string `json:\"title\" yaml:\"title\"`\n\tVersion     string `json:\"version\" yaml:\"version\"`\n\tDescription string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n}\n```\nOpenAPIInfo holds API metadata.\n\n```go\ntype OpenAPIMediaType struct {\n\tSchema *OpenAPISchema `json:\"schema,omitempty\" yaml:\"schema,omitempty\"`\n}\n```\nOpenAPIMediaType describes a media type with schema.\n\n```go\ntype OpenAPIModule struct {\n\t// contains filtered or unexported fields\n}\n```\nOpenAPIModule parses an OpenAPI v3 spec and registers HTTP routes that validate incoming requests against the spec schemas.\n\n```go\nfunc NewOpenAPIModule(name string, cfg OpenAPIConfig) *OpenAPIModule\n```\nNewOpenAPIModule creates a new OpenAPIModule with the given name and config.\n\n```go\nfunc (m *OpenAPIModule) Dependencies() []string\n```\nDependencies returns nil; routing is wired via ProvidesServices / Init wiring hooks.\n\n```go\nfunc (m *OpenAPIModule) Init(app modular.Application) error\n```\nInit loads and parses the spec file.\n\n```go\nfunc (m *OpenAPIModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *OpenAPIModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices exposes this module as an OpenAPIModule service so wiring hooks can find it and register its routes on an HTTP router.\n\n```go\nfunc (m *OpenAPIModule) RegisterRoutes(router HTTPRouter)\n```\nRegisterRoutes attaches all spec paths (and optional Swagger UI / spec endpoints) to the given HTTPRouter.\n\n```go\nfunc (m *OpenAPIModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil; router dependency is resolved via wiring hooks.\n\n```go\nfunc (m *OpenAPIModule) RouterName() string\n```\nRouterName returns the optional explicit router module name to attach routes to.\n\n```go\nfunc (m *OpenAPIModule) SetPipelineLookup(fn PipelineLookupFn)\n```\nSetPipelineLookup sets the function used to resolve pipeline names found in x-pipeline operation extensions. This must be called before RegisterRoutes.\n\n```go\nfunc (m *OpenAPIModule) Start(_ context.Context) error\n```\nStart is a no-op; routes are registered during wiring.\n\n```go\nfunc (m *OpenAPIModule) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\ntype OpenAPIOperation struct {\n\tSummary     string                      `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tOperationID string                      `json:\"operationId,omitempty\" yaml:\"operationId,omitempty\"`\n\tTags        []string                    `json:\"tags,omitempty\" yaml:\"tags,omitempty\"`\n\tParameters  []OpenAPIParameter          `json:\"parameters,omitempty\" yaml:\"parameters,omitempty\"`\n\tRequestBody *OpenAPIRequestBody         `json:\"requestBody,omitempty\" yaml:\"requestBody,omitempty\"`\n\tResponses   map[string]*OpenAPIResponse `json:\"responses\" yaml:\"responses\"`\n}\n```\nOpenAPIOperation describes an API operation.\n\n```go\ntype OpenAPIParameter struct {\n\tName        string         `json:\"name\" yaml:\"name\"`\n\tIn          string         `json:\"in\" yaml:\"in\"` // path, query, header\n\tRequired    bool           `json:\"required,omitempty\" yaml:\"required,omitempty\"`\n\tDescription string         `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tSchema      *OpenAPISchema `json:\"schema,omitempty\" yaml:\"schema,omitempty\"`\n}\n```\nOpenAPIParameter describes a path/query/header parameter.\n\n```go\ntype OpenAPIPath struct {\n\tGet     *OpenAPIOperation `json:\"get,omitempty\" yaml:\"get,omitempty\"`\n\tPost    *OpenAPIOperation `json:\"post,omitempty\" yaml:\"post,omitempty\"`\n\tPut     *OpenAPIOperation `json:\"put,omitempty\" yaml:\"put,omitempty\"`\n\tDelete  *OpenAPIOperation `json:\"delete,omitempty\" yaml:\"delete,omitempty\"`\n\tPatch   *OpenAPIOperation `json:\"patch,omitempty\" yaml:\"patch,omitempty\"`\n\tOptions *OpenAPIOperation `json:\"options,omitempty\" yaml:\"options,omitempty\"`\n}\n```\nOpenAPIPath holds operations for a single path.\n\n```go\ntype OpenAPIRequestBody struct {\n\tRequired    bool                         `json:\"required,omitempty\" yaml:\"required,omitempty\"`\n\tDescription string                       `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tContent     map[string]*OpenAPIMediaType `json:\"content,omitempty\" yaml:\"content,omitempty\"`\n}\n```\nOpenAPIRequestBody describes a request body.\n\n```go\ntype OpenAPIResponse struct {\n\tDescription string                       `json:\"description\" yaml:\"description\"`\n\tContent     map[string]*OpenAPIMediaType `json:\"content,omitempty\" yaml:\"content,omitempty\"`\n}\n```\nOpenAPIResponse describes a response.\n\n```go\ntype OpenAPISchema struct {\n\tRef                  string                    `json:\"$ref,omitempty\" yaml:\"$ref,omitempty\"`\n\tType                 string                    `json:\"type,omitempty\" yaml:\"type,omitempty\"`\n\tFormat               string                    `json:\"format,omitempty\" yaml:\"format,omitempty\"`\n\tDescription          string                    `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tProperties           map[string]*OpenAPISchema `json:\"properties,omitempty\" yaml:\"properties,omitempty\"`\n\tItems                *OpenAPISchema            `json:\"items,omitempty\" yaml:\"items,omitempty\"`\n\tRequired             []string                  `json:\"required,omitempty\" yaml:\"required,omitempty\"`\n\tEnum                 []string                  `json:\"enum,omitempty\" yaml:\"enum,omitempty\"`\n\tAdditionalProperties *OpenAPISchema            `json:\"additionalProperties,omitempty\" yaml:\"additionalProperties,omitempty\"`\n\tNullable             bool                      `json:\"nullable,omitempty\" yaml:\"nullable,omitempty\"`\n\tExample              any                       `json:\"example,omitempty\" yaml:\"example,omitempty\"`\n}\n```\nOpenAPISchema is a minimal JSON Schema subset for OpenAPI.\n\n```go\nfunc SchemaArray(items *OpenAPISchema) *OpenAPISchema\n```\nSchemaArray returns a schema for an array of the given item schema.\n\n```go\nfunc SchemaRef(name string) *OpenAPISchema\n```\nSchemaRef returns an OpenAPISchema that is a $ref to a component schema.\n\n```go\ntype OpenAPIServer struct {\n\tURL         string `json:\"url\" yaml:\"url\"`\n\tDescription string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n}\n```\nOpenAPIServer describes a server URL.\n\n```go\ntype OpenAPISpec struct {\n\tOpenAPI    string                  `json:\"openapi\" yaml:\"openapi\"`\n\tInfo       OpenAPIInfo             `json:\"info\" yaml:\"info\"`\n\tServers    []OpenAPIServer         `json:\"servers,omitempty\" yaml:\"servers,omitempty\"`\n\tPaths      map[string]*OpenAPIPath `json:\"paths\" yaml:\"paths\"`\n\tComponents *OpenAPIComponents      `json:\"components,omitempty\" yaml:\"components,omitempty\"`\n}\n```\nOpenAPISpec represents a minimal OpenAPI 3.0 specification document.\n\n```go\ntype OpenAPISwaggerUIConfig struct {\n\tEnabled bool   `yaml:\"enabled\" json:\"enabled\"`\n\tPath    string `yaml:\"path\"    json:\"path\"`\n}\n```\nOpenAPISwaggerUIConfig controls Swagger UI hosting.\n\n```go\ntype OpenAPIValidationConfig struct {\n\tRequest        bool   `yaml:\"request\"         json:\"request\"`\n\tResponse       bool   `yaml:\"response\"        json:\"response\"`\n\tResponseAction string `yaml:\"response_action\" json:\"response_action\"` // \"warn\" (default) or \"error\"\n}\n```\nOpenAPIValidationConfig controls which request/response parts are validated.\n\n```go\ntype ParallelStep struct {\n\t// contains filtered or unexported fields\n}\n```\nParallelStep executes multiple named sub-steps concurrently and collects results.\n\nComplexity:\n\n  - Time:  O(max(branch\\_duration)) — wall clock bounded by slowest branch\n  - Space: O(branches × context\\_size) — deep copy of PipelineContext per branch\n\n```go\nfunc (s *ParallelStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs all sub-steps concurrently and collects their results.\n\nOutput:\n\n\t{\n\t  \"results\":   map[string]any  — branch_name → branch output (successful branches)\n\t  \"errors\":    map[string]any  — branch_name → error string (failed branches)\n\t  \"completed\": int             — count of successful branches\n\t  \"failed\":    int             — count of failed branches\n\t}\n\n```go\nfunc (s *ParallelStep) Name() string\n```\nName returns the step name.\n\n```go\ntype PartitionConfig struct {\n\t// PartitionKey is the column name used for partitioning (e.g. tenant_id).\n\tPartitionKey string `json:\"partitionKey\" yaml:\"partitionKey\"`\n\t// Tables lists the tables that are partitioned by this key.\n\tTables []string `json:\"tables\" yaml:\"tables\"`\n\t// PartitionType is \"list\" (default) or \"range\".\n\tPartitionType string `json:\"partitionType\" yaml:\"partitionType\"`\n\t// PartitionNameFormat is a template for generating partition table names.\n\t// Supports {table} and {tenant} placeholders. Default: \"{table}_{tenant}\".\n\tPartitionNameFormat string `json:\"partitionNameFormat\" yaml:\"partitionNameFormat\"`\n\t// SourceTable is the table queried by SyncPartitionsFromSource for this key.\n\tSourceTable string `json:\"sourceTable\" yaml:\"sourceTable\"`\n\t// SourceColumn overrides the column queried in SourceTable. Defaults to PartitionKey.\n\tSourceColumn string `json:\"sourceColumn\" yaml:\"sourceColumn\"`\n}\n```\nPartitionConfig holds per-partition-key configuration within a database.partitioned module. Multiple PartitionConfig entries allow a single module to manage tables that are partitioned by different columns or with different partition types.\n\n```go\ntype PartitionKeyProvider interface {\n\tDBProvider\n\tPartitionKey() string\n\t// PartitionTableName resolves the partition table name for a given parent\n\t// table and tenant value, using the configured partitionNameFormat.\n\t// Returns the parent table name unchanged when no format is configured.\n\tPartitionTableName(parentTable, tenantValue string) string\n}\n```\nPartitionKeyProvider is optionally implemented by database modules that support partitioning. Steps can use PartitionKey() to determine the column name for automatic tenant scoping, and PartitionTableName() to resolve tenant-specific partition table names at query time.\n\n```go\ntype PartitionManager interface {\n\tPartitionKeyProvider\n\tEnsurePartition(ctx context.Context, tenantValue string) error\n\t// SyncPartitionsFromSource queries the configured sourceTable for all\n\t// distinct tenant values and ensures that partitions exist for each one.\n\t// No-ops if sourceTable is not configured.\n\tSyncPartitionsFromSource(ctx context.Context) error\n}\n```\nPartitionManager is optionally implemented by database modules that support runtime creation of partitions. The EnsurePartition method is idempotent — if the partition already exists the call succeeds without error.\n\n```go\ntype PartitionedDatabase struct {\n\t// contains filtered or unexported fields\n}\n```\nPartitionedDatabase wraps WorkflowDatabase and adds PostgreSQL partition management. It satisfies DBProvider, DBDriverProvider, PartitionKeyProvider, PartitionManager, and MultiPartitionManager.\n\n```go\nfunc NewPartitionedDatabase(name string, cfg PartitionedDatabaseConfig) *PartitionedDatabase\n```\nNewPartitionedDatabase creates a new PartitionedDatabase module.\n\nWhen cfg.Partitions is non-empty the entries are used as-is (with defaults applied). Otherwise a single PartitionConfig is built from the top-level PartitionKey / Tables / … fields for backward compatibility.\n\n```go\nfunc (p *PartitionedDatabase) DB() *sql.DB\n```\nDB returns the underlying \\*sql.DB (satisfies DBProvider).\n\n```go\nfunc (p *PartitionedDatabase) DriverName() string\n```\nDriverName returns the configured database driver (satisfies DBDriverProvider).\n\n```go\nfunc (p *PartitionedDatabase) EnsurePartition(ctx context.Context, tenantValue string) error\n```\nEnsurePartition creates a partition for the given value on all tables managed by the primary partition config. The operation is idempotent — IF NOT EXISTS prevents errors when the partition already exists.\n\nFor LIST partitions: CREATE TABLE IF NOT EXISTS \\\u003cname\u003e PARTITION OF \\\u003ctable\u003e FOR VALUES IN ('\\\u003cvalue\u003e') For RANGE partitions: CREATE TABLE IF NOT EXISTS \\\u003cname\u003e PARTITION OF \\\u003ctable\u003e FOR VALUES FROM ('\\\u003cvalue\u003e') TO ('\\\u003cvalue\u003e\\\\x00')\n\nOnly PostgreSQL (pgx, pgx/v5, postgres) is supported. The method validates the tenant value and table/column names to prevent SQL injection.\n\n```go\nfunc (p *PartitionedDatabase) EnsurePartitionForKey(ctx context.Context, partitionKey, value string) error\n```\nEnsurePartitionForKey creates partitions for the specified partition key and value on all tables that belong to that partition config (satisfies MultiPartitionManager). Returns an error if no config with that partitionKey is registered.\n\n```go\nfunc (p *PartitionedDatabase) Init(app modular.Application) error\n```\nInit registers this module as a service.\n\n```go\nfunc (p *PartitionedDatabase) Name() string\n```\nName returns the module name.\n\n```go\nfunc (p *PartitionedDatabase) PartitionConfigs() []PartitionConfig\n```\nPartitionConfigs returns all configured partition groups (satisfies MultiPartitionManager). It returns a deep copy so callers cannot mutate the internal state.\n\n```go\nfunc (p *PartitionedDatabase) PartitionKey() string\n```\nPartitionKey returns the column name used for partitioning (satisfies PartitionKeyProvider). When multiple partition configs are defined, it returns the first config's key.\n\n```go\nfunc (p *PartitionedDatabase) PartitionNameFormat() string\n```\nPartitionNameFormat returns the partition name format of the primary partition config.\n\n```go\nfunc (p *PartitionedDatabase) PartitionTableName(parentTable, tenantValue string) string\n```\nPartitionTableName resolves the partition table name for a given parent table and tenant value using the primary partition config's partitionNameFormat.\n\n```go\nfunc (p *PartitionedDatabase) PartitionType() string\n```\nPartitionType returns the partition type of the primary partition config (\"list\" or \"range\").\n\n```go\nfunc (p *PartitionedDatabase) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (p *PartitionedDatabase) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns no dependencies.\n\n```go\nfunc (p *PartitionedDatabase) Start(ctx context.Context) error\n```\nStart opens the database connection during application startup. When autoSync is enabled (the default when any sourceTable is configured), it calls SyncPartitionsFromSource to create partitions for all existing tenant values. When syncInterval is configured, a background goroutine periodically re-syncs partitions at that interval.\n\n```go\nfunc (p *PartitionedDatabase) Stop(ctx context.Context) error\n```\nStop closes the database connection during application shutdown.\n\n```go\nfunc (p *PartitionedDatabase) SyncPartitionsForKey(ctx context.Context, partitionKey string) error\n```\nSyncPartitionsForKey syncs partitions for the specified partition key's configured source table (satisfies MultiPartitionManager). No-ops if no sourceTable is configured for that key. Returns an error if no config with that partitionKey is registered.\n\n```go\nfunc (p *PartitionedDatabase) SyncPartitionsFromSource(ctx context.Context) error\n```\nSyncPartitionsFromSource queries the configured sourceTable for all distinct tenant values and ensures that partitions exist for each one. When multiple partition configs are defined, all configs with a sourceTable are synced.\n\nNo-ops if no sourceTable is configured in any partition config.\n\n```go\nfunc (p *PartitionedDatabase) Tables() []string\n```\nTables returns the list of tables managed by the primary partition config.\n\n```go\ntype PartitionedDatabaseConfig struct {\n\tDriver       string `json:\"driver\" yaml:\"driver\"`\n\tDSN          string `json:\"dsn\" yaml:\"dsn\"`\n\tMaxOpenConns int    `json:\"maxOpenConns\" yaml:\"maxOpenConns\"`\n\tMaxIdleConns int    `json:\"maxIdleConns\" yaml:\"maxIdleConns\"`\n\n\t// ── Single-partition fields (used when Partitions is empty) ──────────────\n\tPartitionKey string   `json:\"partitionKey\" yaml:\"partitionKey\"`\n\tTables       []string `json:\"tables\" yaml:\"tables\"`\n\t// PartitionType is \"list\" (default) or \"range\".\n\t// LIST partitions are created with FOR VALUES IN ('value').\n\t// RANGE partitions are created with FOR VALUES FROM ('value') TO ('value_next').\n\tPartitionType string `json:\"partitionType\" yaml:\"partitionType\"`\n\t// PartitionNameFormat is a template for generating partition table names.\n\t// Supports {table} and {tenant} placeholders.\n\t// Default: \"{table}_{tenant}\" (e.g. forms_org_alpha).\n\tPartitionNameFormat string `json:\"partitionNameFormat\" yaml:\"partitionNameFormat\"`\n\t// SourceTable is the table that contains all tenant IDs.\n\t// When set, SyncPartitionsFromSource queries this table for all distinct\n\t// values in the partition key column and ensures partitions exist.\n\t// Example: \"tenants\" — will query \"SELECT DISTINCT tenant_id FROM tenants\".\n\tSourceTable string `json:\"sourceTable\" yaml:\"sourceTable\"`\n\t// SourceColumn overrides the column queried in sourceTable.\n\t// Defaults to PartitionKey if empty.\n\tSourceColumn string `json:\"sourceColumn\" yaml:\"sourceColumn\"`\n\n\t// ── Lifecycle sync settings ───────────────────────────────────────────────\n\t// AutoSync controls whether SyncPartitionsFromSource is called automatically\n\t// during Start(). Defaults to true when any sourceTable is configured.\n\t// Set to false to disable automatic sync on startup.\n\tAutoSync *bool `json:\"autoSync\" yaml:\"autoSync\"`\n\t// SyncInterval is a duration string (e.g. \"60s\", \"5m\") for periodic\n\t// re-sync of partitions from the source table. When set, a background\n\t// goroutine calls SyncPartitionsFromSource at this interval after Start().\n\t// Requires at least one sourceTable to be configured. Example: \"60s\".\n\tSyncInterval string `json:\"syncInterval\" yaml:\"syncInterval\"`\n\n\t// ── Multi-partition mode ─────────────────────────────────────────────────\n\t// Partitions lists independent partition key configurations. When non-empty,\n\t// the single-partition fields above are ignored.\n\tPartitions []PartitionConfig `json:\"partitions\" yaml:\"partitions\"`\n}\n```\nPartitionedDatabaseConfig holds configuration for the database.partitioned module.\n\nSingle-partition mode (backward-compatible): set PartitionKey, Tables, and optionally PartitionType, PartitionNameFormat, SourceTable, SourceColumn at the top level.\n\nMulti-partition mode: set Partitions to a list of PartitionConfig entries. Each entry is an independent partition group with its own key, tables, type, naming format and optional source. The top-level single-partition fields are ignored when Partitions is non-empty.\n\n```go\ntype PatternMatch struct {\n\tPatternID   string      `json:\"patternId\"`\n\tEvents      []EventData `json:\"events\"`\n\tMatchedTime time.Time   `json:\"matchedTime\"`\n}\n```\nPatternMatch represents a successful pattern match\n\n```go\ntype PersistenceStore struct {\n\t// contains filtered or unexported fields\n}\n```\nPersistenceStore provides SQLite-backed persistence for workflow instances, resources, and users.\n\n```go\nfunc NewPersistenceStore(name, dbServiceName string) *PersistenceStore\n```\nNewPersistenceStore creates a new PersistenceStore module.\n\n```go\nfunc (p *PersistenceStore) DeleteResource(resourceType, id string) error\n```\nDeleteResource deletes a resource by type and ID.\n\n```go\nfunc (p *PersistenceStore) Init(app modular.Application) error\n```\nInit looks up the WorkflowDatabase service and runs schema migrations.\n\n```go\nfunc (p *PersistenceStore) LoadResource(resourceType, id string) (map[string]any, error)\n```\nLoadResource loads a single resource by type and ID. Returns nil, nil if the resource does not exist.\n\n```go\nfunc (p *PersistenceStore) LoadResources(resourceType string) (map[string]map[string]any, error)\n```\nLoadResources loads all resources for a given type, keyed by ID. Encrypted PII fields are decrypted transparently on read.\n\n```go\nfunc (p *PersistenceStore) LoadUsers() ([]UserRecord, error)\n```\nLoadUsers loads all user records. Encrypted PII fields (name, email) are decrypted transparently on read.\n\n```go\nfunc (p *PersistenceStore) LoadWorkflowInstances(workflowType string) ([]*WorkflowInstance, error)\n```\nLoadWorkflowInstances loads all instances for a given workflow type.\n\n```go\nfunc (p *PersistenceStore) Name() string\n```\nName returns the module name.\n\n```go\nfunc (p *PersistenceStore) Ping(ctx context.Context) error\n```\nPing verifies the database connection is alive.\n\n```go\nfunc (p *PersistenceStore) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns services provided by this module.\n\n```go\nfunc (p *PersistenceStore) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\nfunc (p *PersistenceStore) SaveResource(resourceType, id string, data map[string]any) error\n```\nSaveResource upserts a resource. PII fields within the data map are encrypted before writing to SQLite when ENCRYPTION\\_KEY is set.\n\n```go\nfunc (p *PersistenceStore) SaveUser(user UserRecord) error\n```\nSaveUser upserts a user record. PII fields (name, email) are encrypted before writing to SQLite when ENCRYPTION\\_KEY is set.\n\n```go\nfunc (p *PersistenceStore) SaveWorkflowInstance(instance *WorkflowInstance) error\n```\nSaveWorkflowInstance upserts a workflow instance. PII fields within instance data are encrypted before writing to SQLite when ENCRYPTION\\_KEY is set.\n\n```go\nfunc (p *PersistenceStore) SetDB(db *sql.DB)\n```\nSetDB sets the underlying database connection directly (useful for testing).\n\n```go\nfunc (p *PersistenceStore) SetEncryptor(enc *FieldEncryptor)\n```\nSetEncryptor sets a custom field encryptor (useful for testing).\n\n```go\nfunc (p *PersistenceStore) Start(ctx context.Context) error\n```\nStart is a no-op; data loading can be triggered explicitly.\n\n```go\nfunc (p *PersistenceStore) Stop(ctx context.Context) error\n```\nStop is a no-op; the database lifecycle is owned by WorkflowDatabase.\n\n```go\ntype Pipeline struct {\n\tName         string\n\tSteps        []PipelineStep\n\tOnError      ErrorStrategy\n\tTimeout      time.Duration\n\tCompensation []PipelineStep\n\tLogger       *slog.Logger\n\t// Metadata is pre-seeded metadata merged into the PipelineContext.\n\t// Used to pass HTTP context (request/response) for delegate steps.\n\tMetadata map[string]any\n\t// RoutePattern is the original route path pattern (e.g., \"/api/v1/admin/companies/{id}\")\n\t// used by step.request_parse for path parameter extraction.\n\tRoutePattern string\n\n\t// StrictTemplates enables strict template key resolution: when true, any\n\t// template expression that references a missing map key returns an error\n\t// instead of silently resolving to the zero value. Corresponds to the\n\t// pipeline config field strict_templates.\n\tStrictTemplates bool\n\n\t// EventRecorder is an optional recorder for execution events.\n\t// When nil (the default), no events are recorded. Events are best-effort:\n\t// recording failures are logged but never fail the pipeline.\n\tEventRecorder EventRecorder\n\n\t// ExecutionID identifies this pipeline execution for event correlation.\n\t// Set by the caller when event recording is desired.\n\tExecutionID string\n\t// contains filtered or unexported fields\n}\n```\nPipeline is an ordered sequence of steps with error handling.\n\n```go\nfunc (p *Pipeline) Execute(ctx context.Context, triggerData map[string]any) (*PipelineContext, error)\n```\nExecute runs the pipeline from trigger data.\n\n```go\nfunc (p *Pipeline) Run(ctx context.Context, data map[string]any) (map[string]any, error)\n```\nRun executes the pipeline and returns the merged result data map. It implements interfaces.PipelineRunner by wrapping Execute and returning PipelineContext.Current so callers need not import PipelineContext. If a PipelineContextHolder is stored in ctx under PipelineContextKey, it is populated with the full PipelineContext (including StepOutputs) so that callers can inspect per-step results without a separate code path.\n\n```go\nfunc (p *Pipeline) SetEventRecorder(recorder interfaces.EventRecorder)\n```\nSetEventRecorder sets the event recorder for pipeline execution if one is not already set. This implements part of interfaces.PipelineRunner.\n\n```go\nfunc (p *Pipeline) SetLogger(logger *slog.Logger)\n```\nSetLogger sets the logger for pipeline execution if one is not already set. This implements part of interfaces.PipelineRunner and allows the handler to inject a logger without directly accessing the Logger field.\n\n```go\ntype PipelineContext = interfaces.PipelineContext\n```\nPipelineContext carries data through a pipeline execution. Aliased from interfaces.PipelineContext for backwards compatibility.\n\n```go\ntype PipelineContextHolder struct {\n\t// contains filtered or unexported fields\n}\n```\nPipelineContextHolder is a thread-safe container used to pass the full PipelineContext (including StepOutputs) back through the context from the pipeline handler to any caller of TriggerWorkflow that needs per-step visibility.\n\n```go\nfunc (h *PipelineContextHolder) Get() *PipelineContext\n```\nGet returns the stored PipelineContext, or nil if not set.\n\n```go\nfunc (h *PipelineContextHolder) Set(pc *PipelineContext)\n```\nSet stores the PipelineContext in the holder.\n\n```go\ntype PipelineLookupFn func(name string) (*Pipeline, bool)\n```\nPipelineLookupFn is a function that resolves a named pipeline by name. The engine provides this when building a WorkflowCallStep so the step can locate sibling pipelines at execution time without taking a direct dependency on the engine.\n\n```go\ntype PipelineOutputStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPipelineOutputStep marks structured data as the pipeline's return value. The data is stored in pc.Metadata\\[\"\\_pipeline\\_output\"] for extraction by engine.ExecutePipeline() or the HTTP trigger fallback handler.\n\n```go\nfunc (s *PipelineOutputStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *PipelineOutputStep) Name() string\n```\n\n```go\ntype PipelineResultHolder struct {\n\t// contains filtered or unexported fields\n}\n```\nPipelineResultHolder is a mutable container used to pass pipeline execution results back through the context from the engine to the HTTP trigger handler.\n\n```go\nfunc (h *PipelineResultHolder) Get() map[string]any\n```\nGet returns the stored pipeline result, or nil if not set.\n\n```go\nfunc (h *PipelineResultHolder) Set(result map[string]any)\n```\nSet stores the pipeline result in the holder.\n\n```go\ntype PipelineStep = interfaces.PipelineStep\n```\nPipelineStep is a single composable unit of work in a pipeline. Aliased from interfaces.PipelineStep for backwards compatibility.\n\n```go\ntype PipelineTracePropagator interface {\n\t// Inject injects the trace context from ctx into the carrier.\n\tInject(ctx context.Context, carrier propagation.TextMapCarrier) error\n\t// Extract extracts trace context from the carrier and returns an updated context.\n\tExtract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context\n}\n```\nPipelineTracePropagator defines the interface for propagating trace context across asynchronous messaging boundaries (Kafka, EventBridge, webhooks, HTTP).\n\n```go\ntype PipelineTracingMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nPipelineTracingMiddleware wraps a PipelineStep with OTEL span creation. It creates a child span for each step execution, recording errors automatically.\n\n```go\nfunc NewPipelineTracingMiddleware(step PipelineStep, tracer trace.Tracer) *PipelineTracingMiddleware\n```\nNewPipelineTracingMiddleware wraps the given step with span instrumentation. If tracer is nil, the global tracer provider is used.\n\n```go\nfunc (m *PipelineTracingMiddleware) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (m *PipelineTracingMiddleware) Name() string\n```\n\n```go\ntype PlatformAction struct {\n\tType     string `json:\"type\"` // create, update, delete, noop\n\tResource string `json:\"resource\"`\n\tDetail   string `json:\"detail\"`\n}\n```\nPlatformAction describes a single change within a plan.\n\n```go\ntype PlatformApplyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPlatformApplyStep implements a pipeline step that applies a previously generated platform plan. It reads a Plan from the pipeline context, executes each action through the provider's resource drivers, and outputs the resulting resource states.\n\n```go\nfunc (s *PlatformApplyStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute applies the plan by executing each action through the provider's resource drivers.\n\n```go\nfunc (s *PlatformApplyStep) Name() string\n```\nName returns the step name.\n\n```go\ntype PlatformDNS struct {\n\t// contains filtered or unexported fields\n}\n```\nPlatformDNS manages DNS zones and records via pluggable backends. Config:\n\n\taccount:  name of a cloud.account module (optional)\n\tprovider: aws (Route53) | mock\n\tzone:     zone config (name, comment, private, vpcId)\n\trecords:  list of DNS record definitions\n\n```go\nfunc NewPlatformDNS(name string, cfg map[string]any) *PlatformDNS\n```\nNewPlatformDNS creates a new PlatformDNS module.\n\n```go\nfunc (m *PlatformDNS) Apply() (*DNSState, error)\n```\nApply creates/updates the DNS zone and records.\n\n```go\nfunc (m *PlatformDNS) Destroy() error\n```\nDestroy deletes the DNS zone and all records.\n\n```go\nfunc (m *PlatformDNS) Init(app modular.Application) error\n```\nInit resolves the cloud.account service and initialises the backend.\n\n```go\nfunc (m *PlatformDNS) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *PlatformDNS) Plan() (*DNSPlan, error)\n```\nPlan returns the DNS changes needed to reach desired state.\n\n```go\nfunc (m *PlatformDNS) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *PlatformDNS) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — cloud.account is resolved by name.\n\n```go\nfunc (m *PlatformDNS) Status() (*DNSState, error)\n```\nStatus returns the current DNS zone state.\n\n```go\ntype PlatformDestroyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPlatformDestroyStep implements a pipeline step that destroys previously provisioned resources. It reads resource outputs from the pipeline context and calls the provider's resource driver Delete method for each.\n\n```go\nfunc (s *PlatformDestroyStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute destroys each resource by calling Delete on the provider's resource driver.\n\n```go\nfunc (s *PlatformDestroyStep) Name() string\n```\nName returns the step name.\n\n```go\ntype PlatformKubernetes struct {\n\t// contains filtered or unexported fields\n}\n```\nPlatformKubernetes manages Kubernetes clusters via pluggable backends. Config:\n\n\taccount:    name of a cloud.account module (resolved from service registry)\n\ttype:       backend type: eks | gke | aks | kind | k3s\n\tversion:    Kubernetes version (e.g. \"1.29\")\n\tnodeGroups: list of node group definitions\n\n```go\nfunc NewPlatformKubernetes(name string, cfg map[string]any) *PlatformKubernetes\n```\nNewPlatformKubernetes creates a new PlatformKubernetes module.\n\n```go\nfunc (m *PlatformKubernetes) Apply() (*PlatformResult, error)\n```\nApply makes the cluster match the desired configuration.\n\n```go\nfunc (m *PlatformKubernetes) Destroy() error\n```\nDestroy tears down the cluster.\n\n```go\nfunc (m *PlatformKubernetes) Init(app modular.Application) error\n```\nInit resolves the cloud.account service and initialises the backend.\n\n```go\nfunc (m *PlatformKubernetes) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *PlatformKubernetes) Plan() (*PlatformPlan, error)\n```\nPlan returns the changes that would be made to bring the cluster to desired state.\n\n```go\nfunc (m *PlatformKubernetes) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *PlatformKubernetes) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — cloud.account is resolved by name, not declared.\n\n```go\nfunc (m *PlatformKubernetes) Status() (any, error)\n```\nStatus returns the current cluster state.\n\n```go\ntype PlatformPlan struct {\n\tProvider string           `json:\"provider\"`\n\tResource string           `json:\"resource\"`\n\tActions  []PlatformAction `json:\"actions\"`\n}\n```\nPlatformPlan describes the changes a platform module intends to make.\n\n```go\ntype PlatformPlanStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPlatformPlanStep implements a pipeline step that generates an execution plan by mapping capability declarations through a platform provider. It reads capability declarations from the pipeline context, calls the provider's MapCapability method, and produces a platform.Plan in the pipeline context.\n\n```go\nfunc (s *PlatformPlanStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute generates a platform plan by mapping capability declarations through the provider.\n\n```go\nfunc (s *PlatformPlanStep) Name() string\n```\nName returns the step name.\n\n```go\ntype PlatformProvider interface {\n\tPlan() (*PlatformPlan, error)\n\tApply() (*PlatformResult, error)\n\tStatus() (any, error)\n\tDestroy() error\n}\n```\nPlatformProvider is implemented by infrastructure modules that manage cloud resources. It provides a generic lifecycle interface for plan → apply → status → destroy.\n\n```go\ntype PlatformResult struct {\n\tSuccess bool   `json:\"success\"`\n\tMessage string `json:\"message\"`\n\tState   any    `json:\"state\"`\n}\n```\nPlatformResult is returned from Apply.\n\n```go\ntype PlatformTemplateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPlatformTemplateStep is a pipeline step that resolves a platform template with parameters and outputs the resulting CapabilityDeclarations.\n\n```go\nfunc (s *PlatformTemplateStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the configured template with parameters and outputs the resolved CapabilityDeclarations under the \"resolved\\_resources\" key.\n\n```go\nfunc (s *PlatformTemplateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype PluginSpec struct {\n\tName   string\n\tBinary string\n}\n```\nPluginSpec describes a plugin binary to include in the built image.\n\n```go\ntype PolicyDecision struct {\n\tAllowed  bool           `json:\"allowed\"`\n\tReasons  []string       `json:\"reasons,omitempty\"`\n\tMetadata map[string]any `json:\"metadata,omitempty\"`\n}\n```\nPolicyDecision is the result of a policy evaluation.\n\n```go\ntype PolicyEngine interface {\n\tEvaluate(ctx context.Context, input map[string]any) (*PolicyDecision, error)\n\tLoadPolicy(name, content string) error\n\tListPolicies() []PolicyInfo\n}\n```\nPolicyEngine is the interface implemented by all policy backends.\n\n```go\ntype PolicyEngineModule struct {\n\t// contains filtered or unexported fields\n}\n```\nPolicyEngineModule is a workflow module wrapping a pluggable PolicyEngine backend. Supported backends: \"mock\". For OPA or Cedar, use external plugins.\n\n```go\nfunc NewPolicyEngineModule(name string, cfg map[string]any) *PolicyEngineModule\n```\nNewPolicyEngineModule creates a new PolicyEngineModule.\n\n```go\nfunc (m *PolicyEngineModule) Backend() string\n```\nBackend returns the configured backend name.\n\n```go\nfunc (m *PolicyEngineModule) Engine() PolicyEngine\n```\nEngine returns the underlying PolicyEngine for direct use by pipeline steps.\n\n```go\nfunc (m *PolicyEngineModule) Init(app modular.Application) error\n```\nInit initialises the backend and registers the module as a service.\n\n```go\nfunc (m *PolicyEngineModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *PolicyEngineModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides.\n\n```go\nfunc (m *PolicyEngineModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — policy.engine has no required service dependencies.\n\n```go\ntype PolicyEvaluateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPolicyEvaluateStep evaluates a policy decision from the pipeline context.\n\n```go\nfunc (s *PolicyEvaluateStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *PolicyEvaluateStep) Name() string\n```\n\n```go\ntype PolicyInfo struct {\n\tName    string `json:\"name\"`\n\tBackend string `json:\"backend\"`\n\tContent string `json:\"content\"`\n}\n```\nPolicyInfo describes a loaded policy.\n\n```go\ntype PolicyListStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPolicyListStep lists all registered policies in the engine.\n\n```go\nfunc (s *PolicyListStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *PolicyListStep) Name() string\n```\n\n```go\ntype PolicyLoadStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPolicyLoadStep loads a policy document into the engine.\n\n```go\nfunc (s *PolicyLoadStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *PolicyLoadStep) Name() string\n```\n\n```go\ntype PolicyTestStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPolicyTestStep evaluates a policy against sample inputs (dry-run).\n\n```go\nfunc (s *PolicyTestStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *PolicyTestStep) Name() string\n```\n\n```go\ntype PortAllocator struct {\n\t// contains filtered or unexported fields\n}\n```\nPortAllocator manages automatic port allocation for deployed workflows.\n\n```go\nfunc NewPortAllocator(basePort int) *PortAllocator\n```\nNewPortAllocator creates a new port allocator starting from the given base port.\n\n```go\nfunc (p *PortAllocator) Allocate(name string) (int, error)\n```\nAllocate assigns the next available port to the named workflow.\n\n```go\nfunc (p *PortAllocator) AllocatedPorts() map[int]string\n```\nAllocatedPorts returns a copy of the current port-to-workflow mapping.\n\n```go\nfunc (p *PortAllocator) ExcludePort(port int, name string)\n```\nExcludePort marks a port as permanently taken (e.g., the admin server port).\n\n```go\nfunc (p *PortAllocator) Release(name string)\n```\nRelease frees all ports allocated to the named workflow. It also resets nextPort so freed ports can be reused on the next allocation.\n\n```go\ntype PostgresConn interface {\n\tUpsertState(ctx context.Context, state *IaCState) error\n\tGetState(ctx context.Context, name string) (*IaCState, error)\n\tListRows(ctx context.Context) ([]*IaCState, error)\n\tDeleteRow(ctx context.Context, name string) (deleted bool, err error)\n\tAcquireAdvisoryLock(ctx context.Context, key int64) error\n\tReleaseAdvisoryLock(ctx context.Context, key int64) (released bool, err error)\n\tClose()\n}\n```\nPostgresConn abstracts the database operations used by PostgresIaCStateStore.\n\n```go\ntype PostgresIaCStateStore struct {\n\t// contains filtered or unexported fields\n}\n```\nPostgresIaCStateStore persists IaC state in a PostgreSQL table using pgx/v5. Locking uses pg\\_advisory\\_lock() for serialised access per resource.\n\n```go\nfunc NewPostgresIaCStateStore(ctx context.Context, dsn string) (*PostgresIaCStateStore, error)\n```\nNewPostgresIaCStateStore creates a PostgreSQL-backed state store. dsn is a standard PostgreSQL connection string or DSN. The iac\\_resources table is created if it does not exist.\n\n```go\nfunc NewPostgresIaCStateStoreWithConn(conn PostgresConn) *PostgresIaCStateStore\n```\nNewPostgresIaCStateStoreWithConn creates a store with an injected connection (for testing).\n\n```go\nfunc (s *PostgresIaCStateStore) DeleteState(ctx context.Context, resourceID string) error\n```\nDeleteState removes a state record by resource ID.\n\n```go\nfunc (s *PostgresIaCStateStore) GetState(ctx context.Context, resourceID string) (*IaCState, error)\n```\nGetState retrieves a state record by resource ID. Returns nil, nil when not found.\n\n```go\nfunc (s *PostgresIaCStateStore) ListStates(ctx context.Context, filter map[string]string) ([]*IaCState, error)\n```\nListStates returns all state records matching the provided key=value filter.\n\n```go\nfunc (s *PostgresIaCStateStore) Lock(ctx context.Context, resourceID string) error\n```\nLock acquires a PostgreSQL advisory lock for the resource.\n\n```go\nfunc (s *PostgresIaCStateStore) SaveState(ctx context.Context, state *IaCState) error\n```\nSaveState inserts or replaces a state record.\n\n```go\nfunc (s *PostgresIaCStateStore) Unlock(ctx context.Context, resourceID string) error\n```\nUnlock releases the PostgreSQL advisory lock for the resource.\n\n```go\ntype PrevalidatedRollingDriver interface {\n\tDeployDriver\n\t// CreateGreen creates a new validation environment with the given image.\n\tCreateGreen(ctx context.Context, image string) error\n\t// SwitchTraffic promotes the validated image according to the provider's\n\t// deployment strategy.\n\tSwitchTraffic(ctx context.Context) error\n\t// DestroyBlue tears down the temporary validation environment.\n\tDestroyBlue(ctx context.Context) error\n\t// GreenEndpoint returns the URL/address of the validation environment.\n\tGreenEndpoint(ctx context.Context) (string, error)\n}\n```\nPrevalidatedRollingDriver extends DeployDriver with the ability to validate a new environment before rolling the validated image onto the stable service.\n\nThe method names match the historical BlueGreenDriver contract so existing deploy\\_blue\\_green steps keep working while provider implementations migrate to the more accurate name.\n\n```go\ntype PrevalidatedRollingDriverProvider interface {\n\t// ProvidePrevalidatedRollingDriver returns a PrevalidatedRollingDriver for\n\t// the named resource, or nil.\n\tProvidePrevalidatedRollingDriver(resourceName string) PrevalidatedRollingDriver\n}\n```\nPrevalidatedRollingDriverProvider is an optional extension of interfaces.IaCProvider for providers that support prevalidated rolling deployments.\n\n```go\ntype ProcessingStep struct {\n\t// contains filtered or unexported fields\n}\n```\nProcessingStep bridges dynamic components to state machine transitions. It implements TransitionHandler, wrapping an Executor with retry and compensation logic.\n\n```go\nfunc NewProcessingStep(name string, config ProcessingStepConfig) *ProcessingStep\n```\nNewProcessingStep creates a new ProcessingStep module.\n\n```go\nfunc (ps *ProcessingStep) HandleTransition(ctx context.Context, event TransitionEvent) error\n```\nHandleTransition implements the TransitionHandler interface. It executes the wrapped dynamic component with retry and exponential backoff.\n\n```go\nfunc (ps *ProcessingStep) Init(app modular.Application) error\n```\nInit resolves dependencies from the service registry. Note: service registration is handled by ProvidesServices() — the framework calls it after Init completes, so we don't register here.\n\n```go\nfunc (ps *ProcessingStep) Name() string\n```\nName returns the module name.\n\n```go\nfunc (ps *ProcessingStep) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the service provided by this module.\n\n```go\nfunc (ps *ProcessingStep) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\nfunc (ps *ProcessingStep) Start(_ context.Context) error\n```\nStart is a no-op for the processing step.\n\n```go\nfunc (ps *ProcessingStep) Stop(_ context.Context) error\n```\nStop is a no-op for the processing step.\n\n```go\ntype ProcessingStepConfig struct {\n\tComponentID          string // service name to look up in registry\n\tSuccessTransition    string // transition to fire on success\n\tCompensateTransition string // transition to fire on permanent failure\n\tMaxRetries           int    // default 2\n\tRetryBackoffMs       int    // base backoff in ms, default 1000\n\tTimeoutSeconds       int    // per-attempt timeout, default 30\n}\n```\nProcessingStepConfig holds configuration for a processing step module.\n\n```go\ntype ProtectedFieldManager struct {\n\tRegistry        *fieldcrypt.Registry\n\tKeyRing         fieldcrypt.KeyRing\n\tTenantIsolation bool\n\tScanDepth       int\n\tScanArrays      bool\n\t// contains filtered or unexported fields\n}\n```\nProtectedFieldManager bundles the registry and key ring for field protection.\n\n```go\nfunc (m *ProtectedFieldManager) DecryptMap(ctx context.Context, tenantID string, data map[string]any) error\n```\nDecryptMap decrypts protected fields in the data map in-place. Version 0 is the legacy enc:: format and uses the raw master key.\n\n```go\nfunc (m *ProtectedFieldManager) EncryptMap(ctx context.Context, tenantID string, data map[string]any) error\n```\nEncryptMap encrypts protected fields in the data map in-place.\n\n```go\nfunc (m *ProtectedFieldManager) MaskMap(data map[string]any) map[string]any\n```\nMaskMap returns a deep copy of data with protected fields masked for logging.\n\n```go\ntype ProviderEphemeralRunner struct {\n\t// contains filtered or unexported fields\n}\n```\nProviderEphemeralRunner implements sandbox.SandboxRunner by delegating one-off job execution to an IaCProviderRunner optional provider capability.\n\n```go\nfunc (r *ProviderEphemeralRunner) Close() error\n```\n\n```go\nfunc (r *ProviderEphemeralRunner) Exec(ctx context.Context, cmd []string) (*sandbox.ExecResult, error)\n```\n\n```go\ntype PublishStep struct {\n\t// contains filtered or unexported fields\n}\n```\nPublishStep publishes data to an EventBus topic or a MessageBroker.\n\n```go\nfunc (s *PublishStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the payload templates and publishes to the configured target.\n\n```go\nfunc (s *PublishStep) Name() string\n```\nName returns the step name.\n\n```go\ntype QueryFunc func(ctx context.Context, r *http.Request) (any, error)\n```\nQueryFunc is a read-only query function that returns data or an error.\n\n```go\ntype QueryHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nQueryHandler dispatches GET requests to named query functions. Each query is registered by name and dispatched by extracting the last path segment from the request URL. Route pipelines can be attached for composable per-route processing. A delegate service can be configured to handle requests that don't match any registered query name.\n\n```go\nfunc NewQueryHandler(name string) *QueryHandler\n```\nNewQueryHandler creates a new QueryHandler with the given name.\n\n```go\nfunc (h *QueryHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle dispatches an HTTP request to the appropriate query function.\n\n```go\nfunc (h *QueryHandler) Init(app modular.Application) error\n```\nInit initializes the query handler and resolves the delegate service.\n\n```go\nfunc (h *QueryHandler) Name() string\n```\nName returns the unique identifier for this module.\n\n```go\nfunc (h *QueryHandler) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns a list of services provided by this module.\n\n```go\nfunc (h *QueryHandler) RegisterQuery(name string, fn QueryFunc)\n```\nRegisterQuery adds a named query function to the handler.\n\n```go\nfunc (h *QueryHandler) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns a list of services required by this module.\n\n```go\nfunc (h *QueryHandler) ResolveDelegatePostStart()\n```\nResolveDelegatePostStart is called after engine.Start to resolve delegates that may not have been available during Init (e.g., services registered by post-start hooks).\n\n```go\nfunc (h *QueryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements the http.Handler interface. It looks up a route pipeline by the full \"METHOD /path\" pattern (set by Go 1.22+ ServeMux), falling back to the last path segment for backward compatibility with registered queries. Dispatch chain: RegisteredQueryFunc -\u003e RoutePipeline -\u003e DelegateHandler -\u003e 404\n\n```go\nfunc (h *QueryHandler) SetDelegate(name string)\n```\nSetDelegate sets the delegate service name. The service must implement http.Handler and will be resolved from the service registry during Init.\n\n```go\nfunc (h *QueryHandler) SetDelegateHandler(handler http.Handler)\n```\nSetDelegateHandler directly sets the HTTP handler used for delegation.\n\n```go\nfunc (h *QueryHandler) SetExecutionTracker(t ExecutionTrackerProvider)\n```\nSetExecutionTracker sets the execution tracker for recording pipeline executions.\n\n```go\nfunc (h *QueryHandler) SetRoutePipeline(routePath string, pipeline interfaces.PipelineRunner)\n```\nSetRoutePipeline attaches a pipeline to a specific route path.\n\n```go\ntype QueryResult struct {\n\tColumns []string         `json:\"columns\"`\n\tRows    []map[string]any `json:\"rows\"`\n\tCount   int              `json:\"count\"`\n}\n```\nQueryResult represents the result of a query\n\n```go\ntype RESTAPIHandler struct {\n\tWorkflowConfig\n\t// contains filtered or unexported fields\n}\n```\nRESTAPIHandler provides CRUD operations for a REST API\n\n```go\nfunc NewRESTAPIHandler(name, resourceName string) *RESTAPIHandler\n```\nNewRESTAPIHandler creates a new REST API handler\n\n```go\nfunc (h *RESTAPIHandler) Constructor() modular.ModuleConstructor\n```\nConstructor returns a function to construct this module with dependencies\n\n```go\nfunc (h *RESTAPIHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle implements the HTTPHandler interface\n\n```go\nfunc (h *RESTAPIHandler) Init(app modular.Application) error\n```\nInit initializes the module with the application context\n\n```go\nfunc (h *RESTAPIHandler) Name() string\n```\nName returns the unique identifier for this module\n\n```go\nfunc (h *RESTAPIHandler) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module\n\n```go\nfunc (h *RESTAPIHandler) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns the services required by this module\n\n```go\nfunc (h *RESTAPIHandler) SetFieldMapping(fm *FieldMapping)\n```\nSetFieldMapping sets a custom field mapping, merged on top of defaults.\n\n```go\nfunc (h *RESTAPIHandler) SetInitialTransition(t string)\n```\nSetInitialTransition sets the first transition to trigger after creating a workflow instance.\n\n```go\nfunc (h *RESTAPIHandler) SetInstanceIDPrefix(prefix string)\n```\nSetInstanceIDPrefix sets the prefix used to build state machine instance IDs.\n\n```go\nfunc (h *RESTAPIHandler) SetSeedFile(path string)\n```\nSetSeedFile sets the path to a JSON seed data file.\n\n```go\nfunc (h *RESTAPIHandler) SetSourceResourceName(name string)\n```\nSetSourceResourceName sets a different resource name for read operations (e.g., queue reads from conversations).\n\n```go\nfunc (h *RESTAPIHandler) SetStateFilter(state string)\n```\nSetStateFilter restricts GET responses to resources matching the given state.\n\n```go\nfunc (h *RESTAPIHandler) SetSummaryFields(fields []string)\n```\nSetSummaryFields sets the list of fields to include in summary responses.\n\n```go\nfunc (h *RESTAPIHandler) SetTransitionMap(tm map[string]string)\n```\nSetTransitionMap sets a custom sub-action to transition name mapping.\n\n```go\nfunc (h *RESTAPIHandler) SetWorkflowEngine(we string)\n```\nSetWorkflowEngine sets the name of the workflow engine service to use.\n\n```go\nfunc (h *RESTAPIHandler) SetWorkflowType(wt string)\n```\nSetWorkflowType sets the workflow type for state machine operations.\n\n```go\nfunc (h *RESTAPIHandler) Start(ctx context.Context) error\n```\nStart loads persisted resources (if available) and seed data.\n\n```go\nfunc (h *RESTAPIHandler) Stop(ctx context.Context) error\n```\nStop is a no-op for this handler\n\n```go\ntype RESTAPIHandlerConfig struct {\n\tResourceName       string `json:\"resourceName\" yaml:\"resourceName\"`\n\tWorkflowType       string `json:\"workflowType\" yaml:\"workflowType\"`             // The type of workflow to use for state machine operations\n\tWorkflowEngine     string `json:\"workflowEngine\" yaml:\"workflowEngine\"`         // The name of the workflow engine to use\n\tInitialTransition  string `json:\"initialTransition\" yaml:\"initialTransition\"`   // First transition to trigger after creating a workflow instance\n\tInstanceIDPrefix   string `json:\"instanceIDPrefix\" yaml:\"instanceIDPrefix\"`     // Optional prefix for workflow instance IDs\n\tInstanceIDField    string `json:\"instanceIDField\" yaml:\"instanceIDField\"`       // Field in resource data to use for instance ID (defaults to \"id\")\n\tSeedFile           string `json:\"seedFile\" yaml:\"seedFile\"`                     // Path to JSON seed data file\n\tSourceResourceName string `json:\"sourceResourceName\" yaml:\"sourceResourceName\"` // Read from a different resource's persistence data\n\tStateFilter        string `json:\"stateFilter\" yaml:\"stateFilter\"`               // Only include resources matching this state in GET responses\n}\n```\nRESTAPIHandlerConfig contains configuration for a REST API handler\n\n```go\ntype RESTResource struct {\n\tID         string         `json:\"id\"`\n\tData       map[string]any `json:\"data\"`\n\tState      string         `json:\"state,omitempty\"`\n\tLastUpdate string         `json:\"lastUpdate,omitempty\"`\n}\n```\nRESTResource represents a simple in-memory resource store for REST APIs\n\n```go\ntype RateLimitConfig struct {\n\tRequestsPerMinute int `json:\"requestsPerMinute\"`\n\tBurstSize         int `json:\"burstSize\"`\n}\n```\nRateLimitConfig defines rate limiting parameters.\n\n```go\ntype RateLimitMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nRateLimitMiddleware implements a rate limiting middleware\n\n```go\nfunc NewRateLimitMiddleware(name string, requestsPerMinute, burstSize int) *RateLimitMiddleware\n```\nNewRateLimitMiddleware creates a new rate limiting middleware with IP-based strategy.\n\n```go\nfunc NewRateLimitMiddlewareWithHourlyRate(name string, requestsPerHour, burstSize int) *RateLimitMiddleware\n```\nNewRateLimitMiddlewareWithHourlyRate creates a rate limiting middleware using a per-hour rate. Useful for low-frequency endpoints like registration where fractional per-minute rates are needed.\n\n```go\nfunc NewRateLimitMiddlewareWithStrategy(name string, requestsPerMinute, burstSize int, strategy RateLimitStrategy) *RateLimitMiddleware\n```\nNewRateLimitMiddlewareWithStrategy creates a rate limiting middleware with a specific client identification strategy.\n\n```go\nfunc (m *RateLimitMiddleware) Init(app modular.Application) error\n```\nInit initializes the middleware\n\n```go\nfunc (m *RateLimitMiddleware) Name() string\n```\nName returns the module name\n\n```go\nfunc (m *RateLimitMiddleware) Process(next http.Handler) http.Handler\n```\nProcess implements middleware processing\n\n```go\nfunc (m *RateLimitMiddleware) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this middleware\n\n```go\nfunc (m *RateLimitMiddleware) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this middleware\n\n```go\nfunc (m *RateLimitMiddleware) SetTokenHeader(header string)\n```\nSetTokenHeader sets a custom header name for token-based rate limiting.\n\n```go\nfunc (m *RateLimitMiddleware) Start(_ context.Context) error\n```\nStart begins the stale client cleanup goroutine.\n\n```go\nfunc (m *RateLimitMiddleware) Stop(_ context.Context) error\n```\nStop terminates the cleanup goroutine.\n\n```go\nfunc (m *RateLimitMiddleware) Strategy() RateLimitStrategy\n```\nStrategy returns the current rate limiting strategy.\n\n```go\ntype RateLimitStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRateLimitStep is a pipeline step that enforces rate limiting using a token bucket algorithm. Requests that exceed the limit are rejected with an error.\n\n```go\nfunc (s *RateLimitStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute checks rate limiting for the resolved key and either allows or rejects the request.\n\n```go\nfunc (s *RateLimitStep) Name() string\n```\nName returns the step name.\n\n```go\nfunc (s *RateLimitStep) Stop()\n```\nStop shuts down the background cleanup goroutine. Safe to call multiple times only if the goroutine was started (i.e., Execute was called at least once).\n\n```go\ntype RateLimitStrategy string\n```\nRateLimitStrategy controls how clients are identified for rate limiting.\n\n```go\nconst (\n\t// RateLimitByIP identifies clients by their IP address (default).\n\tRateLimitByIP RateLimitStrategy = \"ip\"\n\t// RateLimitByToken identifies clients by the Authorization header token.\n\tRateLimitByToken RateLimitStrategy = \"token\"\n\t// RateLimitByIPAndToken uses both IP and token for identification.\n\tRateLimitByIPAndToken RateLimitStrategy = \"ip_and_token\"\n)\n```\n\n```go\ntype RawResponseStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRawResponseStep writes a non-JSON HTTP response (e.g. XML, HTML, plain text) with a custom status code, content type, and optional headers, then stops the pipeline.\n\n```go\nfunc (s *RawResponseStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *RawResponseStep) Name() string\n```\n\n```go\ntype ReconciliationTrigger struct {\n\t// contains filtered or unexported fields\n}\n```\nReconciliationTrigger implements the Trigger interface for periodic drift detection. It launches a platform.Reconciler in a background goroutine that compares stored state with live provider state.\n\n```go\nfunc NewReconciliationTrigger() *ReconciliationTrigger\n```\nNewReconciliationTrigger creates a new reconciliation trigger.\n\n```go\nfunc (t *ReconciliationTrigger) Configure(app modular.Application, triggerConfig any) error\n```\nConfigure sets up the trigger from its YAML configuration. Expected config keys:\n\n  - interval: duration string (e.g., \"5m\", \"30s\")\n  - context\\_path: the platform context path to reconcile\n  - provider\\_service: optional service name of the provider to use\n\n```go\nfunc (t *ReconciliationTrigger) Dependencies() []string\n```\nDependencies returns nil; the trigger discovers services at configure time.\n\n```go\nfunc (t *ReconciliationTrigger) Init(app modular.Application) error\n```\nInit registers the trigger as a service.\n\n```go\nfunc (t *ReconciliationTrigger) Name() string\n```\nName returns the trigger name.\n\n```go\nfunc (t *ReconciliationTrigger) Start(ctx context.Context) error\n```\nStart launches the reconciliation loop in a background goroutine.\n\n```go\nfunc (t *ReconciliationTrigger) Stop(_ context.Context) error\n```\nStop cancels the reconciliation loop and waits for it to finish.\n\n```go\ntype RedisCache struct {\n\t// contains filtered or unexported fields\n}\n```\nRedisCache is a module that connects to a Redis instance and exposes Get/Set/Delete operations for use by pipeline steps.\n\n```go\nfunc NewRedisCache(name string, cfg RedisCacheConfig) *RedisCache\n```\nNewRedisCache creates a new RedisCache module with the given name and config.\n\n```go\nfunc NewRedisCacheWithClient(name string, cfg RedisCacheConfig, client RedisClient) *RedisCache\n```\nNewRedisCacheWithClient creates a RedisCache backed by a pre-built client. This is intended for testing only.\n\n```go\nfunc (r *RedisCache) Delete(ctx context.Context, key string) error\n```\nDelete removes a key from Redis (with prefix applied).\n\n```go\nfunc (r *RedisCache) Get(ctx context.Context, key string) (string, error)\n```\nGet retrieves a value from Redis by key (with prefix applied). Returns redis.Nil wrapped in an error when the key does not exist.\n\n```go\nfunc (r *RedisCache) Init(app modular.Application) error\n```\n\n```go\nfunc (r *RedisCache) Name() string\n```\n\n```go\nfunc (r *RedisCache) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (r *RedisCache) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (r *RedisCache) Set(ctx context.Context, key, value string, ttl time.Duration) error\n```\nSet stores a value in Redis with optional TTL.  A zero duration uses the module-level default; if the default is also zero the key never expires.\n\n```go\nfunc (r *RedisCache) Start(ctx context.Context) error\n```\nStart connects to Redis and verifies the connection with PING.\n\n```go\nfunc (r *RedisCache) Stop(_ context.Context) error\n```\nStop closes the Redis connection.\n\n```go\ntype RedisCacheConfig struct {\n\tAddress    string\n\tPassword   string //nolint:gosec // G117: config struct field, not a hardcoded secret\n\tDB         int\n\tPrefix     string\n\tDefaultTTL time.Duration\n\tTLS        tlsutil.TLSConfig `yaml:\"tls\" json:\"tls\"`\n}\n```\nRedisCacheConfig holds configuration for the cache.redis module.\n\n```go\ntype RedisClient interface {\n\tPing(ctx context.Context) *redis.StatusCmd\n\tGet(ctx context.Context, key string) *redis.StringCmd\n\tSet(ctx context.Context, key string, value any, expiration time.Duration) *redis.StatusCmd\n\tDel(ctx context.Context, keys ...string) *redis.IntCmd\n\tClose() error\n}\n```\nRedisClient is the subset of go-redis client methods used by RedisCache. Keeping it as an interface enables mocking in tests.\n\n```go\ntype RedisNoSQL struct {\n\t// contains filtered or unexported fields\n}\n```\nRedisNoSQL is the nosql.redis module. In memory mode (addr: \"memory://\") it delegates to MemoryNoSQL. For real Redis, replace backend with a redis.Client and implement Get/Put/Delete/Query using HGetAll, HSet, Del, Scan.\n\n```go\nfunc NewRedisNoSQL(name string, cfg RedisNoSQLConfig) *RedisNoSQL\n```\nNewRedisNoSQL creates a new RedisNoSQL module.\n\n```go\nfunc (r *RedisNoSQL) Delete(ctx context.Context, key string) error\n```\n\n```go\nfunc (r *RedisNoSQL) Get(ctx context.Context, key string) (map[string]any, error)\n```\n\n```go\nfunc (r *RedisNoSQL) Init(_ modular.Application) error\n```\n\n```go\nfunc (r *RedisNoSQL) Name() string\n```\n\n```go\nfunc (r *RedisNoSQL) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (r *RedisNoSQL) Put(ctx context.Context, key string, item map[string]any) error\n```\n\n```go\nfunc (r *RedisNoSQL) Query(ctx context.Context, params map[string]any) ([]map[string]any, error)\n```\n\n```go\nfunc (r *RedisNoSQL) RequiresServices() []modular.ServiceDependency\n```\n\n```go\ntype RedisNoSQLConfig struct {\n\tAddr     string `json:\"addr\"     yaml:\"addr\"     editor:\"type=string,description=Redis server address (memory:// for in-memory fallback),default=localhost:6379,label=Address\"` // \"memory://\" =\u003e in-memory fallback\n\tPassword string `json:\"password\" yaml:\"password\" editor:\"type=string,sensitive,description=Redis password,label=Password\"`                                                      //nolint:gosec // G117: config struct field, not a hardcoded secret\n\tDB       int    `json:\"db\"       yaml:\"db\"       editor:\"type=number,description=Redis database number,default=0,label=Database\"`\n}\n```\nRedisNoSQLConfig holds configuration for the nosql.redis module.\n\nThis is a general-purpose key-value data store backed by Redis (distinct from the cache.redis module which is for TTL-based caching).\n\nWhen addr == \"memory://\" the module falls back to the in-memory backend.\n\n```go\ntype RegexMatchStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRegexMatchStep matches a regular expression against a template-resolved input string.\n\n```go\nfunc (s *RegexMatchStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the input template, runs the regex match, and returns the result.\n\n```go\nfunc (s *RegexMatchStep) Name() string\n```\nName returns the step name.\n\n```go\ntype RegionDeployConfig struct {\n\tName        string            `json:\"name\"`\n\tProvider    string            `json:\"provider\"`\n\tEndpoint    string            `json:\"endpoint\"`\n\tPriority    string            `json:\"priority\"` // primary, secondary, dr\n\tHealthCheck HealthCheckConfig `json:\"healthCheck\"`\n}\n```\nRegionDeployConfig describes a deployment region within a MultiRegionModule.\n\n```go\ntype RegionDeployStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRegionDeployStep deploys to a specific region via a platform.region module.\n\n```go\nfunc (s *RegionDeployStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *RegionDeployStep) Name() string\n```\n\n```go\ntype RegionFailoverState string\n```\nRegionFailoverState represents the failover state machine state.\n\n```go\nconst (\n\tRegionStateHealthy    RegionFailoverState = \"healthy\"\n\tRegionStateDegraded   RegionFailoverState = \"degraded\"\n\tRegionStateFailed     RegionFailoverState = \"failed\"\n\tRegionStateRecovering RegionFailoverState = \"recovering\"\n)\n```\n\n```go\ntype RegionFailoverStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRegionFailoverStep triggers failover from one region to another.\n\n```go\nfunc (s *RegionFailoverStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *RegionFailoverStep) Name() string\n```\n\n```go\ntype RegionHealth struct {\n\tName    string `json:\"name\"`\n\tStatus  string `json:\"status\"`  // healthy, degraded, failed, recovering\n\tLatency int    `json:\"latency\"` // mock latency in ms\n}\n```\nRegionHealth tracks the current health state of a region.\n\n```go\ntype RegionPromoteStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRegionPromoteStep promotes a region from secondary to primary.\n\n```go\nfunc (s *RegionPromoteStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *RegionPromoteStep) Name() string\n```\n\n```go\ntype RegionRouterInterface interface {\n\t// RouteRequest selects the best region for the given context.\n\tRouteRequest(ctx context.Context) (RegionDeployConfig, error)\n\t// Failover triggers a failover from one region to another.\n\tFailover(from, to string) error\n\t// Weights returns the current traffic routing weights per region.\n\tWeights() map[string]int\n}\n```\nRegionRouterInterface defines the interface for routing requests across regions. Implementations can use latency-based, geographic, or weighted routing.\n\n```go\ntype RegionStatusStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRegionStatusStep checks health across all regions.\n\n```go\nfunc (s *RegionStatusStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *RegionStatusStep) Name() string\n```\n\n```go\ntype RegionSyncStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRegionSyncStep synchronises state/config across all regions.\n\n```go\nfunc (s *RegionSyncStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *RegionSyncStep) Name() string\n```\n\n```go\ntype RegionWeightStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRegionWeightStep adjusts traffic routing weights for a region.\n\n```go\nfunc (s *RegionWeightStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *RegionWeightStep) Name() string\n```\n\n```go\ntype RemoteRunnerRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nRemoteRunnerRegistry exposes named RemoteRunnerSpecs to other modules. It is registered as a service under SandboxRemoteRunnerServiceName and consumed by resolveSandboxRunner in execenv\\_factory.go.\n\n```go\nfunc (r *RemoteRunnerRegistry) Get(name string) (RemoteRunnerSpec, bool)\n```\nGet returns the spec for the named runner, or (zero, false) if not found.\n\n```go\nfunc (r *RemoteRunnerRegistry) SecretsProvider() string\n```\nSecretsProvider returns the configured secrets provider name (may be empty).\n\n```go\ntype RemoteRunnerSpec struct {\n\t// Name is the runner identifier — matched against exec_env in step.sandbox_exec.\n\tName string `yaml:\"name\"`\n\t// Address is the gRPC target of the remote sandbox agent (host:port).\n\tAddress string `yaml:\"address\"`\n\t// Token is the bearer token sent on every RPC. May be a secret:// reference,\n\t// which is resolved at runner-build time via the module's secrets provider.\n\tToken string `yaml:\"token\"`\n\t// TLS holds optional mTLS settings for the connection to the agent.\n\tTLS *RemoteRunnerTLSSpec `yaml:\"tls,omitempty\"`\n\t// AllowInsecure is an explicit local/dev-only opt-in that relaxes two\n\t// otherwise-rejected insecure configurations:\n\t//   - sending a non-empty Token over a non-TLS connection, and\n\t//   - registering a runner with NEITHER a token NOR TLS.\n\t// Production must use TLS (and/or a token); never set this in production.\n\tAllowInsecure bool `yaml:\"allow_insecure\"`\n}\n```\nRemoteRunnerSpec holds the config for a single named remote sandbox runner. It maps directly to one element of the sandbox.remote\\_runners\\[\\*] config block.\n\n```go\ntype RemoteRunnerTLSSpec struct {\n\t// Cert is the path to the client certificate file (PEM).\n\tCert string `yaml:\"cert\"`\n\t// Key is the path to the client private key file (PEM).\n\tKey string `yaml:\"key\"`\n\t// CA is the path to the CA certificate used to verify the server (PEM).\n\tCA string `yaml:\"ca\"`\n}\n```\nRemoteRunnerTLSSpec carries the per-runner TLS certificate paths.\n\n```go\ntype RequestIDMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nRequestIDMiddleware reads X-Request-ID header or generates a UUID, sets it on the context and response header.\n\n```go\nfunc NewRequestIDMiddleware(name string) *RequestIDMiddleware\n```\nNewRequestIDMiddleware creates a new RequestIDMiddleware.\n\n```go\nfunc (m *RequestIDMiddleware) Init(app modular.Application) error\n```\nInit registers the middleware as a service.\n\n```go\nfunc (m *RequestIDMiddleware) Middleware() func(http.Handler) http.Handler\n```\nMiddleware returns the HTTP middleware function.\n\n```go\nfunc (m *RequestIDMiddleware) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *RequestIDMiddleware) Process(next http.Handler) http.Handler\n```\nProcess implements the HTTPMiddleware interface.\n\n```go\nfunc (m *RequestIDMiddleware) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (m *RequestIDMiddleware) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\ntype RequestParseStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRequestParseStep extracts path parameters, query parameters, request body, and optionally request headers from the HTTP request stored in pipeline metadata.\n\n```go\nfunc (s *RequestParseStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute extracts path parameters, query parameters, and/or request body from the HTTP request stored in pipeline context metadata.\n\n```go\nfunc (s *RequestParseStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ResilienceCircuitBreakerStep struct {\n\t// contains filtered or unexported fields\n}\n```\nResilienceCircuitBreakerStep wraps a sub-step with circuit breaker protection. It tracks failures and opens the circuit when the threshold is reached, executing a fallback step (if configured) when the circuit is open.\n\n```go\nfunc (s *ResilienceCircuitBreakerStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute checks the circuit state and either runs the sub-step or the fallback.\n\n```go\nfunc (s *ResilienceCircuitBreakerStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ResourceSpec struct {\n\tCPU    string `json:\"cpu\"`    // e.g. \"500m\"\n\tMemory string `json:\"memory\"` // e.g. \"512Mi\"\n}\n```\nResourceSpec defines CPU and memory limits for a container.\n\n```go\ntype ResourceStateMapping struct {\n\tResourceType  string // Type of resource (e.g., \"orders\", \"users\")\n\tStateMachine  string // Name of the state machine\n\tInstanceIDKey string // Field in resource data that maps to state machine instance ID\n}\n```\nResourceStateMapping defines how a resource maps to a state machine\n\n```go\ntype RetryWithBackoffStep struct {\n\t// contains filtered or unexported fields\n}\n```\nRetryWithBackoffStep executes a sub-step with exponential backoff retry logic.\n\n```go\nfunc (s *RetryWithBackoffStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs the sub-step with exponential backoff retries on failure.\n\n```go\nfunc (s *RetryWithBackoffStep) Name() string\n```\nName returns the step name.\n\n```go\ntype Route struct {\n\tMethod      string\n\tPath        string\n\tHandler     HTTPHandler\n\tMiddlewares []HTTPMiddleware\n}\n```\nRoute represents an HTTP route\n\n```go\ntype RouteDefinition struct {\n\tMethod      string\n\tPath        string\n\tHandler     string\n\tMiddlewares []string\n\tSummary     string\n\tTags        []string\n}\n```\nRouteDefinition is a simplified route for external spec building.\n\n```go\ntype RuntimeEngineBuilder func(cfg *config.WorkflowConfig, logger *slog.Logger) (stopFunc func(context.Context) error, err error)\n```\nRuntimeEngineBuilder creates and starts an engine from a workflow config. It returns a stop function that should be called to shut down the engine.\n\n```go\ntype RuntimeHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nRuntimeHandler exposes HTTP endpoints for managing runtime workflow instances.\n\n```go\nfunc NewRuntimeHandler(manager *RuntimeManager) *RuntimeHandler\n```\nNewRuntimeHandler creates a new handler backed by a RuntimeManager.\n\n```go\nfunc (h *RuntimeHandler) RegisterRoutes(mux *http.ServeMux)\n```\nRegisterRoutes registers runtime management routes on the given mux.\n\n```go\nfunc (h *RuntimeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements http.Handler for delegate dispatch. The delegate step passes the full original path, so we match against it.\n\n```go\ntype RuntimeInstance struct {\n\tID         string         `json:\"id\"`\n\tName       string         `json:\"name\"`\n\tConfigPath string         `json:\"config_path\"`\n\tWorkDir    string         `json:\"work_dir\"`\n\tStatus     string         `json:\"status\"` // \"running\", \"stopped\", \"error\"\n\tStartedAt  time.Time      `json:\"started_at\"`\n\tError      string         `json:\"error,omitempty\"`\n\tPorts      map[string]int `json:\"ports,omitempty\"`\n\tConfig     *config.WorkflowConfig\n\t// contains filtered or unexported fields\n}\n```\nRuntimeInstance represents a running workflow loaded from the filesystem.\n\n```go\ntype RuntimeManager struct {\n\t// contains filtered or unexported fields\n}\n```\nRuntimeManager manages workflow instances loaded from the filesystem. It is used with the --load-workflows CLI flag to run example workflows alongside the admin server.\n\n```go\nfunc NewRuntimeManager(store *V1Store, builder RuntimeEngineBuilder, logger *slog.Logger) *RuntimeManager\n```\nNewRuntimeManager creates a new runtime manager.\n\n```go\nfunc (rm *RuntimeManager) AnnounceServices(instance *RuntimeInstance)\n```\nAnnounceServices logs the ports assigned to a workflow instance.\n\n```go\nfunc (rm *RuntimeManager) GetInstance(id string) (*RuntimeInstance, bool)\n```\nGetInstance returns a specific workflow instance by ID.\n\n```go\nfunc (rm *RuntimeManager) LaunchFromPath(ctx context.Context, path string) (*RuntimeInstance, error)\n```\nLaunchFromPath loads a workflow config from a server-local path and starts it. The path can be a YAML file or a directory containing workflow.yaml.\n\n```go\nfunc (rm *RuntimeManager) LaunchFromWorkspace(ctx context.Context, id, name, yamlContent, workspaceDir string) error\n```\nLaunchFromWorkspace creates and starts a workflow engine from a YAML config string, optionally setting the workspace directory for relative path resolution.\n\n```go\nfunc (rm *RuntimeManager) LaunchFromYAML(ctx context.Context, id, name, yamlContent string) error\n```\nLaunchFromYAML creates and starts a workflow engine from a YAML config string. The id parameter links this instance to its workflow record in the store.\n\n```go\nfunc (rm *RuntimeManager) ListInstances() []RuntimeInstance\n```\nListInstances returns all workflow instances.\n\n```go\nfunc (rm *RuntimeManager) LoadFromPaths(ctx context.Context, paths []string) error\n```\nLoadFromPaths loads workflows from comma-separated paths. Each path can be a YAML file or a directory containing workflow.yaml.\n\n```go\nfunc (rm *RuntimeManager) SetPortAllocator(pa *PortAllocator)\n```\nSetPortAllocator configures the port allocator for automatic port assignment.\n\n```go\nfunc (rm *RuntimeManager) StopAll(ctx context.Context) error\n```\nStopAll stops all running workflow instances.\n\n```go\nfunc (rm *RuntimeManager) StopWorkflow(ctx context.Context, id string) error\n```\nStopWorkflow stops a specific running workflow.\n\n```go\ntype SASTScanOpts struct {\n\tScanner        string\n\tSourcePath     string\n\tRules          []string\n\tFailOnSeverity string\n\tOutputFormat   string\n}\n```\nSASTScanOpts configures a SAST scan.\n\n```go\ntype SQLTenantRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nSQLTenantRegistry is a PostgreSQL-backed implementation of interfaces.TenantRegistry. It maintains a bounded LRU cache in front of the database to reduce hot-path latency.\n\n```go\nfunc NewSQLTenantRegistry(cfg SQLTenantRegistryConfig) (*SQLTenantRegistry, error)\n```\nNewSQLTenantRegistry creates a new SQLTenantRegistry.\n\n```go\nfunc (r *SQLTenantRegistry) Disable(id string) error\n```\nDisable soft-deletes a tenant by setting is\\_active = false.\n\n```go\nfunc (r *SQLTenantRegistry) Ensure(spec interfaces.TenantSpec) (interfaces.Tenant, error)\n```\nEnsure creates the tenant if it doesn't exist, or returns the existing one.\n\n```go\nfunc (r *SQLTenantRegistry) GetByDomain(domain string) (interfaces.Tenant, error)\n```\nGetByDomain looks up a tenant by domain.\n\n```go\nfunc (r *SQLTenantRegistry) GetByID(id string) (interfaces.Tenant, error)\n```\nGetByID looks up a tenant by ID.\n\n```go\nfunc (r *SQLTenantRegistry) GetBySlug(slug string) (interfaces.Tenant, error)\n```\nGetBySlug looks up a tenant by slug.\n\n```go\nfunc (r *SQLTenantRegistry) List(filter interfaces.TenantFilter) ([]interfaces.Tenant, error)\n```\nList returns tenants matching the filter.\n\n```go\nfunc (r *SQLTenantRegistry) MigrationsDependencies() []string\n```\nMigrationsDependencies returns no dependencies (tenants is a root module).\n\n```go\nfunc (r *SQLTenantRegistry) ProvidesMigrations() (fs.FS, error)\n```\nProvidesMigrations returns the embedded migration FS. Implements interfaces.MigrationProvider.\n\n```go\nfunc (r *SQLTenantRegistry) Update(id string, patch interfaces.TenantPatch) (interfaces.Tenant, error)\n```\nUpdate applies a partial patch to an existing tenant.\n\n```go\ntype SQLTenantRegistryConfig struct {\n\tDB     *sql.DB\n\tSchema TenantSchemaConfig\n\t// CacheSize controls the in-memory LRU cache size.\n\t//   \u003c 0 — disable cache entirely (no LRU)\n\t//   0   — use default (256 entries)\n\t//   \u003e 0 — use this many entries\n\tCacheSize int\n\tCacheTTL  time.Duration // 0 = use default 60s\n}\n```\nSQLTenantRegistryConfig is the constructor configuration.\n\n```go\ntype SQLiteStorage struct {\n\t// contains filtered or unexported fields\n}\n```\nSQLiteStorage is a module that provides a SQLite database connection as a service. Other modules can depend on it for local SQL storage.\n\n```go\nfunc NewSQLiteStorage(name, dbPath string) *SQLiteStorage\n```\nNewSQLiteStorage creates a new SQLite storage module.\n\n```go\nfunc (s *SQLiteStorage) DB() *sql.DB\n```\nDB returns the underlying \\*sql.DB connection.\n\n```go\nfunc (s *SQLiteStorage) DriverName() string\n```\nDriverName returns \"sqlite3\" for placeholder normalization.\n\n```go\nfunc (s *SQLiteStorage) Init(app modular.Application) error\n```\n\n```go\nfunc (s *SQLiteStorage) Name() string\n```\n\n```go\nfunc (s *SQLiteStorage) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (s *SQLiteStorage) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (s *SQLiteStorage) SetMaxConnections(n int)\n```\nSetMaxConnections sets the maximum number of database connections.\n\n```go\nfunc (s *SQLiteStorage) SetWALMode(enabled bool)\n```\nSetWALMode enables or disables WAL journal mode.\n\n```go\nfunc (s *SQLiteStorage) Start(_ context.Context) error\n```\nStart opens the SQLite database connection. Idempotent: if the DB is already open, this is a no-op.\n\n```go\nfunc (s *SQLiteStorage) Stop(_ context.Context) error\n```\nStop closes the database connection.\n\n```go\ntype SSEEvent struct {\n\tID    string `json:\"id\"`\n\tEvent string `json:\"event\"` // \"step.started\", \"step.completed\", \"step.failed\", etc.\n\tData  string `json:\"data\"`  // JSON-encoded event data\n}\n```\nSSEEvent represents a Server-Sent Event for execution tracing.\n\n```go\ntype SSETracer struct {\n\t// contains filtered or unexported fields\n}\n```\nSSETracer provides Server-Sent Events for live execution tracing. Clients subscribe to a specific execution ID (or \"\\*\" for all executions) and receive real-time events as the workflow progresses.\n\n```go\nfunc NewSSETracer(logger *slog.Logger) *SSETracer\n```\nNewSSETracer creates a new SSETracer with the given logger.\n\n```go\nfunc (t *SSETracer) ActiveSubscribers() int\n```\nActiveSubscribers returns the count of currently active subscriber connections.\n\n```go\nfunc (t *SSETracer) Handler() http.HandlerFunc\n```\nHandler returns an HTTP handler for SSE streaming at GET /api/v1/executions/{id}/stream.\n\nThe handler:\n\n  - Sets SSE-appropriate headers (Content-Type, Cache-Control, Connection)\n  - Extracts the execution ID from the URL path\n  - Subscribes to events for that execution ID\n  - Writes events in SSE format: \"id: ...\\\\nevent: ...\\\\ndata: ...\\\\n\\\\n\"\n  - Cleans up on client disconnect (context cancellation)\n\n```go\nfunc (t *SSETracer) Publish(executionID string, event SSEEvent)\n```\nPublish sends an event to all subscribers matching the given execution ID. Events are delivered to:\n\n  - subscribers registered for the specific executionID\n  - subscribers registered with the wildcard \"\\*\"\n\nIf a subscriber's channel is full, the event is dropped for that subscriber (non-blocking send to prevent slow consumers from stalling the publisher).\n\n```go\nfunc (t *SSETracer) Subscribe(executionID string) (\u003c-chan SSEEvent, func())\n```\nSubscribe registers a new subscriber for the given execution ID. Use \"\\*\" as executionID to receive events for all executions. Returns a read-only channel of events and an unsubscribe function. The caller must invoke the unsubscribe function when done to prevent leaks.\n\n```go\ntype SandboxExecStep struct {\n\t// contains filtered or unexported fields\n}\n```\nSandboxExecStep runs a command in a hardened Docker sandbox container.\n\n```go\nfunc (s *SandboxExecStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs the configured command in a Docker sandbox.\n\n```go\nfunc (s *SandboxExecStep) Name() string\n```\nName returns the step name.\n\n```go\ntype SandboxRemoteRunnersModule struct {\n\t// contains filtered or unexported fields\n}\n```\nSandboxRemoteRunnersModule is a modular.Module that parses the sandbox.remote\\_runners config section and registers a RemoteRunnerRegistry as a service. Other modules (e.g. execenv\\_factory) retrieve the registry via app.GetService(SandboxRemoteRunnerServiceName, ...).\n\nConfig structure (YAML excerpt):\n\n\tmodules:\n\t  - name: my-runners\n\t    type: sandbox.remote_runners\n\t    secrets_provider: my-vault   # optional; resolves secret:// tokens\n\t    remote_runners:\n\t      - name: prod-runner\n\t        address: \"agent.example.com:50051\"\n\t        token: \"secret://runner/token\"\n\t        tls:\n\t          cert: \"/etc/certs/client.crt\"\n\t          key: \"/etc/certs/client.key\"\n\t          ca: \"/etc/certs/ca.crt\"\n\n```go\nfunc NewSandboxRemoteRunnersModule(name string, cfg map[string]any) *SandboxRemoteRunnersModule\n```\nNewSandboxRemoteRunnersModule creates a new module from the provided name and config map. Config fields:\n\n  - remote\\_runners: \\[]map with name/address/token/tls/allow\\_insecure fields.\n  - secrets\\_provider: optional name of a secrets module for secret:// token refs.\n\n```go\nfunc (m *SandboxRemoteRunnersModule) Init(_ modular.Application) error\n```\nInit validates the parsed specs and builds the registry. It rejects:\n\n  - a runner whose name is empty or a reserved value (would be unreachable),\n  - duplicate runner names (a second silently overwriting the first),\n  - a missing address,\n  - a no-auth-no-TLS runner unless it opts in via allow\\_insecure.\n\n```go\nfunc (m *SandboxRemoteRunnersModule) Name() string\n```\nName satisfies modular.Module.\n\n```go\nfunc (m *SandboxRemoteRunnersModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices exposes the RemoteRunnerRegistry under SandboxRemoteRunnerServiceName.\n\n```go\nfunc (m *SandboxRemoteRunnersModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns nil — this module has no service dependencies.\n\n```go\nfunc (m *SandboxRemoteRunnersModule) Start(_ context.Context) error\n```\nStart is a no-op.\n\n```go\nfunc (m *SandboxRemoteRunnersModule) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\ntype ScaffoldAnalyzeStep struct {\n\t// contains filtered or unexported fields\n}\n```\nScaffoldAnalyzeStep reads an OpenAPI spec from the HTTP request body, analyzes it, and returns the parsed resource/operation structure as JSON.\n\n```go\nfunc (s *ScaffoldAnalyzeStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute reads the OpenAPI spec from the request body, calls scaffold.AnalyzeOnly, and writes the result as a JSON response.\n\n```go\nfunc (s *ScaffoldAnalyzeStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ScaffoldStep struct {\n\t// contains filtered or unexported fields\n}\n```\nScaffoldStep generates a Vite+React+TypeScript UI scaffold from an OpenAPI spec in the request body and returns it as a downloadable ZIP archive.\n\n```go\nfunc (s *ScaffoldStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute reads the OpenAPI spec from the request body, generates scaffold files, and writes them as a ZIP response.\n\n```go\nfunc (s *ScaffoldStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ScanContainerStep struct {\n\t// contains filtered or unexported fields\n}\n```\nScanContainerStep runs a container vulnerability scanner (e.g., Trivy) against a target image and evaluates findings against a severity gate. Execution is delegated to a SecurityScannerProvider registered under the \"security-scanner\" service.\n\n```go\nfunc (s *ScanContainerStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute runs the container scanner via the SecurityScannerProvider and evaluates the severity gate. Returns an error if the gate fails or no provider is configured.\n\n```go\nfunc (s *ScanContainerStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ScanDepsStep struct {\n\t// contains filtered or unexported fields\n}\n```\nScanDepsStep runs a dependency vulnerability scanner (e.g., Grype) against a source path and evaluates findings against a severity gate. Execution is delegated to a SecurityScannerProvider registered under the \"security-scanner\" service.\n\n```go\nfunc (s *ScanDepsStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute runs the dependency scanner via the SecurityScannerProvider and evaluates the severity gate. Returns an error if the gate fails or no provider is configured.\n\n```go\nfunc (s *ScanDepsStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ScanResult struct {\n\tScanner    string      `json:\"scanner\"`\n\tFindings   []Finding   `json:\"findings\"`\n\tSummary    ScanSummary `json:\"summary\"`\n\tPassedGate bool        `json:\"passed_gate\"`\n}\n```\nScanResult holds the output of a security scanner.\n\n```go\nfunc NewScanResult(scanner string) *ScanResult\n```\nNewScanResult creates a ScanResult for the given scanner name.\n\n```go\nfunc (sr *ScanResult) AddFinding(f Finding)\n```\nAddFinding appends a finding to the scan result.\n\n```go\nfunc (sr *ScanResult) ComputeSummary()\n```\nComputeSummary tallies findings by severity level.\n\n```go\nfunc (sr *ScanResult) EvaluateGate(threshold string) bool\n```\nEvaluateGate checks whether the scan passes a severity gate. The gate passes if no findings are at or above the given threshold severity. For example, threshold \"high\" means the gate fails if any critical or high findings exist.\n\n```go\ntype ScanSASTStep struct {\n\t// contains filtered or unexported fields\n}\n```\nScanSASTStep runs a SAST (Static Application Security Testing) scanner and evaluates findings against a severity gate. Execution is delegated to a SecurityScannerProvider registered under the \"security-scanner\" service.\n\n```go\nfunc (s *ScanSASTStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute runs the SAST scanner via the SecurityScannerProvider and evaluates the severity gate. Returns an error if the gate fails or no provider is configured.\n\n```go\nfunc (s *ScanSASTStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ScanSummary struct {\n\tCritical int `json:\"critical\"`\n\tHigh     int `json:\"high\"`\n\tMedium   int `json:\"medium\"`\n\tLow      int `json:\"low\"`\n\tInfo     int `json:\"info\"`\n}\n```\nScanSummary counts findings by severity level.\n\n```go\ntype ScheduleTrigger struct {\n\t// contains filtered or unexported fields\n}\n```\nScheduleTrigger implements a trigger that starts workflows based on a schedule\n\n```go\nfunc NewScheduleTrigger() *ScheduleTrigger\n```\nNewScheduleTrigger creates a new schedule trigger\n\n```go\nfunc NewScheduleTriggerWithNamespace(namespace ModuleNamespaceProvider) *ScheduleTrigger\n```\nNewScheduleTriggerWithNamespace creates a new schedule trigger with namespace support\n\n```go\nfunc (t *ScheduleTrigger) Configure(app modular.Application, triggerConfig any) error\n```\nConfigure sets up the trigger from configuration\n\n```go\nfunc (t *ScheduleTrigger) Init(app modular.Application) error\n```\nInit initializes the trigger\n\n```go\nfunc (t *ScheduleTrigger) Name() string\n```\nName returns the name of this trigger\n\n```go\nfunc (t *ScheduleTrigger) Start(ctx context.Context) error\n```\nStart starts the trigger\n\n```go\nfunc (t *ScheduleTrigger) Stop(ctx context.Context) error\n```\nStop stops the trigger\n\n```go\ntype ScheduleTriggerConfig struct {\n\tJobs []ScheduleTriggerJob `json:\"jobs\" yaml:\"jobs\"`\n}\n```\nScheduleTriggerConfig represents the configuration for a schedule trigger\n\n```go\ntype ScheduleTriggerJob struct {\n\tCron     string         `json:\"cron\" yaml:\"cron\"`\n\tWorkflow string         `json:\"workflow\" yaml:\"workflow\"`\n\tAction   string         `json:\"action\" yaml:\"action\"`\n\tParams   map[string]any `json:\"params,omitempty\" yaml:\"params,omitempty\"`\n}\n```\nScheduleTriggerJob represents a single scheduled job configuration\n\n```go\ntype ScheduledJobInfo struct {\n\t// contains filtered or unexported fields\n}\n```\nScheduledJobInfo captures information about a scheduled job\n\n```go\ntype ScheduledWindow struct {\n\tWeekdays  []time.Weekday\n\tStartHour int\n\tEndHour   int\n}\n```\nScheduledWindow defines a time window during which a scheduled gate passes.\n\n```go\ntype Scheduler interface {\n\tSchedule(job Job) error\n\tStart(ctx context.Context) error\n\tStop(ctx context.Context) error\n}\n```\nScheduler represents a job scheduler\n\n```go\ntype SchemaEntry struct {\n\tEnv       string `json:\"env\"`\n\tRequired  bool   `json:\"required\"`\n\tDefault   string `json:\"default\"`\n\tSensitive bool   `json:\"sensitive\"`\n\tDesc      string `json:\"desc\"`\n}\n```\nSchemaEntry defines a single configuration key's metadata.\n\n```go\ntype SecretFetchProvider interface {\n\tGet(ctx context.Context, key string) (string, error)\n}\n```\nSecretFetchProvider is the minimal interface required by SecretFetchStep. Both SecretsAWSModule and SecretsVaultModule satisfy this interface.\n\n```go\ntype SecretFetchStep struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretFetchStep fetches one or more secrets from a named secrets module (e.g. secrets.aws, secrets.vault) and exposes the resolved values as step outputs. Secret IDs / ARNs are Go template expressions evaluated against the live PipelineContext, enabling per-tenant dynamic resolution:\n\n\tconfig:\n\t  module: aws-secrets\n\t  secrets:\n\t    token_url: \"{{.steps.lookup.row.token_url_arn}}\"\n\t    client_id: \"{{.steps.lookup.row.client_id_arn}}\"\n\n```go\nfunc (s *SecretFetchStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the secret IDs/ARNs using the pipeline context (enabling per-tenant dynamic resolution), fetches each secret from the named secrets module, and returns the resolved values as step output.\n\n```go\nfunc (s *SecretFetchStep) Name() string\n```\nName returns the step name.\n\n```go\ntype SecretRef struct {\n\tProvider string `json:\"provider\" yaml:\"provider\"`\n\tKey      string `json:\"key\"      yaml:\"key\"`\n}\n```\nSecretRef is a {provider, key} pair that points to a value stored in a named secrets provider.  Use it instead of embedding credentials inline.\n\n```go\ntype SecretRotateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretRotateStep rotates a secret in a RotationProvider and returns the new value.\n\n```go\nfunc (s *SecretRotateStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\nExecute rotates the secret by calling RotationProvider.Rotate and returns output indicating the rotation was successful.\n\n```go\nfunc (s *SecretRotateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype SecretSetProvider interface {\n\tSet(ctx context.Context, key, value string) error\n}\n```\nSecretSetProvider is the minimal interface required by SecretSetStep. Any module used by step.secret\\_set must expose a Set method matching this signature — either directly on the registered service, or on the underlying secrets.Provider accessible via a Provider() accessor. Built-in secrets modules (secrets.aws, secrets.vault) satisfy this via their Provider() method since the module wrappers don't expose Set directly.\n\n```go\ntype SecretSetStep struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretSetStep writes one or more secrets to a named secrets module (e.g. secrets.aws, secrets.vault). Secret values are Go template expressions evaluated against the live PipelineContext, enabling dynamic values from prior step outputs or trigger data:\n\n\tconfig:\n\t  module: zoom-secrets\n\t  secrets:\n\t    client_id: \"{{.steps.form.client_id}}\"\n\t    client_secret: \"{{.steps.form.client_secret}}\"\n\n```go\nfunc (s *SecretSetStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the value templates using the pipeline context, writes each secret to the named secrets module via provider.Set, and returns the list of written keys as step output for observability.\n\nEmpty resolved values are permitted (useful for clearing a secret). On partial failure (e.g., the 3rd of 5 keys fails), earlier writes are already committed — secrets backends have no transaction primitive. The returned error identifies which key failed.\n\n```go\nfunc (s *SecretSetStep) Name() string\n```\nName returns the step name.\n\n```go\ntype SecretsAWSModule struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretsAWSModule provides an AWS Secrets Manager secret provider as a modular service.\n\n```go\nfunc NewSecretsAWSModule(name string) *SecretsAWSModule\n```\nNewSecretsAWSModule creates a new AWS Secrets Manager module.\n\n```go\nfunc (m *SecretsAWSModule) Get(ctx context.Context, key string) (string, error)\n```\nGet retrieves a secret from AWS Secrets Manager.\n\n```go\nfunc (m *SecretsAWSModule) Init(app modular.Application) error\n```\n\n```go\nfunc (m *SecretsAWSModule) Name() string\n```\n\n```go\nfunc (m *SecretsAWSModule) Provider() secrets.Provider\n```\nProvider returns the underlying secrets.Provider.\n\n```go\nfunc (m *SecretsAWSModule) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *SecretsAWSModule) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *SecretsAWSModule) SetAccessKeyID(id string)\n```\nSetAccessKeyID sets the AWS access key ID.\n\n```go\nfunc (m *SecretsAWSModule) SetRegion(region string)\n```\nSetRegion sets the AWS region.\n\n```go\nfunc (m *SecretsAWSModule) SetSecretAccessKey(key string)\n```\nSetSecretAccessKey sets the AWS secret access key.\n\n```go\nfunc (m *SecretsAWSModule) Start(_ context.Context) error\n```\nStart initializes the AWS Secrets Manager provider.\n\n```go\nfunc (m *SecretsAWSModule) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\ntype SecretsKeychainModule struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretsKeychainModule provides an OS-keychain-backed secret provider as a modular service. It uses the macOS Keychain, Linux Secret Service, or Windows Credential Manager via github.com/zalando/go-keyring.\n\n```go\nfunc NewSecretsKeychainModule(name string) *SecretsKeychainModule\n```\nNewSecretsKeychainModule creates a new OS keychain secrets module.\n\n```go\nfunc (m *SecretsKeychainModule) Get(ctx context.Context, key string) (string, error)\n```\nGet retrieves a secret from the OS keychain.\n\n```go\nfunc (m *SecretsKeychainModule) Init(app modular.Application) error\n```\n\n```go\nfunc (m *SecretsKeychainModule) Name() string\n```\n\n```go\nfunc (m *SecretsKeychainModule) Provider() secrets.Provider\n```\nProvider returns the underlying secrets.Provider.\n\n```go\nfunc (m *SecretsKeychainModule) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *SecretsKeychainModule) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *SecretsKeychainModule) SetService(service string)\n```\nSetService sets the keychain service namespace.\n\n```go\nfunc (m *SecretsKeychainModule) Start(_ context.Context) error\n```\nStart initializes the keychain provider.\n\n```go\nfunc (m *SecretsKeychainModule) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\ntype SecretsVaultModule struct {\n\t// contains filtered or unexported fields\n}\n```\nSecretsVaultModule provides a HashiCorp Vault secret provider as a modular service. It supports two modes:\n\n  - \"remote\" (default): connects to an external Vault server\n  - \"dev\": manages a local Vault dev server subprocess\n\n```go\nfunc NewSecretsVaultModule(name string) *SecretsVaultModule\n```\nNewSecretsVaultModule creates a new Vault secrets module.\n\n```go\nfunc (m *SecretsVaultModule) Get(ctx context.Context, key string) (string, error)\n```\nGet retrieves a secret from Vault.\n\n```go\nfunc (m *SecretsVaultModule) Init(app modular.Application) error\n```\n\n```go\nfunc (m *SecretsVaultModule) Name() string\n```\n\n```go\nfunc (m *SecretsVaultModule) Provider() secrets.Provider\n```\nProvider returns the underlying secrets.Provider.\n\n```go\nfunc (m *SecretsVaultModule) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *SecretsVaultModule) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *SecretsVaultModule) SetAddress(addr string)\n```\nSetAddress sets the Vault server address.\n\n```go\nfunc (m *SecretsVaultModule) SetMode(mode string)\n```\nSetMode sets the provider mode: \"remote\" or \"dev\".\n\n```go\nfunc (m *SecretsVaultModule) SetMountPath(path string)\n```\nSetMountPath sets the KV v2 mount path.\n\n```go\nfunc (m *SecretsVaultModule) SetNamespace(ns string)\n```\nSetNamespace sets the Vault namespace.\n\n```go\nfunc (m *SecretsVaultModule) SetToken(token string)\n```\nSetToken sets the Vault authentication token.\n\n```go\nfunc (m *SecretsVaultModule) Start(_ context.Context) error\n```\nStart initializes the Vault provider based on the configured mode.\n\n```go\nfunc (m *SecretsVaultModule) Stop(_ context.Context) error\n```\nStop cleans up the Vault provider. For dev mode, this stops the subprocess.\n\n```go\ntype SecurityHeadersConfig struct {\n\tContentSecurityPolicy string `yaml:\"contentSecurityPolicy\" default:\"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'\"`\n\tFrameOptions          string `yaml:\"frameOptions\" default:\"DENY\"`\n\tContentTypeOptions    string `yaml:\"contentTypeOptions\" default:\"nosniff\"`\n\tHSTSMaxAge            int    `yaml:\"hstsMaxAge\" default:\"31536000\"`\n\tReferrerPolicy        string `yaml:\"referrerPolicy\" default:\"strict-origin-when-cross-origin\"`\n\tPermissionsPolicy     string `yaml:\"permissionsPolicy\" default:\"camera=(), microphone=(), geolocation=()\"`\n}\n```\nSecurityHeadersConfig holds configuration for the security headers middleware.\n\n```go\ntype SecurityHeadersMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\nSecurityHeadersMiddleware adds standard security headers to HTTP responses.\n\n```go\nfunc NewSecurityHeadersMiddleware(name string, cfg SecurityHeadersConfig) *SecurityHeadersMiddleware\n```\nNewSecurityHeadersMiddleware creates a new SecurityHeadersMiddleware.\n\n```go\nfunc (m *SecurityHeadersMiddleware) Init(app modular.Application) error\n```\nInit registers the middleware as a service.\n\n```go\nfunc (m *SecurityHeadersMiddleware) Middleware() func(http.Handler) http.Handler\n```\nMiddleware returns the HTTP middleware function.\n\n```go\nfunc (m *SecurityHeadersMiddleware) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *SecurityHeadersMiddleware) Process(next http.Handler) http.Handler\n```\nProcess implements the HTTPMiddleware interface.\n\n```go\nfunc (m *SecurityHeadersMiddleware) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (m *SecurityHeadersMiddleware) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module.\n\n```go\ntype SecurityScannerProvider interface {\n\tScanSAST(ctx context.Context, opts SASTScanOpts) (*ScanResult, error)\n\tScanContainer(ctx context.Context, opts ContainerScanOpts) (*ScanResult, error)\n\tScanDeps(ctx context.Context, opts DepsScanOpts) (*ScanResult, error)\n}\n```\nSecurityScannerProvider is implemented by plugins that provide security scanning.\n\n```go\ntype ServiceInfo struct {\n\tName       string   `json:\"name\"`\n\tType       string   `json:\"type\"`\n\tImplements []string `json:\"implements\"`\n}\n```\nServiceInfo describes a registered service for API responses.\n\n```go\ntype ServiceModule struct {\n\t// contains filtered or unexported fields\n}\n```\nServiceModule wraps any Go object as a modular.Module, registering it in the service registry under the given name. This allows delegate-based dispatch: a QueryHandler or CommandHandler can name a delegate service, and that service (if it implements http.Handler) handles the actual HTTP dispatch.\n\n```go\nfunc NewServiceModule(name string, svc any) *ServiceModule\n```\nNewServiceModule creates a ServiceModule that registers svc under name.\n\n```go\nfunc (m *ServiceModule) Init(_ modular.Application) error\n```\n\n```go\nfunc (m *ServiceModule) Name() string\n```\n\n```go\nfunc (m *ServiceModule) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *ServiceModule) RequiresServices() []modular.ServiceDependency\n```\n\n```go\ntype ServiceRegistry interface {\n\t// GetService returns a service by name\n\tGetService(name string, out any) error\n\n\t// RegisterService registers a service with the application\n\tRegisterService(name string, service any) error\n}\n```\nServiceRegistry defines the interface for registering and retrieving services\n\n```go\ntype SessionSelector struct{}\n```\nSessionSelector reads a tenant ID that was previously stored in the session context (e.g., by a session middleware). The tenant ID is stored under the key sessionTenantIDContextKey.\n\n```go\nfunc (s *SessionSelector) Match(r *http.Request) (string, bool, error)\n```\n\n```go\ntype SetStep = pipeline.SetStep\n```\nSetStep sets template-resolved values in the pipeline context. Aliased from pipeline.SetStep for backwards compatibility.\n\n```go\ntype ShellExecStep struct {\n\t// contains filtered or unexported fields\n}\n```\nShellExecStep executes shell commands inside a Docker container, optionally collecting output artifacts.\n\n```go\nfunc (s *ShellExecStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs each command in a Docker sandbox and collects artifacts.\n\n```go\nfunc (s *ShellExecStep) Name() string\n```\nName returns the step name.\n\n```go\ntype SigningAlgorithm string\n```\nSigningAlgorithm defines the JWT signing algorithm for the M2M module.\n\n```go\nconst (\n\t// SigningAlgHS256 uses HMAC-SHA256 (symmetric).\n\tSigningAlgHS256 SigningAlgorithm = \"HS256\"\n\t// SigningAlgES256 uses ECDSA P-256 (asymmetric).\n\tSigningAlgES256 SigningAlgorithm = \"ES256\"\n)\n```\n\n```go\ntype SimpleHTTPHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nSimpleHTTPHandler provides a basic implementation of an HTTP handler\n\n```go\nfunc NewSimpleHTTPHandler(name string, contentType string) *SimpleHTTPHandler\n```\nNewSimpleHTTPHandler creates a new HTTP handler with the given name\n\n```go\nfunc (h *SimpleHTTPHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle implements the HTTPHandler interface\n\n```go\nfunc (h *SimpleHTTPHandler) Init(app modular.Application) error\n```\nInit initializes the HTTP handler\n\n```go\nfunc (h *SimpleHTTPHandler) Name() string\n```\nName returns the unique identifier for this module\n\n```go\nfunc (h *SimpleHTTPHandler) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns a list of services provided by this module\n\n```go\nfunc (h *SimpleHTTPHandler) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns a list of services required by this module\n\n```go\nfunc (h *SimpleHTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements the http.Handler interface\n\n```go\nfunc (h *SimpleHTTPHandler) SetHandleFunc(fn func(w http.ResponseWriter, r *http.Request))\n```\nSetHandleFunc sets a custom handler function\n\n```go\ntype SimpleMessageHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nSimpleMessageHandler provides a basic implementation of a message handler\n\n```go\nfunc NewSimpleMessageHandler(name string) *SimpleMessageHandler\n```\nNewSimpleMessageHandler creates a new message handler with the given name\n\n```go\nfunc NewSimpleMessageHandlerWithNamespace(name string, namespace ModuleNamespaceProvider) *SimpleMessageHandler\n```\nNewSimpleMessageHandlerWithNamespace creates a new message handler with namespace support\n\n```go\nfunc NewStandardSimpleMessageHandler(handlerType string, namespace ModuleNamespaceProvider) *SimpleMessageHandler\n```\nNewStandardSimpleMessageHandler creates a message handler with standard name\n\n```go\nfunc (h *SimpleMessageHandler) Constructor() modular.ModuleConstructor\n```\nConstructor returns a function to construct this module with dependencies\n\n```go\nfunc (h *SimpleMessageHandler) Dependencies() []string\n```\nDependencies returns the names of other modules this module depends on\n\n```go\nfunc (h *SimpleMessageHandler) HandleMessage(message []byte) error\n```\nHandleMessage implements the MessageHandler interface\n\n```go\nfunc (h *SimpleMessageHandler) Init(app modular.Application) error\n```\nInit initializes the module with the application context\n\n```go\nfunc (h *SimpleMessageHandler) Name() string\n```\nName returns the unique identifier for this module\n\n```go\nfunc (h *SimpleMessageHandler) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns a list of services provided by this module\n\n```go\nfunc (h *SimpleMessageHandler) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns a list of services required by this module\n\n```go\nfunc (h *SimpleMessageHandler) SetBrokerDependencies(brokerNames []string)\n```\nSetBrokerDependencies sets which message broker modules this handler depends on\n\n```go\nfunc (h *SimpleMessageHandler) SetHandleFunc(fn func(message []byte) error)\n```\nSetHandleFunc sets a custom handler function\n\n```go\nfunc (h *SimpleMessageHandler) SetProducer(producer MessageProducer)\n```\nSetProducer sets the message producer for forwarding\n\n```go\nfunc (h *SimpleMessageHandler) SetTargetTopics(topics []string)\n```\nSetTargetTopics configures topics to forward messages to\n\n```go\nfunc (h *SimpleMessageHandler) Start(ctx context.Context) error\n```\nStart is a no-op for handler (implements Startable interface)\n\n```go\nfunc (h *SimpleMessageHandler) Stop(ctx context.Context) error\n```\nStop is a no-op for handler (implements Stoppable interface)\n\n```go\ntype SimpleProxy struct {\n\t// contains filtered or unexported fields\n}\n```\nSimpleProxy is a lightweight reverse proxy module that forwards requests to backend services based on path prefix matching.\n\n```go\nfunc NewSimpleProxy(name string) *SimpleProxy\n```\nNewSimpleProxy creates a new simple reverse proxy module.\n\n```go\nfunc (p *SimpleProxy) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle proxies the request to the appropriate backend based on path prefix.\n\n```go\nfunc (p *SimpleProxy) Init(_ modular.Application) error\n```\nInit initializes the module.\n\n```go\nfunc (p *SimpleProxy) Name() string\n```\nName returns the module name.\n\n```go\nfunc (p *SimpleProxy) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (p *SimpleProxy) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns no dependencies.\n\n```go\nfunc (p *SimpleProxy) SetTargets(targets map[string]string) error\n```\nSetTargets configures the proxy targets from a map of path prefix -\u003e backend URL strings.\n\n```go\nfunc (p *SimpleProxy) Start(_ context.Context) error\n```\nStart is a no-op.\n\n```go\nfunc (p *SimpleProxy) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\ntype SimpleTokenProvider struct {\n\t// contains filtered or unexported fields\n}\n```\nSimpleTokenProvider implements a simple token-based auth provider\n\n```go\nfunc (p *SimpleTokenProvider) Authenticate(token string) (bool, map[string]any, error)\n```\nAuthenticate checks if the token is valid and returns associated claims\n\n```go\ntype SkippableStep struct {\n\t// contains filtered or unexported fields\n}\n```\nSkippableStep wraps a PipelineStep with optional skip\\_if / if guard expressions.\n\nskip\\_if: when the resolved template is truthy (non-empty, not \"false\", not \"0\"), the step is skipped. Falsy → execute.\n\nif: the logical inverse of skip\\_if. When the resolved template is truthy, the step executes. Falsy → skip.\n\nWhen both fields are set, skip\\_if takes precedence. When neither is set, the step always executes (backward compatible).\n\n```go\nfunc NewSkippableStep(inner interfaces.PipelineStep, skipIf, ifExpr string) *SkippableStep\n```\nNewSkippableStep creates a SkippableStep wrapping inner. skipIf and ifExpr may be empty strings to disable the respective guard.\n\n```go\nfunc (s *SkippableStep) Execute(ctx context.Context, pc *PipelineContext) (*interfaces.StepResult, error)\n```\nExecute evaluates skip\\_if / if guards and either skips or delegates to the wrapped step.\n\n```go\nfunc (s *SkippableStep) Name() string\n```\nName delegates to the wrapped step.\n\n```go\ntype SlackNotification struct {\n\t// contains filtered or unexported fields\n}\n```\nSlackNotification sends messages to a Slack webhook URL. It implements both the MessageHandler and modular.Module interfaces.\n\n```go\nfunc NewSlackNotification(name string) *SlackNotification\n```\nNewSlackNotification creates a new Slack notification module.\n\n```go\nfunc (s *SlackNotification) HandleMessage(message []byte) error\n```\nHandleMessage sends a message to the configured Slack webhook.\n\n```go\nfunc (s *SlackNotification) Init(app modular.Application) error\n```\nInit initializes the module with the application context.\n\n```go\nfunc (s *SlackNotification) Name() string\n```\nName returns the module name.\n\n```go\nfunc (s *SlackNotification) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module.\n\n```go\nfunc (s *SlackNotification) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns the services required by this module.\n\n```go\nfunc (s *SlackNotification) SetChannel(channel string)\n```\nSetChannel sets the Slack channel.\n\n```go\nfunc (s *SlackNotification) SetClient(client *http.Client)\n```\nSetClient sets a custom HTTP client (useful for testing).\n\n```go\nfunc (s *SlackNotification) SetUsername(username string)\n```\nSetUsername sets the Slack username.\n\n```go\nfunc (s *SlackNotification) SetWebhookURL(url string)\n```\nSetWebhookURL sets the Slack webhook URL.\n\n```go\ntype StandardHTTPHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nStandardHTTPHandler adapts a function to the HTTPHandler interface\n\n```go\nfunc (h *StandardHTTPHandler) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle implements the HTTPHandler interface\n\n```go\nfunc (h *StandardHTTPHandler) ServeHTTP(w http.ResponseWriter, r *http.Request, params map[string]string)\n```\nServeHTTP implements the http.Handler interface (for compatibility)\n\n```go\ntype StandardHTTPRouter struct {\n\t// contains filtered or unexported fields\n}\n```\nStandardHTTPRouter implements both HTTPRouter and http.Handler interfaces\n\n```go\nfunc NewStandardHTTPRouter(name string) *StandardHTTPRouter\n```\nNewStandardHTTPRouter creates a new HTTP router\n\n```go\nfunc (r *StandardHTTPRouter) AddGlobalMiddleware(mw HTTPMiddleware)\n```\nAddGlobalMiddleware appends a middleware that wraps every request served by this router, regardless of which route is matched. Global middlewares are applied in the order they are added, before any per-route middlewares. This is the correct place to attach cross-cutting concerns such as distributed tracing that must observe all traffic.\n\n```go\nfunc (r *StandardHTTPRouter) AddRoute(method, path string, handler HTTPHandler)\n```\nAddRoute adds a route to the router\n\n```go\nfunc (r *StandardHTTPRouter) AddRouteWithMiddleware(method, path string, handler HTTPHandler, middlewares []HTTPMiddleware)\n```\nAddRouteWithMiddleware adds a route with middleware to the router. If the router has already been started, the internal mux is rebuilt so that dynamically added routes (e.g. from pipeline triggers) are served.\n\n```go\nfunc (r *StandardHTTPRouter) Constructor() modular.ModuleConstructor\n```\nConstructor returns a function to construct this module with dependencies\n\n```go\nfunc (r *StandardHTTPRouter) Dependencies() []string\n```\nDependencies returns names of other modules this module depends on\n\n```go\nfunc (r *StandardHTTPRouter) HasRoute(method, path string) bool\n```\nHasRoute checks if a route with the given method and path already exists\n\n```go\nfunc (r *StandardHTTPRouter) Init(app modular.Application) error\n```\nInit initializes the module with the application context\n\n```go\nfunc (r *StandardHTTPRouter) Name() string\n```\nName returns the unique identifier for this module\n\n```go\nfunc (r *StandardHTTPRouter) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns a list of services provided by this module\n\n```go\nfunc (r *StandardHTTPRouter) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns a list of services required by this module\n\n```go\nfunc (r *StandardHTTPRouter) ServeHTTP(w http.ResponseWriter, req *http.Request)\n```\nServeHTTP implements the http.Handler interface. Global middlewares (e.g. OTEL tracing) are applied around the entire mux so every request — including health-checks and pipeline-triggered routes — is instrumented, regardless of how the route was registered.\n\nThe lock is held only long enough to copy the pre-built handler pointer; it is released before the request is dispatched to prevent lock contention during long-running requests (pipeline execution, SSE streaming, etc.).\n\n```go\nfunc (r *StandardHTTPRouter) SetServerDependencies(serverNames []string)\n```\nSetServerDependencies sets which HTTP server modules this router depends on\n\n```go\nfunc (r *StandardHTTPRouter) Start(ctx context.Context) error\n```\nStart compiles all registered routes into the internal ServeMux.\n\n```go\nfunc (r *StandardHTTPRouter) Stop(ctx context.Context) error\n```\nStop is a no-op for router (implements Stoppable interface)\n\n```go\ntype StandardHTTPServer struct {\n\t// contains filtered or unexported fields\n}\n```\nStandardHTTPServer implements the HTTPServer interface and modular.Module interfaces\n\n```go\nfunc NewStandardHTTPServer(name, address string) *StandardHTTPServer\n```\nNewStandardHTTPServer creates a new HTTP server with the given name and address\n\n```go\nfunc (s *StandardHTTPServer) ACMEChallengeListenError() \u003c-chan error\n```\nACMEChallengeListenError returns a channel that receives the first fatal error from the auxiliary ACME HTTP-01 challenge listener (port 80). This goroutine is separate from the main TLS listener and owns its own channel. The channel is nil unless autocert mode is active.\n\n```go\nfunc (s *StandardHTTPServer) AddRouter(router HTTPRouter)\n```\nAddRouter adds a router to the HTTP server\n\n```go\nfunc (s *StandardHTTPServer) Init(app modular.Application) error\n```\nInit initializes the module with the application context\n\n```go\nfunc (s *StandardHTTPServer) ListenError() \u003c-chan error\n```\nListenError returns a channel that receives the first fatal error from ListenAndServe (or its TLS variants). The channel is closed when the goroutine exits cleanly (e.g. after Shutdown). Callers can select on this channel alongside their own context to detect unexpected listener failures and restart or surface the error.\n\n```go\nfunc (s *StandardHTTPServer) Name() string\n```\nName returns the unique identifier for this module\n\n```go\nfunc (s *StandardHTTPServer) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns a list of services provided by this module\n\n```go\nfunc (s *StandardHTTPServer) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns a list of services required by this module\n\n```go\nfunc (s *StandardHTTPServer) SetTLSConfig(cfg HTTPServerTLSConfig)\n```\nSetTLSConfig configures TLS for the HTTP server.\n\n```go\nfunc (s *StandardHTTPServer) SetTimeouts(read, write, idle time.Duration)\n```\nSetTimeouts configures read, write, and idle timeouts for the HTTP server. Zero values will use defaults (30s read/write, 120s idle).\n\n```go\nfunc (s *StandardHTTPServer) Start(ctx context.Context) error\n```\nStart starts the HTTP server\n\n```go\nfunc (s *StandardHTTPServer) Stop(ctx context.Context) error\n```\nStop stops the HTTP server\n\n```go\ntype StandardNamespace struct {\n\t// contains filtered or unexported fields\n}\n```\nStandardNamespace provides a standard implementation of ModuleNamespaceProvider\n\n```go\nfunc NewStandardNamespace(prefix string, suffix string) *StandardNamespace\n```\nNewStandardNamespace creates a new standard namespace with optional prefix and suffix\n\n```go\nfunc (ns *StandardNamespace) FormatName(baseName string) string\n```\nFormatName formats a module name with the namespace prefix/suffix\n\n```go\nfunc (ns *StandardNamespace) ResolveDependency(dependencyName string) string\n```\nResolveDependency formats a dependency name with the namespace prefix/suffix\n\n```go\nfunc (ns *StandardNamespace) ResolveServiceName(serviceName string) string\n```\nResolveServiceName formats a service name with the namespace prefix/suffix\n\n```go\nfunc (ns *StandardNamespace) ValidateModuleName(moduleName string) error\n```\nValidateModuleName checks if a module name conforms to namespace requirements\n\n```go\ntype State struct {\n\tName        string         `json:\"name\" yaml:\"name\"`\n\tDescription string         `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tData        map[string]any `json:\"data,omitempty\" yaml:\"data,omitempty\"`\n\tIsFinal     bool           `json:\"isFinal\" yaml:\"isFinal\"`\n\tIsError     bool           `json:\"isError\" yaml:\"isError\"`\n}\n```\nState represents a workflow state\n\n```go\ntype StateChangeListener func(previousState, newState string, resourceID string, data map[string]any)\n```\nStateChangeListener is a function that gets called when state changes\n\n```go\ntype StateInfo struct {\n\tID            string         `json:\"id\"`\n\tResourceType  string         `json:\"resourceType\"`\n\tCurrentState  string         `json:\"currentState\"`\n\tPreviousState string         `json:\"previousState,omitempty\"`\n\tLastUpdate    time.Time      `json:\"lastUpdate\"`\n\tData          map[string]any `json:\"data,omitempty\"`\n}\n```\nStateInfo represents state information for a resource\n\n```go\ntype StateMachineDefinition struct {\n\tName         string                 `json:\"name\" yaml:\"name\"`\n\tDescription  string                 `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tStates       map[string]*State      `json:\"states\" yaml:\"states\"`\n\tTransitions  map[string]*Transition `json:\"transitions\" yaml:\"transitions\"`\n\tInitialState string                 `json:\"initialState\" yaml:\"initialState\"`\n\tData         map[string]any         `json:\"data,omitempty\" yaml:\"data,omitempty\"`\n}\n```\nStateMachineDefinition defines a state machine workflow\n\n```go\ntype StateMachineEngine struct {\n\t// contains filtered or unexported fields\n}\n```\nStateMachineEngine implements a workflow state machine engine\n\n```go\nfunc NewStandardStateMachineEngine(namespace ModuleNamespaceProvider) *StateMachineEngine\n```\nNewStandardStateMachineEngine creates a state machine engine with the standard name\n\n```go\nfunc NewStateMachineEngine(name string) *StateMachineEngine\n```\nNewStateMachineEngine creates a new state machine engine\n\n```go\nfunc NewStateMachineEngineWithNamespace(name string, namespace ModuleNamespaceProvider) *StateMachineEngine\n```\nNewStateMachineEngineWithNamespace creates a new state machine engine with namespace support\n\n```go\nfunc (e *StateMachineEngine) AddGlobalTransitionHandler(handler TransitionHandler)\n```\nAddGlobalTransitionHandler adds a handler for all transitions\n\n```go\nfunc (e *StateMachineEngine) AddTransitionListener(listener TransitionListener)\n```\nAddTransitionListener registers a function to be called on every transition\n\n```go\nfunc (e *StateMachineEngine) CreateWorkflow(\n\tworkflowType string,\n\tid string,\n\tinitialData map[string]any,\n) (*WorkflowInstance, error)\n```\nCreateWorkflow creates a new workflow instance\n\n```go\nfunc (e *StateMachineEngine) GetAllInstances() ([]*WorkflowInstance, error)\n```\nGetAllInstances returns all workflow instances\n\n```go\nfunc (e *StateMachineEngine) GetInstance(id string) (*WorkflowInstance, error)\n```\nGetInstance retrieves a workflow instance by ID\n\n```go\nfunc (e *StateMachineEngine) GetInstancesByType(workflowType string) ([]*WorkflowInstance, error)\n```\nGetInstancesByType retrieves workflow instances by type\n\n```go\nfunc (e *StateMachineEngine) GetOrphanedInstances() []*WorkflowInstance\n```\nGetOrphanedInstances returns workflow instances whose current state does not exist in the corresponding state machine definition. This helps operators discover instances affected by configuration drift.\n\n```go\nfunc (e *StateMachineEngine) GetTransitionHandler() TransitionHandler\n```\nGetTransitionHandler returns the current transition handler\n\n```go\nfunc (e *StateMachineEngine) HasTransitionHandler() bool\n```\nHasTransitionHandler checks if a transition handler is set\n\n```go\nfunc (e *StateMachineEngine) Init(app modular.Application) error\n```\nInit initializes the state machine engine\n\n```go\nfunc (e *StateMachineEngine) InstanceTTL() time.Duration\n```\nInstanceTTL returns the configured TTL for idle instances.\n\n```go\nfunc (e *StateMachineEngine) LoadAllPersistedInstances() error\n```\nLoadAllPersistedInstances loads workflow instances from persistence for all registered definition types and populates the in-memory maps. Instances that already exist in memory are skipped.\n\n```go\nfunc (e *StateMachineEngine) MaxInstances() int\n```\nMaxInstances returns the configured maximum number of concurrent instances.\n\n```go\nfunc (e *StateMachineEngine) Name() string\n```\nName returns the module name\n\n```go\nfunc (e *StateMachineEngine) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns services provided by this module\n\n```go\nfunc (e *StateMachineEngine) RecoverProcessingInstances(ctx context.Context, processingStates []string) int\n```\nRecoverProcessingInstances finds instances stuck in intermediate processing states and re-triggers their transitions so processing can resume after a restart. It resets each stuck instance back to PreviousState and re-fires the transition that originally moved it into the processing state.\n\n```go\nfunc (e *StateMachineEngine) RegisterDefinition(def *StateMachineDefinition) error\n```\nRegisterDefinition registers a state machine definition\n\n```go\nfunc (e *StateMachineEngine) RegisterWorkflow(def ExternalStateMachineDefinition) error\n```\nRegisterWorkflow registers a workflow definition\n\n```go\nfunc (e *StateMachineEngine) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module\n\n```go\nfunc (e *StateMachineEngine) SetInstanceTTL(d time.Duration)\n```\nSetInstanceTTL sets the TTL for idle workflow instances.\n\n```go\nfunc (e *StateMachineEngine) SetMaxInstances(n int)\n```\nSetMaxInstances sets the maximum number of concurrent workflow instances.\n\n```go\nfunc (e *StateMachineEngine) SetPersistence(ps *PersistenceStore)\n```\nSetPersistence sets the optional write-through persistence backend.\n\n```go\nfunc (e *StateMachineEngine) SetTransitionHandler(handler TransitionHandler)\n```\nSetTransitionHandler sets the handler for all state transitions\n\n```go\nfunc (e *StateMachineEngine) Start(ctx context.Context) error\n```\nStart starts the state machine engine\n\n```go\nfunc (e *StateMachineEngine) Stop(ctx context.Context) error\n```\nStop stops the state machine engine. It waits for in-flight goroutines to finish (or context to expire) and flushes all instances to persistence.\n\n```go\nfunc (e *StateMachineEngine) TrackGoroutine(fn func())\n```\nTrackGoroutine spawns a goroutine tracked by the engine's WaitGroup so that Stop() can drain in-flight work before shutdown.\n\n```go\nfunc (e *StateMachineEngine) TriggerTransition(\n\tctx context.Context,\n\tworkflowID string,\n\ttransitionName string,\n\tdata map[string]any,\n) error\n```\nTriggerTransition attempts to transition a workflow's state\n\n```go\ntype StateMachineGetStep struct {\n\t// contains filtered or unexported fields\n}\n```\nStateMachineGetStep reads the current state of a workflow instance.\n\n```go\nfunc (s *StateMachineGetStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves the entity\\_id template, looks up the StateMachineEngine, and returns the current state of the workflow instance.\n\n```go\nfunc (s *StateMachineGetStep) Name() string\n```\nName returns the step name.\n\n```go\ntype StateMachineStateConfig struct {\n\tID          string         `json:\"id\" yaml:\"id\"`\n\tDescription string         `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tIsFinal     bool           `json:\"isFinal\" yaml:\"isFinal\"`\n\tIsError     bool           `json:\"isError\" yaml:\"isError\"`\n\tData        map[string]any `json:\"data,omitempty\" yaml:\"data,omitempty\"`\n}\n```\nStateMachineStateConfig represents configuration for a state machine state\n\n```go\ntype StateMachineStateConnector struct {\n\t// contains filtered or unexported fields\n}\n```\nStateMachineStateConnector connects state machines to state tracking\n\n```go\nfunc NewStateMachineStateConnector(name string) *StateMachineStateConnector\n```\nNewStateMachineStateConnector creates a new connector\n\n```go\nfunc (c *StateMachineStateConnector) Configure(mappings []ResourceStateMapping) error\n```\nConfigure sets up the connector with resource mappings\n\n```go\nfunc (c *StateMachineStateConnector) GetEngineForResourceType(resourceType string) (string, bool)\n```\nGetEngineForResourceType finds the state machine engine for a resource type\n\n```go\nfunc (c *StateMachineStateConnector) GetResourceState(resourceType, resourceID string) (string, map[string]any, error)\n```\nGetResourceState gets the current state for a resource\n\n```go\nfunc (c *StateMachineStateConnector) Init(app modular.Application) error\n```\nInit initializes the connector\n\n```go\nfunc (c *StateMachineStateConnector) Name() string\n```\nName returns the service name\n\n```go\nfunc (c *StateMachineStateConnector) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module\n\n```go\nfunc (c *StateMachineStateConnector) RegisterMapping(resourceType, stateMachine, instanceIDKey string)\n```\nRegisterMapping adds a resource mapping\n\n```go\nfunc (c *StateMachineStateConnector) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns the services required by this module\n\n```go\nfunc (c *StateMachineStateConnector) Start(ctx context.Context) error\n```\nStart connects to state machines and sets up listeners\n\n```go\nfunc (c *StateMachineStateConnector) Stop(ctx context.Context) error\n```\nStop stops the connector\n\n```go\nfunc (c *StateMachineStateConnector) UpdateResourceState(resourceType, resourceID string) error\n```\nUpdateResourceState gets the current state from the state machine and updates the tracker\n\n```go\ntype StateMachineTransitionConfig struct {\n\tID            string         `json:\"id\" yaml:\"id\"`\n\tFromState     string         `json:\"fromState\" yaml:\"fromState\"`\n\tToState       string         `json:\"toState\" yaml:\"toState\"`\n\tCondition     string         `json:\"condition,omitempty\" yaml:\"condition,omitempty\"`\n\tAutoTransform bool           `json:\"autoTransform\" yaml:\"autoTransform\"`\n\tData          map[string]any `json:\"data,omitempty\" yaml:\"data,omitempty\"`\n}\n```\nStateMachineTransitionConfig represents configuration for a state transition\n\n```go\ntype StateMachineTransitionStep struct {\n\t// contains filtered or unexported fields\n}\n```\nStateMachineTransitionStep triggers a state machine transition from within a pipeline.\n\n```go\nfunc (s *StateMachineTransitionStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute resolves templates, looks up the StateMachineEngine by service name, and triggers the requested transition. On success it sets transition\\_ok=true and new\\_state to the resulting state. On failure it sets transition\\_ok=false and error to the error message; if fail\\_on\\_error is true the pipeline is stopped.\n\n```go\nfunc (s *StateMachineTransitionStep) Name() string\n```\nName returns the step name.\n\n```go\ntype StateTracker struct {\n\t// contains filtered or unexported fields\n}\n```\nStateTracker provides a generic service for tracking state\n\n```go\nfunc NewStateTracker(name string) *StateTracker\n```\nNewStateTracker creates a new state tracker service\n\n```go\nfunc (s *StateTracker) AddStateChangeListener(resourceType string, listener StateChangeListener)\n```\nAddStateChangeListener adds a listener for state changes of a specific resource type\n\n```go\nfunc (s *StateTracker) GetState(resourceType, resourceID string) (StateInfo, bool)\n```\nGetState retrieves state information for a resource\n\n```go\nfunc (s *StateTracker) Init(app modular.Application) error\n```\nInit initializes the service\n\n```go\nfunc (s *StateTracker) Name() string\n```\nName returns the service name\n\n```go\nfunc (s *StateTracker) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module\n\n```go\nfunc (s *StateTracker) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns the services required by this module\n\n```go\nfunc (s *StateTracker) RetentionDays() int\n```\nRetentionDays returns the configured retention period in days.\n\n```go\nfunc (s *StateTracker) SetRetentionDays(days int)\n```\nSetRetentionDays sets the state history retention in days.\n\n```go\nfunc (s *StateTracker) SetState(resourceType, resourceID, state string, data map[string]any)\n```\nSetState updates the state for a resource\n\n```go\nfunc (s *StateTracker) Start(ctx context.Context) error\n```\nStart starts the service\n\n```go\nfunc (s *StateTracker) Stop(ctx context.Context) error\n```\nStop stops the service\n\n```go\ntype StaticFileServer struct {\n\t// contains filtered or unexported fields\n}\n```\nStaticFileServer serves static files from a directory with optional SPA fallback\n\n```go\nfunc NewStaticFileServer(name, root, prefix string, opts ...StaticFileServerOption) *StaticFileServer\n```\nNewStaticFileServer creates a new static file server module. Use WithSPAFallback() and WithCacheMaxAge() to customise behaviour.\n\n```go\nfunc (s *StaticFileServer) Handle(w http.ResponseWriter, r *http.Request)\n```\nHandle serves static files\n\n```go\nfunc (s *StaticFileServer) Init(app modular.Application) error\n```\nInit initializes the module\n\n```go\nfunc (s *StaticFileServer) Name() string\n```\nName returns the module name\n\n```go\nfunc (s *StaticFileServer) Prefix() string\n```\nPrefix returns the URL prefix for this file server\n\n```go\nfunc (s *StaticFileServer) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices returns the services provided by this module\n\n```go\nfunc (s *StaticFileServer) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns services required by this module\n\n```go\nfunc (s *StaticFileServer) RouterName() string\n```\nRouterName returns the optional router name this file server should attach to. An empty string means attach to the first available router.\n\n```go\nfunc (s *StaticFileServer) SPAFallbackEnabled() bool\n```\nSPAFallbackEnabled returns whether SPA fallback is active.\n\n```go\nfunc (s *StaticFileServer) SetRouterName(name string)\n```\nSetRouterName sets the router name this file server should attach to.\n\n```go\nfunc (s *StaticFileServer) Start(ctx context.Context) error\n```\nStart is a no-op\n\n```go\nfunc (s *StaticFileServer) Stop(ctx context.Context) error\n```\nStop is a no-op\n\n```go\ntype StaticFileServerOption func(*StaticFileServer)\n```\nStaticFileServerOption is a functional option for configuring a StaticFileServer.\n\n```go\nfunc WithCacheMaxAge(seconds int) StaticFileServerOption\n```\nWithCacheMaxAge sets the Cache-Control max-age value (in seconds). Defaults to 3600 when not specified or when seconds \\\u003c= 0.\n\n```go\nfunc WithSPAFallback() StaticFileServerOption\n```\nWithSPAFallback enables Single Page Application fallback: requests for unknown paths are served with index.html instead of a 404.\n\n```go\ntype StaticFileStep struct {\n\t// contains filtered or unexported fields\n}\n```\nStaticFileStep serves a pre-loaded file from disk as an HTTP response. The file is read at init time (factory creation) for performance.\n\n```go\nfunc (s *StaticFileStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *StaticFileStep) Name() string\n```\n\n```go\ntype StaticSelector struct {\n\tTenantID string\n}\n```\nStaticSelector always returns the same configured tenant ID. Useful for single-tenant deployments or as a fallback/default in resolver chains.\n\n```go\nfunc (s *StaticSelector) Match(_ *http.Request) (string, bool, error)\n```\n\n```go\ntype StdIntegrationRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nStdIntegrationRegistry manages available integration connectors\n\n```go\nfunc NewIntegrationRegistry(name string) *StdIntegrationRegistry\n```\nNewIntegrationRegistry creates a new integration registry\n\n```go\nfunc (r *StdIntegrationRegistry) GetConnector(name string) (IntegrationConnector, error)\n```\nGetConnector retrieves a connector by name\n\n```go\nfunc (r *StdIntegrationRegistry) Init(app modular.Application) error\n```\nInit initializes the registry with service dependencies\n\n```go\nfunc (r *StdIntegrationRegistry) ListConnectors() []string\n```\nListConnectors returns all registered connectors\n\n```go\nfunc (r *StdIntegrationRegistry) Name() string\n```\nName returns the module name\n\n```go\nfunc (r *StdIntegrationRegistry) RegisterConnector(connector IntegrationConnector)\n```\nRegisterConnector adds a connector to the registry\n\n```go\nfunc (r *StdIntegrationRegistry) Start() error\n```\nStart starts all registered connectors\n\n```go\nfunc (r *StdIntegrationRegistry) Stop() error\n```\nStop stops all registered connectors\n\n```go\ntype StepFactory func(name string, config map[string]any, app modular.Application) (PipelineStep, error)\n```\nStepFactory creates a PipelineStep from its name and config.\n\n```go\nfunc NewAIClassifyStepFactory(registry *ai.AIModelRegistry) StepFactory\n```\nNewAIClassifyStepFactory returns a StepFactory that creates AIClassifyStep instances.\n\n```go\nfunc NewAICompleteStepFactory(registry *ai.AIModelRegistry) StepFactory\n```\nNewAICompleteStepFactory returns a StepFactory that creates AICompleteStep instances.\n\n```go\nfunc NewAIExtractStepFactory(registry *ai.AIModelRegistry) StepFactory\n```\nNewAIExtractStepFactory returns a StepFactory that creates AIExtractStep instances.\n\n```go\nfunc NewAppDeployStepFactory() StepFactory\n```\nNewAppDeployStepFactory returns a StepFactory for step.app\\_deploy.\n\n```go\nfunc NewAppRollbackStepFactory() StepFactory\n```\nNewAppRollbackStepFactory returns a StepFactory for step.app\\_rollback.\n\n```go\nfunc NewAppStatusStepFactory() StepFactory\n```\nNewAppStatusStepFactory returns a StepFactory for step.app\\_status.\n\n```go\nfunc NewArgoDeleteStepFactory() StepFactory\n```\nNewArgoDeleteStepFactory returns a StepFactory for step.argo\\_delete.\n\n```go\nfunc NewArgoListStepFactory() StepFactory\n```\nNewArgoListStepFactory returns a StepFactory for step.argo\\_list.\n\n```go\nfunc NewArgoLogsStepFactory() StepFactory\n```\nNewArgoLogsStepFactory returns a StepFactory for step.argo\\_logs.\n\n```go\nfunc NewArgoStatusStepFactory() StepFactory\n```\nNewArgoStatusStepFactory returns a StepFactory for step.argo\\_status.\n\n```go\nfunc NewArgoSubmitStepFactory() StepFactory\n```\nNewArgoSubmitStepFactory returns a StepFactory for step.argo\\_submit.\n\n```go\nfunc NewArtifactDeleteStepFactory() StepFactory\n```\nNewArtifactDeleteStepFactory returns a StepFactory for step.artifact\\_delete.\n\n```go\nfunc NewArtifactDownloadStepFactory() StepFactory\n```\nNewArtifactDownloadStepFactory returns a StepFactory for step.artifact\\_download.\n\n```go\nfunc NewArtifactListStepFactory() StepFactory\n```\nNewArtifactListStepFactory returns a StepFactory for step.artifact\\_list.\n\n```go\nfunc NewArtifactPullStepFactory() StepFactory\n```\nNewArtifactPullStepFactory returns a StepFactory that creates ArtifactPullStep instances.\n\n```go\nfunc NewArtifactPushStepFactory() StepFactory\n```\nNewArtifactPushStepFactory returns a StepFactory that creates ArtifactPushStep instances.\n\n```go\nfunc NewArtifactUploadStepFactory() StepFactory\n```\nNewArtifactUploadStepFactory returns a StepFactory for step.artifact\\_upload.\n\n```go\nfunc NewAuthValidateStepFactory() StepFactory\n```\nNewAuthValidateStepFactory returns a StepFactory that creates AuthValidateStep instances.\n\n```go\nfunc NewAuthzCheckStepFactory() StepFactory\n```\nNewAuthzCheckStepFactory returns a StepFactory that creates AuthzCheckStep instances.\n\n```go\nfunc NewBase64DecodeStepFactory() StepFactory\n```\nNewBase64DecodeStepFactory returns a StepFactory that creates Base64DecodeStep instances.\n\n```go\nfunc NewBranchStepFactory(registryFn func() *StepRegistry) StepFactory\n```\nNewBranchStepFactory returns a StepFactory that creates BranchStep instances. registryFn is called at step-creation time (lazy pattern, same as step.foreach and step.parallel) so the full step registry is available even if step.branch is registered before all step types.\n\n```go\nfunc NewBuildBinaryStepFactory() StepFactory\n```\nNewBuildBinaryStepFactory returns a StepFactory that creates BuildBinaryStep instances.\n\n```go\nfunc NewBuildFromConfigStepFactory() StepFactory\n```\nNewBuildFromConfigStepFactory returns a StepFactory that creates BuildFromConfigStep instances.\n\n```go\nfunc NewBuildUIStepFactory() StepFactory\n```\nNewBuildUIStepFactory returns a StepFactory that creates BuildUIStep instances.\n\n```go\nfunc NewCLIInvokeStepFactory() StepFactory\n```\nNewCLIInvokeStepFactory returns a StepFactory that creates CLIInvokeStep instances.\n\n```go\nfunc NewCLIPrintStepFactory() StepFactory\n```\nNewCLIPrintStepFactory returns a StepFactory that creates CLIPrintStep instances.\n\n```go\nfunc NewCacheDeleteStepFactory() StepFactory\n```\nNewCacheDeleteStepFactory returns a StepFactory that creates CacheDeleteStep instances.\n\n```go\nfunc NewCacheGetStepFactory() StepFactory\n```\nNewCacheGetStepFactory returns a StepFactory that creates CacheGetStep instances.\n\n```go\nfunc NewCacheSetStepFactory() StepFactory\n```\nNewCacheSetStepFactory returns a StepFactory that creates CacheSetStep instances.\n\n```go\nfunc NewCircuitBreakerStepFactory() StepFactory\n```\nNewCircuitBreakerStepFactory returns a StepFactory that creates CircuitBreakerStep instances.\n\n```go\nfunc NewCloudValidateStepFactory() StepFactory\n```\nNewCloudValidateStepFactory returns a StepFactory for step.cloud\\_validate.\n\n```go\nfunc NewCodeBuildCreateProjectStepFactory() StepFactory\n```\nNewCodeBuildCreateProjectStepFactory returns a StepFactory for step.codebuild\\_create\\_project.\n\n```go\nfunc NewCodeBuildDeleteProjectStepFactory() StepFactory\n```\nNewCodeBuildDeleteProjectStepFactory returns a StepFactory for step.codebuild\\_delete\\_project.\n\n```go\nfunc NewCodeBuildListBuildsStepFactory() StepFactory\n```\nNewCodeBuildListBuildsStepFactory returns a StepFactory for step.codebuild\\_list\\_builds.\n\n```go\nfunc NewCodeBuildLogsStepFactory() StepFactory\n```\nNewCodeBuildLogsStepFactory returns a StepFactory for step.codebuild\\_logs.\n\n```go\nfunc NewCodeBuildStartStepFactory() StepFactory\n```\nNewCodeBuildStartStepFactory returns a StepFactory for step.codebuild\\_start.\n\n```go\nfunc NewCodeBuildStatusStepFactory() StepFactory\n```\nNewCodeBuildStatusStepFactory returns a StepFactory for step.codebuild\\_status.\n\n```go\nfunc NewConditionalStepFactory() StepFactory\n```\nNewConditionalStepFactory returns a StepFactory that creates ConditionalStep instances.\n\n```go\nfunc NewConstraintCheckStepFactory() StepFactory\n```\nNewConstraintCheckStepFactory returns a StepFactory that creates ConstraintCheckStep instances.\n\n```go\nfunc NewContainerBuildStepFactory() StepFactory\n```\nNewContainerBuildStepFactory returns a StepFactory for step.container\\_build.\n\n```go\nfunc NewDBCreatePartitionStepFactory() StepFactory\n```\nNewDBCreatePartitionStepFactory returns a StepFactory for DBCreatePartitionStep.\n\n```go\nfunc NewDBExecStepFactory() StepFactory\n```\nNewDBExecStepFactory returns a StepFactory that creates DBExecStep instances.\n\n```go\nfunc NewDBQueryCachedStepFactory() StepFactory\n```\nNewDBQueryCachedStepFactory returns a StepFactory that creates DBQueryCachedStep instances.\n\n```go\nfunc NewDBQueryStepFactory() StepFactory\n```\nNewDBQueryStepFactory returns a StepFactory that creates DBQueryStep instances.\n\n```go\nfunc NewDBSyncPartitionsStepFactory() StepFactory\n```\nNewDBSyncPartitionsStepFactory returns a StepFactory for DBSyncPartitionsStep.\n\n```go\nfunc NewDLQReplayStepFactory() StepFactory\n```\nNewDLQReplayStepFactory returns a StepFactory that creates DLQReplayStep instances.\n\n```go\nfunc NewDLQSendStepFactory() StepFactory\n```\nNewDLQSendStepFactory returns a StepFactory that creates DLQSendStep instances.\n\n```go\nfunc NewDNSApplyStepFactory() StepFactory\n```\nNewDNSApplyStepFactory returns a StepFactory for step.dns\\_apply.\n\n```go\nfunc NewDNSPlanStepFactory() StepFactory\n```\nNewDNSPlanStepFactory returns a StepFactory for step.dns\\_plan.\n\n```go\nfunc NewDNSStatusStepFactory() StepFactory\n```\nNewDNSStatusStepFactory returns a StepFactory for step.dns\\_status.\n\n```go\nfunc NewDelegateStepFactory() StepFactory\n```\nNewDelegateStepFactory returns a StepFactory that creates DelegateStep instances.\n\n```go\nfunc NewDeployBlueGreenStepFactory() StepFactory\n```\nNewDeployBlueGreenStepFactory returns a StepFactory for step.deploy\\_blue\\_green.\n\n```go\nfunc NewDeployCanaryStepFactory() StepFactory\n```\nNewDeployCanaryStepFactory returns a StepFactory for step.deploy\\_canary.\n\n```go\nfunc NewDeployRollbackStepFactory() StepFactory\n```\nNewDeployRollbackStepFactory returns a StepFactory for step.deploy\\_rollback.\n\n```go\nfunc NewDeployRollingStepFactory() StepFactory\n```\nNewDeployRollingStepFactory returns a StepFactory for step.deploy\\_rolling.\n\n```go\nfunc NewDeployStepFactory() StepFactory\n```\nNewDeployStepFactory returns a StepFactory that creates DeployStep instances.\n\n```go\nfunc NewDeployVerifyStepFactory() StepFactory\n```\nNewDeployVerifyStepFactory returns a StepFactory for step.deploy\\_verify.\n\n```go\nfunc NewDockerBuildStepFactory() StepFactory\n```\nNewDockerBuildStepFactory returns a StepFactory that creates DockerBuildStep instances.\n\n```go\nfunc NewDockerPushStepFactory() StepFactory\n```\nNewDockerPushStepFactory returns a StepFactory that creates DockerPushStep instances.\n\n```go\nfunc NewDockerRunStepFactory() StepFactory\n```\nNewDockerRunStepFactory returns a StepFactory that creates DockerRunStep instances.\n\n```go\nfunc NewDriftCheckStepFactory() StepFactory\n```\nNewDriftCheckStepFactory returns a StepFactory that creates DriftCheckStep instances.\n\n```go\nfunc NewEventDecryptStepFactory() StepFactory\n```\nNewEventDecryptStepFactory returns a StepFactory that creates EventDecryptStep instances.\n\n```go\nfunc NewEventPublishStepFactory() StepFactory\n```\nNewEventPublishStepFactory returns a StepFactory that creates EventPublishStep instances.\n\n```go\nfunc NewFFGateStepFactory(service *featureflag.Service) StepFactory\n```\nNewFFGateStepFactory returns a StepFactory that creates FFGateStep instances.\n\n```go\nfunc NewFeatureFlagStepFactory(service *featureflag.Service) StepFactory\n```\nNewFeatureFlagStepFactory returns a StepFactory that creates FeatureFlagStep instances. The factory captures the FF service via closure so steps can evaluate flags at runtime.\n\n```go\nfunc NewFieldReencryptStepFactory() StepFactory\n```\nNewFieldReencryptStepFactory returns a StepFactory for step.field\\_reencrypt.\n\n```go\nfunc NewForEachStepFactory(registryFn func() *StepRegistry) StepFactory\n```\nNewForEachStepFactory returns a StepFactory that creates ForEachStep instances. registryFn is called at step-creation time to obtain the step registry used to build sub-steps. Passing a function (rather than the registry directly) allows the factory to be registered before the registry is fully populated, enabling sub-steps to themselves be any registered step type.\n\n```go\nfunc NewGateStepFactory() StepFactory\n```\nNewGateStepFactory returns a StepFactory that creates GateStep instances.\n\n```go\nfunc NewGitCheckoutStepFactory() StepFactory\n```\nNewGitCheckoutStepFactory returns a StepFactory that creates GitCheckoutStep instances.\n\n```go\nfunc NewGitCloneStepFactory() StepFactory\n```\nNewGitCloneStepFactory returns a StepFactory that creates GitCloneStep instances.\n\n```go\nfunc NewGitCommitStepFactory() StepFactory\n```\nNewGitCommitStepFactory returns a StepFactory that creates GitCommitStep instances.\n\n```go\nfunc NewGitPushStepFactory() StepFactory\n```\nNewGitPushStepFactory returns a StepFactory that creates GitPushStep instances.\n\n```go\nfunc NewGitTagStepFactory() StepFactory\n```\nNewGitTagStepFactory returns a StepFactory that creates GitTagStep instances.\n\n```go\nfunc NewGraphQLStepFactory() StepFactory\n```\nNewGraphQLStepFactory returns a StepFactory for GraphQLStep.\n\n```go\nfunc NewHTTPCallStepFactory() StepFactory\n```\nNewHTTPCallStepFactory returns a StepFactory that creates HTTPCallStep instances.\n\n```go\nfunc NewHTTPProxyStepFactory() StepFactory\n```\nNewHTTPProxyStepFactory returns a StepFactory that creates HTTPProxyStep instances.\n\n```go\nfunc NewHashStepFactory() StepFactory\n```\nNewHashStepFactory returns a StepFactory that creates HashStep instances.\n\n```go\nfunc NewIaCApplyStepFactory() StepFactory\n```\nNewIaCApplyStepFactory returns a StepFactory for step.iac\\_apply.\n\n```go\nfunc NewIaCCommitBackStepFactory(gitFn GitExecFn) StepFactory\n```\nNewIaCCommitBackStepFactory returns a StepFactory for step.iac\\_commit\\_back. gitFn is the git executor — pass the prod impl from plugins/platform/plugin.go or inject a stub in tests. The factory panics if gitFn is nil (mirrors NewIaCProviderApplyStepFactory).\n\n```go\nfunc NewIaCDestroyStepFactory() StepFactory\n```\nNewIaCDestroyStepFactory returns a StepFactory for step.iac\\_destroy.\n\n```go\nfunc NewIaCDriftDetectStepFactory() StepFactory\n```\nNewIaCDriftDetectStepFactory returns a StepFactory for step.iac\\_drift\\_detect.\n\n```go\nfunc NewIaCPlanStepFactory() StepFactory\n```\nNewIaCPlanStepFactory returns a StepFactory for step.iac\\_plan.\n\n```go\nfunc NewIaCProviderApplyStepFactory(applyFn func(ctx context.Context, p interfaces.IaCProvider, plan *interfaces.IaCPlan) (*interfaces.ApplyResult, error)) StepFactory\n```\nNewIaCProviderApplyStepFactory returns a StepFactory for step.iac\\_provider\\_apply. applyFn is the apply dispatch function — pass wfctlhelpers.ApplyPlanWithHooks (with a nil-hooks wrapper) from the registration site in plugins/platform/plugin.go. Tests may inject a stub. The factory panics if applyFn is nil.\n\n```go\nfunc NewIaCProviderCatalogStepFactory() StepFactory\n```\nNewIaCProviderCatalogStepFactory returns a StepFactory for step.iac\\_provider\\_catalog.\n\n```go\nfunc NewIaCProviderDestroyStepFactory() StepFactory\n```\nNewIaCProviderDestroyStepFactory returns a StepFactory for step.iac\\_provider\\_destroy.\n\n```go\nfunc NewIaCProviderDriftStepFactory() StepFactory\n```\nNewIaCProviderDriftStepFactory returns a StepFactory for step.iac\\_provider\\_drift.\n\n```go\nfunc NewIaCProviderListStepFactory() StepFactory\n```\nNewIaCProviderListStepFactory returns a StepFactory for step.iac\\_provider\\_list.\n\n```go\nfunc NewIaCProviderPlanStepFactory() StepFactory\n```\nNewIaCProviderPlanStepFactory returns a StepFactory for step.iac\\_provider\\_plan.\n\n```go\nfunc NewIaCProviderReconcileStepFactory(gitFn GitExecFn) StepFactory\n```\nNewIaCProviderReconcileStepFactory returns a StepFactory for step.iac\\_provider\\_reconcile. gitFn is the git executor (same pattern as NewIaCCommitBackStepFactory). The factory panics if gitFn is nil.\n\n```go\nfunc NewIaCSecretReachabilityStepFactory() StepFactory\n```\nNewIaCSecretReachabilityStepFactory returns a StepFactory for step.iac\\_secret\\_reachability.\n\n```go\nfunc NewIaCStatusStepFactory() StepFactory\n```\nNewIaCStatusStepFactory returns a StepFactory for step.iac\\_status.\n\n```go\nfunc NewJQStepFactory() StepFactory\n```\nNewJQStepFactory returns a StepFactory that creates JQStep instances.\n\n```go\nfunc NewJSONParseStepFactory() StepFactory\n```\nNewJSONParseStepFactory returns a StepFactory that creates JSONParseStep instances.\n\n```go\nfunc NewJSONResponseStepFactory() StepFactory\n```\nNewJSONResponseStepFactory returns a StepFactory that creates JSONResponseStep instances.\n\n```go\nfunc NewK8sApplyStepFactory() StepFactory\n```\nNewK8sApplyStepFactory returns a StepFactory for step.k8s\\_apply.\n\n```go\nfunc NewK8sDestroyStepFactory() StepFactory\n```\nNewK8sDestroyStepFactory returns a StepFactory for step.k8s\\_destroy.\n\n```go\nfunc NewK8sPlanStepFactory() StepFactory\n```\nNewK8sPlanStepFactory returns a StepFactory for step.k8s\\_plan.\n\n```go\nfunc NewK8sStatusStepFactory() StepFactory\n```\nNewK8sStatusStepFactory returns a StepFactory for step.k8s\\_status.\n\n```go\nfunc NewLogStepFactory() StepFactory\n```\nNewLogStepFactory returns a StepFactory that creates LogStep instances.\n\n```go\nfunc NewMarketplaceDetailStepFactory(registry MarketplaceRegistry) StepFactory\n```\nNewMarketplaceDetailStepFactory returns a StepFactory for step.marketplace\\_detail.\n\n```go\nfunc NewMarketplaceInstallStepFactory(registry MarketplaceRegistry) StepFactory\n```\nNewMarketplaceInstallStepFactory returns a StepFactory for step.marketplace\\_install.\n\n```go\nfunc NewMarketplaceInstalledStepFactory(registry MarketplaceRegistry) StepFactory\n```\nNewMarketplaceInstalledStepFactory returns a StepFactory for step.marketplace\\_installed.\n\n```go\nfunc NewMarketplaceSearchStepFactory(registry MarketplaceRegistry) StepFactory\n```\nNewMarketplaceSearchStepFactory returns a StepFactory for step.marketplace\\_search.\n\n```go\nfunc NewMarketplaceUninstallStepFactory(registry MarketplaceRegistry) StepFactory\n```\nNewMarketplaceUninstallStepFactory returns a StepFactory for step.marketplace\\_uninstall.\n\n```go\nfunc NewMarketplaceUpdateStepFactory(registry MarketplaceRegistry) StepFactory\n```\nNewMarketplaceUpdateStepFactory returns a StepFactory for step.marketplace\\_update.\n\n```go\nfunc NewNoSQLDeleteStepFactory() StepFactory\n```\nNewNoSQLDeleteStepFactory returns a StepFactory for step.nosql\\_delete.\n\n```go\nfunc NewNoSQLGetStepFactory() StepFactory\n```\nNewNoSQLGetStepFactory returns a StepFactory for step.nosql\\_get.\n\n```go\nfunc NewNoSQLPutStepFactory() StepFactory\n```\nNewNoSQLPutStepFactory returns a StepFactory for step.nosql\\_put.\n\n```go\nfunc NewNoSQLQueryStepFactory() StepFactory\n```\nNewNoSQLQueryStepFactory returns a StepFactory for step.nosql\\_query.\n\n```go\nfunc NewParallelStepFactory(registryFn func() *StepRegistry) StepFactory\n```\nNewParallelStepFactory returns a StepFactory that creates ParallelStep instances. registryFn is called at step-creation time to obtain the step registry, using the same lazy pattern as ForEachStep and RetryWithBackoffStep.\n\n```go\nfunc NewPipelineOutputStepFactory() StepFactory\n```\nNewPipelineOutputStepFactory returns a StepFactory for step.pipeline\\_output.\n\n```go\nfunc NewPlatformApplyStepFactory() StepFactory\n```\nNewPlatformApplyStepFactory returns a StepFactory that creates PlatformApplyStep instances.\n\n```go\nfunc NewPlatformDestroyStepFactory() StepFactory\n```\nNewPlatformDestroyStepFactory returns a StepFactory that creates PlatformDestroyStep instances.\n\n```go\nfunc NewPlatformPlanStepFactory() StepFactory\n```\nNewPlatformPlanStepFactory returns a StepFactory that creates PlatformPlanStep instances.\n\n```go\nfunc NewPlatformTemplateStepFactory() StepFactory\n```\nNewPlatformTemplateStepFactory returns a StepFactory that creates PlatformTemplateStep instances. The step looks up the TemplateRegistry from the modular Application's service registry.\n\n```go\nfunc NewPolicyEvaluateStepFactory() StepFactory\n```\nNewPolicyEvaluateStepFactory returns a StepFactory for step.policy\\_evaluate.\n\n```go\nfunc NewPolicyListStepFactory() StepFactory\n```\nNewPolicyListStepFactory returns a StepFactory for step.policy\\_list.\n\n```go\nfunc NewPolicyLoadStepFactory() StepFactory\n```\nNewPolicyLoadStepFactory returns a StepFactory for step.policy\\_load.\n\n```go\nfunc NewPolicyTestStepFactory() StepFactory\n```\nNewPolicyTestStepFactory returns a StepFactory for step.policy\\_test.\n\n```go\nfunc NewPublishStepFactory() StepFactory\n```\nNewPublishStepFactory returns a StepFactory that creates PublishStep instances.\n\n```go\nfunc NewRateLimitStepFactory() StepFactory\n```\nNewRateLimitStepFactory returns a StepFactory that creates RateLimitStep instances.\n\n```go\nfunc NewRawResponseStepFactory() StepFactory\n```\nNewRawResponseStepFactory returns a StepFactory that creates RawResponseStep instances.\n\n```go\nfunc NewRegexMatchStepFactory() StepFactory\n```\nNewRegexMatchStepFactory returns a StepFactory that creates RegexMatchStep instances.\n\n```go\nfunc NewRegionDeployStepFactory() StepFactory\n```\nNewRegionDeployStepFactory returns a StepFactory for step.region\\_deploy.\n\n```go\nfunc NewRegionFailoverStepFactory() StepFactory\n```\nNewRegionFailoverStepFactory returns a StepFactory for step.region\\_failover.\n\n```go\nfunc NewRegionPromoteStepFactory() StepFactory\n```\nNewRegionPromoteStepFactory returns a StepFactory for step.region\\_promote.\n\n```go\nfunc NewRegionStatusStepFactory() StepFactory\n```\nNewRegionStatusStepFactory returns a StepFactory for step.region\\_status.\n\n```go\nfunc NewRegionSyncStepFactory() StepFactory\n```\nNewRegionSyncStepFactory returns a StepFactory for step.region\\_sync.\n\n```go\nfunc NewRegionWeightStepFactory() StepFactory\n```\nNewRegionWeightStepFactory returns a StepFactory for step.region\\_weight.\n\n```go\nfunc NewRequestParseStepFactory() StepFactory\n```\nNewRequestParseStepFactory returns a StepFactory that creates RequestParseStep instances.\n\n```go\nfunc NewResilienceCircuitBreakerStepFactory(registryFn func() *StepRegistry) StepFactory\n```\nNewResilienceCircuitBreakerStepFactory returns a StepFactory for ResilienceCircuitBreakerStep. registryFn is called at creation time to resolve sub-step and fallback step factories.\n\n```go\nfunc NewRetryWithBackoffStepFactory(registryFn func() *StepRegistry) StepFactory\n```\nNewRetryWithBackoffStepFactory returns a StepFactory for RetryWithBackoffStep. registryFn is called at creation time to resolve the sub-step factory.\n\n```go\nfunc NewSandboxExecStepFactory() StepFactory\n```\nNewSandboxExecStepFactory returns a StepFactory for step.sandbox\\_exec.\n\n```go\nfunc NewScaffoldAnalyzeStepFactory() StepFactory\n```\nNewScaffoldAnalyzeStepFactory returns a StepFactory that creates ScaffoldAnalyzeStep instances.\n\n```go\nfunc NewScaffoldStepFactory() StepFactory\n```\nNewScaffoldStepFactory returns a StepFactory that creates ScaffoldStep instances.\n\n```go\nfunc NewScanContainerStepFactory() StepFactory\n```\nNewScanContainerStepFactory returns a StepFactory that creates ScanContainerStep instances.\n\n```go\nfunc NewScanDepsStepFactory() StepFactory\n```\nNewScanDepsStepFactory returns a StepFactory that creates ScanDepsStep instances.\n\n```go\nfunc NewScanSASTStepFactory() StepFactory\n```\nNewScanSASTStepFactory returns a StepFactory that creates ScanSASTStep instances.\n\n```go\nfunc NewSecretFetchStepFactory() StepFactory\n```\nNewSecretFetchStepFactory returns a StepFactory that creates SecretFetchStep instances.\n\n```go\nfunc NewSecretRotateStepFactory() StepFactory\n```\nNewSecretRotateStepFactory returns a StepFactory for step.secret\\_rotate.\n\n```go\nfunc NewSecretSetStepFactory() StepFactory\n```\nNewSecretSetStepFactory returns a StepFactory that creates SecretSetStep instances.\n\n```go\nfunc NewSetStepFactory() StepFactory\n```\nNewSetStepFactory returns a StepFactory that creates SetStep instances. Delegates to pipeline.NewSetStepFactory for backwards compatibility.\n\n```go\nfunc NewShellExecStepFactory() StepFactory\n```\nNewShellExecStepFactory returns a StepFactory that creates ShellExecStep instances.\n\n```go\nfunc NewStateMachineGetStepFactory() StepFactory\n```\nNewStateMachineGetStepFactory returns a StepFactory for step.statemachine\\_get.\n\nConfig:\n\n\ttype: step.statemachine_get\n\tconfig:\n\t  statemachine: \"order-sm\"       # service name of the StateMachineEngine\n\t  entity_id: \"{{.order_id}}\"     # which instance to look up (template)\n\nOutputs: current\\_state (string), entity\\_id (string). Returns an error (stopping the pipeline) when the instance is not found.\n\n```go\nfunc NewStateMachineTransitionStepFactory() StepFactory\n```\nNewStateMachineTransitionStepFactory returns a StepFactory for step.statemachine\\_transition.\n\nConfig:\n\n\ttype: step.statemachine_transition\n\tconfig:\n\t  statemachine: \"order-sm\"           # service name of the StateMachineEngine\n\t  entity_id: \"{{.order_id}}\"         # which instance to transition (template)\n\t  event: \"approve\"                   # transition name\n\t  data:                              # optional data map (values may use templates)\n\t    approved_by: \"{{.user_id}}\"\n\t  fail_on_error: false               # stop pipeline on invalid transition (default: false)\n\nOutputs: transition\\_ok (bool), new\\_state (string), error (string, only on failure).\n\n```go\nfunc NewStaticFileStepFactory() StepFactory\n```\nNewStaticFileStepFactory returns a StepFactory that creates StaticFileStep instances. The file is read from disk when the factory is invoked (at config load time).\n\n```go\nfunc NewSubWorkflowStepFactory(registry *plugin.PluginWorkflowRegistry, stepBuilder SubWorkflowStepBuilder) StepFactory\n```\nNewSubWorkflowStepFactory returns a StepFactory that creates SubWorkflowStep instances. The registry and stepBuilder are captured by closure so that the factory has access to them at step creation time.\n\n```go\nfunc NewTenantDisableStepFactoryStd() StepFactory\n```\nNewTenantDisableStepFactoryStd wraps as StepFactory.\n\n```go\nfunc NewTenantEnsureStepFactoryStd() StepFactory\n```\nNewTenantEnsureStepFactoryStd wraps NewTenantEnsureStepFactory as a StepFactory for registration in the step registry.\n\n```go\nfunc NewTenantGetByDomainStepFactoryStd() StepFactory\n```\nNewTenantGetByDomainStepFactoryStd wraps as StepFactory.\n\n```go\nfunc NewTenantListStepFactoryStd() StepFactory\n```\nNewTenantListStepFactoryStd wraps NewTenantListStepFactory as a StepFactory.\n\n```go\nfunc NewTenantUpdateStepFactoryStd() StepFactory\n```\nNewTenantUpdateStepFactoryStd wraps as StepFactory.\n\n```go\nfunc NewTokenRevokeStepFactory() StepFactory\n```\nNewTokenRevokeStepFactory returns a StepFactory for step.token\\_revoke.\n\n```go\nfunc NewTraceAnnotateStepFactory() StepFactory\n```\nNewTraceAnnotateStepFactory returns a StepFactory for step.trace\\_annotate.\n\n```go\nfunc NewTraceExtractStepFactory() StepFactory\n```\nNewTraceExtractStepFactory returns a StepFactory for step.trace\\_extract.\n\n```go\nfunc NewTraceInjectStepFactory() StepFactory\n```\nNewTraceInjectStepFactory returns a StepFactory for step.trace\\_inject.\n\n```go\nfunc NewTraceLinkStepFactory() StepFactory\n```\nNewTraceLinkStepFactory returns a StepFactory for step.trace\\_link.\n\n```go\nfunc NewTraceStartStepFactory() StepFactory\n```\nNewTraceStartStepFactory returns a StepFactory for step.trace\\_start.\n\n```go\nfunc NewTransformStepFactory() StepFactory\n```\nNewTransformStepFactory returns a StepFactory that creates TransformStep instances.\n\n```go\nfunc NewValidatePaginationStepFactory() StepFactory\n```\nNewValidatePaginationStepFactory returns a StepFactory that creates ValidatePaginationStep instances.\n\n```go\nfunc NewValidatePathParamStepFactory() StepFactory\n```\nNewValidatePathParamStepFactory returns a StepFactory that creates ValidatePathParamStep instances.\n\n```go\nfunc NewValidateRequestBodyStepFactory() StepFactory\n```\nNewValidateRequestBodyStepFactory returns a StepFactory that creates ValidateRequestBodyStep instances.\n\n```go\nfunc NewValidateStepFactory() StepFactory\n```\nNewValidateStepFactory returns a StepFactory that creates ValidateStep instances.\n\n```go\nfunc NewWebhookVerifyStepFactory() StepFactory\n```\nNewWebhookVerifyStepFactory returns a StepFactory that creates WebhookVerifyStep instances. A positive body cap is always enforced, including for cached raw bytes. Omitted max\\_body\\_bytes preserves legacy configuration syntax with a 1 MiB default; explicit GitHub hosts set max\\_body\\_bytes: 1048576 on both route and step.\n\n```go\nfunc NewWhileStepFactory(registryFn func() *StepRegistry) StepFactory\n```\nNewWhileStepFactory returns a StepFactory that creates WhileStep instances. registryFn is called at step-creation time to obtain the step registry used to build sub-steps. Passing a function (rather than the registry directly) allows the factory to be registered before the registry is fully populated.\n\n```go\nfunc NewWorkflowCallStepFactory(lookup PipelineLookupFn) StepFactory\n```\nNewWorkflowCallStepFactory returns a StepFactory for step.workflow\\_call. The lookup function is captured by closure so the step can resolve target pipelines at execution time (supporting pipelines registered after factory creation).\n\n```go\ntype StepLifecycleEvent struct {\n\tWorkflowType string         `json:\"workflowType\"`\n\tStepName     string         `json:\"stepName\"`\n\tConnector    string         `json:\"connector\"`\n\tAction       string         `json:\"action\"`\n\tStatus       string         `json:\"status\"`\n\tTimestamp    time.Time      `json:\"timestamp\"`\n\tDuration     time.Duration  `json:\"duration,omitempty\"`\n\tData         map[string]any `json:\"data,omitempty\"`\n\tError        string         `json:\"error,omitempty\"`\n\tResults      map[string]any `json:\"results,omitempty\"`\n}\n```\nStepLifecycleEvent is the payload published for step-level lifecycle events.\n\n```go\ntype StepRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nStepRegistry maps step type strings to factory functions.\n\n```go\nfunc NewStepRegistry() *StepRegistry\n```\nNewStepRegistry creates an empty StepRegistry.\n\n```go\nfunc (r *StepRegistry) Create(stepType, name string, config map[string]any, app any) (PipelineStep, error)\n```\nCreate instantiates a PipelineStep of the given type. app must be a modular.Application; it is typed as any to satisfy the interfaces.StepRegistrar interface without an import cycle.\n\n```go\nfunc (r *StepRegistry) Register(stepType string, factory StepFactory)\n```\nRegister adds a step factory for the given type string.\n\n```go\nfunc (r *StepRegistry) SetIaCProviderLoaded(loaded bool)\n```\nSetIaCProviderLoaded is called by the engine after module factory registration is complete and before pipeline construction. Per-registry state — no global — so parallel test runs that build independent StepRegistry instances do not share or race the flag.\n\n```go\nfunc (r *StepRegistry) Types() []string\n```\nTypes returns all registered step type names.\n\n```go\ntype StepResult = interfaces.StepResult\n```\nStepResult is the output of a single pipeline step execution. Aliased from interfaces.StepResult for backwards compatibility.\n\n```go\ntype SubWorkflowStep struct {\n\t// contains filtered or unexported fields\n}\n```\nSubWorkflowStep invokes a registered plugin workflow as a sub-workflow.\n\n```go\nfunc (s *SubWorkflowStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs the sub-workflow: looks up the embedded workflow, builds a child pipeline, maps inputs, executes, and maps outputs back.\n\n```go\nfunc (s *SubWorkflowStep) Name() string\n```\nName returns the step name.\n\n```go\ntype SubWorkflowStepBuilder func(pipelineName string, cfg *config.WorkflowConfig, app modular.Application) (*Pipeline, error)\n```\nSubWorkflowStepBuilder builds pipeline steps from a workflow config's pipeline definitions. This is injected by the engine so the sub\\_workflow step can construct child pipelines without a circular dependency on engine.\n\n```go\ntype SubdomainSelector struct {\n\tRootDomain string // e.g. \"example.com\"\n}\n```\nSubdomainSelector extracts the leftmost subdomain under a configured root domain. For root \"example.com\" and host \"acme.example.com\", returns \"acme\".\n\n```go\nfunc (s *SubdomainSelector) Match(r *http.Request) (string, bool, error)\n```\n\n```go\ntype TelemetryBridge struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTelemetryBridge(name string, sink telemetry.TelemetrySink, config TelemetryBridgeConfig) *TelemetryBridge\n```\n\n```go\nfunc (m *TelemetryBridge) Init(app modular.Application) error\n```\n\n```go\nfunc (m *TelemetryBridge) Name() string\n```\n\n```go\nfunc (m *TelemetryBridge) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *TelemetryBridge) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *TelemetryBridge) Start(ctx context.Context) error\n```\n\n```go\nfunc (m *TelemetryBridge) Stop(context.Context) error\n```\n\n```go\ntype TelemetryBridgeConfig struct {\n\tInterval time.Duration `yaml:\"interval\" json:\"interval\"`\n\tTimeout  time.Duration `yaml:\"timeout\" json:\"timeout\"`\n}\n```\n\n```go\ntype TemplateEngine = pipeline.TemplateEngine\n```\nTemplateEngine resolves {{ .field }} expressions against a PipelineContext. Aliased from pipeline.TemplateEngine for backwards compatibility.\n\n```go\ntype TemplateFuncDef struct {\n\tName        string `json:\"name\"`\n\tSignature   string `json:\"signature\"`\n\tDescription string `json:\"description\"`\n\tExample     string `json:\"example\"`\n}\n```\nTemplateFuncDef describes a single template function available in pipeline templates.\n\n```go\nfunc TemplateFuncDescriptions() []TemplateFuncDef\n```\nTemplateFuncDescriptions returns descriptions for all built-in pipeline template functions.\n\n```go\ntype TenantContextResolver struct {\n\t// contains filtered or unexported fields\n}\n```\nTenantContextResolver implements interfaces.TenantResolver using a configurable combination of Selectors and a TenantRegistry.\n\n```go\nfunc NewTenantContextResolver(cfg TenantContextResolverConfig) *TenantContextResolver\n```\nNewTenantContextResolver creates a new TenantContextResolver.\n\n```go\nfunc (r *TenantContextResolver) Resolve(ctx context.Context, req *http.Request) (interfaces.Tenant, error)\n```\nResolve resolves the tenant for the given request. Returns the zero Tenant (and no error) when no tenant can be determined. Returns ErrTenantMismatch (wrapping the conflict detail) when all\\_must\\_match detects disagreeing selectors.\n\n```go\ntype TenantContextResolverConfig struct {\n\t// Mode controls how multiple selectors are combined:\n\t//   \"first_match\"    – use the first selector that matches (default)\n\t//   \"all_must_match\" – all matching selectors must agree; error + mismatch event if they disagree\n\t//   \"consensus\"      – use the key with the most votes across all matching selectors\n\tMode string\n\n\t// Registry is used to look up tenants by the key returned by selectors.\n\tRegistry interfaces.TenantRegistry\n\n\t// Selectors is the ordered list of selectors to try.\n\tSelectors []interfaces.Selector\n\n\t// MinVotes is the minimum number of agreeing votes required in \"consensus\" mode.\n\t// Defaults to a simple majority: len(Selectors)/2 + 1.\n\tMinVotes int\n\n\t// EventEmitter receives tenant.mismatch events when selectors disagree.\n\t// If nil, mismatch events are silently dropped (no-op).\n\tEventEmitter TenantMismatchEmitter\n}\n```\nTenantContextResolverConfig configures a TenantContextResolver.\n\n```go\ntype TenantDisableStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTenantDisableStep soft-deletes a tenant by ID.\n\n```go\nfunc (s *TenantDisableStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TenantDisableStep) Name() string\n```\n\n```go\ntype TenantEnsureStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTenantEnsureStep creates a tenant if it doesn't exist, or returns the existing one.\n\n```go\nfunc (s *TenantEnsureStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TenantEnsureStep) Name() string\n```\n\n```go\ntype TenantGetByDomainStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTenantGetByDomainStep looks up a tenant by a domain value from the pipeline context.\n\n```go\nfunc (s *TenantGetByDomainStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TenantGetByDomainStep) Name() string\n```\n\n```go\ntype TenantListStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTenantListStep lists tenants matching a filter.\n\n```go\nfunc (s *TenantListStep) Execute(_ context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TenantListStep) Name() string\n```\n\n```go\ntype TenantMismatchEmitter interface {\n\tEmitTenantMismatch(ctx context.Context, data map[string]any) error\n}\n```\nTenantMismatchEmitter is an optional event sink for tenant mismatch events. Typically backed by a MessageBroker or engine event bus. All methods must be safe to call concurrently; a nil emitter is treated as a no-op.\n\n```go\ntype TenantSchemaConfig struct {\n\tTableName    string // default: \"tenants\"\n\tColID        string // default: \"id\"\n\tColSlug      string // default: \"slug\"\n\tColName      string // default: \"name\"\n\tColDomains   string // default: \"domains\"\n\tColMetadata  string // default: \"metadata\"\n\tColIsActive  string // default: \"is_active\"\n\tColCreatedAt string // default: \"created_at\"\n\tColUpdatedAt string // default: \"updated_at\"\n}\n```\nTenantSchemaConfig allows operators to customise the underlying table name and column names, supporting legacy schemas or multi-schema deployments.\n\n```go\ntype TenantUpdateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTenantUpdateStep applies a partial patch to an existing tenant.\n\n```go\nfunc (s *TenantUpdateStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TenantUpdateStep) Name() string\n```\n\n```go\ntype TestHelper struct {\n\t// contains filtered or unexported fields\n}\n```\nTestHelper provides utilities for module tests\n\n```go\nfunc NewTestHelper(app modular.Application) *TestHelper\n```\nNewTestHelper creates a new test helper\n\n```go\ntype TestLogger struct {\n\tEntries []string\n}\n```\nTestLogger is a simple logger for testing\n\n```go\nfunc NewTestApplication() (modular.Application, *TestLogger)\n```\nNewTestApplication creates an isolated test application\n\n```go\nfunc (l *TestLogger) Debug(msg string, args ...any)\n```\n\n```go\nfunc (l *TestLogger) Error(msg string, args ...any)\n```\n\n```go\nfunc (l *TestLogger) Fatal(msg string, args ...any)\n```\n\n```go\nfunc (l *TestLogger) Info(msg string, args ...any)\n```\n\n```go\nfunc (l *TestLogger) Warn(msg string, args ...any)\n```\n\n```go\ntype TimelineServiceModule struct {\n\t// contains filtered or unexported fields\n}\n```\nTimelineServiceModule wraps evstore.TimelineHandler and evstore.ReplayHandler as a modular.Module. It provides HTTP muxes for timeline and replay features via the service registry.\n\n```go\nfunc NewTimelineServiceModule(name string, eventStore evstore.EventStore) *TimelineServiceModule\n```\nNewTimelineServiceModule creates a new timeline service module. It requires a non-nil EventStore to function. Panics if eventStore is nil.\n\n```go\nfunc (m *TimelineServiceModule) BackfillMux() http.Handler\n```\nBackfillMux returns the HTTP mux for backfill/mock/diff endpoints.\n\n```go\nfunc (m *TimelineServiceModule) Init(_ modular.Application) error\n```\nInit implements modular.Module.\n\n```go\nfunc (m *TimelineServiceModule) Name() string\n```\nName implements modular.Module.\n\n```go\nfunc (m *TimelineServiceModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices implements modular.Module. Registers the timeline, replay, and backfill muxes as services so the server can delegate routes to them.\n\n```go\nfunc (m *TimelineServiceModule) ReplayMux() http.Handler\n```\nReplayMux returns the HTTP mux for replay endpoints.\n\n```go\nfunc (m *TimelineServiceModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices implements modular.Module.\n\n```go\nfunc (m *TimelineServiceModule) TimelineMux() http.Handler\n```\nTimelineMux returns the HTTP mux for timeline endpoints.\n\n```go\ntype TokenBlacklist interface {\n\tAdd(jti string, expiresAt time.Time)\n\tIsBlacklisted(jti string) bool\n}\n```\nTokenBlacklist is the interface for checking and adding revoked JWT IDs.\n\n```go\ntype TokenBlacklistModule struct {\n\t// contains filtered or unexported fields\n}\n```\nTokenBlacklistModule maintains a set of revoked JWT IDs (JTIs). It supports two backends: \"memory\" (default) and \"redis\".\n\n```go\nfunc NewTokenBlacklistModule(name, backend, redisURL string, cleanupInterval time.Duration) *TokenBlacklistModule\n```\nNewTokenBlacklistModule creates a new TokenBlacklistModule.\n\n```go\nfunc (m *TokenBlacklistModule) Add(jti string, expiresAt time.Time)\n```\nAdd marks a JTI as revoked until expiresAt.\n\n```go\nfunc (m *TokenBlacklistModule) Init(app modular.Application) error\n```\nInit initializes the module.\n\n```go\nfunc (m *TokenBlacklistModule) IsBlacklisted(jti string) bool\n```\nIsBlacklisted returns true if the JTI is revoked and has not yet expired.\n\n```go\nfunc (m *TokenBlacklistModule) Name() string\n```\nName returns the module name.\n\n```go\nfunc (m *TokenBlacklistModule) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices registers this module as a service.\n\n```go\nfunc (m *TokenBlacklistModule) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns service dependencies (none).\n\n```go\nfunc (m *TokenBlacklistModule) Start(ctx context.Context) error\n```\nStart connects to Redis (if configured) and starts the cleanup goroutine.\n\n```go\nfunc (m *TokenBlacklistModule) Stop(_ context.Context) error\n```\nStop shuts down the module.\n\n```go\ntype TokenRevocationStore interface {\n\t// RevokeToken persists the revocation of the given JTI.\n\t// expiry is the token's exp time; implementations should use it to avoid\n\t// accumulating entries for tokens that have already expired naturally.\n\tRevokeToken(ctx context.Context, jti string, expiry time.Time) error\n\t// IsRevoked reports whether the given JTI has been revoked.\n\tIsRevoked(ctx context.Context, jti string) (bool, error)\n}\n```\nTokenRevocationStore is an optional persistence backend for token revocations. Implementations can persist revoked JTIs (e.g., in a relational database) so that revocations survive process restarts.\n\nBoth methods receive a context so implementations can honour timeouts and propagate cancellations.\n\n```go\ntype TokenRevokeStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTokenRevokeStep extracts a JWT from the pipeline context, reads its jti and exp claims without signature validation, and adds the JTI to the configured token blacklist module.\n\n```go\nfunc (s *TokenRevokeStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute revokes the JWT by extracting its JTI and adding it to the blacklist.\n\n```go\nfunc (s *TokenRevokeStep) Name() string\n```\nName returns the step name.\n\n```go\ntype TraceAnnotateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTraceAnnotateStep adds events and attributes to the current span from context.\n\n```go\nfunc (s *TraceAnnotateStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TraceAnnotateStep) Name() string\n```\n\n```go\ntype TraceExtractStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTraceExtractStep extracts trace context from an inbound carrier stored in the pipeline context under carrier\\_field, and records the extracted IDs.\n\n```go\nfunc (s *TraceExtractStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TraceExtractStep) Name() string\n```\n\n```go\ntype TraceInjectStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTraceInjectStep injects the current trace context into an outbound carrier stored in the pipeline context under carrier\\_field.\n\n```go\nfunc (s *TraceInjectStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TraceInjectStep) Name() string\n```\n\n```go\ntype TraceLinkStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTraceLinkStep links the current trace to a parent trace across service boundaries. The parent trace context is read from pipeline context under parent\\_field as a map\\[string]string of W3C traceparent/tracestate headers.\n\n```go\nfunc (s *TraceLinkStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TraceLinkStep) Name() string\n```\n\n```go\ntype TracePropagationModule struct {\n\t// contains filtered or unexported fields\n}\n```\nTracePropagationModule provides trace propagation configuration as a workflow module.\n\n```go\nfunc NewTracePropagationModule(name string, cfg map[string]any) *TracePropagationModule\n```\nNewTracePropagationModule creates a new trace propagation module.\n\n```go\nfunc (m *TracePropagationModule) EventBridgePropagator() *EventBridgeTracePropagator\n```\nEventBridgePropagator returns a new EventBridgeTracePropagator configured for this module.\n\n```go\nfunc (m *TracePropagationModule) Format() string\n```\nFormat returns the configured propagation format.\n\n```go\nfunc (m *TracePropagationModule) HTTPPropagator() *HTTPTracePropagator\n```\nHTTPPropagator returns a new HTTPTracePropagator configured for this module.\n\n```go\nfunc (m *TracePropagationModule) Init(_ modular.Application) error\n```\n\n```go\nfunc (m *TracePropagationModule) KafkaPropagator() *KafkaTracePropagator\n```\nKafkaPropagator returns a new KafkaTracePropagator configured for this module.\n\n```go\nfunc (m *TracePropagationModule) Name() string\n```\n\n```go\nfunc (m *TracePropagationModule) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (m *TracePropagationModule) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (m *TracePropagationModule) Start(_ context.Context) error\n```\n\n```go\nfunc (m *TracePropagationModule) Stop(_ context.Context) error\n```\n\n```go\nfunc (m *TracePropagationModule) WebhookPropagator() *WebhookTracePropagator\n```\nWebhookPropagator returns a new WebhookTracePropagator configured for this module.\n\n```go\ntype TraceStartStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTraceStartStep starts a new trace span and records its IDs in the pipeline context.\n\n```go\nfunc (s *TraceStartStep) Execute(ctx context.Context, _ *PipelineContext) (*StepResult, error)\n```\n\n```go\nfunc (s *TraceStartStep) Name() string\n```\n\n```go\ntype TransformOperation struct {\n\tType   string         `json:\"type\" yaml:\"type\"` // \"extract\", \"map\", \"convert\", \"filter\"\n\tConfig map[string]any `json:\"config\" yaml:\"config\"`\n}\n```\nTransformOperation defines a single transformation step\n\n```go\ntype TransformPipeline struct {\n\tName       string               `json:\"name\" yaml:\"name\"`\n\tOperations []TransformOperation `json:\"operations\" yaml:\"operations\"`\n}\n```\nTransformPipeline is a named sequence of operations\n\n```go\ntype TransformStep struct {\n\t// contains filtered or unexported fields\n}\n```\nTransformStep applies a DataTransformer to the pipeline context's current data.\n\n```go\nfunc (s *TransformStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs the transformation and returns the result under the \"data\" key.\n\n```go\nfunc (s *TransformStep) Name() string\n```\nName returns the step name.\n\n```go\ntype Transition struct {\n\tName          string         `json:\"name\" yaml:\"name\"`\n\tFromState     string         `json:\"fromState\" yaml:\"fromState\"`\n\tToState       string         `json:\"toState\" yaml:\"toState\"`\n\tCondition     string         `json:\"condition,omitempty\" yaml:\"condition,omitempty\"`\n\tAutoTransform bool           `json:\"autoTransform\" yaml:\"autoTransform\"`\n\tData          map[string]any `json:\"data,omitempty\" yaml:\"data,omitempty\"`\n}\n```\nTransition defines a possible state transition\n\n```go\ntype TransitionEvent struct {\n\tWorkflowID   string         `json:\"workflowId\"`\n\tTransitionID string         `json:\"transitionId\"`\n\tFromState    string         `json:\"fromState\"`\n\tToState      string         `json:\"toState\"`\n\tTimestamp    time.Time      `json:\"timestamp\"`\n\tData         map[string]any `json:\"data,omitempty\"`\n}\n```\nTransitionEvent represents a state transition event\n\n```go\nfunc (e TransitionEvent) InstanceID() string\n```\nInstanceID returns the workflow instance ID This method is provided for backward compatibility with code that expects an InstanceID field\n\n```go\ntype TransitionHandler interface {\n\tHandleTransition(ctx context.Context, event TransitionEvent) error\n}\n```\nTransitionHandler handles workflow state transitions\n\n```go\ntype TransitionListener func(event TransitionEvent)\n```\nTransitionListener is a function that gets called when a transition occurs\n\n```go\ntype TransitionTrigger interface {\n\tTriggerTransition(ctx context.Context, workflowID, transitionName string, data map[string]any) error\n}\n```\n\n```go\ntype Trigger = interfaces.Trigger\n```\nTrigger is a type alias for interfaces.Trigger. The canonical definition lives in the interfaces package so that the engine and other packages can reference it without importing this module package. All existing code using module.Trigger is unaffected by this alias.\n\n```go\ntype TriggerRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nTriggerRegistry manages registered triggers and allows finding them by name. It satisfies interfaces.TriggerRegistrar.\n\n```go\nfunc NewTriggerRegistry() *TriggerRegistry\n```\nNewTriggerRegistry creates a new trigger registry\n\n```go\nfunc (r *TriggerRegistry) GetAllTriggers() map[string]Trigger\n```\nGetAllTriggers returns all registered triggers\n\n```go\nfunc (r *TriggerRegistry) GetTrigger(name string) (Trigger, bool)\n```\nGetTrigger returns a trigger by name\n\n```go\nfunc (r *TriggerRegistry) RegisterTrigger(trigger Trigger)\n```\nRegisterTrigger adds a trigger to the registry\n\n```go\ntype TriggerWorkflower interface {\n\tTriggerWorkflow(ctx context.Context, workflowType string, action string, data map[string]any) error\n}\n```\nTriggerWorkflower is the subset of the engine interface needed for routing.\n\n```go\ntype TrustedKeyConfig struct {\n\t// Issuer is the expected `iss` claim value (e.g. \"https://legacy-platform.example.com\").\n\tIssuer string `json:\"issuer\" yaml:\"issuer\"`\n\t// Algorithm is the expected signing algorithm (e.g. \"ES256\"). Currently only ES256 is supported.\n\tAlgorithm string `json:\"algorithm,omitempty\" yaml:\"algorithm,omitempty\"`\n\t// PublicKeyPEM is the PEM-encoded EC public key for the trusted issuer.\n\t// Literal `\\n` sequences (common in Docker/Kubernetes env vars) are normalised to newlines.\n\tPublicKeyPEM string `json:\"publicKeyPEM,omitempty\" yaml:\"publicKeyPEM,omitempty\"` //nolint:gosec // G117: config DTO field\n\t// Audiences is an optional list of accepted audience values.\n\t// When non-empty, the assertion's `aud` claim must contain at least one of these values.\n\tAudiences []string `json:\"audiences,omitempty\" yaml:\"audiences,omitempty\"`\n\t// ClaimMapping renames claims from the external assertion before they are included in the\n\t// issued token.  The map key is the external claim name; the value is the local claim name.\n\t// For example {\"user_id\": \"sub\"} promotes the external `user_id` claim to `sub`.\n\tClaimMapping map[string]string `json:\"claimMapping,omitempty\" yaml:\"claimMapping,omitempty\"`\n}\n```\nTrustedKeyConfig holds the configuration for a trusted external JWT issuer. It is used to register trusted keys for the JWT-bearer grant via YAML configuration.\n\n```go\ntype TryActivateResult struct {\n\t// Status is \"build_ok\" on success, \"build_failed\" on failure.\n\tStatus       string   `json:\"status\"`\n\tError        string   `json:\"error,omitempty\"`\n\tModuleTypes  []string `json:\"moduleTypes,omitempty\"`\n\tStepTypes    []string `json:\"stepTypes,omitempty\"`\n\tTriggerTypes []string `json:\"triggerTypes,omitempty\"`\n}\n```\nTryActivateResult is the structured response returned by the try-activate endpoint. It reports whether the candidate config can be built and what module/step/trigger types the resulting engine would expose.\n\n```go\ntype User struct {\n\tID           string         `json:\"id\"`\n\tEmail        string         `json:\"email\"`\n\tName         string         `json:\"name\"`\n\tPasswordHash string         `json:\"-\"`\n\tMetadata     map[string]any `json:\"metadata,omitempty\"`\n\tCreatedAt    time.Time      `json:\"createdAt\"`\n}\n```\nUser represents a user in the in-memory store\n\n```go\ntype UserRecord struct {\n\tID           string         `json:\"id\"`\n\tEmail        string         `json:\"email\"`\n\tName         string         `json:\"name\"`\n\tPasswordHash string         `json:\"-\"`\n\tMetadata     map[string]any `json:\"metadata,omitempty\"`\n\tCreatedAt    time.Time      `json:\"createdAt\"`\n}\n```\nUserRecord represents a user for persistence\n\n```go\ntype UserStore struct {\n\t// contains filtered or unexported fields\n}\n```\nUserStore provides user CRUD operations backed by an in-memory store with optional persistence write-through. It can be consumed by auth modules (e.g. auth.jwt) and management APIs.\n\n```go\nfunc NewUserStore(name string) *UserStore\n```\nNewUserStore creates a new user store module.\n\n```go\nfunc (u *UserStore) CreateUser(email, name, password string, metadata map[string]any) (*User, error)\n```\nCreateUser creates a new user with the given email, name, and password.\n\n```go\nfunc (u *UserStore) DeleteUser(id string) error\n```\nDeleteUser removes a user by ID.\n\n```go\nfunc (u *UserStore) GetUser(email string) (*User, bool)\n```\nGetUser returns a user by email.\n\n```go\nfunc (u *UserStore) GetUserByID(id string) (*User, bool)\n```\nGetUserByID returns a user by ID.\n\n```go\nfunc (u *UserStore) Init(app modular.Application) error\n```\n\n```go\nfunc (u *UserStore) ListUsers() []*User\n```\nListUsers returns all users.\n\n```go\nfunc (u *UserStore) LoadSeedFile(path string) error\n```\nLoadSeedFile loads users from a JSON file.\n\n```go\nfunc (u *UserStore) Name() string\n```\n\n```go\nfunc (u *UserStore) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (u *UserStore) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (u *UserStore) Start(_ context.Context) error\n```\nStart is a no-op.\n\n```go\nfunc (u *UserStore) Stop(_ context.Context) error\n```\nStop is a no-op.\n\n```go\nfunc (u *UserStore) UpdateUserMetadata(id string, metadata map[string]any) error\n```\nUpdateUserMetadata updates the metadata for a user identified by ID.\n\n```go\nfunc (u *UserStore) UserCount() int\n```\nUserCount returns the number of users.\n\n```go\nfunc (u *UserStore) VerifyPassword(email, password string) (*User, error)\n```\nVerifyPassword checks if the password matches the stored hash for the given email.\n\n```go\ntype V1APIHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nV1APIHandler handles the /api/v1/admin/ CRUD endpoints for companies, projects, and workflows. It is wired as a fallback on the admin-queries and admin-commands CQRS handler modules.\n\n```go\nfunc NewV1APIHandler(store *V1Store, jwtSecret string) *V1APIHandler\n```\nNewV1APIHandler creates a new handler backed by the given store.\n\n```go\nfunc (h *V1APIHandler) HandleV1(w http.ResponseWriter, r *http.Request)\n```\nHandleV1 dispatches v1 API requests by parsing path segments and delegating to resource-specific handlers. Each handler is self-contained and manages its own HTTP method routing.\n\n```go\nfunc (h *V1APIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements http.Handler for config-driven delegate dispatch.\n\n```go\nfunc (h *V1APIHandler) SetDataDir(dir string)\n```\nSetDataDir sets the base data directory used for workspace extraction during import and for containing server-local path reads. The directory is normalised to an absolute, cleaned path so that the containment check in loadWorkflowFromPath compares like with like (absolute vs absolute).\n\n```go\nfunc (h *V1APIHandler) SetFeatureFlagService(svc FeatureFlagAdmin)\n```\nSetFeatureFlagService sets the optional feature flag service for admin API.\n\n```go\nfunc (h *V1APIHandler) SetReloadFunc(fn func(configYAML string) error)\n```\nSetReloadFunc sets the callback invoked when deploying the system workflow.\n\n```go\nfunc (h *V1APIHandler) SetRuntimeManager(rm *RuntimeManager)\n```\nSetRuntimeManager sets the runtime manager used for deploy/stop operations.\n\n```go\nfunc (h *V1APIHandler) SetWorkspaceHandler(wh *WorkspaceHandler)\n```\nSetWorkspaceHandler sets the optional workspace file management handler.\n\n```go\ntype V1Company struct {\n\tID        string `json:\"id\"`\n\tName      string `json:\"name\"`\n\tSlug      string `json:\"slug\"`\n\tOwnerID   string `json:\"owner_id\"`\n\tParentID  string `json:\"parent_id,omitempty\"`\n\tIsSystem  bool   `json:\"is_system,omitempty\"`\n\tMetadata  string `json:\"metadata,omitempty\"`\n\tCreatedAt string `json:\"created_at\"`\n\tUpdatedAt string `json:\"updated_at\"`\n}\n```\nV1Company represents a company or organization.\n\n```go\ntype V1Project struct {\n\tID          string `json:\"id\"`\n\tCompanyID   string `json:\"company_id\"`\n\tName        string `json:\"name\"`\n\tSlug        string `json:\"slug\"`\n\tDescription string `json:\"description,omitempty\"`\n\tIsSystem    bool   `json:\"is_system,omitempty\"`\n\tMetadata    string `json:\"metadata,omitempty\"`\n\tCreatedAt   string `json:\"created_at\"`\n\tUpdatedAt   string `json:\"updated_at\"`\n}\n```\nV1Project represents a project.\n\n```go\ntype V1Store struct {\n\t// contains filtered or unexported fields\n}\n```\nV1Store is a SQLite-backed data store for the v1 API.\n\n```go\nfunc OpenV1Store(dbPath string) (*V1Store, error)\n```\nOpenV1Store opens (or creates) a SQLite database at dbPath and initializes the schema.\n\n```go\nfunc (s *V1Store) Close() error\n```\nClose closes the database connection.\n\n```go\nfunc (s *V1Store) CompleteExecution(id, status string, completedAt time.Time, durationMs int64, errorMsg string) error\n```\nCompleteExecution updates an execution record to completed or failed.\n\n```go\nfunc (s *V1Store) CompleteExecutionStep(id, status string, completedAt time.Time, durationMs int64, errorMsg string) error\n```\nCompleteExecutionStep updates a step record to completed or failed.\n\n```go\nfunc (s *V1Store) CountExecutionsByWorkflow(workflowID string) (map[string]int, error)\n```\nCountExecutionsByWorkflow returns execution counts grouped by status for a workflow.\n\n```go\nfunc (s *V1Store) CountLogsByWorkflow(workflowID string) (map[string]int, error)\n```\nCountLogsByWorkflow returns log counts grouped by level for a workflow.\n\n```go\nfunc (s *V1Store) CreateCompany(name, slug, ownerID string) (*V1Company, error)\n```\nCreateCompany inserts a new top-level company.\n\n```go\nfunc (s *V1Store) CreateOrganization(parentID, name, slug, ownerID string) (*V1Company, error)\n```\nCreateOrganization inserts a child company under a parent company.\n\n```go\nfunc (s *V1Store) CreateProject(companyID, name, slug, description string) (*V1Project, error)\n```\nCreateProject creates a project under an organization.\n\n```go\nfunc (s *V1Store) CreateWorkflow(projectID, name, slug, description, configYAML, createdBy string) (*V1Workflow, error)\n```\nCreateWorkflow creates a workflow under a project.\n\n```go\nfunc (s *V1Store) DB() *sql.DB\n```\nDB returns the underlying \\*sql.DB connection.\n\n```go\nfunc (s *V1Store) DeleteWorkflow(id string) error\n```\nDeleteWorkflow deletes a workflow by ID. Returns an error if the workflow is a system workflow.\n\n```go\nfunc (s *V1Store) EnsureSystemHierarchy(ownerID, adminConfigYAML string) (companyID, orgID, projectID, workflowID string, err error)\n```\nEnsureSystemHierarchy creates the system company, organization, project, and admin workflow if they don't already exist. Returns the IDs of all created entities.\n\n```go\nfunc (s *V1Store) GetCompany(id string) (*V1Company, error)\n```\nGetCompany retrieves a company by ID.\n\n```go\nfunc (s *V1Store) GetProject(id string) (*V1Project, error)\n```\nGetProject retrieves a project by ID.\n\n```go\nfunc (s *V1Store) GetSystemWorkflow() (*V1Workflow, error)\n```\nGetSystemWorkflow returns the system workflow if it exists.\n\n```go\nfunc (s *V1Store) GetVersion(workflowID string, version int) (*V1WorkflowVersion, error)\n```\nGetVersion retrieves a specific version of a workflow.\n\n```go\nfunc (s *V1Store) GetWorkflow(id string) (*V1Workflow, error)\n```\nGetWorkflow retrieves a workflow by ID.\n\n```go\nfunc (s *V1Store) GetWorkflowBySlugAndProject(slug, projectID string) (*V1Workflow, error)\n```\nGetWorkflowBySlugAndProject retrieves a workflow by slug within a specific project.\n\n```go\nfunc (s *V1Store) InsertExecution(id, workflowID, triggerType, status, triggeredBy string, startedAt time.Time) error\n```\nInsertExecution creates a new workflow execution record.\n\n```go\nfunc (s *V1Store) InsertExecutionStep(id, executionID, stepName, stepType, status string, seqNum int, startedAt time.Time) error\n```\nInsertExecutionStep creates a new execution step record.\n\n```go\nfunc (s *V1Store) InsertLog(workflowID, executionID, level, message, moduleName, fields string, createdAt time.Time) error\n```\nInsertLog inserts a log entry into the execution\\_logs table.\n\n```go\nfunc (s *V1Store) ListAllProjects() ([]V1Project, error)\n```\nListAllProjects returns all projects regardless of organization.\n\n```go\nfunc (s *V1Store) ListCompanies(ownerID string) ([]V1Company, error)\n```\nListCompanies lists top-level companies (parent\\_id IS NULL).\n\n```go\nfunc (s *V1Store) ListExecutionLogs(executionID string, level string, limit int) ([]map[string]any, error)\n```\nListExecutionLogs returns log entries for an execution with optional level filter. Results are ordered by created\\_at ASC. limit=0 means no limit; negative values are treated as 0; values above maxExecutionLogLimit are clamped to that maximum.\n\n```go\nfunc (s *V1Store) ListOrganizations(parentID string) ([]V1Company, error)\n```\nListOrganizations lists child companies under a parent.\n\n```go\nfunc (s *V1Store) ListProjects(companyID string) ([]V1Project, error)\n```\nListProjects lists projects for a given organization (company\\_id).\n\n```go\nfunc (s *V1Store) ListVersions(workflowID string) ([]V1WorkflowVersion, error)\n```\nListVersions returns version history for a workflow.\n\n```go\nfunc (s *V1Store) ListWorkflows(projectID string) ([]V1Workflow, error)\n```\nListWorkflows lists workflows for a project. If projectID is empty, lists all.\n\n```go\nfunc (s *V1Store) ResetSystemWorkflow(configYAML string) error\n```\nResetSystemWorkflow resets the system workflow config to the given YAML, incrementing the version and saving a version snapshot.\n\n```go\nfunc (s *V1Store) SaveVersion(workflowID, configYAML, createdBy string) error\n```\nSaveVersion stores a version snapshot.\n\n```go\nfunc (s *V1Store) SetWorkflowStatus(id, status string) (*V1Workflow, error)\n```\nSetWorkflowStatus updates a workflow's status field.\n\n```go\nfunc (s *V1Store) SetWorkspaceDir(id, workspaceDir string) error\n```\nSetWorkspaceDir updates a workflow's workspace\\_dir field.\n\n```go\nfunc (s *V1Store) UpdateExecutionMetadata(execID, metaJSON string) error\n```\nUpdateExecutionMetadata sets the metadata JSON for a workflow execution record.\n\n```go\nfunc (s *V1Store) UpdateStepIO(stepID, inputData, outputData string) error\n```\nUpdateStepIO updates both input and output data for an execution step.\n\n```go\nfunc (s *V1Store) UpdateStepInput(stepID, inputData string) error\n```\nUpdateStepInput updates only the input data for an execution step.\n\n```go\nfunc (s *V1Store) UpdateStepOutput(stepID, outputData string) error\n```\nUpdateStepOutput updates only the output data for an execution step.\n\n```go\nfunc (s *V1Store) UpdateWorkflow(id string, name, description, configYAML, updatedBy string) (*V1Workflow, error)\n```\nUpdateWorkflow updates a workflow's fields and auto-increments version. If config\\_yaml changed, a version snapshot is saved.\n\n```go\nfunc (s *V1Store) UpdateWorkflowWorkspaceDir(id, workspaceDir string) error\n```\nUpdateWorkflowWorkspaceDir sets the workspace\\_dir for a workflow.\n\n```go\ntype V1Workflow struct {\n\tID           string `json:\"id\"`\n\tProjectID    string `json:\"project_id\"`\n\tName         string `json:\"name\"`\n\tSlug         string `json:\"slug\"`\n\tDescription  string `json:\"description,omitempty\"`\n\tConfigYAML   string `json:\"config_yaml\"`\n\tVersion      int    `json:\"version\"`\n\tStatus       string `json:\"status\"`\n\tIsSystem     bool   `json:\"is_system,omitempty\"`\n\tWorkspaceDir string `json:\"workspace_dir,omitempty\"`\n\tCreatedBy    string `json:\"created_by\"`\n\tUpdatedBy    string `json:\"updated_by\"`\n\tCreatedAt    string `json:\"created_at\"`\n\tUpdatedAt    string `json:\"updated_at\"`\n}\n```\nV1Workflow represents a workflow record.\n\n```go\ntype V1WorkflowVersion struct {\n\tID         string `json:\"id\"`\n\tWorkflowID string `json:\"workflow_id\"`\n\tVersion    int    `json:\"version\"`\n\tConfigYAML string `json:\"config_yaml\"`\n\tCreatedBy  string `json:\"created_by\"`\n\tCreatedAt  string `json:\"created_at\"`\n}\n```\nV1WorkflowVersion represents a snapshot of a workflow at a specific version.\n\n```go\ntype ValidatePaginationStep struct {\n\t// contains filtered or unexported fields\n}\n```\nValidatePaginationStep validates and normalises page/limit query parameters. It reads from the HTTP request in pipeline metadata and outputs resolved pagination values with defaults applied.\n\n```go\nfunc (s *ValidatePaginationStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute reads page and limit query parameters from the HTTP request, validates their ranges, applies defaults, and outputs the resolved values.\n\n```go\nfunc (s *ValidatePaginationStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ValidatePathParamStep struct {\n\t// contains filtered or unexported fields\n}\n```\nValidatePathParamStep validates that path parameters extracted by a request\\_parse step are present and optionally conform to a format (e.g. UUID).\n\n```go\nfunc (s *ValidatePathParamStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute validates that each configured path parameter is present and optionally matches the required format.\n\n```go\nfunc (s *ValidatePathParamStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ValidateRequestBodyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nValidateRequestBodyStep parses the JSON request body from the HTTP request and validates that all required fields are present.\n\n```go\nfunc (s *ValidateRequestBodyStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute parses the JSON body from the HTTP request and validates required fields are present. The parsed body is returned as output so downstream steps can reference it.\n\n```go\nfunc (s *ValidateRequestBodyStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ValidateStep struct {\n\t// contains filtered or unexported fields\n}\n```\nValidateStep validates data in the pipeline context against a schema or a list of required fields.\n\n```go\nfunc (s *ValidateStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute validates pc.Current according to the configured strategy.\n\n```go\nfunc (s *ValidateStep) Name() string\n```\nName returns the step name.\n\n```go\ntype ValidatingNamespace struct {\n\t// contains filtered or unexported fields\n}\n```\nValidatingNamespace adds validation to any namespace provider\n\n```go\nfunc WithValidation(base ModuleNamespaceProvider) *ValidatingNamespace\n```\nWithValidation creates a validating namespace wrapper around any namespace provider\n\n```go\nfunc (vn *ValidatingNamespace) FormatName(baseName string) string\n```\nFormatName formats and validates a module name\n\n```go\nfunc (vn *ValidatingNamespace) ResolveDependency(dependencyName string) string\n```\nResolveDependency formats and validates a dependency name\n\n```go\nfunc (vn *ValidatingNamespace) ResolveServiceName(serviceName string) string\n```\nResolveServiceName formats and validates a service name\n\n```go\nfunc (vn *ValidatingNamespace) ValidateModuleName(moduleName string) error\n```\nValidateModuleName validates a module name\n\n```go\ntype ValidationIssue struct {\n\tSeverity ValidationSeverity\n\tField    string\n\tMessage  string\n}\n```\nValidationIssue represents a single problem found during module validation.\n\n```go\nfunc ValidateModule(m modular.Module) []ValidationIssue\n```\nValidateModule checks a module implementation for common issues and returns all detected problems. A well-implemented module should produce zero issues.\n\n```go\nfunc (v ValidationIssue) String() string\n```\n\n```go\ntype ValidationSeverity string\n```\nValidationSeverity indicates how severe a validation issue is.\n\n```go\nconst (\n\tSeverityError   ValidationSeverity = \"error\"\n\tSeverityWarning ValidationSeverity = \"warning\"\n\tSeverityInfo    ValidationSeverity = \"info\"\n)\n```\n\n```go\ntype VerifyCheck struct {\n\tType           string        // \"http\" or \"metrics\"\n\tPath           string        // HTTP path or metrics query\n\tExpectedStatus int           // HTTP: expected status code (default 200)\n\tThreshold      float64       // Metrics: threshold value\n\tWindow         time.Duration // Metrics: evaluation window\n}\n```\nVerifyCheck describes a single verification check to run against a service.\n\n```go\ntype VerifyCheckResult struct {\n\tType    string `json:\"type\"`\n\tPath    string `json:\"path\"`\n\tPassed  bool   `json:\"passed\"`\n\tMessage string `json:\"message\"`\n}\n```\nVerifyCheckResult captures the outcome of a single check.\n\n```go\ntype WebhookConfig struct {\n\tMaxRetries        int           `json:\"maxRetries\" yaml:\"maxRetries\"`\n\tInitialBackoff    time.Duration `json:\"initialBackoff\" yaml:\"initialBackoff\"`\n\tMaxBackoff        time.Duration `json:\"maxBackoff\" yaml:\"maxBackoff\"`\n\tBackoffMultiplier float64       `json:\"backoffMultiplier\" yaml:\"backoffMultiplier\"`\n\tTimeout           time.Duration `json:\"timeout\" yaml:\"timeout\"`\n}\n```\nWebhookConfig holds configuration for the webhook sender\n\n```go\ntype WebhookDelivery struct {\n\tID          string            `json:\"id\"`\n\tURL         string            `json:\"url\"`\n\tPayload     []byte            `json:\"payload\"`\n\tHeaders     map[string]string `json:\"headers\"`\n\tStatus      string            `json:\"status\"` // \"pending\", \"delivered\", \"failed\", \"dead_letter\"\n\tAttempts    int               `json:\"attempts\"`\n\tLastError   string            `json:\"lastError,omitempty\"`\n\tCreatedAt   time.Time         `json:\"createdAt\"`\n\tDeliveredAt *time.Time        `json:\"deliveredAt,omitempty\"`\n}\n```\nWebhookDelivery tracks a webhook delivery attempt\n\n```go\ntype WebhookIntegrationConnector struct {\n\t// contains filtered or unexported fields\n}\n```\nWebhookIntegrationConnector implements a connector that receives webhook callbacks\n\n```go\nfunc NewWebhookIntegrationConnector(name, path string, port int) *WebhookIntegrationConnector\n```\nNewWebhookIntegrationConnector creates a new webhook integration connector\n\n```go\nfunc (c *WebhookIntegrationConnector) Connect(ctx context.Context) error\n```\nConnect establishes the webhook server\n\n```go\nfunc (c *WebhookIntegrationConnector) Disconnect(ctx context.Context) error\n```\nDisconnect stops the webhook server\n\n```go\nfunc (c *WebhookIntegrationConnector) Execute(ctx context.Context, action string, params map[string]any) (map[string]any, error)\n```\nExecute is a no-op for webhook connectors (they are passive)\n\n```go\nfunc (c *WebhookIntegrationConnector) GetName() string\n```\nGetName returns the connector name\n\n```go\nfunc (c *WebhookIntegrationConnector) IsConnected() bool\n```\nIsConnected checks if the connector is connected\n\n```go\nfunc (c *WebhookIntegrationConnector) RegisterEventHandler(eventType string, handler func(context.Context, map[string]any) error)\n```\nRegisterEventHandler registers a handler for a specific event type\n\n```go\ntype WebhookSender struct {\n\t// contains filtered or unexported fields\n}\n```\nWebhookSender sends webhooks with retry logic\n\n```go\nfunc NewWebhookSender(name string, config WebhookConfig) *WebhookSender\n```\nNewWebhookSender creates a new WebhookSender with sensible defaults\n\n```go\nfunc (ws *WebhookSender) GetDeadLetters() []*WebhookDelivery\n```\nGetDeadLetters returns all dead letter deliveries\n\n```go\nfunc (ws *WebhookSender) Init(app modular.Application) error\n```\nInit registers the webhook sender as a service\n\n```go\nfunc (ws *WebhookSender) Name() string\n```\nName returns the module name\n\n```go\nfunc (ws *WebhookSender) RetryDeadLetter(ctx context.Context, id string) (*WebhookDelivery, error)\n```\nRetryDeadLetter retries a dead letter delivery\n\n```go\nfunc (ws *WebhookSender) Send(ctx context.Context, url string, payload []byte, headers map[string]string) (*WebhookDelivery, error)\n```\nSend sends a webhook with retry logic\n\n```go\nfunc (ws *WebhookSender) SetClient(client *http.Client)\n```\nSetClient sets a custom HTTP client (useful for testing)\n\n```go\nfunc (ws *WebhookSender) Start(_ context.Context) error\n```\nStart launches the background dead letter cleanup goroutine.\n\n```go\nfunc (ws *WebhookSender) Stop(_ context.Context) error\n```\nStop shuts down the background cleanup goroutine.\n\n```go\ntype WebhookTracePropagator struct {\n\t// contains filtered or unexported fields\n}\n```\nWebhookTracePropagator propagates trace context via outbound webhook HTTP headers.\n\n```go\nfunc NewWebhookTracePropagator() *WebhookTracePropagator\n```\nNewWebhookTracePropagator creates a webhook trace propagator.\n\n```go\nfunc (p *WebhookTracePropagator) Extract(ctx context.Context, carrier propagation.TextMapCarrier) context.Context\n```\n\n```go\nfunc (p *WebhookTracePropagator) Inject(ctx context.Context, carrier propagation.TextMapCarrier) error\n```\n\n```go\nfunc (p *WebhookTracePropagator) InjectRequest(ctx context.Context, req *http.Request) error\n```\nInjectRequest injects trace context into an outbound \\*http.Request.\n\n```go\ntype WebhookVerifyStep struct {\n\t// contains filtered or unexported fields\n}\n```\nWebhookVerifyStep verifies HMAC signatures for incoming webhook requests.\n\n```go\nfunc (s *WebhookVerifyStep) Execute(_ context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute verifies the webhook signature from the HTTP request in pipeline context metadata.\n\n```go\nfunc (s *WebhookVerifyStep) Name() string\n```\nName returns the step name.\n\n```go\ntype WhileStep struct {\n\t// contains filtered or unexported fields\n}\n```\nWhileStep executes sub-steps repeatedly while a condition template evaluates as truthy, with a hard iteration cap to prevent runaway loops.\n\nUseful for paginated API calls where a \"next page\" token controls iteration:\n\n\ttype: step.while\n\tname: paginate-pages\n\tconfig:\n\t  condition: \"{{.steps.fetch_page.has_next_page}}\"\n\t  max_iterations: 100\n\t  iteration_var: \"iter\"\n\t  accumulate:\n\t    key: \"all_items\"\n\t    from: \"{{.steps.fetch_page.items}}\"\n\t  steps:\n\t    - type: step.http_call\n\t      name: fetch_page\n\t      config: { url: \"...\", method: GET }\n\n```go\nfunc (s *WhileStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs sub-steps in a loop while the condition template evaluates truthy.\n\n```go\nfunc (s *WhileStep) Name() string\n```\nName returns the step name.\n\n```go\ntype WorkflowCallMode string\n```\nWorkflowCallMode determines how a workflow\\_call step waits for results.\n\n```go\nconst (\n\t// WorkflowCallModeSync executes the target pipeline synchronously and maps outputs back.\n\tWorkflowCallModeSync WorkflowCallMode = \"sync\"\n\t// WorkflowCallModeAsync fires the target pipeline and returns immediately without waiting.\n\tWorkflowCallModeAsync WorkflowCallMode = \"async\"\n)\n```\n\n```go\ntype WorkflowCallStep struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkflowCallStep invokes another pipeline registered in the same engine. It supports synchronous and asynchronous execution modes with input/output template mapping identical to the sub\\_workflow step pattern.\n\n```go\nfunc (s *WorkflowCallStep) Execute(ctx context.Context, pc *PipelineContext) (*StepResult, error)\n```\nExecute runs the target workflow. In sync mode it waits for the result and maps outputs back into the parent context. In async mode it dispatches the child pipeline in a goroutine and returns immediately.\n\n```go\nfunc (s *WorkflowCallStep) Name() string\n```\nName returns the step name.\n\n```go\ntype WorkflowConfig struct {\n\tType              string // The type of workflow to use (e.g., \"order-workflow\")\n\tEngine            string // The name of the workflow engine service to use\n\tInitialTransition string // The first transition to trigger after creating a workflow instance (defaults to \"start_validation\")\n\tInstanceIDPrefix  string // Optional prefix for workflow instance IDs\n\tInstanceIDField   string // Field in resource data to use for instance ID (defaults to \"id\")\n\tSeedFile          string // Path to JSON seed data file\n}\n```\nWorkflowConfig holds the six workflow-related settings for a RESTAPIHandler. These fields are always configured together and are extracted here for clarity.\n\n```go\ntype WorkflowDatabase struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkflowDatabase wraps database/sql for workflow use\n\n```go\nfunc NewWorkflowDatabase(name string, config DatabaseConfig) *WorkflowDatabase\n```\nNewWorkflowDatabase creates a new WorkflowDatabase module\n\n```go\nfunc (w *WorkflowDatabase) Close() error\n```\nClose closes the database connection\n\n```go\nfunc (w *WorkflowDatabase) DB() *sql.DB\n```\nDB returns the underlying \\*sql.DB\n\n```go\nfunc (w *WorkflowDatabase) DeleteRows(ctx context.Context, table string, where string, whereArgs ...any) (int64, error)\n```\nDeleteRows builds and executes a DELETE statement\n\n```go\nfunc (w *WorkflowDatabase) DriverName() string\n```\nDriverName returns the configured database driver (e.g. \"pgx\", \"sqlite3\").\n\n```go\nfunc (w *WorkflowDatabase) Execute(ctx context.Context, sqlStr string, args ...any) (int64, error)\n```\nExecute executes a statement and returns rows affected\n\n```go\nfunc (w *WorkflowDatabase) Init(app modular.Application) error\n```\nInit registers the database as a service\n\n```go\nfunc (w *WorkflowDatabase) InsertRow(ctx context.Context, table string, data map[string]any) (int64, error)\n```\nInsertRow builds and executes an INSERT statement\n\n```go\nfunc (w *WorkflowDatabase) Name() string\n```\nName returns the module name\n\n```go\nfunc (w *WorkflowDatabase) Open() (*sql.DB, error)\n```\nOpen opens the database connection using config\n\n```go\nfunc (w *WorkflowDatabase) Ping(ctx context.Context) error\n```\nPing checks the database connection\n\n```go\nfunc (w *WorkflowDatabase) ProvidesServices() []modular.ServiceProvider\n```\nProvidesServices declares the service this module provides, enabling proper dependency ordering in the modular framework.\n\n```go\nfunc (w *WorkflowDatabase) Query(ctx context.Context, sqlStr string, args ...any) (*QueryResult, error)\n```\nQuery executes a query and returns structured results\n\n```go\nfunc (w *WorkflowDatabase) RequiresServices() []modular.ServiceDependency\n```\nRequiresServices returns no dependencies.\n\n```go\nfunc (w *WorkflowDatabase) Start(ctx context.Context) error\n```\nStart opens the database connection during application startup so that pipeline steps (db\\_query, db\\_exec) can use DB() without requiring a separate persistence.store module.\n\n```go\nfunc (w *WorkflowDatabase) Stop(ctx context.Context) error\n```\nStop closes the database connection during application shutdown.\n\n```go\nfunc (w *WorkflowDatabase) UpdateRows(ctx context.Context, table string, data map[string]any, where string, whereArgs ...any) (int64, error)\n```\nUpdateRows builds and executes an UPDATE statement\n\n```go\ntype WorkflowEngine interface {\n\tTriggerWorkflow(ctx context.Context, workflowType string, action string, data map[string]any) error\n}\n```\nWorkflowEngine defines the interface for triggering workflows\n\n```go\ntype WorkflowEventEmitter struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkflowEventEmitter publishes workflow and step lifecycle events to the EventBus. All methods are safe to call when the EventBus is unavailable (nil); they silently become no-ops.\n\n```go\nfunc NewWorkflowEventEmitter(app modular.Application) *WorkflowEventEmitter\n```\nNewWorkflowEventEmitter creates a new emitter. It attempts to resolve the \"eventbus.provider\" service from the application. If the service is unavailable the emitter still works but all Emit\\* calls are no-ops.\n\n```go\nfunc (e *WorkflowEventEmitter) EmitStepCompleted(ctx context.Context, workflowType, stepName, connector, action string, duration time.Duration, results map[string]any)\n```\nEmitStepCompleted publishes a \"completed\" lifecycle event for a workflow step.\n\n```go\nfunc (e *WorkflowEventEmitter) EmitStepFailed(ctx context.Context, workflowType, stepName, connector, action string, duration time.Duration, err error)\n```\nEmitStepFailed publishes a \"failed\" lifecycle event for a workflow step.\n\n```go\nfunc (e *WorkflowEventEmitter) EmitStepStarted(ctx context.Context, workflowType, stepName, connector, action string)\n```\nEmitStepStarted publishes a \"started\" lifecycle event for a workflow step.\n\n```go\nfunc (e *WorkflowEventEmitter) EmitWorkflowCompleted(ctx context.Context, workflowType, action string, duration time.Duration, results map[string]any)\n```\nEmitWorkflowCompleted publishes a \"completed\" lifecycle event for a workflow.\n\n```go\nfunc (e *WorkflowEventEmitter) EmitWorkflowFailed(ctx context.Context, workflowType, action string, duration time.Duration, err error)\n```\nEmitWorkflowFailed publishes a \"failed\" lifecycle event for a workflow.\n\n```go\nfunc (e *WorkflowEventEmitter) EmitWorkflowStarted(ctx context.Context, workflowType, action string, data map[string]any)\n```\nEmitWorkflowStarted publishes a \"started\" lifecycle event for a workflow.\n\n```go\ntype WorkflowInstance struct {\n\tID            string         `json:\"id\"`\n\tWorkflowType  string         `json:\"workflowType\"`\n\tCurrentState  string         `json:\"currentState\"`\n\tPreviousState string         `json:\"previousState\"`\n\tData          map[string]any `json:\"data\"`\n\tStartTime     time.Time      `json:\"startTime\"`\n\tLastUpdated   time.Time      `json:\"lastUpdated\"`\n\tCompleted     bool           `json:\"completed\"`\n\tError         string         `json:\"error,omitempty\"`\n}\n```\nWorkflowInstance represents an instance of a state machine workflow\n\n```go\ntype WorkflowLifecycleEvent struct {\n\tWorkflowType string         `json:\"workflowType\"`\n\tAction       string         `json:\"action\"`\n\tStatus       string         `json:\"status\"`\n\tTimestamp    time.Time      `json:\"timestamp\"`\n\tDuration     time.Duration  `json:\"duration,omitempty\"`\n\tData         map[string]any `json:\"data,omitempty\"`\n\tError        string         `json:\"error,omitempty\"`\n\tResults      map[string]any `json:\"results,omitempty\"`\n}\n```\nWorkflowLifecycleEvent is the payload published for workflow-level lifecycle events.\n\n```go\ntype WorkflowRegistry struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkflowRegistry is a module that provides the V1Store as a service, making the workflow data store (companies, projects, workflows) available to other modules via the service registry. It can either use a shared SQLiteStorage backend (via storageBackend config) or open its own database.\n\n```go\nfunc NewWorkflowRegistry(name, storageBackend string) *WorkflowRegistry\n```\nNewWorkflowRegistry creates a new workflow registry module. If storageBackend is non-empty, it uses that SQLiteStorage service's DB; otherwise it opens its own database at the default path.\n\n```go\nfunc (w *WorkflowRegistry) Init(app modular.Application) error\n```\n\n```go\nfunc (w *WorkflowRegistry) Name() string\n```\n\n```go\nfunc (w *WorkflowRegistry) ProvidesServices() []modular.ServiceProvider\n```\n\n```go\nfunc (w *WorkflowRegistry) RequiresServices() []modular.ServiceDependency\n```\n\n```go\nfunc (w *WorkflowRegistry) Start(_ context.Context) error\n```\nStart initializes the V1Store, using the shared storage backend or its own DB.\n\n```go\nfunc (w *WorkflowRegistry) Stop(_ context.Context) error\n```\nStop closes the database if using standalone storage.\n\n```go\nfunc (w *WorkflowRegistry) Store() *V1Store\n```\nStore returns the underlying V1Store.\n\n```go\nfunc (w *WorkflowRegistry) WorkflowStore() any\n```\nWorkflowStore satisfies the interfaces.WorkflowStoreProvider interface. It returns the underlying V1Store as an opaque any value so that the interfaces package does not need to import the module package.\n\n```go\ntype WorkflowTriggerInfo struct {\n\tWorkflowType string\n\tAction       string\n\tData         map[string]any\n}\n```\nWorkflowTriggerInfo captures information about a workflow that was triggered\n\n```go\ntype WorkflowUIHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkflowUIHandler serves the workflow editor UI and provides API endpoints for managing workflow configurations.\n\n```go\nfunc NewWorkflowUIHandler(cfg *config.WorkflowConfig) *WorkflowUIHandler\n```\nNewWorkflowUIHandler creates a new handler with an optional initial config.\n\n```go\nfunc (h *WorkflowUIHandler) HandleGetConfig(w http.ResponseWriter, r *http.Request)\n```\nHandleGetConfig serves the workflow configuration (GET /engine/config).\n\n```go\nfunc (h *WorkflowUIHandler) HandleGetModules(w http.ResponseWriter, r *http.Request)\n```\nHandleGetModules lists available module types (GET /engine/modules).\n\n```go\nfunc (h *WorkflowUIHandler) HandleGetServices(w http.ResponseWriter, r *http.Request)\n```\nHandleGetServices serves the services list (GET /engine/services).\n\n```go\nfunc (h *WorkflowUIHandler) HandleManagement(w http.ResponseWriter, r *http.Request)\n```\nHandleManagement dispatches management API requests to the appropriate handler based on the request path. This is intended to be used as a handler function for an http.handler module via SetHandleFunc.\n\n```go\nfunc (h *WorkflowUIHandler) HandlePutConfig(w http.ResponseWriter, r *http.Request)\n```\nHandlePutConfig updates the workflow configuration (PUT /engine/config).\n\n```go\nfunc (h *WorkflowUIHandler) HandleReload(w http.ResponseWriter, r *http.Request)\n```\nHandleReload reloads the engine with the current configuration (POST /engine/reload).\n\n```go\nfunc (h *WorkflowUIHandler) HandleStatus(w http.ResponseWriter, r *http.Request)\n```\nHandleStatus returns the engine status (GET /engine/status).\n\n```go\nfunc (h *WorkflowUIHandler) HandleTryActivate(w http.ResponseWriter, r *http.Request)\n```\nHandleTryActivate probes a candidate config (POST /engine/try-activate).\n\n```go\nfunc (h *WorkflowUIHandler) HandleValidate(w http.ResponseWriter, r *http.Request)\n```\nHandleValidate validates a workflow configuration (POST /engine/validate).\n\n```go\nfunc (h *WorkflowUIHandler) RegisterRoutes(mux *http.ServeMux)\n```\nRegisterRoutes registers all workflow UI routes on the given mux.\n\n```go\nfunc (h *WorkflowUIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements http.Handler for config-driven delegate dispatch. It handles both query (GET) and command (PUT/POST) operations for engine management, dispatching based on the last path segment.\n\n```go\nfunc (h *WorkflowUIHandler) SetReloadFunc(fn func(*config.WorkflowConfig) error)\n```\nSetReloadFunc sets the callback for reloading the engine with new config.\n\n```go\nfunc (h *WorkflowUIHandler) SetServiceRegistry(fn func() map[string]any)\n```\nSetServiceRegistry sets the callback for accessing the service registry.\n\n```go\nfunc (h *WorkflowUIHandler) SetStatusFunc(fn func() map[string]any)\n```\nSetStatusFunc sets the callback for getting engine status.\n\n```go\nfunc (h *WorkflowUIHandler) SetTryActivateFunc(fn func(*config.WorkflowConfig) (*TryActivateResult, error))\n```\nSetTryActivateFunc sets the callback for try-activate (build without deploy). The callback should build a candidate engine from the given config and return a TryActivateResult describing what the candidate would expose. It must not stop the current engine or swap any active pointers.\n\n```go\ntype WorkspaceHandler struct {\n\t// contains filtered or unexported fields\n}\n```\nWorkspaceHandler handles file management API endpoints for project workspaces.\n\n```go\nfunc NewWorkspaceHandler(wm *store.WorkspaceManager) *WorkspaceHandler\n```\nNewWorkspaceHandler creates a new handler backed by the given workspace manager.\n\n```go\nfunc (h *WorkspaceHandler) HandleWorkspace(w http.ResponseWriter, r *http.Request)\n```\nHandleWorkspace dispatches workspace file API requests. Expected paths:\n\n\tPOST   /api/v1/workspaces/{project-id}/files       (upload)\n\tGET    /api/v1/workspaces/{project-id}/files        (list)\n\tGET    /api/v1/workspaces/{project-id}/files/{path} (download)\n\tDELETE /api/v1/workspaces/{project-id}/files/{path} (delete)\n\tPOST   /api/v1/workspaces/{project-id}/mkdir        (create directory)\n\n","path":"github.com/GoCodeAlone/workflow/module","name":"module","synopsis":"This file implements the config.provider module type and config registry.","isRedistributable":true}
