Extending AWP
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.
1. Extension fields (x-)
Section titled “1. Extension fields (x-)”Any object in a manifest may carry fields whose name starts with x- (spec 3.3).
workflow: - id: review agent: reviewer 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 so that names do not collide.
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 adds metadata.requiredExtensions, a manifest with critical extensions is not portable, and its authors should say so.
2. Refinement with core fields
Section titled “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).
- Permissions on workflow and agent: an action needs both;
allow: falsewins (spec 7.5). - Action groups map concrete tools to well-known actions, so rules can be written once for
git.mergeorproduction.deploy(spec 5.5.4). Policymanifests hold an organisation’s own rules (deny, require approval, data and model conditions) and are included by workflows (spec 8,governanceprofile).
3. Runtime-defined parts
Section titled “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);
- built-in tools and their action identifiers (spec 5.5.2);
- where steps run (execution placement);
- additional audit event types with a reverse-domain prefix, for example
com.example.cache.hit(spec 10.4); - 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
Section titled “4. Into the core: AEPs”When an extension proves useful beyond one runtime, it becomes a proposal (AEP process). The usual path is:
- A runtime ships an
x-<prefix>-field and documents it as safe to ignore or critical. - An AEP proposes the core field, with the experience of that runtime as motivation.
- 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), typed handoffs (AEP-0003), argument constraints (AEP-0002), input examples (AEP-0014).
What does not work
Section titled “What does not work”- Unknown fields without
x-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 turnsdefault: denyinto allow, is not allowed.
Check it
Section titled “Check it”The reference checker validates manifests with extensions like any other: YAML restrictions, JSON Schema and semantic rules, optionally limited to the profiles a runtime supports.
node conformance/awp-check.mjs check --profiles core,mcp workflow.yamlSee the Quickstart for the setup.