Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV
- Decision D22: `v1alpha3` is the current draft. AEPs 0015 to 0020 (Kubernetes resource model, schedule semantics, human input, step outputs, `WorkflowRun`, execution pinning) are accepted by lead decision in the form written into the draft, without the external review of D16; reviews are still invited and handled as errata. AEP-0021 stays a Draft concept. AEPs that targeted `v1alpha2` and are not accepted (0001 to 0007, 0010 to 0014) now target `v1alpha3`; `v1alpha1` and `v1alpha2` stay supported and only get errata. The website (version selector, sidebar, banners, versioning, specification overview, introduction, examples rendered from `spec/v1alpha3/examples/`), the README and the Quickstart use `v1alpha3`.
- Conformance suite: the manifest examples and the valid cases of `v1alpha1` and `v1alpha2` must validate after `awp-check.mjs migrate` (70 `migrate:` cases), so older versions stay convertible to the current draft.
- Website: the migration page lists the three changes `migrate` cannot make (DNS-1123 names, label syntax, output names); `SECURITY.md` names the supported versions; `docs/aep-process.md` and `GOVERNANCE.md` record D19 and D22 as the only exceptions to the external review.
- Website: the concept, governance, security, integration and implementation pages describe `v1alpha3` and link to its specification (manifest layout, `extensions` objects, operator conditions in policies, step outputs, schedule semantics, profile `interaction`); their complete manifests are checked by `check:examples`.
- `AGENTS.md`: rules for new API versions (older versions stay backwards compatible; the validator and the editor are extended in the same change).
- Amendments from interactive sessions: AEP-0007 server prompts and resources as allow lists with default none (answers its open question 3), `prompts.get` reserved, sampling and roots declined; AEP-0002 resource scope of `shell.execute` and mapping of commands to well-known actions through `actionGroups`; AEP-0005 prompts as session tasks; AEP-0009 `origin` of audit events; AEP-0013 budgets during streaming (runtime feedback G71, G72, G74 to G76, G78).
- AEP-0021 B4: `triggers[].source` is no domain-prefixed value space; it is the CloudEvents `source` of the event producer (runtime feedback G54). B6: bindings may also target an `Agent`.
Expand Down
7 changes: 3 additions & 4 deletions docs/decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,9 @@ a single implementation and were removed from this log by D17.
errata; `awp-check.mjs migrate` converts both to `v1alpha3`. AEPs that targeted `v1alpha2` and
are not accepted (0001 to 0007, 0010 to 0014) now target `v1alpha3` (section 2), so that
accepted changes go into one version. The Draft AEPs 0021 and 0023 to 0027 keep their target
`v1alpha3` and join it when accepted. The specification pages, the examples, the Quickstart and
the introduction of the website, the README, the reference validator and the editor use
`v1alpha3` as the default. The concept, governance, security and integration pages of the
website still describe `v1alpha1` (their banners say so) until they are rewritten.
`v1alpha3` and join it when accepted. The website, the README, the reference validator and the editor use
`v1alpha3` as the default. The CLI output formats (`docs/cli.md`) are versioned on their own and
stay `v1alpha1`.
- **Applied in**: this log, `aep/0001` to `aep/0007`, `aep/0010` to `aep/0020`, `spec/README.md`,
`spec/v1alpha2/README.md` and `spec/v1alpha3/README.md` (status notes), `docs/aep-process.md`
(5.1 rule 1, 6.2), `GOVERNANCE.md`, `SECURITY.md` (supported versions),
Expand Down
4 changes: 2 additions & 2 deletions site/src/content/docs/concepts/agents-and-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Agents and tools"
description: "Agents, models, MCP tool sources and action identifiers."
banner:
content: "Draft - v1alpha1. Fields and semantics may change before v1beta1."
content: "Draft - v1alpha3, the current draft. Fields and semantics may change before v1beta1."
---

```yaml
Expand All @@ -20,4 +20,4 @@ agents:
- Agents can be defined inline, referenced by `name@version` from an `Agent` manifest, or be remote agents over A2A.
- Every tool call is an **action** with an identifier such as `github.create_pull_request`. Permissions, policies and approvals all work on action identifiers; action groups map many tools to one name like `git.merge`.

Normative text: [Agents](/specification/v1alpha1/#54-agents), [Tools and action identifiers](/specification/v1alpha1/#55-tools-and-action-identifiers), [Kind Agent](/specification/v1alpha1/#6-kind-agent).
Normative text: [Agents](/specification/v1alpha3/#54-agents), [Tools and action identifiers](/specification/v1alpha3/#55-tools-and-action-identifiers), [Kind Agent](/specification/v1alpha3/#6-kind-agent).
6 changes: 3 additions & 3 deletions site/src/content/docs/concepts/audit-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Audit events"
description: "Event families, the event envelope and tamper evidence."
banner:
content: "Draft - v1alpha1. Fields and semantics may change before v1beta1."
content: "Draft - v1alpha3, the current draft. Fields and semantics may change before v1beta1."
---

```yaml
Expand All @@ -19,11 +19,11 @@ data:
decision: allow
```

Event families: `workflow.*`, `agent.*`, `tool.*`, `policy.*`, `approval.*`, `artifact.*`.
Event families: `workflow.*`, `agent.*`, `tool.*`, `policy.*`, `approval.*`, `artifact.*`, `trigger.*` and `input.*`. `workflow.started` carries the digest of the pinned workflow manifest.

AWP defines the semantics of audit events; implementations may provide tamper-evident storage. The `audit.integrity.mode` values `none`, `hash-chain` and `signed` describe what a runtime offers.

Normative text: [Event envelope](/specification/v1alpha1/#103-event-envelope), [Event types](/specification/v1alpha1/#104-event-types), [Tamper evidence](/specification/v1alpha1/#105-tamper-evidence).
Normative text: [Event envelope](/specification/v1alpha3/#103-event-envelope), [Event types](/specification/v1alpha3/#104-event-types), [Tamper evidence](/specification/v1alpha3/#105-tamper-evidence).

:::note[Compliance]
AWP provides machine-readable governance primitives that can help organizations implement and enforce their own compliance requirements. Compliance depends on the implementation, organizational controls and applicable regulatory requirements.
Expand Down
4 changes: 2 additions & 2 deletions site/src/content/docs/concepts/budgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Budgets and resources"
description: "Bounding cost, steps, duration, tokens, tool calls, retries and concurrency."
banner:
content: "Draft - v1alpha1. Fields and semantics may change before v1beta1."
content: "Draft - v1alpha3, the current draft. Fields and semantics may change before v1beta1."
---

```yaml
Expand All @@ -19,4 +19,4 @@ budget:
- The runtime checks limits before every model invocation and action and stops the execution with `workflow.failed` and `reason: budgetExceeded`.
- Absent limits are unlimited, except `maxConcurrency` (default 1) and `maxRetries` (default 0).

Normative text: [Budgets and resources](/specification/v1alpha1/#57-budgets-and-resources).
Normative text: [Budgets and resources](/specification/v1alpha3/#57-budgets-and-resources).
4 changes: 2 additions & 2 deletions site/src/content/docs/concepts/decision-trace.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Decision trace"
description: "Structured decision records instead of private reasoning."
banner:
content: "Draft - v1alpha1. Fields and semantics may change before v1beta1."
content: "Draft - v1alpha3, the current draft. Fields and semantics may change before v1beta1."
---

```yaml
Expand Down Expand Up @@ -42,4 +42,4 @@ Result: SUCCESS

AWP does not standardize or require private chain-of-thought. It standardizes events, inputs, outputs, decisions and policy results. Decision records are required for actions that need approval, so approvers see the facts behind a request.

Normative text: [Decision trace](/specification/v1alpha1/#106-decision-trace).
Normative text: [Decision trace](/specification/v1alpha3/#106-decision-trace).
58 changes: 37 additions & 21 deletions site/src/content/docs/concepts/extending-awp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,82 @@
title: "Extending AWP"
description: "How implementations and organisations extend and refine AWP: extension fields, stricter rules, runtime-defined parts and the path into the core."
banner:
content: "Draft - v1alpha1. Fields and semantics may change before v1beta1."
content: "Draft - v1alpha3, the current draft. Fields and semantics may change before v1beta1."
---
AWP is meant to be extended and refined. The core stays small and vendor-neutral; implementations and organisations add what they need on top. One rule limits every extension: **it may add or restrict, never weaken.** A manifest that passed review must not do more on another runtime than its authors expected.

There are four ways to extend AWP, from local to standard.

:::note[Changes in the v1alpha3 draft]
This page describes `v1alpha1`. In the `v1alpha3` draft, `x-` fields move into `extensions` objects so that manifests can be stored as Kubernetes resources ([AEP-0015](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0015-kubernetes-resource-model.md)). [AEP-0021](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0021-extension-model.md) proposes to replace them with typed references at defined extension points, domain-prefixed values and attached policies, as the Kubernetes Gateway API does. Both are drafts.
:::note[Proposed: AEP-0021]
[AEP-0021](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0021-extension-model.md) proposes to replace `extensions` objects with typed references at defined extension points, domain-prefixed values and attached policies, as the Kubernetes Gateway API does. It is a Draft and not part of `v1alpha3`.
:::

## 1. Extension fields (`x-`)
## 1. Extension fields (`extensions`)

Any object in a manifest may carry fields whose name starts with `x-` ([spec 3.3](/specification/v1alpha1/#33-unknown-fields-and-extensions)).
Any object in `spec` that has defined fields may carry an `extensions` object; its keys start with `x-` ([spec 3.3](/specification/v1alpha3/#33-unknown-fields-and-extensions)). `metadata` has none: non-identifying data belongs in annotations.

<!-- awp-check profiles=core -->
```yaml
workflow:
- id: review
agent: reviewer
x-example-reviewChecklist: security-v2
apiVersion: awp.agenticworkflowprotocol.org/v1alpha3
kind: Workflow
metadata:
name: review
spec:
version: 0.1.0
owner:
team: example-team
agents:
- id: reviewer
model:
provider: example-provider
name: example-model
workflow:
- id: review
agent: reviewer
extensions:
x-example-reviewChecklist: security-v2
```

- A runtime that understands the field interprets it; every other runtime ignores it.
- An extension MUST NOT weaken a requirement of the specification.
- Extension values are part of the manifest digest, so changing one needs a new `metadata.version`.
- Use one prefix per implementation (`x-<prefix>-<name>`, lowerCamelCase), put the field on the object it modifies, and record the prefix in the [extension prefix list](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/docs/registry/extension-prefixes.md) so that names do not collide.
- Extension values in `spec` are part of the manifest digest, so changing one needs a new `spec.version`.
- Use one prefix per implementation (`x-<prefix>-<name>`, lowerCamelCase), put the field into the `extensions` object of the object it modifies, and record the prefix in the [extension prefix list](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/docs/registry/extension-prefixes.md) so that names do not collide.
- A field starting with `x-` outside an `extensions` object is an unknown field. In `v1alpha1` and `v1alpha2` extension fields sat directly on the object; `awp-check.mjs migrate` moves them.

**Safe to ignore or critical.** A field that only adds information (a description, a UI hint, an example value) is safe for other runtimes to ignore. A field that restricts behaviour (an argument constraint, an output schema, a placement requirement) is critical: a runtime that ignores it runs the manifest with fewer restrictions. Until [AEP-0011](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0011-required-extensions.md) adds `metadata.requiredExtensions`, a manifest with critical extensions is not portable, and its authors should say so.
**Safe to ignore or critical.** A field that only adds information (a description, a UI hint, an example value) is safe for other runtimes to ignore. A field that restricts behaviour (an argument constraint, an output schema, a placement requirement) is critical: a runtime that ignores it runs the manifest with fewer restrictions. Until [AEP-0011](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0011-required-extensions.md) adds required extensions, a manifest with critical extensions is not portable, and its authors should say so.

## 2. Refinement with core fields

Many refinements need no extension, because AWP lets every level only narrow what the level above allows:

- **Budgets** on workflow, agent and step: the effective limit is the minimum ([spec 5.7](/specification/v1alpha1/#57-budgets-and-resources)).
- **Permissions** on workflow and agent: an action needs both; `allow: false` wins ([spec 7.5](/specification/v1alpha1/#75-tool-governance-permissions)).
- **Action groups** map concrete tools to well-known actions, so rules can be written once for `git.merge` or `production.deploy` ([spec 5.5.4](/specification/v1alpha1/#554-action-groups)).
- **`Policy` manifests** hold an organisation's own rules (deny, require approval, data and model conditions) and are included by workflows ([spec 8](/specification/v1alpha1/#8-kind-policy-and-policy-evaluation), `governance` profile).
- **Budgets** on workflow, agent and step: the effective limit is the minimum ([spec 5.7](/specification/v1alpha3/#57-budgets-and-resources)).
- **Permissions** on workflow and agent: an action needs both; `allow: false` wins ([spec 7.5](/specification/v1alpha3/#75-tool-governance-permissions)).
- **Action groups** map concrete tools to well-known actions, so rules can be written once for `git.merge` or `production.deploy` ([spec 5.5.4](/specification/v1alpha3/#554-action-groups)).
- **`Policy` manifests** hold an organisation's own rules (deny, require approval, data and model conditions) and are included by workflows ([spec 8](/specification/v1alpha3/#8-kind-policy-and-policy-evaluation), `governance` profile).

## 3. Runtime-defined parts

Some things are deliberately left to the runtime, so that the manifest stays portable:

- binding MCP servers that a manifest does not declare ([spec 5.5.1](/specification/v1alpha1/#551-mcp-servers));
- built-in tools and their action identifiers ([spec 5.5.2](/specification/v1alpha1/#552-tool-sources));
- binding MCP servers that a manifest does not declare ([spec 5.5.1](/specification/v1alpha3/#551-mcp-servers));
- built-in tools and their action identifiers ([spec 5.5.2](/specification/v1alpha3/#552-tool-sources));
- where steps run ([execution placement](/implementations/execution-placement/));
- additional audit event types with a reverse-domain prefix, for example `com.example.cache.hit` ([spec 10.4](/specification/v1alpha1/#104-event-types));
- additional audit event types with a reverse-domain prefix, for example `com.example.cache.hit` ([spec 10.4](/specification/v1alpha3/#104-event-types));
- rules of a deployment that are stricter than the specification, for example "every MCP tool source lists its tools". A runtime may reject a valid manifest for such a rule if the diagnostic names it; it may never execute a manifest with fewer restrictions.

## 4. Into the core: AEPs

When an extension proves useful beyond one runtime, it becomes a proposal ([AEP process](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/docs/aep-process.md)). The usual path is:

1. A runtime ships an `x-<prefix>-` field and documents it as safe to ignore or critical.
1. A runtime ships an `x-<prefix>-` extension field and documents it as safe to ignore or critical.
2. An AEP proposes the core field, with the experience of that runtime as motivation.
3. Once the AEP is part of an API version the runtime supports, the runtime writes the core field and reads the extension for one more release with a deprecation warning.

Examples in progress: tool steps ([AEP-0012](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0012-tool-steps.md)), typed handoffs ([AEP-0003](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0003-typed-handoffs.md)), argument constraints ([AEP-0002](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0002-tool-argument-constraints.md)), input examples ([AEP-0014](https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org/blob/main/aep/0014-input-examples-and-schemas.md)).

## What does not work

- **Unknown fields without `x-`** are rejected. A typo in a governance field must not be silently ignored (fail closed).
- **Unknown fields**, including `x-` fields outside an `extensions` object, are rejected. A typo in a governance field must not be silently ignored (fail closed).
- **Fields of a profile the runtime does not support** are rejected with an error that names the field and the profile; the runtime must not run the rest.
- **Changing the meaning of a core field** through an extension, for example an `x-` flag that turns `default: deny` into allow, is not allowed.

Expand Down
Loading