AWP v1alpha3 draft Spec v1alpha3 Review guide

AWP v1alpha3: how it fits together

The Agentic Workflow Protocol describes what an agentic workflow does, what it may do and how it is governed and audited. This page explains the current draft for readers who did not follow the discussion: which manifests you write, how they relate, what happens from applying a manifest to a finished run, what the open spec pull request #23 adds, and how to start as a workflow author or as a runtime implementer.

This site shows the open spec pull request #23, not merged text. Every spec and AEP link goes to the branch docs/v1alpha3-runtime-feedback at f0ec709: main of the specification repository with pull request #23 on top, as the spec will look once it is merged. #23 combines the former pull requests #20 (related work, D21) and #19 (runtime feedback G41 to G61, AEP-0023 to AEP-0025) and adds what a platform with interactive coding agent sessions found: G62 to G87, extensions of AEP-0023, two new AEPs (0026 interactive execution, 0027 agent engine) and amendments to existing AEPs. Status. v1alpha3 is the current draft on main of the specification repository (decision D20: pull request #16 was merged as v1alpha3; v1alpha2 is the step iteration draft of D19). Nothing in it is accepted except step iteration. Pull request #23 is an open draft, and its AEPs are Draft and not applied to the v1alpha3 text; a third pull request for event data (AEP-0004) is planned and has no text yet. Every piece below carries its status: in v1alpha3 PR #23 planned platform only. Manifests marked valid or rejected by checker were run through the reference checker at f0ec709 (the schema is the same as on main); proposals are marked not checked.

Author

Write a Workflow (and optionally Agent and Policy manifests), validate it with the reference checker, pick the profiles. Read the examples and the author checklist.

Runtime implementer

Read the lifecycle with its MUST rules, what a Kubernetes runtime can map it to and the implementer checklist.

Reviewer

Read what flowed in from pull request #23 and what is still open; details per gap are on the gaps page.

Resource map

Four kinds are manifests in v1alpha3: three that authors write and one execution object. Everything else is a field of a manifest, an external system or the runtime's own business.

AWP v1alpha3 resources and their referencesA WorkflowRun references a Workflow; proposed in pull request 23, an AgentSession runs an Agent interactively. A Workflow references Agent and Policy manifests, MCP servers and remote agents, secrets by name and, proposed in pull request 23, state stores. Bindings of a runtime target a Workflow. Triggers create runs; runs emit audit events.Trigger firesschedule tick, event,or a person (manual)Bindingruntime-specific kind:placement, imagesWorkflowRunone execution;status by the runtimeWorkflowtriggers, inputs,agents, steps, budget,permissions, secrets,approval, policiesAudit eventsworkflow.*, tool.*,approval.*, recordAgentvia agents[].ref(name, version, digest)Policyvia policies.includedeny, requireApprovalMCP servers, A2Avia mcpServers, toolsand protocol: a2aSecret storevia secrets[] by name;no values in manifestsState storevia spec.stateproposed: AEP-0025AgentSessioninteractive executionof an Agent; AEP-0026AWP v1alpha3 resources and their referencesA WorkflowRun references a Workflow; proposed in pull request 23, an AgentSession runs an Agent interactively. A Workflow references Agent and Policy manifests, MCP servers and remote agents, secrets by name and, proposed in pull request 23, state stores. Bindings of a runtime target a Workflow. Triggers create runs; runs emit audit events.Trigger firesschedule tick, event,or a person (manual)Bindingruntime-specific kind:placement, imagesWorkflowRunone execution;status by the runtimeWorkflowtriggers, inputs,agents, steps, budget,permissions, secrets,approval, policiesAudit eventsworkflow.*, tool.*,approval.*, recordAgentvia agents[].ref(name, version, digest)Policyvia policies.includedeny, requireApprovalMCP servers, A2Avia mcpServers, toolsand protocol: a2aSecret storevia secrets[] by name;no values in manifestsState storevia spec.stateproposed: AEP-0025AgentSessioninteractive executionof an Agent; AEP-0026
  • AWP kind in v1alpha3
  • proposed (PR #23)
  • platform or runtime, not AWP
  • external system, other protocol
  • what an execution leaves behind
KindWho writes itWhat it referencesWho reads itStatus
WorkflowThe workflow author; the team in spec.owner is accountable.Agent (agents[].ref with exact version, optional digest), Policy (policies.include), secrets by name, MCP servers, remote agents, container images.The runtime: validates, pins and executes it. Reviewers: the manifest is the reviewed unit (digest, signature).in v1alpha3
AgentAn agent author or a platform team, published separately.Model, tools, MCP servers, secrets (which the workflow must also declare), promptRef.The runtime, when a workflow references it. Never executed on its own.in v1alpha3
PolicyA governance or platform team.Nothing; rules on actions, data class, destination, model, actor. Only deny and requireApproval: policies restrict, permissions grant.The runtime decision algorithm (spec 8.4), under the governance profile.in v1alpha3
WorkflowRunA client for a manual start, or the runtime itself for schedule and event triggers.One Workflow by name in the same namespace; version and digest are assertions, not selectors.The runtime starts at most one execution from it and writes status; people and tools read the status.in v1alpha3
spec.state (a field)The workflow author.Named stores, shared by workflows of the same owner in the same namespace.The runtime, which exposes only declared stores. AEP-0025 proposes spec.state; its own kind is the alternative under review.PR #23
AgentSessionA person, through a console or kubectl create, for interactive use of an agent.One Agent by name (only if the agent opts in with sessions); a model and tool sources selected from what the agent allows.The runtime: one execution with pause and resume; autonomy capped by the agent's maxAutonomy and the platform ceiling. AEP-0026.PR #23
Conformance statementThe runtime implementer (not a manifest).Profiles, limitations, limits, executionObjects.Operators and authors who choose a runtime.in v1alpha3
Binding, trigger object, tenant, sandbox profileThe operator, in a kind of the runtime.A Workflow or an Agent (targetRefs in the AEP-0021 concept); a sandbox profile is what agents[].isolation (AEP-0023) maps to.The runtime only. Placement, images, volumes, model endpoints, secret mapping.platform only

Not kinds: triggers, permissions and secrets are fields of a Workflow (secret values live in a store the runtime resolves); profiles are what a runtime claims in its conformance statement. Prompt, Playbook and ModelCatalog are proposed kinds (AEP-0005, AEP-0006, AEP-0008), not in v1alpha3.

Lifecycle: from a manifest to a finished run

What happens when, and who decides. Each line says whether it is in v1alpha3, proposed in PR #23, planned with the AEP-0004 pull request, or left to the platform.

  1. 1Write the manifests

    • in v1alpha3

      A manifest has apiVersion, kind, metadata (name, labels) and spec; governance fields (version, owner, classification, risk) live in spec. Extension fields go into extensions objects with x- keys. status is reserved for the runtime.

  2. 2Validate before you apply

    • in v1alpha3

      The reference checker validates YAML restrictions, the JSON Schema and the semantic rules for the profiles you name. Unknown fields and fields of a profile the runtime does not support are errors, not warnings (fail closed).

  3. 3Apply and admit

    • in v1alpha3

      The manifest goes into any object store: files, Git, a database, or a Kubernetes API server (one CRD per kind, kubectl apply --validate=strict). A runtime MUST validate every manifest it reads before acting on it and never changes spec. It reports the condition Valid and, once references are resolved, policies loaded and triggers registered, Ready.

    • platform only

      Validation on write (an admission webhook), the binding that places the workflow, and how triggers are registered.

  4. 4A trigger fires

    • in v1alpha3

      manual: a client creates a WorkflowRun; the actor is the authenticated creator, never a field. schedule: each tick starts at most one execution; concurrencyPolicy (default forbid) and startingDeadline decide about overlaps and missed ticks, and every tick that starts nothing emits trigger.skipped. event: source, eventType and a filter map; the runtime MUST verify the event source. The event data itself cannot reach the steps.

    • PR #23

      AEP-0024: events are CloudEvents 1.0; filter keys are attribute names or data.<path>, matched by equality, all must match; no second execution for the same source and id within at least 24 hours; concurrencyPolicy (default allow) and rateLimit on event triggers; the authenticated source is the actor, and a person attested by a trusted source becomes attestedActor.

    • planned

      AEP-0004: event data under its own root ${{ event.* }} with dataSchema and classification, never mapped to inputs (D7). Amendment of AEP-0019 open question 1: the run object carries the event, set by a trusted ingress or supplied for a test or replay (G48, G57).

  5. 5Admit the execution

    • in v1alpha3

      Before anything runs: inputs are validated (a schedule uses defaults), every model is checked against modelPolicy, the environment must be allowed, and a critical risk level needs an approval of the execution itself. A run that cannot start gets phase: rejected and emits no workflow.started.

    • PR #23

      AEP-0023: if the platform ceiling does not allow a destination the manifest needs, or the runtime cannot enforce a network rule for a step type, the runtime rejects before any step runs.

  6. 6Pin what runs

    • in v1alpha3

      At start the runtime resolves the workflow, every referenced Agent and every applicable Policy, computes the digest and keeps exactly these versions until the end, also across retries and waits. Image tags are resolved to the digest of the image index; an image that cannot be resolved fails the execution before any step. workflow.started carries the digest. A GitOps sync during the run changes nothing.

  7. 7Run the steps, isolated

    • in v1alpha3

      Steps form a graph through dependsOn; ready steps run up to maxConcurrency (default 1), forEach fans out over a bounded list. Command steps run in an isolated environment with permissions.network and permissions.filesystem applied; command is never expression-enabled, values come through env. Every action goes through the decision: permissions, then deny rules, then approval. Budgets are checked before every model call and action.

    • PR #23

      AEP-0023: one host syntax for allowHosts (name, *.domain, address, CIDR, optional port); effective network = manifest intersected with the platform ceiling; enforce or reject; under security egress defaults to deny and internal addresses are denied after resolution unless manifest and ceiling both allow them; model credentials are never visible to steps.

    • PR #23

      AEP-0023: tool server credentials stay outside the step like model keys; an agent can require a minimum isolation (container, sandbox, vm), met or rejected. AEP-0027: an agent step can run with a coding agent as engine; refused calls fail the step, subagents share budget and permissions, workspace configuration is off by default.

    • platform only

      The mechanism: an egress proxy, network policies, a sandbox, a model proxy, an MCP gateway.

  8. 8Produce outputs

    • in v1alpha3

      A command step writes one file per declared output into $AWP_OUTPUTS; an agent step ends with complete_step. Every runtime accepts at least 256 KiB per output and 1 MiB per step and never truncates. Outputs of failed attempts are discarded. Each output is recorded as artifact.created with its digest.

  9. 9Ask people: input and approval

    • in v1alpha3

      Input steps and agents with humanInput ask named people and wait (waitingForInput, profile interaction). Approvals gate actions or steps (waitingForApproval, profile governance); only an authenticated human can approve, an answer is never an approval, and separationOfDuties keeps the initiator from approving.

    • PR #23

      AEP-0024: in a run started by an event, the attested person counts as the initiator, so the rule binds the person who wrote the message, not only the bridge.

    • PR #23

      AEP-0023 7.6.1: approvals and confirmations are decided outside the execution environment, from an authenticated person; nothing that carries a decision is readable inside. AEP-0026: in an interactive session the person confirms single actions (allowOnce, allowForSession, refuse); a confirmation is not an approval.

  10. 10Keep state for the next run

    • PR #23

      AEP-0025: declared stores with classification, retention and access mode, shared only within one owner; atomic writes; command steps see $AWP_STATE_DIR/<name>. Spec 12: content kept between executions is untrusted input. Today state exists only invisibly in the runtime.

  11. 11Finish, report, audit

    • in v1alpha3

      The run ends succeeded, failed or cancelled; WorkflowRun.status shows phase, steps, usage and the conditions Accepted and Succeeded, never output values or secrets. Audit events (workflow.*, tool.*, policy.*, approval.*, input.*, artifact.*) are the record; under the audit profile they form a hash chain, and a reproducibility record lists everything the run depended on.

Worked examples

Five small manifests in one neutral domain (a concert scout), each building on the one before. Left panes are v1alpha3 and were run through the reference checker at f0ec709; right panes mark what a proposal adds and are not checked.

1

A scheduled agent workflow with outputs

in v1alpha3

Every morning a command step fetches venue programs, an agent keeps the concerts that match a taste, and a second command step sends the digest. This is plain v1alpha3 under the core profile.

v1alpha3: Workflowvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-scoutspec:  version: 0.1.0  description: Checks venue programs every morning and reports new concerts.  owner:    team: music-fans  classification: internal  triggers:    - type: manual    - type: schedule      cron: "0 7 * * *"      timezone: Europe/Berlin      concurrencyPolicy: forbid      startingDeadline: 30m  inputs:    - name: venues      type: array      default:        - https://venue.example.org/program  budget:    maxCostUsd: 0.5    maxDuration: 30m  agents:    - id: curator      model:        provider: example-provider        name: example-model      instructions: Rate concerts against the taste in the task. End with complete_step.  secrets:    - name: WEBHOOK_URL      source: secret-manager      scope:        - command  permissions:    default: deny    tools:      shell.execute:        allow: true  workflow:    - id: fetch      type: command      image: registry.example.com/concert-scout/tools:1.4      command: fetch-programs > "$AWP_OUTPUTS/events"      env:        VENUES: "${{ inputs.venues }}"      timeout: 5m      retries: 1      outputs:        - name: events          description: JSON array of concerts with artist, date and venue.    - id: rate      agent: curator      task: "Keep the Metalcore and Hardcore concerts: ${{ steps.fetch.outputs.events }}"      dependsOn:        - fetch      outputs:        - name: digest          description: Plain-text summary, one concert per line.    - id: notify      type: command      image: registry.example.com/concert-scout/tools:1.4      command: send-digest      env:        DIGEST: "${{ steps.rate.outputs.digest }}"      dependsOn:        - rate
v1alpha3: a manual start as WorkflowRunvalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  generateName: concert-scout-spec:  workflowRef:    name: concert-scout    version: 0.1.0  inputs:    venues:      - https://club.example.org/events

What it shows

The schedule uses the input default (a schedule supplies no inputs); forbid skips a tick while the previous run still runs. The command writes its output as a file into $AWP_OUTPUTS, the agent ends with complete_step, and values reach the second command through env, never through the command text. The WorkflowRun on the right is a manual start: its creator is the actor, and version is an assertion that fails the request if the workflow has moved on.

Why

Each line maps to one rule a runtime MUST enforce: tick handling (5.2), outputs (5.6.4), no expressions in command (5.6.2), default: deny with one explicit allow (7.5), budget checked before every model call (5.7), image tags resolved and pinned at start (10.1).

2

The same workflow under the security profile

in v1alpha3PR #23

The same workflow, reviewed for the security profile: images pinned by digest and outbound network limited to the venue site and the webhook. The right side shows what AEP-0023 adds.

v1alpha3 (core, security)valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-scoutspec:  version: 0.1.0  description: Checks venue programs every morning and reports new concerts.  owner:    team: music-fans  classification: internal  triggers:    - type: manual    - type: schedule      cron: "0 7 * * *"      timezone: Europe/Berlin      concurrencyPolicy: forbid      startingDeadline: 30m  inputs:    - name: venues      type: array      default:        - https://venue.example.org/program  budget:    maxCostUsd: 0.5    maxDuration: 30m  agents:    - id: curator      model:        provider: example-provider        name: example-model      instructions: Rate concerts against the taste in the task. End with complete_step.  secrets:    - name: WEBHOOK_URL      source: secret-manager      scope:        - command  permissions:    default: deny    tools:      shell.execute:        allow: true    network:      egress: deny      allowHosts:        - venue.example.org        - hooks.example.net  workflow:    - id: fetch      type: command      image: registry.example.com/concert-scout/tools:1.4@sha256:162c964d9ab8c11b0b2014a92860d99384acfa28652e515cafa7d554e1c2e497      command: fetch-programs > "$AWP_OUTPUTS/events"      env:        VENUES: "${{ inputs.venues }}"      timeout: 5m      retries: 1      outputs:        - name: events          description: JSON array of concerts with artist, date and venue.    - id: rate      agent: curator      task: "Keep the Metalcore and Hardcore concerts: ${{ steps.fetch.outputs.events }}"      dependsOn:        - fetch      outputs:        - name: digest          description: Plain-text summary, one concert per line.    - id: notify      type: command      image: registry.example.com/concert-scout/tools:1.4@sha256:162c964d9ab8c11b0b2014a92860d99384acfa28652e515cafa7d554e1c2e497      command: send-digest      env:        DIGEST: "${{ steps.rate.outputs.digest }}"      dependsOn:        - rate
PR #23: AEP-0023 host syntax and internal destinationsnot checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-scoutspec:  version: 0.1.0  description: Checks venue programs every morning and reports new concerts.  owner:    team: music-fans  classification: internal  triggers:    - type: manual    - type: schedule      cron: "0 7 * * *"      timezone: Europe/Berlin      concurrencyPolicy: forbid      startingDeadline: 30m  inputs:    - name: venues      type: array      default:        - https://venue.example.org/program  budget:    maxCostUsd: 0.5    maxDuration: 30m  agents:    - id: curator      model:        provider: example-provider        name: example-model      instructions: Rate concerts against the taste in the task. End with complete_step.  secrets:    - name: WEBHOOK_URL      source: secret-manager      scope:        - command  permissions:    default: deny    tools:      shell.execute:        allow: true    network:      egress: deny      allowHosts:                 # syntax of AEP-0023 7.5.5        - venue.example.org        - "*.cdn.example.org:443"   # subdomain wildcard with port        - hooks.example.net        - 10.20.0.15              # internal ticket API: allowed only if                                  # the platform ceiling allows it too  workflow:    - id: fetch      type: command      image: registry.example.com/concert-scout/tools:1.4@sha256:162c964d9ab8c11b0b2014a92860d99384acfa28652e515cafa7d554e1c2e497      command: fetch-programs > "$AWP_OUTPUTS/events"      env:        VENUES: "${{ inputs.venues }}"      timeout: 5m      retries: 1      outputs:        - name: events          description: JSON array of concerts with artist, date and venue.    - id: rate      agent: curator      task: "Keep the Metalcore and Hardcore concerts: ${{ steps.fetch.outputs.events }}"      dependsOn:        - fetch      outputs:        - name: digest          description: Plain-text summary, one concert per line.    - id: notify      type: command      image: registry.example.com/concert-scout/tools:1.4@sha256:162c964d9ab8c11b0b2014a92860d99384acfa28652e515cafa7d554e1c2e497      command: send-digest      env:        DIGEST: "${{ steps.rate.outputs.digest }}"      dependsOn:        - rate
Example 1 under security: rejectedrejected by checker
$ node conformance/awp-check.mjs check --profiles core,security concert-scout.yamlconcert-scout.yaml:45:14 error security.image-not-pinned /spec/workflow/0/imageconcert-scout.yaml:64:14 error security.image-not-pinned /spec/workflow/2/imageinvalid

What it shows

v1alpha3 already has egress: deny with allowHosts and requires digests under security; a tag is rejected (bottom). AEP-0023 defines the entry forms, makes the effective network the intersection of the manifest and a platform ceiling, requires the runtime to enforce it or reject the run before any step, denies loopback, private, link-local and CGNAT addresses after resolution unless both manifest and ceiling allow them, and keeps model credentials out of every step.

Why

Without a syntax the same list means different things on different runtimes; without enforce-or-reject a runtime may silently ignore allowHosts for command steps (G10, G51); an allowed host that resolves to a metadata address is an SSRF hole (G50). Under security, AEP-0023 also changes the default of egress to deny.

3

An event-triggered workflow

in v1alpha3PR #23planned

A chat message in the concerts channel starts a run that answers it. v1alpha3 can start the run but not pass the message; PR #23 defines the event model, the planned AEP-0004 pull request makes the data reachable.

v1alpha3: event triggervalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-chatspec:  version: 0.1.0  owner:    team: music-fans  classification: internal  triggers:    - type: event      source: chat.example.com      eventType: com.example.chat.message.posted      filter:        channel: concerts  agents:    - id: helper      model:        provider: example-provider        name: example-model      instructions: Answer questions about upcoming concerts in one short message.  workflow:    - id: answer      agent: helper      task: Answer the latest question in the concerts channel.      outputs:        - name: reply
PR #23 (AEP-0024) and planned (AEP-0004)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-chatspec:  version: 0.2.0  owner:    team: music-fans  classification: internal  triggers:    - type: event      source: chat.example.com      # CloudEvents source: the producer      eventType: com.example.chat.message.posted      filter:                       # equality, all entries must match        data.channel: concerts        data.mentions: concert-scout      concurrencyPolicy: allow      # PR #23: default for events      rateLimit:                    # PR #23        maxExecutions: 20        period: 1h      classification: internal     # planned: AEP-0004      dataSchema:                   # planned: AEP-0004        type: object        required: [message, thread]        properties:          message: { type: string, maxLength: 4000 }          thread: { type: string, maxLength: 64 }  agents:    - id: helper      model:        provider: example-provider        name: example-model      instructions: Answer questions about upcoming concerts in one short message.  workflow:    - id: answer      agent: helper      task: "Answer this message: ${{ event.data.message }}"  # planned      outputs:        - name: reply
Planned: a replay run that carries its event (field names are a sketch)not checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: WorkflowRunmetadata:  generateName: concert-chat-replay-spec:  workflowRef:    name: concert-chat  event:                    # planned: AEP-0019 amendment (G48, G57)    origin: replay          # ingress: set by a trusted router    source: chat.example.com    type: com.example.chat.message.posted    id: msg-4711    data:      channel: concerts      mentions: concert-scout      message: Any metalcore shows near Leipzig this month?      thread: t-1234

What it shows

AEP-0024: the event is a CloudEvent, source names its producer, filter matches attributes or data.<path> by equality, a second event with the same source and id within at least 24 hours starts nothing (trigger.skipped, reason duplicate, no manifest field), and rateLimit and concurrencyPolicy bound the load. The planned pull request adds ${{ event.data.* }}, dataSchema and classification (AEP-0004) and lets the run object carry the event, from a trusted ingress or as a test or replay (bottom).

Why

Without event data, runtimes map payloads to inputs, which hides that a value comes from an external sender (D7 rejects that). Brokers and webhooks redeliver, so duplicates are real; the reviewed filter stays the upper bound, and runtime filters may only narrow it. Conversation context is untrusted input.

4

State between runs

in v1alpha3PR #23

The scout should report each concert once. Today that memory is a file on a volume the runtime provides, invisible in the manifest. AEP-0025 declares it.

v1alpha3: state is not visiblevalid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-scoutspec:  version: 0.2.0  owner:    team: music-fans  classification: internal  triggers:    - type: schedule      cron: "0 7 * * *"      timezone: Europe/Berlin  agents:    - id: curator      model:        provider: example-provider        name: example-model  workflow:    - id: fetch      type: command      image: registry.example.com/concert-scout/tools:1.4      command: fetch-programs > "$AWP_OUTPUTS/events"      outputs:        - name: events    - id: diff      type: command      image: registry.example.com/concert-scout/tools:1.4      command: only-new > "$AWP_OUTPUTS/new"      env:        EVENTS: "${{ steps.fetch.outputs.events }}"      dependsOn:        - fetch      outputs:        - name: new    - id: rate      agent: curator      task: "Rate these new concerts: ${{ steps.diff.outputs.new }}"      dependsOn:        - diff
PR #23: AEP-0025 declared storesnot checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-scoutspec:  version: 0.3.0  owner:    team: music-fans  classification: internal  triggers:    - type: schedule      cron: "0 7 * * *"      timezone: Europe/Berlin  state:                          # PR #23: AEP-0025    - name: seen-concerts      retention: 180d      maxSize: 64Mi    - name: preferences      access: read  agents:    - id: curator      model:        provider: example-provider        name: example-model  workflow:    - id: fetch      type: command      image: registry.example.com/concert-scout/tools:1.4      command: fetch-programs > "$AWP_OUTPUTS/events"      outputs:        - name: events    - id: diff      type: command      image: registry.example.com/concert-scout/tools:1.4      command: only-new --seen "$AWP_STATE_DIR/seen-concerts" > "$AWP_OUTPUTS/new"      env:        EVENTS: "${{ steps.fetch.outputs.events }}"      dependsOn:        - fetch      outputs:        - name: new    - id: rate      agent: curator      task: "Rate these new concerts: ${{ steps.diff.outputs.new }}"      dependsOn:        - diff
PR #23: a second workflow of the same owner shares the storesnot checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-chatspec:  version: 0.3.0  owner:    team: music-fans                # same owner and namespace: shared  classification: internal  state:                            # PR #23: AEP-0025    - name: preferences             # "no more jazz, please"      access: readWrite    - name: seen-concerts      access: read  # ... triggers, agents and steps as in example 3

What it shows

Each store has a name, an access mode, a classification (default: the workflow's) and a retention. Command steps find it at $AWP_STATE_DIR/<name>; agent steps only through granted tools. Workflows of the same owner in the same namespace share a store of the same name, the strictest classification applies to every reader, writes are atomic, and the runtime states whether concurrent writers are serialised.

Why

Reviewers cannot see that a workflow keeps data, which class it has or how long it is kept (G03, G53). Content written by one run is read by the next: PR #23 also changes spec 12, so state is untrusted input and a stored chat message cannot become a standing instruction (G58).

5

Human approval and the initiator rule

in v1alpha3PR #23

A newsletter is drafted by an agent and sent only after an editor approves it, and the person who started the run cannot approve it. Approval belongs to the governance profile.

v1alpha3 (core, governance)valid
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-newsletterspec:  version: 0.1.0  owner:    team: music-fans  classification: internal  triggers:    - type: manual  approval:    approvers:      - role: newsletter-editor    separationOfDuties:      enabled: true      rules:        - initiatorCannotApprove: true  agents:    - id: writer      model:        provider: example-provider        name: example-model  permissions:    default: deny    tools:      shell.execute:        allow: true  workflow:    - id: draft      agent: writer      task: Write this week's concert newsletter from the venue programs.      outputs:        - name: text    - id: review      type: approval      dependsOn:        - draft      approval:        approvers:          - role: newsletter-editor        timeout: 24h        message: "Send this newsletter? ${{ steps.draft.outputs.text }}"    - id: send      type: command      image: registry.example.com/newsletter/send:2.0      command: send-newsletter      env:        TEXT: "${{ steps.draft.outputs.text }}"      dependsOn:        - review
PR #23: started by a chat messagenot checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Workflowmetadata:  name: concert-newsletterspec:  version: 0.2.0  owner:    team: music-fans  classification: internal  triggers:    - type: event                   # "@newsletter send this week's issue"      source: chat.example.com      eventType: com.example.chat.message.posted      filter:        data.channel: newsletter  approval:    approvers:      - role: newsletter-editor    separationOfDuties:      enabled: true      rules:        - initiatorCannotApprove: true   # PR #23: binds the                                         # attested actor  agents:    - id: writer      model:        provider: example-provider        name: example-model  permissions:    default: deny    tools:      shell.execute:        allow: true  workflow:    - id: draft      agent: writer      task: Write this week's concert newsletter from the venue programs.      outputs:        - name: text    - id: review      type: approval      dependsOn:        - draft      approval:        approvers:          - role: newsletter-editor        timeout: 24h        message: "Send this newsletter? ${{ steps.draft.outputs.text }}"    - id: send      type: command      image: registry.example.com/newsletter/send:2.0      command: send-newsletter      env:        TEXT: "${{ steps.draft.outputs.text }}"      dependsOn:        - review
PR #23: a policy that requires an attested personnot checked
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3kind: Policymetadata:  name: chat-runs-need-a-personspec:  version: 0.1.0  owner:    team: music-fans  rules:    - id: require-attested-actor      when:        trigger.attested:           # PR #23: condition of AEP-0024,          equals: "false"           # the operator shape is a sketch      effect: deny
Left side on a core-only runtime: rejectedrejected by checker
$ node conformance/awp-check.mjs check --profiles core concert-newsletter.yamlconcert-newsletter.yaml:13:5 error profile.unsupported /spec/approvalconcert-newsletter.yaml:35:7 error profile.unsupported /spec/workflow/1invalid

What it shows

The approval step pauses the run in waitingForApproval until an authenticated editor approves; an agent can never approve, and an answer to an input request never counts as one. initiatorCannotApprove rejects an approval by whoever created the WorkflowRun. With PR #23, a run started by a chat message has the bridge as actor and the attested author as attestedActor, and the rule binds that author; a policy can refuse event runs without an attested person.

Why

In v1alpha3 every event start has the actor type system, so a person could start a run by message and approve its request (G44, raised to must). A runtime without the governance profile must reject the manifest instead of running it without approvals (bottom).

What flowed in from pull request #23

Pull request #23 is a draft and not merged; it supersedes #19 and #20. The AEP-0004 pull request is planned and has no text yet.

PRChangeFileGaps
#23Runtime feedback G41 to G61 (event triggers, the concept review, models) with target AEP and evidence; questions 8 and 9 recorded as decided on 2026-11-22. The file already exists on main with G01 to G40.runtime-feedback.md (PR #23)G41 to G61
#23AEP-0023 step isolation: allowHosts syntax, platform ceiling intersected with the manifest, enforce or reject, internal destinations after resolution, egress: deny default and model credentials outside steps under security.AEP-0023 (PR #23)G10, G47, G49, G50, G51, G61
#23AEP-0024 event triggers with CloudEvents: equality filters on attributes and data.<path>, dedup by source and id, concurrencyPolicy, rateLimit, attested actor bound by the approval rules, conversation context as untrusted data, delivery guarantee in the conformance statement.AEP-0024 (PR #23)G42 to G46, G54, G56
#23AEP-0025 state: declared stores with classification, retention and access mode, sharing within one owner, atomic writes, state as untrusted input.AEP-0025 (PR #23)G03, G53, G58
#23AEP-0021 B4: triggers[].source is no domain-prefixed value space but the CloudEvents source of the producer.AEP-0021 (PR #23)G52, G54
#23Spec 12: content kept between executions (state) is untrusted input. The only change to the v1alpha3 text in this pull request.Spec 12 (PR #23)G58
#23Prior art under D21: agent-sandbox in AEP-0023, the listen task of the Open Workflow Specification in AEP-0024. AEP index rows 0023 to 0025, changelog.spec/README.md (PR #23)-
#23Decision D21 (refines D17): open specifications and vendor-neutral foundation or SIG projects may be named as prior art, never as dependencies; runtimes, products and vendors stay unnamed outside the implementations list.decisions.md (PR #23)-
#23Spec 1.2 related work: the Open Workflow Specification describes control flow, AWP what an agent may do plus governance and audit; agent-sandbox is one platform-side isolation mechanism. Same paragraph in the README.Spec 1.2 (PR #23)-
#23AEP-0022 prior art: the for task of the Open Workflow Specification (in, each, at, while) as the closest counterpart of forEach.AEP-0022 (PR #23)-
#23Runtime feedback section 10: G62 to G87 from a platform with interactive coding agent sessions, a coding agent as engine of workflow steps, model and MCP gateways outside the sandbox, tenants and gateway audit. With a proposal which platform objects become AWP kinds (extends K).runtime-feedback.md (PR #23)G62 to G87
#23AEP-0023 extended by the cases that share its reason: tool server credentials outside steps, approval authority outside the execution environment (new 7.6.1), a minimum isolation class on agents, one rule for ceilings (permissions, models, tool servers, autonomy and isolation reject; budgets cap).AEP-0023 (PR #23)G64, G67, G68, G69
#23New AEP-0026 interactive execution: kind AgentSession, sessions opt-in on Agent with maxAutonomy, autonomy levels readOnly, ask, auto, confirm per permission entry, narrowing of tool sources and model, lifecycle, budget across pauses, session events. Number to be confirmed.AEP-0026 (PR #23)G62, G63, G73, G82, G85
#23New AEP-0027 agent engine: agents[].engine with workspace repositories from inputs or events, workspace configuration off by default, declared outputs filled by the engine, subagents share budget and permissions. Number to be confirmed.AEP-0027 (PR #23)G65, G66, G81, G83
#23Amendments: AEP-0007 server prompts and resources as allow lists with default none, server requests answered by the runtime, resolution order; AEP-0002 resource scope of shell.execute; AEP-0005 prompts as session tasks; AEP-0009 origin of events, tool arguments and session history as content; AEP-0013 budgets during streaming; AEP-0017 agent requests in sessions; AEP-0021 B6 bindings for Agent.CHANGELOG.md (PR #23)G70 to G78, G84
plannedApply AEP-0004 to v1alpha3: ${{ event.* }} as its own root with dataSchema and classification, no mapping to inputs (D7). Amend AEP-0019 open question 1: the run object carries the event (spec.event with origin: ingress or replay).AEP-0004G41, G48, G57

PR #23 supersedes #19 and #20: their commits are included unchanged, rebased on main, so D21 and the prior-art notes that cite it now land together. None of the AEPs (0023 to 0027, and the amendments) is applied to the v1alpha3 text yet: they are Draft AEPs next to it, and the schema and the checker do not know their fields. Details per change with examples: the side-by-side page.

Still open

What remains after pull request #23 and the planned AEP-0004 pull request. Each gap G41 to G87 with the draft text, a proposal sketch and the evidence is on the gaps page; G01 to G40 are in runtime-feedback.md.

Open maintainer decisions

  • Scope of the current draft for G44, for G47, G50 and G61, and for state (G03, G53).
  • Whether G55 waits until after the current draft.
  • The numbers AEP-0026 and AEP-0027, and whether G64, G67, G68 and G69 extend AEP-0023 (question 10 of the runtime feedback).
  • Which platform objects become AWP kinds: AgentSession new, Prompt and McpCatalog as proposed, tenants, sandbox profiles and bindings left to the runtime (question 11).

Decisions for the maintainer in PR #23

Confirm the numbers AEP-0026 and AEP-0027 (question 10 of the runtime feedback); approval authority, isolation class, ceilings and tool server credentials as part of AEP-0023 rather than an own AEP (question 10); which platform objects become AWP kinds: AgentSession new, Prompt and McpCatalog as proposed, tenants, sandbox profiles and bindings left to the runtime (question 11).

Drafted, but not applied or accepted

AEP-0023 to AEP-0027 are Draft. AEP-0026 open: confirm for workflow runs, a readOnly action group, retention of session history (G85), sessions started by events (G86). AEP-0027 open: a registry of engine names, whether tools must list everything an engine offers. AEP-0023 to AEP-0025 are Draft. They change nothing in v1alpha3 until they are applied to the text, the schema and the conformance suite, and none can become Accepted without an external reviewer (D16). Their open questions: whether authors can see the platform ceiling and whether MCP over streamable-http falls under the network rules (0023); the 24 hour dedup window, attestedActor for manual starts (0024); spec.state as proposed or its own kind as the alternative under review, the sharing boundary, a state tool for agent steps (0025).

Covered by an existing AEP that is not applied

G02 (typed outputs, AEP-0003 and AEP-0014), G04 (conditional steps, AEP-0001), G06 and G55 (tool steps and the identity a step acts as, AEP-0012), G22 (array item schemas, AEP-0014), G52 (runtime trigger objects, AEP-0021 B6), G59 and G60 (catalog limits and capabilities, AEP-0008, after the current draft).

Open, no AEP yet

G05 (secret scopes per step, a must), G09 (unknown fields pass strict apply), G11 (origin marking of untrusted outputs), G12 (where command code comes from), G13 (finally steps), G16 to G21, G24 to G39 (mostly clarifications: defaults, retries, budget units, model parameters, runtime neutrality) and K (a Kubernetes mapping, normative or informative). From section 10: G77 (data flow to tool sources), G79 and G80 (secrets supplied at start, secret scope of a standalone agent).

G23 (fan-out) is resolved: forEach, AEP-0022 (accepted, D19), spec v1alpha3 5.6.5.

Informative

How a Kubernetes runtime can map it

Informative, not specification: one possible implementation, from the experience of a proof-of-concept Kubernetes runtime. Another runtime may map the same rules differently; AWP only fixes the rules on the right.

One way a Kubernetes runtime maps AWPA chat bridge publishes CloudEvents to a broker; an event router creates a run object; the operator validates, pins and creates one Job per step; steps reach models through a model proxy with a per-attempt ticket, tools through a tool proxy with SSRF checks, and the internet through an egress proxy behind a default-deny network policy.Chat, webhookbridge publishesCloudEventsBroker (MQTT)topic access controlattests the senderEvent routerone filter per workflow,no model in routingRun objectWorkflowRun; only theruntime sets the triggerOperatorvalidates, pins, holdsmodel keys, dedupsJob per stepor a Sandbox; runnernot dumpableModel proxyticket, budget,provider profileTool proxyresolved addresschecked (SSRF)Egress proxyallowlist per agent,default-deny policyOne way a Kubernetes runtime maps AWPA chat bridge publishes CloudEvents to a broker; an event router creates a run object; the operator validates, pins and creates one Job per step; steps reach models through a model proxy with a per-attempt ticket, tools through a tool proxy with SSRF checks, and the internet through an egress proxy behind a default-deny network policy.Chat, webhookbridge publishesCloudEventsBroker (MQTT)topic access controlattests the senderEvent routerone filter per workflow,no model in routingRun objectWorkflowRun; only theruntime sets the triggerOperatorvalidates, pins, holdsmodel keys, dedupsJob per stepor a Sandbox; runnernot dumpableModel proxyticket, budget,provider profileTool proxyresolved addresschecked (SSRF)Egress proxyallowlist per agent,default-deny policy
PieceWhat a Kubernetes runtime doesAWP rule it enforcesRule status
Binding objectA kind of the runtime connects a Workflow to a namespace: placement, runner image, volumes, secret mapping. The manifest itself needs no runtime field.Placement is implementation-defined; bindings with targetRefs are the AEP-0021 B6 concept.platform only
Validation on readThe operator validates every object it reads and writes Valid and Ready; an admission check on write is optional.Spec 3.10 and 3.11: validate before acting, fail closed, never change spec.in v1alpha3
One run object per executionA WorkflowRun per execution, created by a client (manual) or by the runtime (schedule, event).Spec 10.8: at most one execution per run, actor from an authenticated source.in v1alpha3
Admission rule on runsOnly the runtime may set trigger type and filter on a run; a client cannot claim to be an event.Spec 10.8 (client runs are manual); the trusted ingress of the planned AEP-0019 amendment (G48).planned
One Job (or Sandbox) per stepEach step runs in its own pod; the runner process is not dumpable, so the step ticket cannot be read through /proc.Spec 5.6.2: command steps in an isolated environment; AEP-0023: credentials not visible to steps.PR #23
Per-attempt ticket, model proxyModel keys live only in the operator namespace. A step gets a short-lived ticket per attempt; the model proxy checks the ticket, the budget and a provider profile per model API protocol (local models allowed) and calls the provider.AEP-0023 change to 7.9 (G61); budgets checked before each model call (5.7); modelPolicy (7.4).PR #23
Tool proxy with SSRF checksChecks the address actually connected to, at connection time, which covers redirects and DNS changes.AEP-0023 7.5.6: internal destinations denied after resolution unless manifest and ceiling allow them (G50).PR #23
Egress proxy, default-deny policyA forward proxy per agent with a domain allowlist derived from allowHosts, plus a default-deny NetworkPolicy that lets the pod reach only that proxy. NetworkPolicy needs a network plugin that enforces it; some local development clusters do not.AEP-0023: effective network = manifest intersected with the ceiling (the namespace policy is the ceiling); enforce or reject, so on a cluster that does not enforce NetworkPolicy the runtime must reject.PR #23
Broker and event routerA chat bridge publishes each message as a CloudEvent to an MQTT broker; an event router with one filter object per workflow creates runs. No model takes part in routing, so a message cannot redirect it by prompt. The router subscribes with QoS 0 and keeps ids only briefly, so the operator deduplicates itself.AEP-0024: router filters may only narrow the manifest filter; dedup by source and id; concurrencyPolicy, rateLimit; delivery guarantee per source in the conformance statement (G56).PR #23
Attested authorThe bridge is the only identity allowed to publish on the topic and reads the author from the chat system: attestation through transport authorisation, not end to end.AEP-0024: attestedActor only from sources configured as trusted; approval rules treat it as the initiator (G44).PR #23
Decision proxy next to the coding agentIn interactive sessions every tool call goes to a separate container with its own process namespace, which decides by mode, permissions and command allow list and asks the person through the console; grants are signed. The coding agent's own permission system is not trusted: a command of the same user ID read its server password and answered its own requests.AEP-0023 7.6.1 (approval authority outside the execution environment), AEP-0026 (autonomy and confirm).PR #23
MCP gateway with ticketsMCP servers are reachable only through a gateway of the operator (network policy). It accepts a session or step ticket, adds the server credential, filters tools, prompts and resources to the catalog, answers sampling and roots itself and audits every call.AEP-0023 (tool server credentials outside steps), AEP-0007 rules 3, 7, 9 to 12.PR #23
Tenant ceilings and sandbox profilesA tenant object limits models, hosts, MCP servers, modes and cost; a sandbox profile maps an isolation class to a runtime class. Both stay kinds of the runtime.AEP-0023 7.5.7 (ceilings reject, budgets cap) and agents[].isolation.PR #23
Sanitized chat repliesA step posts the reply in the originating thread after sanitizing it (no mentions or markup the model was not meant to send).No AWP rule yet: delivery of replies is the job of a step (AEP-0024); the identity a step posts as is open (G55, AEP-0012).platform only

What it creates for the worked examples, and when

ExampleWhen the manifest is appliedWhen a run startsPer step
1. A scheduled agent workflow with outputsStores the Workflow, validates it (Valid), finds its binding, registers the schedule (Ready).At 07:00 creates a run object with the trigger in status; skips the tick with trigger.skipped while the previous run is active (forbid). Resolves the image tag to a digest.Job fetch, then Job rate (model proxy with a ticket for this attempt), then Job notify with the webhook secret.
2. The same workflow under the security profileRejects the manifest if a pinned image is missing a digest or if the network plugin does not enforce NetworkPolicy.Derives the proxy allowlist from allowHosts and checks it against the namespace ceiling; rejects the run before any Job if the ceiling is narrower.Each Job reaches only its egress proxy; tool calls go through the tool proxy, which refuses addresses outside the ceiling.
3. An event-triggered workflowGenerates a filter object for the router from spec.triggers.Router matches the CloudEvent and creates the run; the operator drops a second event with the same source and id.Job answer reads the message (once AEP-0004 is applied); a reply step posts the sanitized answer into the thread.
4. State between runsToday: one volume per workflow from the binding, mounted at /awp/state, invisible in the manifest.With AEP-0025: mounts only the declared stores, read-only where access: read.Job diff reads and writes seen-concerts; writes are atomic.
5. Human approval and the initiator ruleRejects the manifest on a runtime without the governance profile.Records the creator of the run (manual) or the bridge and the attested author (event).After draft, the run waits in waitingForApproval; an approval by the initiator is rejected and recorded; then Job send.

Adopt it

Two short checklists. Profiles decide which fields a runtime must understand; a manifest that uses a field of a profile the runtime does not claim is rejected, never run without it.

As a workflow author

  1. Start from example 1: apiVersion: awp.agenticworkflowprotocol.org/v1alpha3, a DNS-1123 metadata.name, spec.version (SemVer), spec.owner.team, and spec.classification if you target the governance profile.
  2. Declare triggers (without them only manual starts are possible); give inputs defaults if a schedule starts the workflow.
  3. Pass values to commands through env, never in command. Write outputs to $AWP_OUTPUTS/<name> or let the agent end with complete_step.
  4. Use permissions with default: deny and explicit allows; limit network with egress: deny and allowHosts; declare secrets by name with the smallest scope, never as values.
  5. Pin images by digest if the workflow must run under the security profile; outside it, tags are resolved and pinned at start.
  6. Choose the profiles from the table and validate: in a checkout of the spec repository run npm ci, then node conformance/awp-check.mjs check --profiles core,governance my.workflow.yaml. node conformance/awp-check.mjs migrate old.yaml converts v1alpha1 and v1alpha2 manifests.
  7. On Kubernetes, install the CRDs from schema/crd/ and apply with kubectl apply --validate=strict; read Valid and Ready in kubectl get workflows. The Helm chart packages a complete example.
  8. Do not rely on proposals yet: ${{ event.* }}, spec.state, rateLimit and the new allowHosts forms are not in v1alpha3 and the checker rejects or ignores their meaning.

As a runtime implementer

  1. Pick the profiles you can meet completely and publish a conformance statement (spec 11.3): limitations, limits, executionObjects. A profile with one unmet MUST cannot be claimed.
  2. Reject, never run partially: an unsupported apiVersion or kind, unknown fields, x- keys outside extensions, fields of profiles you do not support, literal credentials, invalid inputs, models outside modelPolicy, digest mismatches, images that cannot be resolved, image steps if you cannot run containers.
  3. Enforce at run time: the decision algorithm for every action (8.4), budgets before every model call and action, isolated command steps with network and filesystem applied, no expressions in command, the output rules (no symlinks, minimum sizes, no truncation, failed attempts discarded), pinning, approvals only by authenticated humans, the actor of a run from an authenticated source, no secret values to models, logs or audit.
  4. Prepare for PR #23: decide confirmations and approvals outside the execution environment, keep tool server credentials in a gateway, honour a required isolation class or reject; enforce the effective network or reject before the first step, check resolved addresses, keep model keys out of steps, deduplicate events by source and id for at least 24 hours, write state atomically, treat state and conversation context as untrusted input.
  5. Test your validator with the conformance suite: npm test in the spec repository runs every case, and conformance/v1alpha3/index.json lists expected accept or reject, code and path for your own validator. A runtime test suite is planned; until then conformance statements are self-declarations.
  6. Report gaps the way docs/runtime-feedback.md does: one entry per gap with severity, the proposal and the evidence from your runtime, as an issue or an AEP in the spec repository (D18). The spec repository names no runtime (D17); the implementations list shows projects that published a conformance statement.

Which profile

ProfileNeeded when the manifest uses
coreAlways. Parse and validate, the step graph, budgets, permissions, secrets, digest, pinning, WorkflowRun if executions are objects.
governanceapproval, approval steps, policies, dataPolicy, modelPolicy, environments, risk.level high or critical; classification becomes required.
auditspec.audit: event envelope, all event types, hash chain, decision and reproducibility records.
securitysignature, images pinned by digest, isolation, network and filesystem limits, redaction.
mcp, a2aMCP servers and tool sources; remote agents.
interactionInput steps and agents with humanInput.