Execution contract and CLI

Configure the controller with a workflow alias, the Argo namespace, the template name, the workflow ServiceAccount, and a transport mapping. The controller sends the intent as a JSON parameter. The workflow resolves the actual source and target before supplying result signals.

SignalMeaning
intentController input with the stack operation, source, inputs and attempt identity.
resolved-sourceEffective source revision and binding identified by the workflow.
execution-stateOptional progress, waiting and drift observations.
authorization-requestToken associated with the reviewed change when the integration uses authorization.
execution-resultFunctional outcome such as NoChanges, Verified, Blocked or Cancelled.

Approval and authorization

Human or policy approval decides whether a change is acceptable. The controller checks that the attempt still matches the valid intent. An authorized workflow requests a grant, waits for the matching token and records a claim immediately before apply. The token should identify the exact reviewed change. The workflow remains responsible for verifying the plan artifact and backend binding.

A trusted alias may use contract.authorization: false. It omits the authorization request and claim, and the controller observes the active attempt until it ends. Keep direct apply scoped to an appropriate target.

Use the CLI or bring your own runner

The execution CLI packages the protocol on the workflow side. A custom runner can include the versioned iacstack binary and invoke it to read intent, report source and progress, request and claim authorization, and return a result. A workflow may implement the same transport directly. Do not put full plans, state, or secrets in status or workflow parameters.

Bring your own workflow · CLI command and transport design

For the full command syntax, output mapping, result semantics and claim failure codes, use the execution CLI reference. See the complete transport specification for identity, envelope and lifecycle rules.