Skip to content
AWPv1alpha2 (draft)
Draft - v1alpha1. Fields and semantics may change before v1beta1.

Execution placement (executors)

A manifest says what a workflow may do. It does not say where the steps run. That choice belongs to the runtime and its operator: a local process, a container on a host, a Kubernetes pod, a CI job, a serverless task or a managed agent runtime. This page calls such a target an executor. It is informative: it adds no requirement to the specification, and executors are not a manifest field in v1alpha1.

  • The manifest digest (spec 9.1) covers what was reviewed. If the executor were a manifest field, moving a workflow from a test cluster to a CI runner would need a new version and a new review, although nothing about its permissions changed.
  • Bind the executor to the deployed workflow (or to a single execution) in the runtime’s own configuration instead. A practical order is: the choice for this execution, then the binding of the deployed workflow, then a default derived from the network zones the workflow needs.
  • An explicit choice must never fall back silently. If the chosen executor is not available, the execution does not start and the error names the executor.

The executor runs steps; it does not decide what they may do.

  • Model invocations and actions go through the runtime’s model and tool proxies, which check permissions, approvals, budgets and data policy before each call (spec 5.7, 7.5, 7.6). Each call names its step, so the proxy can allow only the tools of that step’s agent.
  • Budgets are counted from the proxies’ own records, not from what the executor reports (AEP-0013, item 1).
  • With this split, choosing a different executor kind cannot weaken governance. It changes isolation, network position and cost.
  • Data residency (spec 7.3): an executor has a region and a network position. Reject a placement whose region or network zones do not satisfy the workflow’s data and model policies.
  • Network (spec 7.5, permissions.network): the executor needs to reach the runtime’s proxies, nothing else. Direct access to models or tool servers bypasses the control plane.
  • Isolation (spec 5.6.2): command steps need an isolated environment on every executor kind, not only on the default one.

Remote executors (CI runners, serverless tasks, managed agent runtimes) are started through an API whose parameters are often readable by others: CI variables, task overrides, invocation payloads, job logs.

  • Do not pass the execution’s credential in those parameters. Pass a short-lived, single-use bootstrap ticket instead (for example a signed token with its own audience and an expiry of minutes), and let the executor exchange it once for the execution credential over TLS.
  • Reject a second exchange of the same ticket, and bind the ticket to one execution.
  • Allow callback addresses on loopback or private networks only in development and tests.
  • Pin the executor image by digest (name@sha256:...), as the security profile requires for command step images. Some platforms cannot override the image per call; create one task definition per image digest rather than reusing a mutable tag.
  • Managed runtimes may require a specific CPU architecture; build multi-architecture images or record the architecture.
  • Record the executor kind, its name and the image digest with the execution. The reproducibility record (spec 10.7) has no field for it in v1alpha1; keep it in runtime until an AEP adds one.
KindStarted throughNotes
Local processRuntime hostDevelopment only; no isolation between executions.
ContainerContainer engine APIOne container per execution; good for demos and single hosts.
KubernetesPod or job APINamespaces and network policies give isolation and zones.
CI runnerPipeline trigger APIPrefer typed pipeline inputs over variables; projects can restrict who may set variables.
Serverless taskTask API with a pre-registered task definitionImage fixed per task definition; pass only the bootstrap ticket.
Managed agent runtimeInvocation API of the platformOften requires a health and an invocation endpoint in the image and a fixed CPU architecture.