Build your own AWP runtime
- Read the specification and the glossary.
- Validate manifests with the JSON Schema and implement the semantic rules listed in the schema README.
- Run the conformance suite: valid manifests must be accepted, invalid ones rejected with the expected diagnostic.
- Start with the
coreprofile, then addgovernance,audit,security,mcpanda2aas needed. - Publish a conformance statement with the profiles you meet and the optional features you do not support.
- Open a pull request to be listed on the implementations page.
Optionally provide the CLI commands with the specified output formats.
Implementation notes
Section titled “Implementation notes”Lessons from runtimes built against v1alpha1. They are informative; where the specification leaves a choice open, the related proposal is linked.
- Reuse the reference validator. The validator package runs YAML rules, schema and semantic rules per profile and passes the conformance suite; pass exactly the profiles your runtime supports and put your own deployment rules after it. Try manifests in the online validator.
- Pin the schema, do not copy it by hand. Vendor the JSON Schema and the semantic rules of the conformance suite at a commit, record the commit and file hashes, and check them in CI. The schema is normative for structure (decision D2).
- Fail closed and say why. A field of a profile you do not support, or a core feature you do not support yet (command steps, agent references, built-in tools, resource scopes), rejects the manifest with a diagnostic that names the field (spec 3.3). Never run the rest.
- Enforce in the control plane. Route every model invocation and action through your own proxies and let each call name its step. The proxy then allows only the tools and the model of that step’s agent, and checks budgets before each call. Where steps run is a separate choice: see execution placement.
- Stricter rules are fine, silent ones are not. Requiring explicit
toolslists per MCP source, or that every MCP server is a configured connection, is a deployment rule. Reject with the rule’s name; never execute with fewer restrictions (AEP-0013, item 5). - Bind servers by name, but never redirect. Undeclared servers may be resolved from your configuration (spec 5.5.1). A declared
urlthat differs from the bound connection is an error, not a hint (AEP-0013, item 6). - Approvals can come from the runtime. If your tool catalog classifies tools as read or write, requiring approval for every write action is stricter than the manifest and allowed. A rejection should end the dependent work, and open approvals of a finished execution must be closed (AEP-0013, item 3; AEP-0007 for access classes).
- Budgets measured after the call.
maxTokensandmaxCostUsdare known only after an invocation; deny the next call once usage reached the limit, and never count unknown cost as zero (AEP-0013, item 1). - Validate inputs before the start. Check type, pattern, enum and required inputs, apply
defaultvalues, and reject with all problems at once (spec 5.3). Example values for test runs belong in a separate field, not indefault(AEP-0014). - Steps without a model. If you need a step that calls one tool with fixed arguments, use an extension field on the step until AEP-0012 (tool steps) is available, and treat it as critical: a runtime that ignores it would run an agent step without a task.
- Name extensions well. One prefix, lowerCamelCase field names, each field on the object it modifies, documented as safe to ignore or critical (extension prefix list).
- Count tool errors as errors. An MCP result with
isError: trueis a failed action, also when the model summarises it as text. Authentication errors should end the step without retries. - Use the agreed wording. Until the conformance suite passes against your validator and real exports in public CI, describe the runtime as “built to the AWP schema, conformance in progress (alpha)”.
Example: plan output
Section titled “Example: plan output”A command such as awp plan can show what a workflow may do before it runs (illustrative; see CLI output formats for the specified formats):
$ awp plan workflow.yaml
AWP Execution Plan
Workflow: vulnerability-fixerVersion: 0.1.0
Agents: researcher → claude fixer → qwen3
Tools: github.read github.write shell.execute
Policies: ✓ cost limit ✓ tool permissions ✓ network policy ✓ production restriction
Human approval: required before merge
Estimated maximum: 30 steps $2.00 15 minutes