Skip to content

feat!: support AWP v1alpha4 and make it the default (D23, D24) - #2

Merged
weisser-dev merged 3 commits into
mainfrom
feat/v1alpha4
Nov 27, 2026
Merged

weisser-dev merged 3 commits into
mainfrom
feat/v1alpha4

Conversation

@weisser-dev

@weisser-dev weisser-dev commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Adds AWP v1alpha4 (D23): when conditions (spec 3.12) and type: workflow steps (5.6.6), and makes it the current draft and default (D24).

  • v1alpha4 in API_VERSIONS; API_VERSION, the default schema (src/index.js, src/browser.js) and ./schema.json are now v1alpha4 (breaking, like 0.3.0 for D22). Older versions are validated against their own schema as before.
  • Vendored spec synced with scripts/sync-spec.mjs (now also copies conformance/conditions.mjs), from spec main 058c267 (#31 merged).
  • schemas.v1alpha4, export ./schema/v1alpha4.json, types, migrateToV1alpha4 (Node and browser). The CLI has no migrate command; migration is API-only as before.
  • Website starter manifest and example picker use v1alpha4.
  • Tests: v1alpha4 conformance suite + examples (Node and browser bundle), migration from all older versions, when.not-a-dependency, default is v1alpha4. npm test: 24/24 pass.
  • Version 0.4.0 (minor bump with feat! during 0.x, as 10993ef did for 0.3.0), README, CHANGELOG.

Depends on spec PR agenticworkflowprotocol/agenticworkflowprotocol.org#32 (D24). D24 changes no vendored schema or rule, but after #32 merges re-run node scripts/sync-spec.mjs ../agenticworkflowprotocol.org from spec main so PROVENANCE.json points at the D24 commit, before merging this PR.

Order: spec #32 → this PR (release 0.4.0) → awp-editor PR #2.

The specification adds v1alpha4 as the next draft (D23, spec PR #31):
v1alpha3 plus `when` conditions (spec 3.12) and `type: workflow` steps
(spec 5.6.6). The validator now knows the version, vendors its schema,
conformance suite, examples and the new conformance/conditions.mjs, and
exports migrateToV1alpha4 next to migrateToV1alpha3.

v1alpha3 stays the current draft, so API_VERSION and the default schema
are unchanged; older versions are validated as before. The vendored
specification is synced from the spec feature branch (46f76bf) and must
be re-synced from main once spec PR #31 is merged.

Signed-off-by: Erik <erik@weisser.dev>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Deploying awp-validator with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5f29a32
Status: ✅  Deploy successful!
Preview URL: https://35e52aa1.awp-validator.pages.dev
Branch Preview URL: https://feat-v1alpha4.awp-validator.pages.dev

View logs

The vendored files are identical to the feature branch commit 46f76bf; only the
recorded source commit and branch change to the merge commit 058c267 on main.

Signed-off-by: Erik <erik@weisser.dev>
The specification makes v1alpha4 the current draft (D24, spec PR #32).
API_VERSION, the default schema and ./schema.json follow it; v1alpha1,
v1alpha2 and v1alpha3 documents are still validated against their own
schema. The website starts with a v1alpha4 manifest and shows the v1alpha4
examples. D24 changes no vendored schema or semantic rule, so the vendored
specification stays at 058c267; it is re-synced from spec main after PR #32
is merged.

The release stays 0.4.0: like 0.3.0 (D22, feat!) the breaking change of
the default ships as a minor bump during 0.x, together with the v1alpha4
support already planned for 0.4.0.

BREAKING CHANGE: the default schema export and the version an
unsupported apiVersion is checked against are now v1alpha4.

Signed-off-by: Erik <erik@weisser.dev>
@weisser-dev weisser-dev changed the title feat: support AWP v1alpha4 (step conditions and workflow steps) feat!: support AWP v1alpha4 and make it the default (D23, D24) Nov 27, 2026
@weisser-dev
weisser-dev merged commit f891140 into main Nov 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant