AWP v1alpha3 draft Spec v1alpha3 Review guide

From v1alpha1 to v1alpha3, and what is proposed next

55 examples of what changes in the Agentic Workflow Protocol, each with the old form on the left, the new form on the right, and the reason for the change: first what is in the v1alpha3 draft, then what pull request #23 proposes and what is planned.

New to AWP? Start with how it fits together. What is shown. The draft chapters compare v1alpha1 with the v1alpha3 draft: the Kubernetes resource model of pull request #16, merged as v1alpha3 by decision D20 on top of v1alpha2 (v1alpha1 plus step iteration, D19). They were first written when that draft was called v1alpha2. The proposal chapters put v1alpha3 today next to what spec pull request #23 proposes (AEP-0023 to AEP-0027 and amendments to existing AEPs), the planned chapter next to a sketch of the AEP-0004 pull request that has no text yet, and the concept chapter next to AEP-0021. Everything is a Draft under review; nothing is accepted except step iteration. All links and checks use the spec branch docs/v1alpha3-runtime-feedback (main plus spec pull request #23, which supersedes #19 and #20; not merged text). Snippets marked valid or rejected by checker were run through the reference checker there; proposals are marked not checked.

  • only in the old form
  • new or moved in the new form, or added by a proposal
  1. Document modelAEP-0015 · 10 examples
  2. SchedulesAEP-0016 · 2 examples
  3. Human inputAEP-0017 · 2 examples
  4. Step outputsAEP-0018 · 3 examples
  5. WorkflowRun and statusAEP-0019 · 3 examples
  6. Execution pinningAEP-0020 · 4 examples
  7. Step iterationAEP-0022 · 1 example
  8. Step isolation (proposal)AEP-0023 (PR #23) · 8 examples · proposal
  9. Event triggers with CloudEvents (proposal)AEP-0024 (PR #23) · 3 examples · proposal
  10. State across executions (proposal)AEP-0025 (PR #23) · 2 examples · proposal
  11. Interactive execution (proposal)AEP-0026 (PR #23) · 3 examples · proposal
  12. Agent engine (proposal)AEP-0027 (PR #23) · 2 examples · proposal
  13. Amendments to existing AEPs (proposal)Amendments (PR #23) · 5 examples · proposal
  14. Event data in the run (planned)AEP-0004 (planned) · 2 examples · planned
  15. Extension model (concept)AEP-0021 · 5 examples · concept

DraftAEP-0015

Document model

Every manifest becomes a valid Kubernetes resource and stays usable without Kubernetes. Most of this is a mechanical move, done by awp-check.mjs migrate.

1

A minimal workflow

v1alpha1valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Workflowmetadata:  name: hello  version: 0.1.0  owner:    team: platform-teamspec:  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: hellospec:  version: 0.1.0  owner:    team: platform-team  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.

What changes

version and owner move from metadata into spec. Nothing else changes.

Why

In Kubernetes, metadata is ObjectMeta. The API server drops every field it does not know, so a stored v1alpha1 workflow would lose its version and owner, and its digest would no longer verify.

2

Governance fields live in spec

v1alpha1valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Workflowmetadata:  name: invoice-processing  version: 1.2.0  description: Extract, check and book invoices.  owner:    team: finance-automation  classification: confidential  purpose: Accounts payable processing  risk:    level: highspec:  agents:    - id: extractor      model:        provider: ollama        name: qwen3  workflow:    - id: extract      agent: extractor      task: Extract the invoice fields.
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: invoice-processingspec:  version: 1.2.0  description: Extract, check and book invoices.  owner:    team: finance-automation  classification: confidential  purpose: Accounts payable processing  risk:    level: high  agents:    - id: extractor      model:        provider: ollama        name: qwen3  workflow:    - id: extract      agent: extractor      task: Extract the invoice fields.

What changes

description, classification, purpose, risk, integrity, signature and provenance move to spec as well, with unchanged meaning.

Why

They are governed content: covered by the digest, reviewed and signed. Labels and annotations would have been the only other place in metadata, and governance must never depend on labels.

3

Owner is always an object

v1alpha1
metadata:  name: hello  version: 0.1.0  owner: platform-team
v1alpha3 draft
spec:  version: 0.1.0  owner:    team: platform-team

What changes

The string shorthand for owner is gone. owner always has team (and optionally contact).

Why

A CustomResourceDefinition needs a structural schema: one type per field. "String or object" cannot be expressed. The migration tool expands the shorthand.

4

Policy conditions have one form

v1alpha1valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Policymetadata:  name: production-guard  version: 1.0.0  owner:    team: governance-teamspec:  rules:    - id: no-prod-deploys-by-agents      effect: deny      when:        action: production.deploy        actor.type: agent        risk.level:          gte: high
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Policymetadata:  name: production-guardspec:  version: 1.0.0  owner:    team: governance-team  rules:    - id: no-prod-deploys-by-agents      effect: deny      when:        action:          equals: production.deploy        actor.type:          equals: agent        risk.level:          gte: high

What changes

The plain-value shorthand for equals is removed. Every attribute maps to an operator object.

Why

Same reason as owner: a value that is either a string or an object is not a structural schema.

5

Agent manifests

v1alpha1valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Agentmetadata:  name: invoice-extractor  version: 1.0.0  owner:    team: finance-automation  classification: confidentialspec:  model:    provider: ollama    name: qwen3  instructions: |    Extract invoice number, date,    supplier and total.
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: invoice-extractorspec:  version: 1.0.0  owner:    team: finance-automation  classification: confidential  model:    provider: ollama    name: qwen3  instructions: |    Extract invoice number, date,    supplier and total.

What changes

The same move applies to every kind: Workflow, Agent and Policy.

Why

One rule for all kinds keeps the migration mechanical and the CRDs uniform.

6

Objects read back from a cluster

v1alpha1: rejected (unknown fields)rejected by checker
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Workflowmetadata:  name: hello  version: 0.1.0  owner:    team: platform-team  uid: 2f1c7a52-6a0e-4d55-9b1e-0c2f4b9a7d11  resourceVersion: "4711"  generation: 3spec:  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: hello  namespace: team-a  uid: 2f1c7a52-6a0e-4d55-9b1e-0c2f4b9a7d11  resourceVersion: "4711"  generation: 3  managedFields:    - manager: example-controller      operation: Applyspec:  version: 0.1.0  owner:    team: platform-team  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.

What changes

Fields that an object store fills in (uid, resourceVersion, generation, managedFields, ...) are accepted and ignored.

Why

Every object read back from a Kubernetes API server carries them. A validator that rejected them could not check what is actually stored in a cluster.

7

The digest survives deployment

v1alpha1
v1alpha1 digest input:  the whole document without integrity,  signature and provenance   metadata.name          covered  metadata.version       covered  metadata.owner         covered  metadata.labels        covered  metadata.namespace     (not defined) Kustomize adds a label  -> digest changes  -> signature no longer verifies
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: hello  namespace: team-b        # not covered  labels:    tier: gold             # not covered  annotations:    note: deployed by a toolspec:  version: 0.1.0  owner:    team: platform-team  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.  integrity:    digest: sha256:467f53622bc33e24ae28edac84e6507bd891f00812fe71729f40e28095ac3742

What changes

The digest covers apiVersion, kind, metadata.name and spec (without integrity, signature, provenance). Namespace, labels, annotations, store fields and status are not covered.

Why

Deployment tools (Argo CD, Flux, Kustomize, Helm) change namespace, labels and annotations. A reviewed and signed manifest must keep its digest through that. This case is in the conformance suite and verifies.

8

status is reserved for runtimes

v1alpha1: rejected (unknown top-level field)rejected by checker
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Workflowmetadata:  name: hello  version: 0.1.0  owner:    team: platform-teamspec:  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.status:  ready: true
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: hellospec:  version: 0.1.0  owner:    team: platform-team  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.status:  observedGeneration: 3  digest: sha256:467f53622bc33e24ae28edac84e6507bd891f00812fe71729f40e28095ac3742  conditions:    - type: Valid      status: "True"      reason: Validated      message: ""      lastTransitionTime: 2026-11-19T08:00:00Z    - type: Ready      status: "True"      reason: Ready      message: ""      lastTransitionTime: 2026-11-19T08:00:00Z

What changes

A manifest may carry status. Validators ignore it, the digest does not cover it, and runtimes never derive governance decisions from a status they did not write.

Why

The runtime reports there whether it accepted the manifest. kubectl get and kubectl wait --for=condition=Valid read it directly.

9

Storing a workflow in Kubernetes

v1alpha1: wrapped in a ConfigMap
# Workaround every operator had to inventapiVersion: v1kind: ConfigMapmetadata:  name: hello-workflow  labels:    runtime.example.com/kind: awp-workflowdata:  workflow.yaml: |    apiVersion: awp.agenticworkflowprotocol.org/v1alpha1    kind: Workflow    metadata:      name: hello      version: 0.1.0    ...
v1alpha3: a native custom resource
$ kubectl apply -f schema/crd/$ kubectl apply --validate=strict -f hello.yamlworkflow.awp.agenticworkflowprotocol.org/hello created $ kubectl get workflowsNAME    VERSION   OWNER           VALID   READY   AGEhello   0.1.0     platform-team   True    True    2m $ kubectl wait --for=condition=Ready workflow/helloworkflow.awp.agenticworkflowprotocol.org/hello condition met

What changes

The repository publishes CustomResourceDefinitions generated from the JSON Schema (schema/crd/), with printer columns and a status subresource.

Why

With a wrapper, the AWP document is invisible to RBAC, kubectl, GitOps health checks and owner references, and every runtime wraps differently. The output on the right was checked on a local k3s cluster.

10

x- fields move into extensions

v1alpha1valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Workflowmetadata:  name: hello  version: 0.1.0  owner:    team: platform-teamspec:  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.      x-example-reviewChecklist: security-v2
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: hellospec:  version: 0.1.0  owner:    team: platform-team  agents:    - id: assistant      model:        provider: ollama        name: qwen3  workflow:    - id: greet      agent: assistant      task: Say hello.      extensions:        x-example-reviewChecklist: security-v2

What changes

x- keys are only allowed inside an extensions object.

Why

A structural schema cannot have free keys next to defined fields. This is an interim step: the last chapter proposes to remove x- fields altogether.

DraftAEP-0016

Schedules

What happens when a tick arrives while the previous execution still runs, and when ticks are missed.

11

Overlapping ticks

v1alpha1
triggers:  - type: schedule    cron: "*/30 * * * *"    timezone: Europe/Berlin # The previous execution still runs# when the next tick arrives:# start a second one? skip? undefined.
v1alpha3 draft
triggers:  - type: schedule    cron: "*/30 * * * *"    timezone: Europe/Berlin    concurrencyPolicy: forbid   # default    startingDeadline: 15m

What changes

concurrencyPolicy is allow, forbid (default) or replace, as in Kubernetes CronJobs. startingDeadline allows one late start after missed ticks.

Why

Overlapping agent executions cost money and can act twice on the same data. The safe default is to skip the tick.

12

Skipped ticks are audited

v1alpha1
(no event) A tick that did not start an executionleft no trace in the audit log.
v1alpha3 draft
type: trigger.skippedtime: "2026-11-19T06:30:00Z"workflow:  name: nightly-triage  version: 1.2.0actor:  type: system  id: schedulerdata:  trigger:    index: 1    type: schedule  scheduledAt: "2026-11-19T06:30:00Z"  reason: concurrencyForbidden

What changes

Every tick without an execution emits trigger.skipped with the reason (concurrencyForbidden, missed, startingDeadlineExceeded). Missed ticks are not replayed in a burst after an outage.

Why

An auditor must be able to see why a scheduled job did not run.

DraftAEP-0017

Human input

A workflow or an agent can ask a named person for an answer. Answers are never approvals.

13

Asking a person during a workflow

v1alpha1
# Only approvals exist: yes or no.- id: confirm-targets  type: approval  approval:    approvers:      - role: release-manager    timeout: 4h  dependsOn: [analyze] # Which environment? How many hosts?# There is no way to ask.
v1alpha3 draft
- id: ask-targets  type: input  dependsOn: [analyze]  input:    message: Where should the fix be rolled out?    answerers:      - role: release-manager    timeout: 4h    answerSchema:      type: object      properties:        environment:          type: string          enum: [staging, production]        maxHosts:          type: integer          minimum: 1      required: [environment]    onTimeout: useDefault    default:      environment: staging- id: apply  agent: worker  task: >-    Roll out to    ${{ steps.ask-targets.outputs.answer }}.  dependsOn: [ask-targets]

What changes

A new step type input asks named answerers for free text or a structured answer (a subset of the MCP elicitation schema), with timeout and fallback.

Why

Workflows misused approvals to collect information. An answer is not an approval: it never counts as one, so a free-text reply cannot bypass a governance gate.

14

An agent asks a question

v1alpha1
agents:  - id: worker    model:      provider: ollama      name: qwen3 # The agent cannot ask anybody.# It guesses or fails.
v1alpha3 draft
agents:  - id: worker    model:      provider: ollama      name: qwen3    humanInput:      answerers:        - role: maintainer      timeout: 30m      onTimeout: return      maxRequests: 3

What changes

An agent with humanInput may ask the listed answerers while it works, at most maxRequests times. The request and the answer are audited (input.requested, input.provided).

Why

Agents meet ambiguous situations. Asking a named person is safer than guessing, and the limits keep it from turning into a chat.

DraftAEP-0018

Step outputs

How a step actually produces the values of its declared outputs, the largest portability gap found by the runtime proof of concept.

15

Outputs of a command step

v1alpha1
- id: diff  type: command  image: registry.example.com/tools/diff@sha256:...  command: ./diff.sh  outputs:    - name: new    - name: count # How does ./diff.sh set "new" and "count"?# Each runtime invented its own convention.
v1alpha3 draft
- id: diff  type: command  image: registry.example.com/tools/diff@sha256:...  command: >-    ./diff.sh > "$AWP_OUTPUTS/new" &&    wc -l < "$AWP_OUTPUTS/new" > "$AWP_OUTPUTS/count"  outputs:    - name: new    - name: count

What changes

The runtime creates an empty directory per attempt and passes it in AWP_OUTPUTS. One file per declared output. At least 256 KiB per output and 1 MiB per step are accepted; outputs of failed attempts are discarded.

Why

Without a rule, an image written for one runtime produces no outputs on another. This was the largest gap reported by the runtime proof of concept (G01).

16

Outputs of an agent step

v1alpha1
task: |  Rate the concerts.  At the very end, print a line  RELEVANT=<json array>  and nothing after it. -> works until the model adds a sentence   after the line, or wraps it in markdown.
v1alpha3 draft
task: Rate the concerts.outputs:  - name: relevant    description: JSON array of relevant concerts. The agent ends the step with the built-in tool: complete_step({  "relevant": "[{\"venue\": \"...\"}]"})

What changes

Agent steps end with a built-in tool complete_step that has one parameter per declared output. An agent step with outputs that never completes fails with notCompleted.

Why

Parsing the last message depends on the model following a format. A tool call is structured and checked by the runtime. complete_step is not an action, so it cannot bypass permissions.

17

Reserved environment variables

v1alpha1valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Workflowmetadata:  name: hello  version: 0.1.0  owner:    team: platform-teamspec:  workflow:    - id: build      type: command      image: registry.example.com/build@sha256:0f1e2d3c4b5a69788796a5b4c3d2e1f00f1e2d3c4b5a69788796a5b4c3d2e1f0      command: make      env:        AWP_OUTPUTS: /tmp/out  agents: []
v1alpha3 draftrejected by checker
$ node conformance/awp-check.mjs check build.yamlbuild.yaml: invalid  step.reserved-env  /spec/workflow/0/env/AWP_OUTPUTS  environment variables starting with AWP_ are  reserved for the runtime (section 5.6.4) The runtime sets:  AWP_OUTPUTS       directory for output files  AWP_EXECUTION_ID  execution identifier  AWP_STEP_ID       step id  AWP_ATTEMPT       attempt number

What changes

The prefix AWP_ belongs to the runtime; a manifest must not set such variables.

Why

Otherwise a manifest could redirect where outputs are read from, or fake the execution identity a step sees.

DraftAEP-0019

WorkflowRun and status

A new kind for one execution, and a status shape that existing Kubernetes tools understand.

18

Starting an execution

v1alpha1
Every runtime has its own way: $ runtime-a run hello --input repo=web-shop $ curl -X POST https://runtime-b.example.com/api/v1/executions \    -d '{"workflow": "hello", "inputs": {...}}' apiVersion: runtime-c.example.com/v1kind: HelloRun...
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  generateName: vulnerability-fixer-  namespace: securityspec:  workflowRef:    name: vulnerability-fixer    version: 0.1.0  inputs:    cve: CVE-2026-12345    repository: example-org/web-shop  environment: staging

What changes

A new kind WorkflowRun: creating one starts one execution, as a manual trigger with all its rules. spec.cancel: true or deleting it cancels.

Why

Tools (CLIs, dashboards, pipelines, GitOps) can start and watch executions on any runtime. The actor is never read from the object; it comes from an authenticated source.

19

Watching an execution

v1alpha1
Only the audit event stream, in aruntime-specific store: workflow.started   ...step.started       analyzestep.completed     analyzestep.started       apply... No object that says "running, step 2 of 3".
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  name: vulnerability-fixer-7k2xq  namespace: securityspec:  workflowRef:    name: vulnerability-fixerstatus:  executionId: awp-exec-01JD6Q8Z5K3M4N5P6Q7R8S9T0V  phase: running  actor:    type: human    id: alice@example.com  workflow:    name: vulnerability-fixer    version: 0.1.0    digest: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa  startedAt: 2026-11-19T08:00:00Z  steps:    - id: investigate      status: succeeded      attempts: 1    - id: fix      status: running      attempts: 1  conditions:    - type: Accepted      status: "True"      reason: Validated      message: ""      lastTransitionTime: 2026-11-19T08:00:00Z

What changes

The runtime reports phase, pinned workflow, per-step status, usage and the conditions Accepted and Succeeded. No secret values and no output content.

Why

Audit events remain the record; status is the current view for people and tools.

20

kubectl shows validity and progress

v1alpha1
$ kubectl get configmaps -l runtime.example.com/kind=awp-workflowNAME              DATA   AGEhello-workflow    1      3d (valid? which version? nobody knows without asking the runtime)
v1alpha3 draft
$ kubectl get workflowsNAME                  VERSION   OWNER           VALID   READY   AGEvulnerability-fixer   0.1.0     security-team   True    True    3d $ kubectl get workflowrunsNAME                        WORKFLOW              PHASE     STARTED   AGEvulnerability-fixer-7k2xq   vulnerability-fixer   running   5m        5m

What changes

The generated CRDs have printer columns for version, owner, the Valid and Ready conditions and the run phase.

Why

Printer columns come from the CRDs, and the CRDs come from this repository. A runtime cannot add them on its own.

DraftAEP-0020

Execution pinning

An execution keeps the manifests it started with, even when GitOps changes them halfway.

21

A GitOps sync during an execution

v1alpha1
08:00  execution starts with nightly-triage 1.2.008:05  waits for approval of step "deploy"09:10  Argo CD syncs 1.3.0:         step "notify" removed,         policy tightened09:30  approval arrives Which version runs now? Undefined.The audit log says 1.2.0.
v1alpha3 draft
08:00  execution starts, pins         workflow  nightly-triage 1.2.0  sha256:5c4b...         agents    triage-agent    1.0.3  sha256:91aa...         policies  prod-guard      2.1.0  sha256:07fe...08:05  waits for approval of step "deploy"09:10  Argo CD syncs 1.3.009:30  approval arrives -> continues with 1.2.0       (or the runtime cancels: reason manifestChanged)10:00  next tick starts 1.3.0

What changes

An execution uses exactly the workflow, agent and policy versions it resolved at start, until it ends. Mixing is never allowed; a runtime may cancel instead.

Why

An approver approves the step of the version that runs, and the audit trail names exactly that version.

22

The digest is required at start

v1alpha1
type: workflow.startedexecutionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5Dworkflow:  name: vulnerability-fixer  version: 0.1.0  # digest: only "if known"actor:  type: human  id: user:alice@example.comenvironment: development
v1alpha3 draft
type: workflow.startedexecutionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5Dworkflow:  name: vulnerability-fixer  version: 0.1.0  digest: sha256:5c4b3a29180716f5e4d3c2b1a0f9e8d7c6b5a49382716f5e4d3c2b1a0f9e8d7cactor:  type: human  id: user:alice@example.comenvironment: development

What changes

workflow.digest is REQUIRED in workflow.started.

Why

Name and version can be reused by mistake; the digest identifies the exact content that ran.

23

Run exactly the reviewed version

v1alpha1
(not possible) A pipeline that reviewed version 0.1.0cannot make sure that 0.1.0 runs:a sync may have applied 0.2.0 in between.
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  name: fixer-reviewed-run  namespace: securityspec:  workflowRef:    name: vulnerability-fixer    version: 0.1.0    digest: sha256:5c4b3a29180716f5e4d3c2b1a0f9e8d7c6b5a49382716f5e4d3c2b1a0f9e8d7c

What changes

workflowRef.version and workflowRef.digest are assertions. If the current workflow differs, the run is rejected (versionMismatch, digestMismatch).

Why

A run never selects old versions, so the object store needs no history; the assertion only guarantees that what was reviewed is what runs.

24

Images: tags in the manifest, digests in the record

v1alpha1
- id: fetch  type: command  image: registry.example.com/tools:1.4  command: fetch # Which image ran? Whatever :1.4 pointed to# at that moment. A retry an hour later may# pull a different one. Under the security# profile a digest is required, which is hard# to maintain in Helm charts.
v1alpha3 draft
manifest:   image: registry.example.com/tools:1.4 execution start: runtime resolves the tag  registry.example.com/tools:1.4    -> sha256:9c1e...  (image index: amd64, arm64, s390x) every step and retry of this execution uses sha256:9c1e... reproducibility record:  images:    - reference: registry.example.com/tools:1.4      digest: sha256:9c1e... security profile: tools:1.4@sha256:9c1e... (index digest)

What changes

Tags stay allowed outside the security profile. The runtime resolves every image to a digest when an execution starts, pins it like the manifests and records it. For multi-platform images the digest is that of the image index, which works on every architecture. A runtime that cannot run images rejects a command step with image.

Why

Every execution is traceable without forcing authors and packaging tools to maintain digests. Organisations that need the reviewed image to be the executed one choose the security profile.

DraftAEP-0022

Step iteration

A bounded fan-out over a list known when the step becomes ready: accepted for v1alpha2 (D19) and part of v1alpha3 as section 5.6.5, combined with the step output interface.

25

One step per item of a list

v1alpha1valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha1kind: Workflowmetadata:  name: image-scan  version: 0.1.0  owner:    team: security-teamspec:  agents:    - id: scanner      model:        provider: example-provider        name: example-model  workflow:    # one step per image, written out by hand    - id: scan-web      agent: scanner      task: Scan registry.example.com/web:1.4.    - id: scan-api      agent: scanner      task: Scan registry.example.com/api:2.0.
v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: image-scanspec:  version: 0.1.0  owner:    team: security-team  inputs:    - name: images      type: array      default:        - registry.example.com/web:1.4        - registry.example.com/api:2.0  budget:    resources:      maxConcurrency: 2  agents:    - id: scanner      model:        provider: example-provider        name: example-model  workflow:    - id: scan      agent: scanner      task: "Scan ${{ forEach.item }}."      forEach:        items: "${{ inputs.images }}"        maxItems: 20        concurrency: 2      outputs:        - name: report

What changes

forEach runs the step once per item, at most maxItems items and concurrency at a time; each running item run counts against budget.resources.maxConcurrency (default 1). Each item run produces its own outputs through $AWP_OUTPUTS or complete_step; the step output is a JSON list in item order.

Why

The number of item runs never depends on what an item run produces, so budgets and reviews stay bounded. A list longer than maxItems fails the step instead of being truncated.

Proposal: PR #23AEP-0023 (PR #23)

Step isolation (proposal)

Proposed in spec pull request #23, not applied to the schema: a host syntax for allowHosts, the platform ceiling, enforce or reject, internal destinations and model credentials; since PR #23 also tool server credentials, approval authority outside the execution environment, a minimum isolation class and one rule for ceilings. Left is v1alpha3 today, right the proposal.

26

One syntax for allowed hosts

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-triagespec:  version: 0.1.0  owner:    team: support  classification: internal  permissions:    network:      egress: deny      allowHosts:        - api.example.com        - cdn.example.com  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: run      agent: triage      task: Triage new tickets.
AEP-0023 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-triagespec:  version: 0.1.0  owner:    team: support  classification: internal  permissions:    network:      egress: deny      allowHosts:        - api.example.com        - "*.cdn.example.com:443"   # subdomain wildcard, port        - 10.20.0.0/16              # internal ticket system  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: run      agent: triage      task: Triage new tickets.

What changes

An entry is a host name, a subdomain wildcard *.domain (not the domain itself), an address or a CIDR, each with an optional :port. A bare * or a * in another label is invalid. Names are matched before resolution, addresses after.

Why

Today the forms are undefined (G49), so the same list means different things in different runtimes and cannot be translated into a proxy or network policy.

27

Egress is denied by default under security

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-triagespec:  version: 0.1.0  owner:    team: support  classification: internal  permissions:    default: deny    tools:      shell.execute:        allow: true  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: run      agent: triage      task: Triage new tickets.# under security: egress is allow (the default)
AEP-0023 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-triagespec:  version: 0.1.0  owner:    team: support  classification: internal  permissions:    default: deny    tools:      shell.execute:        allow: true    network:                  # without this block:      egress: deny            # deny under security      allowHosts:        - api.example.com  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: run      agent: triage      task: Triage new tickets.

What changes

Under the security profile, a manifest without network.egress gets deny. Outside it, the default stays allow.

Why

Deny-by-default deployments and the intent of the security profile conflict with egress: allow as the default (G47). Authors add egress: allow or allowHosts where a step needs the network.

28

Enforce or reject against the platform ceiling

v1alpha3 draft
# v1alpha3: permissions.network applies to# command steps (5.6.2), but nothing says what# happens when the platform allows less, or when# the runtime cannot restrict egress by host name.## A runtime may run the step anyway, with weaker# restrictions than the reviewed manifest says.
AEP-0023 proposalnot checked
# effective network = every permissions.network#                     intersected with the ceiling$ awp run support-triagerejected before any step ran:  permissions.network.allowHosts[2] (10.20.0.15)  is not allowed by the platform ceiling  for step type command# (message format is a sketch; the AEP requires a#  reason that names the rule and the step type)

What changes

A platform may set a ceiling (per namespace, tenant or installation). The effective network of a step is the intersection of the manifest and the ceiling. If the runtime cannot enforce a rule for a step type, or the ceiling forbids a destination the manifest needs, it rejects before any step runs, and never runs with weaker rules.

Why

An author cannot tell whether a reviewed manifest will run, and a runtime could silently ignore allowHosts (G10, G47, G51). Internal destinations (loopback, private, link-local, CGNAT) are denied after resolution under security unless manifest and ceiling both allow them (G50).

29

Model credentials stay out of steps

v1alpha3 draft
# v1alpha3 says nothing about provider keys.# A runtime may hand them to the agent step:$ env   # inside an agent stepPROVIDER_API_KEY=<the provider key># readable by any command or injected instruction
AEP-0023 proposalnot checked
# security profile: no provider key in the step# (environment, files, arguments). The runtime calls# the provider itself, or a proxy authenticates the# step with a short-lived credential bound to one# execution or attempt.$ env   # inside an agent step<no provider key>

What changes

Model credentials are runtime configuration. Under security they MUST NOT be visible to steps; outside it, a runtime that exposes them says so in its conformance statement.

Why

A key inside the step can be exfiltrated by any command or prompt injection (G61). A proof of concept keeps keys only at the runtime and gives each attempt a short-lived credential.

30

An agent can require stronger isolation than a container

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: repo-fixerspec:  version: 0.1.0  owner:    team: appsec  classification: internal  model:    provider: example-provider    name: example-model  instructions: Fix the failing tests in the repository.  permissions:    default: deny    tools:      shell.execute:        allow: true# Where the commands run (container, gVisor, a VM)# is decided in a runtime binding that reviewers# never see.
AEP-0023 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: repo-fixerspec:  version: 0.1.0  owner:    team: appsec  classification: internal  isolation: sandbox        # process < container < sandbox < vm  model:    provider: example-provider    name: example-model  instructions: Fix the failing tests in the repository.  permissions:    default: deny    tools:      shell.execute:        allow: true# A runtime with containers only rejects this agent# before any step runs. Which mechanism provides# "sandbox" (gVisor, Kata) is platform configuration.

What changes

isolation is a minimum. The runtime runs the agent with at least that class or rejects the manifest; a platform ceiling may require a higher minimum, and the stricter one applies. The conformance statement lists which classes a runtime provides and by which mechanism.

Why

An agent that runs make or a test runner on an untrusted repository executes whatever the repository contains; a command allow list does not stop that. In the proof of concept the runtime class sat in a sandbox profile of the binding, invisible in the reviewed manifest (G67).

31

Tool server credentials stay out of steps

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: code-scanspec:  version: 0.1.0  owner:    team: appsec  classification: internal  secrets:    - name: SCANNER_TOKEN      source: kubernetes      scope: [scanner]  mcpServers:    - name: scanner      transport: streamable-http      url: https://mcp.example.com/scanner      auth:        secretRef: SCANNER_TOKEN  agents:    - id: reviewer      model:        provider: example-provider        name: example-model      tools:        - type: mcp          server: scanner          tools: [scan]  workflow:    - id: scan      agent: reviewer      task: Scan the repository.
AEP-0023 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: code-scanspec:  version: 0.1.0  owner:    team: appsec  classification: internal  mcpServers:    - name: scanner             # resolved by the runtime;      transport: streamable-http  # no auth.secretRef needed      url: https://mcp.example.com/scanner  agents:    - id: reviewer      model:        provider: example-provider        name: example-model      tools:        - type: mcp          server: scanner          tools: [scan]  workflow:    - id: scan      agent: reviewer      task: Scan the repository.# Under security: the step reaches "scanner" through a# component outside the step that adds the credential,# authenticates the step with a ticket for this attempt# and enforces the tool permissions.

What changes

The same rule as for model credentials: under the security profile a tool server credential MUST NOT be visible to the step. auth may be satisfied by the runtime, and the component that holds the credential also enforces which tools are listed and called.

Why

When the MCP client is a coding agent inside the step, auth.secretRef hands the token to the agent and every command it runs (G69). The proof of concept routes MCP through a gateway with a session or step ticket; shown with a static analysis server.

32

Who may approve: outside the execution environment

Spec 7.6 (v1alpha3 draft)
Approvals gate actions or steps; approversare people matched by role or user. (Nothing says where the component runs thatasks for and records an approval.)
AEP-0023 proposal (PR #23)not checked
AEP-0023 section 7.6.1 (proposed): - Under security, the component that decides  and records an approval or confirmation runs  OUTSIDE the execution environment.- It accepts decisions only from an  authenticated identity, over a channel the  environment cannot reach.- Nothing that carries a decision (passwords of  an approval endpoint, signing keys, pending  requests) is readable or writable inside.- A permission system inside the step (an  engine's own) MAY add checks, never be the  only enforcement.

What changes

Applies to approvals, to confirmations of single actions in interactive sessions (AEP-0026) and to answers a runtime treats as a decision. Separation of duties is checked against the authenticated identity, never one the step asserts.

Why

Shown in the proof of concept: the coding agent and its commands ran under one user ID; a command read the agent's local server password from /proc, sent a prompt in autonomous mode and answered every permission request itself. It failed only after decisions moved to a separate container with signed grants; through the console the same command asked once and ran after "allow once" (G64).

33

Ceilings reject, budgets cap

AEP-0023 before PR #23
7.5.6: the effective network is theintersection of the manifest and the ceiling;reject if the ceiling is narrower. (Silent on ceilings for models, tool servers,autonomy, isolation and cost.)
AEP-0023 proposal (PR #23)not checked
AEP-0023 section 7.5.7 (proposed): Platform ceiling (tenant)    Manifest asks     Resultmodels: [small, large]       model: huge       rejectedmcpServers: [scanner]        server: tickets   rejectedmaxAutonomy: ask             auto              capped to ask*isolation minimum: sandbox   container         rejectedmaxCostUsd: 5                maxCostUsd: 20    effective 5maxCostUsd: 5                (none)            effective 5 * autonomy is a level the person picks  (AEP-0026); the agent's own maxAutonomy and the  ceiling cap it.

What changes

Permissions, models, tool servers and isolation intersect: if the manifest needs more than the ceiling allows, the runtime rejects before any step runs and says which rule. Budgets are capped instead: a manifest without a limit gets the ceiling, and a higher limit is lowered, never rejected.

Why

The proof of concept has tenant ceilings for models, hosts, MCP servers, modes and cost; it rejected the first and capped cost, and the spec said neither (G68). Rejecting a manifest only because its budget is higher would make one manifest unusable in a smaller tenant.

Proposal: PR #23AEP-0024 (PR #23)

Event triggers with CloudEvents (proposal)

Proposed in spec pull request #23: CloudEvents as the event model, equality filters, duplicates, concurrency, rate limits and the actor behind an event. Left is v1alpha3 today, right the proposal.

34

Filters match CloudEvents attributes

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-chatspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: event      source: chat.example.com      eventType: com.example.chat.message.posted      filter:        mentions: support-bot     # matched how?  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: Answer the support question.
AEP-0024 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-chatspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: event      source: chat.example.com    # CloudEvents source      eventType: com.example.chat.message.posted      filter:                     # equality, all match        subject: support          # an attribute        data.mentions: support-bot  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: Answer the support question.

What changes

An event is a CloudEvent 1.0. source is matched against the CloudEvents source (the producer, not an adapter), eventType against type. Filter keys are attribute names or data.<path>; values match by equality with the string form; all entries must match, and a missing attribute does not match.

Why

Today the filter is a map of strings with no rule which fields it matches or how (G42, G54). Richer conditions may live in runtime trigger objects, which may only narrow the manifest trigger.

35

Duplicates, concurrency and rate

v1alpha3 draft: rejected (concurrencyPolicy is schedule-only)rejected by checker
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-chatspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: event      source: chat.example.com      eventType: com.example.chat.message.posted      concurrencyPolicy: allow  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: Answer the support question.
AEP-0024 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-chatspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: event      source: chat.example.com      eventType: com.example.chat.message.posted      concurrencyPolicy: allow    # default for events      rateLimit:        maxExecutions: 20        period: 1h      # dedup by source and id: runtime duty, no field  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: Answer the support question.

What changes

The runtime never starts a second execution for the same source and id within a window of at least 24 hours (trigger.skipped, reason duplicate). Event triggers get concurrencyPolicy (default allow) and rateLimit with maxExecutions per period (reason rateLimited).

Why

Brokers and webhooks redeliver; the proof of concept saw a second run for the same event (G43). Today concurrencyPolicy exists only for schedules, so the schema rejects it on an event trigger.

36

The person behind an event

v1alpha3 draft
# workflow.started of an event-triggered runtype: workflow.startedexecutionId: awp-exec-01JD3Q7Y2M8K4N6P0R5S7T9V1Wactor:  type: system  id: chat-bridgedata:  trigger:    type: event    index: 0
AEP-0024 proposalnot checked
type: workflow.startedexecutionId: awp-exec-01JD3Q7Y2M8K4N6P0R5S7T9V1Wactor:  type: system  id: chat-bridge            # authenticated sourcedata:  trigger:    type: event    index: 0  attestedActor:             # only from a source    type: human              # trusted to attest people    id: kim@example.com

What changes

The actor stays system with the authenticated identity of the source. If a source the runtime trusts attests a person, it is recorded as attestedActor, and initiatorCannotApprove and actorCannotApproveOwnAction treat that person as the initiator. A policy can require an attested actor (trigger.attested).

Why

With system as the only actor, a person could start a run by message and approve its own request (G44, a must). Conversation context in event.data is untrusted input and personal data.

Proposal: PR #23AEP-0025 (PR #23)

State across executions (proposal)

Proposed in spec pull request #23: stores that survive executions, declared in the manifest with classification, retention and access mode. Left is v1alpha3 today, right the proposal.

37

State is declared in the manifest

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: daily-digestspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: schedule      cron: "0 6 * * *"  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: diff      type: command      image: registry.example.com/tools:1.0.0      command: python3 /opt/diff.py# remembers seen items in a runtime volume,# invisible in the manifest
AEP-0025 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: daily-digestspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: schedule      cron: "0 6 * * *"  state:    - name: seen-items      retention: 180d      maxSize: 64Mi    - name: preferences      access: read  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: diff      type: command      image: registry.example.com/tools:1.0.0      command: python3 /opt/diff.py "$AWP_STATE_DIR/seen-items"

What changes

spec.state lists stores with name, access (read or readWrite), classification, retention and maxSize. Command steps see them as $AWP_STATE_DIR/<name>, agent steps only through granted tools. Undeclared stores are never exposed; writes are atomic.

Why

Today state lives in a runtime volume that reviewers cannot see, without data class or retention (G03).

38

Two workflows of one owner share a store

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: chat-assistantspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: manual  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: Answer and remember preferences.# cannot see what daily-digest stored
AEP-0025 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: chat-assistantspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: manual  state:                    # same owner and namespace    - name: preferences     # as daily-digest: shared      access: readWrite    - name: seen-items      access: read  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: Answer and remember preferences.

What changes

Workflows with the same spec.owner in the same namespace that declare a store of the same name share it; the strictest classification applies to every reader; a store of another owner can never be reached. Content read from state is untrusted input (spec 12).

Why

A daily run writes what it found and a chat run reads it and writes preferences (G53); a message stored by one run must not become an instruction for the next (G58).

Proposal: PR #23AEP-0026 (PR #23)

Interactive execution (proposal)

New in PR #23, number to be confirmed: people use agents interactively for hours, confirm single tool calls and switch between read-only and autonomous work. AEP-0026 adds the kind AgentSession, an opt-in on Agent, autonomy levels with a ceiling set by the author, and confirm per action. Left is v1alpha3 today, right the proposal.

39

An agent opts in to interactive use

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: security-reviewerspec:  version: 0.3.0  owner:    team: appsec  classification: internal  model:    provider: example-provider    name: example-model  permissions:    default: deny    tools:      shell.execute:        allow: true# Spec 6: "Runtimes MAY offer a way to run a single# agent; they MUST then treat it as a workflow with# one agent step." No way to say whether the agent# may be used interactively, or how autonomously.
AEP-0026 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: security-reviewerspec:  version: 0.3.0  owner:    team: appsec  classification: internal  model:    provider: example-provider    name: example-model  sessions:                  # absent: no AgentSession    maxAutonomy: ask         # readOnly | ask | auto    models:                  # alternatives a session may pick      - provider: example-provider        name: example-model-large    idleTimeout: 30m  permissions:    default: deny    tools:      shell.execute:        allow: true

What changes

Interactive use needs the author's opt-in. maxAutonomy caps the level a person can select; models lists the only alternatives to model; after idleTimeout the runtime pauses the session.

Why

In the proof of concept the binding, not the manifest, decided whether autonomous mode existed for an agent, so a platform could grant autonomy the author never intended (G62, G63, G82).

40

AgentSession next to WorkflowRun

Workaround today: a one-step workflow
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  generateName: security-review-  namespace: team-aspec:  workflowRef:    name: security-reviewer-as-workflow  inputs:    prompt: Review the repository for injection flaws.# A run has one task and ends. No further prompts,# no pause, no confirmation of single calls, no# autonomy level, no choice of model or tool sources.
AEP-0026 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: AgentSessionmetadata:  generateName: security-review-  namespace: team-aspec:  agentRef:    name: security-reviewer    version: 0.3.0  autonomy: ask                # capped by maxAutonomy and ceiling  model:                       # model or one of sessions.models    provider: example-provider    name: example-model-large  toolSources: [code-scanner]  # narrow, never widen  initialPrompt: Review the repository for injection flaws.status:  phase: waiting               # a confirmation is pending  executionId: awp-exec-01JD8Z...  autonomy: ask  pendingConfirmations: 1  usage: {costUsd: "0.54", modelCalls: 9}

What changes

One interactive execution of an Agent with one execution id for its whole life. The creator controls it (prompts, confirmations, level, model, pause, stop); others only if the runtime documents it. Budgets are summed across pauses. Status never contains prompts, answers or tool arguments.

Why

A session has no task and no outputs, runs for hours, pauses when idle and resumes. The proof of concept built its own session object; another runtime would build a different one (G62). Spec fields under other names ran on the test installation with real models.

41

Confirmation per action: confirm always or never

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: security-reviewerspec:  version: 0.3.0  owner:    team: appsec  classification: internal  model:    provider: example-provider    name: example-model  permissions:    default: deny    tools:      shell.execute:        allow: true        resources: ["git *", "ls *"]      git.push:        allow: true
AEP-0026 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: security-reviewerspec:  version: 0.3.0  owner:    team: appsec  classification: internal  model:    provider: example-provider    name: example-model  sessions:    maxAutonomy: auto  permissions:    default: deny    tools:      shell.execute:        allow: true        resources: ["git *", "ls *"]      code-scanner.scan:        allow: true        confirm: never        # no question at ask or auto      git.push:        allow: true        confirm: always       # asks even at auto;                              # denied in workflow runs

What changes

Levels: readOnly denies changing actions and asks for the rest, ask asks for every allowed action except confirm: never, auto asks only for confirm: always. Permissions decide first; no level allows a denied action. The strictest confirm wins across permission objects.

Why

Permissions are allow or deny; a person in a session confirms single calls, and an author could not say "never push without asking" (G63). Confirmations are decided outside the sandbox (AEP-0023 7.6.1) and are no approvals: requireApproval still applies.

Proposal: PR #23AEP-0027 (PR #23)

Agent engine (proposal)

New in PR #23, number to be confirmed: an agent step run by an existing coding agent with its own tool loop. AEP-0027 adds agents[].engine, keeps AWP permissions, budgets and audit in force, and keeps repository configuration off by default. Left is v1alpha3 today, right the proposal.

42

A coding agent as the engine of an agent step

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: security-scanspec:  version: 0.1.0  owner:    team: appsec  classification: internal  agents:    - id: scanner      model:        provider: example-provider        name: example-model      extensions:        x-example-engine:          type: opencode          repositories:            - url: https://git.example.com/app.git  workflow:    - id: scan      agent: scanner      task: Scan the repository and report the findings.# A runtime that ignores the extension runs its own# loop with other tools and still reports success.
AEP-0027 proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: security-scanspec:  version: 0.1.0  owner:    team: appsec  classification: internal  agents:    - id: scanner      isolation: sandbox      engine:        type: opencode            # unknown type: reject        workspace:          repositories:            - url: https://git.example.com/app.git              ref: main              path: app          trustRepositoryConfig: []   # default: no AGENTS.md,                                      # skills, commands, toolchain env      model:        provider: example-provider        name: example-model  workflow:    - id: scan      agent: scanner      task: Scan the repository and report the findings.

What changes

The runtime maps AWP permissions to the engine: allow or deny only when unattended, a refused call fails the step, subagents share budget and permissions, model calls are metered outside the engine. Clone and push credentials stay out of the engine. Workspace configuration (instruction files, skills, commands, tool manager environment) is not loaded unless listed.

Why

Coding agents bring their own tool loop, and the proof of concept used an extension field for it (G65). Repositories bring instructions and code that run at start, before any permission applies (G81). The engine ran a scan workflow on the test installation, started by hand and by a CloudEvent.

43

Engine steps stop being dead ends

Proof of concept today
workflow:  - id: scan    agent: scanner             # engine step    task: Scan and report.    outputs:      - name: summary          # only summary and diff      - name: critical         # rejected by validation:                               # the engine cannot fill it# repositories are fixed in the manifest, so a push# event cannot say which repository to scan.
AEP-0027 proposal (PR #23)not checked
triggers:  - type: event    eventType: com.example.security-scan.requestedagents:  - id: scanner    engine:      type: opencode      workspace:        repositories:          - url: ${{ event.data.repository }}   # AEP-0004            ref: ${{ event.data.ref }}workflow:  - id: scan    agent: scanner    task: Scan and report. Do not change files.    outputs:      - name: summary      - name: critical        type: integer          # AEP-0003, filled through      - name: high             # complete_step (AEP-0018)        type: integer  - id: escalate    if: ${{ steps.scan.outputs.critical > 0 }}   # AEP-0001    dependsOn: [scan]    agent: notifier    task: Open a ticket.

What changes

The engine fills declared outputs through the completion mechanism of AEP-0018 with the types of AEP-0003; summary and diff remain available. repositories is expression-enabled with inputs.* and event.*; a resolved URL is still subject to the effective network.

Why

In the proof of concept a step with critical and high was rejected and the repository was fixed, so the following step could not branch on findings (G66).

Proposal: PR #23Amendments (PR #23)

Amendments to existing AEPs (proposal)

PR #23 also amends AEPs that are already in Review or Draft, from what the proof of concept had to build itself: MCP prompts and resources (AEP-0007), shell resources (AEP-0002), prompts as session tasks (AEP-0005), the origin of audit events (AEP-0009), bindings for agents (AEP-0021). Left is the AEP or v1alpha3 before, right the amendment.

44

MCP prompts and resources: allow lists, default none

AEP-0007 before PR #23
catalog:  tools:    scan:      access: read      definitionDigest: sha256:3f1c...  resources:                 # only if listed: then    - uriTemplate: rules://{id}  # other URIs are denied;                             # without the list?# Open question 3: should a catalog list server# prompts? Sampling and roots requests of a server# are not covered.
Amendments proposal (PR #23)not checked
catalog:  tools:    scan:      access: read      definitionDigest: sha256:3f1c...  resources:                 # absent: no resource readable    - uriTemplate: rules://{id}      classification: public  prompts:                   # absent: no prompt offered    security-check:      definitionDigest: sha256:9a07...# rule 9: prompts/list filtered, prompts/get of#   anything else denied; prompt content is untrusted# rule 10: no sampling or roots relay unless allowed,#   elicitation declined without humanInput# rule 11: resolve declaration, binding, catalog

What changes

Prompts and resources are allow lists with default none; the runtime filters the list operations and refuses everything else. A server prompt is untrusted content of the server operator, not a Prompt manifest. Requests of the server are answered by the runtime, not passed to an engine.

Why

A coding agent shows every server prompt as a command, and a server can ask the client for model calls (sampling) or local paths (roots). The proof of concept filters all of this at its MCP gateway; shown with a server whose two extra tools are neither listed nor callable (G70 to G72).

45

What a resource of shell.execute is

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Agentmetadata:  name: repo-helperspec:  version: 0.1.0  owner:    team: appsec  model:    provider: example-provider    name: example-model  permissions:    default: deny    tools:      shell.execute:        allow: true        resources: ["git *", "ls *", "echo *"]# 7.5.2: "The runtime MUST document how it derives# the target resource of a call." For a shell line?
Amendments proposal (PR #23)not checked
AEP-0002 section 7.5.7 (proposed), same manifest: echo hello              allowed  (echo *)git --version           allowed  (git *)ls -la | wc -l          denied   (wc not listed)echo a; id              denied   (id not listed)echo $(id)              denied   (substitution:                                  cannot be split)FOO=1 git status        denied   (leading assignment)curl https://x.example  denied Each simple command must match; lines that cannotbe split are denied. An allow list does not limitwhat an allowed program runs (make, npm test).

What changes

The resources of a command line are its simple commands; every one must match a glob entry. Substitutions, subshells, compound commands and leading assignments are denied. resources on a group or wildcard key applies to every matched action.

Why

Shown in the proof of concept with exactly this list: echo and git --version ran, curl, echo a; id and echo $(id) were refused with a reason the model sees (G74).

46

A Prompt as a task of a session

AEP-0005 before PR #23
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Promptmetadata:  name: extraction-instructionsspec:  version: 1.0.0  role: system  template: Extract {{ fields }} from the document.# Only for promptRef of instructions; nothing for a# library of requests people start in a session.
Amendments proposal (PR #23)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Promptmetadata:  name: security-reviewspec:  version: 1.0.0  role: user  title: Security review  agents: [security-reviewer]  suggestedAutonomy: readOnly   # a suggestion, capped  variables:    - name: focus      type: string  template: Review the repository for {{ focus }}.    Report findings with severity and file.

What changes

A Prompt with role: user can be a reusable task of an interactive execution. It is plain user input: it runs with the permissions, budget and level of the session and grants nothing; a suggested level is capped like any level the person selects.

Why

People repeat the same requests (a security review, writing tests). The proof of concept offers a prompt library as commands of the coding agent, with tenant entries overriding platform entries (G75).

47

Where an audit event comes from

Event envelope (spec 10.3)
{  "type": "tool.called",  "executionId": "awp-exec-01JD8Z...",  "actor": {"type": "agent", "id": "reviewer"},  "data": {"tool": "scanner.scan"}}// Recorded by the engine inside the sandbox, the// UI, or a gateway outside? The event cannot say.
Amendments proposal (PR #23)not checked
{  "type": "tool.called",  "executionId": "awp-exec-01JD8Z...",  "actor": {"type": "agent", "id": "reviewer"},  "origin": "runtime",  "data": {    "tool": "scanner.scan",    "argumentsSize": 4211,    "argumentsDigest": "sha256:7c2e..."  }}// Under security, model calls, tool calls and// confirmations come from outside the execution// environment (origin runtime). Arguments sent to a// tool source are content with contentRetention.

What changes

Every event carries origin (runtime or executionEnvironment). Events from inside may be recorded too and joined by tool call id; disagreements should be flagged. Tool arguments and session history are content under the retention of AEP-0009; at metadata, size and digest keep it verifiable what was sent where.

Why

The agent can influence what an engine inside the sandbox records. The proof of concept audits at its model and MCP gateways, with a hash chain per conversation, and joins the engine's events by tool call id. A scan tool received the whole source file as argument (G76, G77).

48

Bindings for agents, and which objects stay with the runtime

AEP-0021 B6 before PR #23
apiVersion: runtime.example.com/v1kind: WorkflowBindingspec:  targetRefs:    - group: awp.agenticworkflowprotocol.org      kind: Workflow      name: invoice-processing  runnerImage: registry.example.com/runner@sha256:...# Only workflows; an agent used on its own (a# session) has nothing to bind to.
Amendments proposal (PR #23)not checked
apiVersion: runtime.example.com/v1kind: AgentBindingspec:  targetRefs:    - group: awp.agenticworkflowprotocol.org      kind: Agent      name: security-reviewer  sandboxProfile: gvisor-small   # maps isolation: sandbox  modelEndpoints: [eu-gateway]   # governance-relevant: operator                                 # constraints apply (B6)# Stays implementation-specific: bindings, tenants,# sandbox profiles, gateways.# Becomes or stays AWP: AgentSession (AEP-0026),# WorkflowRun, Prompt, McpCatalog, ModelCatalog.

What changes

A binding may target a Workflow or an Agent. For an agent inside a workflow, the workflow's binding applies. The rule for kinds from runtime feedback section 10: an object becomes an AWP kind if a reviewer governs it and it must mean the same on every runtime; it stays with the runtime if it says how a platform realises something.

Why

The proof of concept needed nine custom resources; three map to AWP kinds, two split between an AWP catalog and runtime configuration, and four stay its own (question 11 of the runtime feedback).

PlannedAEP-0004 (planned)

Event data in the run (planned)

Planned, no draft text yet: a pull request that applies AEP-0004 to v1alpha3 and amends open question 1 of AEP-0019 (G41, G48, G57). The right side is a sketch of the intended result.

49

Event data under its own root

v1alpha3 draft: rejected (no event root in 3.9)rejected by checker
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-chatspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: event      source: chat.example.com      eventType: com.example.chat.message.posted  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: "Answer: ${{ event.data.message }}"
Planned: AEP-0004 applied (sketch)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: support-chatspec:  version: 0.1.0  owner:    team: support  classification: internal  triggers:    - type: event      source: chat.example.com      eventType: com.example.chat.message.posted      classification: internal      dataSchema:        type: object        required: [message]        properties:          message: { type: string, maxLength: 4000 }  agents:    - id: triage      model:        provider: example-provider        name: example-model  workflow:    - id: answer      agent: triage      task: "Answer: ${{ event.data.message }}"# no mapping to inputs (D7)

What changes

${{ event.id }}, event.source, event.type, event.time and event.data.<path> become a reference root. dataSchema is validated before the run starts, and classification enters every operation that reads the data. A workflow without an event trigger may not use event.*.

Why

D7 decided an own root instead of mapping events to inputs, which hides that a value comes from an external sender (G41). AEP-0004 is in Review for v1alpha2 and not applied to v1alpha3 yet.

50

A run that carries its event

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  generateName: support-chat-spec:  workflowRef:    name: support-chat# A client-created run is always a manual start# (10.8): it cannot carry an event, so an# event-only workflow cannot be tested.
Planned: AEP-0019 amendment (sketch)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  generateName: support-chat-replay-spec:  workflowRef:    name: support-chat  event:                  # set by a trusted ingress,    origin: replay        # or supplied for a test    source: chat.example.com    type: com.example.chat.message.posted    id: msg-4711    data:      message: My order has not arrived.

What changes

The run object carries the event: origin: ingress when a trusted router creates it, origin: replay for a test or replay, where the actor is the creator and the data is validated against dataSchema. Field names are a sketch of the planned amendment.

Why

Event runs created by an external router fit neither role of spec 10.8 (G48), and event-only workflows cannot be tested conformingly (G57). This is open question 1 of AEP-0019.

ConceptAEP-0021

Extension model (concept)

A proposal, not applied to the schema: replace x- fields with the extension model of the Kubernetes Gateway API. Left is the draft (now v1alpha3), right the proposal.

51

A vendor-specific step

v1alpha3 draftvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: web-shop-releasespec:  version: 1.0.0  owner:    team: platform-team  workflow:    - id: deploy      agent: deployer      task: Deploy the canary.      extensions:        x-example-canary:          weight: 10  agents:    - id: deployer      model:        provider: ollama        name: qwen3
AEP-0021 proposal
workflow:  - id: deploy    type: extension    extensionRef:      group: runtime.example.com      kind: CanaryDeployment      name: web-shop-canary    dependsOn: [test]---apiVersion: runtime.example.com/v1kind: CanaryDeploymentmetadata:  name: web-shop-canaryspec:  weight: 10

What changes

Closed step types plus type: extension with an extensionRef to an object validated by its own CRD. A runtime that does not know the kind refuses the workflow (ResolvedRefs=False); an extension step is never skipped. It is an action under permissions, policies and approvals.

Why

A runtime that ignores an x- field runs the manifest with fewer restrictions. That is why AEP-0011 (requiredExtensions) was needed. A typed reference fails closed by construction. Same pattern as Gateway API ExtensionRef and Tekton CustomRun.

52

Policies attached by the platform team

v1alpha3 draft
# in the workflow, written by its authorspec:  policies:    include:      - name: no-production-autonomy        version: 1.0.0 # The platform team cannot enforce a policy# on a workflow whose author left it out.
AEP-0021 proposal
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Policymetadata:  name: no-production-autonomy  namespace: paymentsspec:  version: 1.0.0  owner:    team: platform-governance  targetRefs:    - group: awp.agenticworkflowprotocol.org      kind: Workflow      name: invoice-processing  rules:    - id: deploy-needs-release-manager      effect: requireApproval      when:        action:          equals: production.deploystatus:  ancestors:    - ancestorRef:        kind: Workflow        name: invoice-processing      conditions:        - type: Accepted          status: "True"

What changes

Policy gets targetRefs to workflows (or single steps via sectionName) in the same namespace. include stays for author-chosen policies.

Why

Policy attachment as in the Gateway API (GEP-713). AWP policies only restrict, so all attached policies simply apply together; no conflict rules are needed.

53

Runtime configuration stays out of the manifest

v1alpha3 draft
spec:  workflow:    - id: collect      type: command      command: ./collect.sh      extensions:        x-example-runnerImage: registry.example.com/runner:1.4        x-example-nodeSelector:          pool: agents  extensions:    x-example-modelBaseURL: https://llm.internal.example.com
AEP-0021 proposal
apiVersion: runtime.example.com/v1kind: WorkflowBindingmetadata:  name: venue-watch  namespace: agents  labels:    awp.agenticworkflowprotocol.org/binding: "true"spec:  targetRefs:    - group: awp.agenticworkflowprotocol.org      kind: Workflow      name: venue-watch  runnerImage: registry.example.com/runner@sha256:...  nodeSelector:    pool: agents  models:    baseURL: https://llm.internal.example.comstatus:  conditions:    - type: Accepted      status: "True"

What changes

Placement, images, model endpoints and secret mapping live in a runtime-specific binding object that attaches with targetRefs. One accepted binding per workflow and runtime; the oldest wins, others get Conflicted.

Why

The manifest stays portable and its digest unchanged. Fields that decide where credentials, data or network traffic go must be limited by the operator (an allow list), not by the binding author: the proof of concept found a provider key leak through baseURL.

54

Vendor values carry a domain

v1alpha3 draft
agents:  - id: assistant    model:      provider: gateway        # whose gateway?      name: qwen3 secrets:  - name: TOKEN    source: vault-ha           # collides with                               # another runtime's name
AEP-0021 proposal
agents:  - id: assistant    model:      provider: models.example.com/gateway      name: qwen3 secrets:  - name: TOKEN    source: secrets.example.com/vault-ha

What changes

Bare values belong to AWP; implementation values use a DNS prefix and are Implementation-specific. Applies to model providers, secret sources, event sources, audit event types and condition types.

Why

Domain names are unique without a registry, so the extension prefix list (D12) is no longer needed. Same rule as the Gateway API and Kubernetes condition types.

55

Typos are caught at apply time

v1alpha3 draft
# typo: "permisions" instead of "permissions"$ kubectl apply --validate=strict -f fixer.yamlworkflow.awp.agenticworkflowprotocol.org/fixer created $ kubectl get workflow fixerNAME    VERSION   OWNER           VALID   READYfixer   0.1.0     security-team   False   False (CRDs keep unknown fields so that the runtime can fail closed; the error shows up only in status, and Argo CD reports "Synced")
AEP-0021 proposal
$ kubectl apply --validate=strict -f fixer.yamlError from server (BadRequest): error when creating"fixer.yaml": Workflow in version "v1alpha3" cannot behandled as a Workflow: strict decoding error:unknown field "spec.permisions" (CRDs prune unknown fields and express the conditional rules as CEL; the runtime still validates every manifest fully)

What changes

The CRDs drop x-kubernetes-preserve-unknown-fields, prune unknown fields and get CEL rules (x-kubernetes-validations). No admission webhook is needed.

Why

Fixes G09. The Gateway API removed its webhook in favour of CEL. CRD validation is feedback, not a security boundary (GEP-922), so runtimes keep validating.

Examplecharts/concert-scout

Try it: a complete workflow as a Helm chart

A full workflow of the draft (written as v1alpha2, now v1alpha3) that checks venue programs for new concerts, rates them against a music taste (Metalcore, Metal, Hardcore and related genres by default) and sends a summary. The chart shows OCI registries as one way to transport AWP manifests and ships the CustomResourceDefinitions. It contains no runtime: without one, the objects are stored and nothing runs.

Install from the OCI registry
helm install scout oci://ghcr.io/agenticworkflowprotocol/charts/concert-scout \  --namespace music --create-namespace \  --set taste.region.home=Leipzig $ kubectl get workflows,policies,workflowruns -n musicNAME                                            VERSION   OWNER        VALID   READYworkflow.awp.agenticworkflowprotocol.org/scout  0.1.0     music-fans

What it shows

Command steps with outputs in $AWP_OUTPUTS, agent steps that end with complete_step, a schedule with concurrencyPolicy, an included Policy, budgets, and an optional WorkflowRun per release.

Why Helm

Helm labels and the release namespace are not covered by the AWP digest, so packaging does not change the identity of the workflow. The VALID and READY columns stay empty until a runtime reports status.