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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes are documented in this file. The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2026-11-25

### Changed

- **Breaking:** `v1alpha3` is the current draft (decision D22 of the specification). `API_VERSION`,
the default `schema` and the export `./schema.json` are now `v1alpha3`; an unsupported
`apiVersion` is checked against `v1alpha3` and rejected at `/apiVersion`. Use
`./schema/v1alpha2.json` or `schemas.v1alpha2` for the previous default.
- `v1alpha1` and `v1alpha2` documents are validated exactly as before, against the schema of their
own `apiVersion`; the vendored specification is updated to commit `c8f79b1` (D22 merged); schemas and semantic rules are unchanged.
- The website starts with a `v1alpha3` manifest and shows the `v1alpha3` examples.

## [0.2.0] - 2026-11-20

### Added
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
[![npm](https://img.shields.io/npm/v/@agenticworkflowprotocol/validator?label=npm)](https://www.npmjs.com/package/@agenticworkflowprotocol/validator) [![ci](https://github.com/agenticworkflowprotocol/awp-validator/actions/workflows/ci.yml/badge.svg)](https://github.com/agenticworkflowprotocol/awp-validator/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)

Reference validator for [Agentic Workflow Protocol (AWP)](https://agenticworkflowprotocol.org)
manifests: the YAML restrictions, the JSON Schema and the semantic rules of AWP `v1alpha1`,
`v1alpha2` and the proposed `v1alpha3` (each document is checked against the schema of its own
manifests: the YAML restrictions, the JSON Schema and the semantic rules of AWP `v1alpha3` (the
current draft), `v1alpha2` and `v1alpha1` (each document is checked against the schema of its own
`apiVersion`), per
conformance profile, with digest verification and machine-readable diagnostics.

Expand Down Expand Up @@ -82,7 +82,7 @@ Diagnostics follow [section 3 of the CLI output formats](https://github.com/agen
`severity`, `code` (stable), `message`, `path` (JSON Pointer), `section`, `document`, `source`.

Further exports: `formatText`, `formatJson` (the `awp validate` formats), `manifestDigest`, `jcs`,
`migrateToV1alpha3`, `schemas` (by API version), `schema` (current draft `v1alpha2`), `provenance`, `KNOWN_PROFILES`, `API_VERSIONS`. Each
`migrateToV1alpha3`, `schemas` (by API version), `schema` (current draft `v1alpha3`), `provenance`, `KNOWN_PROFILES`, `API_VERSIONS`. Each
document result carries `awp`, the API version it was validated as. Types are included
(`types/index.d.ts`). The schema files are also available as
`@agenticworkflowprotocol/validator/schema/v1alpha1.json`, `.../schema/v1alpha2.json`, `.../schema/v1alpha3.json` and
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agenticworkflowprotocol/validator",
"version": "0.2.0",
"version": "0.3.0",
"description": "Reference validator and CLI for Agentic Workflow Protocol (AWP) manifests: YAML rules, JSON Schema and semantic checks per conformance profile, digest verification and machine-readable diagnostics.",
"license": "Apache-2.0",
"type": "module",
Expand Down Expand Up @@ -35,7 +35,7 @@
"types": "./types/index.d.ts",
"default": "./dist/browser/awp-validator.mjs"
},
"./schema.json": "./vendor/awp/schema/awp.v1alpha2.json",
"./schema.json": "./vendor/awp/schema/awp.v1alpha3.json",
"./schema/v1alpha1.json": "./vendor/awp/schema/awp.v1alpha1.json",
"./schema/v1alpha2.json": "./vendor/awp/schema/awp.v1alpha2.json",
"./schema/v1alpha3.json": "./vendor/awp/schema/awp.v1alpha3.json",
Expand Down
4 changes: 2 additions & 2 deletions site/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import { KNOWN_PROFILES, formatJson, isOk, validateText } from './lib/awp-valida

const SPEC_URL = 'https://agenticworkflowprotocol.org/specification/';
const DEBOUNCE_MS = 300;
const STARTER = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha2
const STARTER = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha3
kind: Workflow
metadata:
name: hello-workflow
spec:
version: 0.1.0
owner:
team: example-team
classification: internal
spec:
budget:
maxCostUsd: 1.00
maxSteps: 10
Expand Down
3 changes: 2 additions & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import v1alpha2 from '../vendor/awp/schema/awp.v1alpha2.json';
import v1alpha3 from '../vendor/awp/schema/awp.v1alpha3.json';
import provenanceJson from '../vendor/awp/PROVENANCE.json';
import { createValidator } from './validator.js';
import { API_VERSION } from './versions.js';
export { API_VERSION, API_VERSIONS, KNOWN_PROFILES, UsageError, resolveProfiles, summarize } from './validator.js';
export { jcs, manifestDigest } from '../vendor/awp/conformance/semantic.mjs';
export { migrateToV1alpha3 } from '../vendor/awp/conformance/migrate.mjs';
export { formatDiagnostic, formatJson, formatText, isOk } from './format.js';
export const schemas = { v1alpha1, v1alpha2, v1alpha3 };
export const schema = v1alpha2; // the current draft (API_VERSION)
export const schema = schemas[API_VERSION]; // the current draft
export const provenance = provenanceJson;
export const { validateManifest, validateText } = createValidator({ schemaValidators });
7 changes: 3 additions & 4 deletions src/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
export const API_VERSIONS = ['v1alpha1', 'v1alpha2', 'v1alpha3'];

/**
* The current draft. v1alpha3 is a proposed draft built from AEPs that are not accepted
* (decision D20 of the specification), so the default schema export and the examples of the
* website stay on v1alpha2.
* The current draft (decision D22 of the specification): the default schema export, the version an
* unsupported apiVersion is checked against, and the examples of the website.
*/
export const API_VERSION = 'v1alpha2';
export const API_VERSION = 'v1alpha3';

const API_GROUP = 'awp.agenticworkflowprotocol.org/';

Expand Down
11 changes: 7 additions & 4 deletions test/api.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'node:assert/strict';
import { test } from 'node:test';
import { API_VERSIONS, KNOWN_PROFILES, UsageError, migrateToV1alpha3, provenance, schema, schemas, validateManifest, validateText } from '../src/index.js';
import { API_VERSION, API_VERSIONS, KNOWN_PROFILES, UsageError, migrateToV1alpha3, provenance, schema, schemas, validateManifest, validateText } from '../src/index.js';
import { parse as parseFirst, stringify } from 'yaml';

const VALID = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha1
Expand Down Expand Up @@ -41,8 +41,10 @@ test('each document is validated against the schema of its own apiVersion', () =
assert.deepEqual(API_VERSIONS, ['v1alpha1', 'v1alpha2', 'v1alpha3']);
assert.equal(validateText(V2).documents[0].awp, 'v1alpha2');
assert.equal(validateText(V2).documents[0].valid, true);
const unknown = validateText(VALID.replace('/v1alpha1', '/v1alpha99')).documents[0];
assert.equal(unknown.awp, 'v1alpha2', 'an unsupported version is checked against the current draft');
// A document in the layout of the current draft with an unsupported apiVersion: only the version is wrong.
const current = stringify(migrateToV1alpha3(parseFirst(VALID)).document);
const unknown = validateText(current.replace('/v1alpha3', '/v1alpha99')).documents[0];
assert.equal(unknown.awp, 'v1alpha3', 'an unsupported version is checked against the current draft');
assert.deepEqual(unknown.diagnostics.map((d) => [d.code, d.path]), [['schema.const', '/apiVersion']]);
});

Expand Down Expand Up @@ -106,7 +108,8 @@ test('unknown profiles are a usage error', () => {
test('schema, profiles and provenance are exported', () => {
assert.equal(schema.$schema, 'https://json-schema.org/draft/2020-12/schema');
assert.deepEqual(KNOWN_PROFILES, ['core', 'governance', 'audit', 'security', 'mcp', 'a2a', 'interaction']);
assert.equal(schema.$id, 'https://agenticworkflowprotocol.org/schema/awp.v1alpha2.json', 'the default schema is the current draft');
assert.equal(schema.$id, 'https://agenticworkflowprotocol.org/schema/awp.v1alpha3.json', 'the default schema is the current draft');
assert.equal(API_VERSION, 'v1alpha3');
assert.match(provenance.source.commit, /^[0-9a-f]{40}$/);
});

Expand Down
4 changes: 2 additions & 2 deletions vendor/awp/PROVENANCE.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"source": {
"repository": "https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org",
"commit": "dc6fb3d2dd503d231b14bacd66e6f2641e7b870c",
"commitDate": "2026-11-20T07:13:39+01:00"
"commit": "c8f79b1efc1983d5056c787d369d01b058633a07",
"commitDate": "2026-11-26T07:57:38+01:00"
},
"licenses": {
"Apache-2.0": "code, JSON schema, conformance manifests and examples (LICENSE)",
Expand Down