diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index ad96bea..57bdc19 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -51,6 +51,9 @@ jobs: - name: Install site dependencies (install scripts disabled by .npmrc) working-directory: site run: npm ci + - name: Website examples (reference checker) + working-directory: site + run: npm run check:examples - name: Build working-directory: site diff --git a/AGENTS.md b/AGENTS.md index d2c2a12..b93d8db 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,6 +2,55 @@ See README for other guidelines. +## New API versions + +Applies whenever a new API version (`v1alpha4`, `v1beta1`, ...) is added, and whenever an existing +version becomes the current draft (as `v1alpha3` did with decision D22). A version is only done +when the specification, the reference validator and the editor support it together. + +**1. Older versions stay backwards compatible.** A new version is added next to the older ones; it +never changes them. + +- `schema/awp..json`, `spec//`, the conformance suites of older versions and their + examples are unchanged. Check with `git diff origin/main -- schema/awp..json spec/ conformance` + (only the new suite and the files of the new version may change). An erratum of an older version + is its own commit, named as an erratum in the CHANGELOG. +- `npm test` passes for every version: the reference checker still knows all older `apiVersion`s, + and a manifest is always validated against the schema of its own `apiVersion`, never the newest. +- `node conformance/awp-check.mjs migrate` converts every older version to the new one, and the + migrated examples of every older version validate against the new schema. Changes that + `migrate` cannot do mechanically are listed in the spec (section 14) and on the website + ("Migrating to ..."). +- Nothing that worked for an older version may stop working in a tool: older versions stay in the + version lists of the validator and the editor, with their tests. + +**2. Extend the validator and the editor in the same change.** Check out both repositories next to +this one, on a new branch from `origin/main`: + +```sh +git clone https://github.com/agenticworkflowprotocol/awp-validator ../awp-validator +git clone https://github.com/agenticworkflowprotocol/awp-editor ../awp-editor +``` + +- `awp-validator`: add the version to `API_VERSIONS` in `src/versions.js` (oldest first), copy the + artefacts with `node scripts/sync-spec.mjs ../agenticworkflowprotocol.org` (never edit + `vendor/` by hand; review the diff), add the schema import in `src/browser.js`, the export + `./schema/.json` in `package.json`, the type in `types/index.d.ts` and tests that run its + conformance suite. If it becomes the current draft, also set `API_VERSION`, the default `schema` + (`src/index.js`, `src/browser.js`, `./schema.json`) and the starter manifest in `site/app.js`. +- `awp-editor`: render the new fields (`src/model/`, `src/ui/`), add the version where the model + distinguishes layouts (for example `KRM_VERSIONS` in `src/model/index.js`), add its examples to + `EXAMPLE_SETS` in `scripts/build.mjs` and tests in `test/`. If it becomes the current draft, it + is the example set at `examples/` and the starter in `site/app.js`; older sets move to + `examples//`. +- Both: update `README.md`, add a CHANGELOG section and bump `version` in `package.json` (a changed + default is a breaking change). Run `npm test` in each repository. Pushing a new version to + `main` publishes it, so release the validator first and then point the editor to it; never push + without an explicit request. +- In this repository: the website (banners in `site/scripts/sync-content.mjs`, sidebar and version + selector, `specification/versioning.md`), `spec/README.md`, the README and the Quickstart name + the current draft, and `npm run check:examples` passes in `site/`. + ## Code quality and maintainability Applies to all new code and modifications. Goals: maintainable code, low coupling, high cohesion, minimal dependencies, clear separation of concerns, easy testing, predictable architecture, consistent English codebase, proper i18n, long-term maintainability. diff --git a/CHANGELOG.md b/CHANGELOG.md index cd5e500..7af4e90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV ### Changed +- 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. +- `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`. - Spec `v1alpha3` section 12: content kept between executions (state) is untrusted input like tool results (runtime feedback G58). @@ -33,6 +37,8 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV ### Added +- Website: informative pages for the `v1alpha3` draft, taken over from the explainer site `awp-v1alpha2-draft` and rewritten against main: "v1alpha3: how it fits together" (the kinds and who writes and reads them, the lifecycle from manifest to finished run with spec references, a worked example, profiles, checklists for authors and runtime implementers, the Draft AEPs on top), "Migrating to v1alpha3" (before and after examples, what `awp-check.mjs migrate` does and what it cannot do) and "Packaging manifests with Helm" (escaping AWP expressions, what the digest covers, image tags, CRDs in charts). Proposals of the former pull request #23, the gap classification and the example chart were not taken over. +- Website: `npm run check:examples` runs every YAML example marked with an `awp-check` comment through the reference checker (valid, or rejected with an expected code); part of `npm test` and the pages workflow. - AEP-0026 (interactive execution: kind `AgentSession`, `sessions` opt-in with `maxAutonomy`, three autonomy levels) and AEP-0027 (agent engine: `agents[].engine`, repository configuration off by default) as Draft concepts with open questions; numbers to be confirmed. From runtime feedback G62, G63, G65, G73, G81, G82. - AEP-0023 (step isolation) as Draft for `v1alpha3`: structured network destinations (`allowTo` with `host` or `cidr` and `ports`, replacing `allowHosts`), enforce or reject, internal destinations only through a `cidr` entry under `security`, platform ceilings that reject and never adjust (with a change to spec 5.7), credentials and approvals outside the execution environment, a minimum isolation class; hardening as informative implementer guidance. From runtime feedback G10, G47, G49 to G51, G61, G64, G67 to G69. - `docs/runtime-feedback.md`: gaps G41 to G87 (event triggers, the concept review, models, interactive sessions and a coding agent engine), with the AEP each belongs to, the evidence from the runtime, and a rule for what goes into AWP (section 10). diff --git a/GOVERNANCE.md b/GOVERNANCE.md index ba1a02c..fc0e1b0 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -74,6 +74,8 @@ that no single organization holds a majority of maintainers once the specificati ([decision log](docs/decisions.md)). An AEP is never accepted by its author or by the project lead alone: it needs a reviewer who is not an author and, while all maintainers belong to one organisation, an external one ([aep-process 5.1](docs/aep-process.md#51-review-before-acceptance)). + The only exceptions are the recorded lead decisions D19 (AEP-0022) and D22 (AEPs 0015 to 0020), + each limited to the AEPs it names. - If consensus cannot be reached, the maintainers decide by simple majority; the project lead breaks ties. diff --git a/README.md b/README.md index 93dda5e..e296376 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ > MCP connects agents to tools. A2A connects agents to agents. AWP defines how agents work. -> **Status: draft / alpha.** The specification has three draft versions: `v1alpha1`, `v1alpha2` -> (`v1alpha1` plus step iteration, `forEach`) and the proposed `v1alpha3` (`v1alpha2` aligned with -> the Kubernetes resource model, built from Draft AEPs). All are working drafts: fields, semantics and -> conformance profiles may change incompatibly before `v1`. Do not rely on them for production -> interoperability yet. +> **Status: draft / alpha.** The current draft is `v1alpha3`: `v1alpha2` (`v1alpha1` plus step +> iteration, `forEach`) aligned with the Kubernetes resource model, with step outputs, schedule +> semantics, human input, `WorkflowRun` and execution pinning (decision D22). `v1alpha1` and +> `v1alpha2` stay supported. All are working drafts: fields, semantics and conformance profiles may +> change incompatibly before `v1`. Do not rely on them for production interoperability yet. ## What AWP is @@ -43,15 +43,15 @@ execution of agent code on Kubernetes), without depending on them. A minimal manifest: ```yaml -apiVersion: awp.agenticworkflowprotocol.org/v1alpha1 +apiVersion: awp.agenticworkflowprotocol.org/v1alpha3 kind: Workflow metadata: name: vulnerability-fixer +spec: version: 0.1.0 owner: team: security-team classification: internal -spec: triggers: - type: manual budget: @@ -124,7 +124,7 @@ public statement of the supported conformance profiles. | Path | Content | | ---- | ------- | -| `spec/` | Normative specification text (planned for `v1alpha1`) | +| `spec/` | Normative specification text, one directory per API version | | `docs/` | Concept documentation and website plan | | `site/` | Website (Astro Starlight), see [site/README.md](site/README.md) | | `CNAME` | Custom domain for GitHub Pages (`agenticworkflowprotocol.org`) | diff --git a/SECURITY.md b/SECURITY.md index 15a731d..9a215da 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -31,4 +31,5 @@ Out of scope: ## Supported versions -Until `v1`, only the latest draft API version of the specification receives fixes. +Until `v1`, the current draft API version (`v1alpha3`) receives fixes. Older drafts that are still +supported (`v1alpha1`, `v1alpha2`) receive errata for security issues; they get no new features. diff --git a/aep/0001-conditional-steps.md b/aep/0001-conditional-steps.md index e5e48a8..75d011d 100644 --- a/aep/0001-conditional-steps.md +++ b/aep/0001-conditional-steps.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, language or schema reviewer, security reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D5](../docs/decisions.md#d5-when-uses-a-restricted-expression-grammar-not-cel), [D6](../docs/decisions.md#d6-executions-may-succeed-with-condition-skips) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core` (step semantics), `audit` (new event type) | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -224,6 +224,8 @@ No implementation of this AEP exists. ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10: the grammar is a restricted expression grammar defined in this AEP, not CEL (D5); an execution may succeed when steps are skipped by a condition (D6). Target `v1alpha2`. Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0002-tool-argument-constraints.md b/aep/0002-tool-argument-constraints.md index 37ab150..050a8e9 100644 --- a/aep/0002-tool-argument-constraints.md +++ b/aep/0002-tool-argument-constraints.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, security reviewer, language or schema reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D4](../docs/decisions.md#d4-no-prefix-wildcards-in-permissions) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core` | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -247,6 +247,8 @@ rejects expressions in them. ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10 (D4): no prefix wildcards inside a segment; families of tools are granted through action groups and publish-time enumeration. Target `v1alpha2`. Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0003-typed-handoffs.md b/aep/0003-typed-handoffs.md index d8fd23e..c3194f5 100644 --- a/aep/0003-typed-handoffs.md +++ b/aep/0003-typed-handoffs.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, language or schema reviewer, security reviewer, privacy reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | scope of `v1alpha2` ([decision log section 2](../docs/decisions.md#2-resulting-scope-of-v1alpha2)) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core`, `audit` | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -195,6 +195,8 @@ implementation of this AEP exists. ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10: part of the `v1alpha2` scope ([decision log section 2](../docs/decisions.md#2-resulting-scope-of-v1alpha2)); the `event` source follows D7 (AEP-0004). Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0004-event-references.md b/aep/0004-event-references.md index b12328c..f9d55c0 100644 --- a/aep/0004-event-references.md +++ b/aep/0004-event-references.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, security reviewer, privacy reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D7](../docs/decisions.md#d7-own-event-root) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core` | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -138,6 +138,8 @@ declared, because no expression can reach it in `v1alpha1`. No implementation of ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10 (D7): an own root `${{ event.* }}`; events are not mapped to inputs. Target `v1alpha2`. Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0005-prompt-kind.md b/aep/0005-prompt-kind.md index 9f0c651..8253965 100644 --- a/aep/0005-prompt-kind.md +++ b/aep/0005-prompt-kind.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, security reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D8](../docs/decisions.md#d8-prompt-and-playbook-are-in-v1alpha2) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core`, `audit` (reproducibility record), `security` (digests, provenance) | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -188,6 +188,8 @@ coding agent. It has no versions, digests or typed variables yet. ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10 (D8): the kind `Prompt` is in `v1alpha2`. It depends on AEP-0003 (schema subset) and AEP-0010 (digests, JCS rendering of values), both also in `v1alpha2`. Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0006-playbook-kind.md b/aep/0006-playbook-kind.md index bec7ca7..255b1c9 100644 --- a/aep/0006-playbook-kind.md +++ b/aep/0006-playbook-kind.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, security reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D8](../docs/decisions.md#d8-prompt-and-playbook-are-in-v1alpha2) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core`, `audit` | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -211,6 +211,8 @@ No implementation of this AEP exists. ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10 (D8): the kind `Playbook` is in `v1alpha2` (previously proposed for `v1alpha3` or later). Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0007-mcp-connection-catalog.md b/aep/0007-mcp-connection-catalog.md index 74caaba..713938b 100644 --- a/aep/0007-mcp-connection-catalog.md +++ b/aep/0007-mcp-connection-catalog.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, MCP practitioner, security reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D8](../docs/decisions.md#d8-prompt-and-playbook-are-in-v1alpha2), [D9](../docs/decisions.md#d9-mcp-catalog-in-the-mcp-profile-aligned-with-the-mcp-specification) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `mcp` (no new profile), `audit` (new event type) | | **MCP revision** | Terms checked against the Model Context Protocol specification, revision `2026-07-28` (read as reference data; [conflict C7](../docs/decisions.md#c7-mcp-terms-are-external-reference-data)) | | **Created** | 2026-10-09 | @@ -372,6 +372,8 @@ resources are allowed (runtime feedback G69 to G72). No definition digests yet. ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10 (D8, D9): in `v1alpha2`, part of the `mcp` profile, aligned with MCP terms, authorization (OAuth 2.1) and tool definition digests. Not accepted; needs the reviews listed in the header. diff --git a/aep/0010-digest-canonicalization.md b/aep/0010-digest-canonicalization.md index c3761da..79689b1 100644 --- a/aep/0010-digest-canonicalization.md +++ b/aep/0010-digest-canonicalization.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, security reviewer, language or schema reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | scope of `v1alpha2` ([decision log section 2](../docs/decisions.md#2-resulting-scope-of-v1alpha2)) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core`, `security` | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -154,6 +154,8 @@ The reference checker in this repository computes digests as described for parse ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10: part of the `v1alpha2` scope and, with AEP-0011, on the critical path of portable manifests with extensions. Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0011-required-extensions.md b/aep/0011-required-extensions.md index 9a28189..54f3f5e 100644 --- a/aep/0011-required-extensions.md +++ b/aep/0011-required-extensions.md @@ -7,10 +7,10 @@ | **Authors** | AI agent on behalf of @agenticworkflowprotocol | | **Shepherd** | Project lead (proposed; not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | | **Type** | Specification | -| **Status** | Review (proposed for `v1alpha2`; not accepted) | +| **Status** | Review (proposed for `v1alpha3`; not accepted) | | **Reviewer roles needed** | runtime implementer, security reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D3](../docs/decisions.md#d3-required-extensions-are-in-scope-for-v1alpha2) (2026-10-10) | -| **Target API version** | `v1alpha2` | +| **Target API version** | `v1alpha3` (`v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core` | | **Created** | 2026-10-09 | | **Discussion** | issue to be opened | @@ -161,6 +161,8 @@ version they target. ## Decision +2026-11-25 ([D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)): the target is now `v1alpha3`, the current draft. The owner direction below is kept as recorded. + Owner direction of 2026-10-10 (D3): in scope for `v1alpha2`. Target `v1alpha2`. Not accepted; needs the reviews listed in the header ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). ## References diff --git a/aep/0012-tool-steps.md b/aep/0012-tool-steps.md index 79c262c..d4d689a 100644 --- a/aep/0012-tool-steps.md +++ b/aep/0012-tool-steps.md @@ -10,7 +10,7 @@ | **Status** | Draft | | **Reviewer roles needed** | runtime implementer, security reviewer, MCP practitioner. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D18](../docs/decisions.md#d18-implementation-experience-goes-into-aeps-and-implementer-guidance) (2026-11-18) | -| **Target API version** | `v1alpha2` (proposed, not yet in scope) | +| **Target API version** | `v1alpha3` (proposed, not yet in scope; `v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core` (step type), `mcp` (tool steps on MCP tools) | | **Created** | 2026-11-18 | | **Discussion** | issue to be opened | diff --git a/aep/0013-runtime-clarifications.md b/aep/0013-runtime-clarifications.md index ba7c633..f827a3b 100644 --- a/aep/0013-runtime-clarifications.md +++ b/aep/0013-runtime-clarifications.md @@ -10,7 +10,7 @@ | **Status** | Draft | | **Reviewer roles needed** | runtime implementer, security reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D18](../docs/decisions.md#d18-implementation-experience-goes-into-aeps-and-implementer-guidance) (2026-11-18) | -| **Target API version** | `v1alpha2` (proposed, not yet in scope) | +| **Target API version** | `v1alpha3` (proposed, not yet in scope; `v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core`, `governance`, `mcp` | | **Created** | 2026-11-18 | | **Discussion** | issue to be opened | diff --git a/aep/0014-input-examples-and-schemas.md b/aep/0014-input-examples-and-schemas.md index 3ac40e1..c8b6cb6 100644 --- a/aep/0014-input-examples-and-schemas.md +++ b/aep/0014-input-examples-and-schemas.md @@ -10,7 +10,7 @@ | **Status** | Draft | | **Reviewer roles needed** | runtime implementer, language or schema reviewer. None identified yet; an external review is required before `Accepted` ([aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)). | | **Owner decisions** | [D18](../docs/decisions.md#d18-implementation-experience-goes-into-aeps-and-implementer-guidance) (2026-11-18) | -| **Target API version** | `v1alpha2` (proposed, not yet in scope) | +| **Target API version** | `v1alpha3` (proposed, not yet in scope; `v1alpha2` until [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)) | | **Profiles affected** | `core` | | **Created** | 2026-11-18 | | **Discussion** | issue to be opened | diff --git a/aep/0015-kubernetes-resource-model.md b/aep/0015-kubernetes-resource-model.md index b78fb2d..56770ef 100644 --- a/aep/0015-kubernetes-resource-model.md +++ b/aep/0015-kubernetes-resource-model.md @@ -5,11 +5,11 @@ | **AEP** | 0015 | | **Title** | Kubernetes resource model alignment | | **Authors** | @agenticworkflowprotocol | -| **Shepherd** | to be assigned (not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | +| **Shepherd** | Project lead (D22) | | **Type** | Specification | -| **Status** | Draft | -| **Reviewer roles needed** | runtime implementer (Kubernetes operator), runtime implementer (non-Kubernetes), security reviewer | -| **Reviewers** | - | +| **Status** | Accepted (lead decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft), without the external review of D16) | +| **Reviewer roles needed** | runtime implementer (Kubernetes operator), runtime implementer (non-Kubernetes), security reviewer (still welcome; see Decision) | +| **Reviewers** | none yet | | **Target API version** | `v1alpha3` | | **Profiles affected** | `core`, `governance`, `security` | | **Created** | 2026-11-18 | @@ -241,7 +241,11 @@ enforce their own compliance requirements. This proposal makes no compliance pro ## Decision -- +2026-11-25: accepted for `v1alpha3` in the form written into the draft, by the project lead +(decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)). The external review +that D16 requires was not held; reviews in the roles above are still invited, and their findings are +handled as errata of the `v1alpha3` draft or as new AEPs. The `extensions` objects of this AEP stay +until AEP-0021 is decided. ## References diff --git a/aep/0016-schedule-semantics.md b/aep/0016-schedule-semantics.md index fab3845..18e487a 100644 --- a/aep/0016-schedule-semantics.md +++ b/aep/0016-schedule-semantics.md @@ -5,11 +5,11 @@ | **AEP** | 0016 | | **Title** | Schedule semantics: overlap and missed ticks | | **Authors** | @agenticworkflowprotocol | -| **Shepherd** | to be assigned (not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | +| **Shepherd** | Project lead (D22) | | **Type** | Specification | -| **Status** | Draft | -| **Reviewer roles needed** | runtime implementer (Kubernetes operator), runtime implementer (non-Kubernetes) | -| **Reviewers** | - | +| **Status** | Accepted (lead decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft), without the external review of D16) | +| **Reviewer roles needed** | runtime implementer (Kubernetes operator), runtime implementer (non-Kubernetes) (still welcome; see Decision) | +| **Reviewers** | none yet | | **Target API version** | `v1alpha3` | | **Profiles affected** | `core`, `audit` | | **Created** | 2026-11-19 | @@ -135,7 +135,10 @@ behaviour is implemented here. ## Decision -- +2026-11-25: accepted for `v1alpha3` in the form written into the draft, by the project lead +(decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)). The external review +that D16 requires was not held; reviews in the roles above are still invited, and their findings are +handled as errata of the `v1alpha3` draft or as new AEPs. ## References diff --git a/aep/0017-human-input.md b/aep/0017-human-input.md index f9ff790..43ae310 100644 --- a/aep/0017-human-input.md +++ b/aep/0017-human-input.md @@ -5,11 +5,11 @@ | **AEP** | 0017 | | **Title** | Human input during an execution | | **Authors** | @agenticworkflowprotocol | -| **Shepherd** | to be assigned (not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | +| **Shepherd** | Project lead (D22) | | **Type** | Specification | -| **Status** | Draft | -| **Reviewer roles needed** | runtime implementer, security reviewer, someone familiar with MCP elicitation | -| **Reviewers** | - | +| **Status** | Accepted (lead decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft), without the external review of D16) | +| **Reviewer roles needed** | runtime implementer, security reviewer, someone familiar with MCP elicitation (still welcome; see Decision) | +| **Reviewers** | none yet | | **Target API version** | `v1alpha3` | | **Profiles affected** | new `interaction` profile; `audit`, `mcp` | | **Created** | 2026-11-19 | @@ -177,7 +177,10 @@ runtime behaviour is implemented here. ## Decision -- +2026-11-25: accepted for `v1alpha3` in the form written into the draft, by the project lead +(decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)). The external review +that D16 requires was not held; reviews in the roles above are still invited, and their findings are +handled as errata of the `v1alpha3` draft or as new AEPs. ## References diff --git a/aep/0018-step-outputs.md b/aep/0018-step-outputs.md index c486594..4cd93df 100644 --- a/aep/0018-step-outputs.md +++ b/aep/0018-step-outputs.md @@ -5,11 +5,11 @@ | **AEP** | 0018 | | **Title** | Step output interface | | **Authors** | @agenticworkflowprotocol | -| **Shepherd** | to be assigned (not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | +| **Shepherd** | Project lead (D22) | | **Type** | Specification | -| **Status** | Draft | -| **Reviewer roles needed** | runtime implementer (Kubernetes), runtime implementer (non-Kubernetes), author of command step images | -| **Reviewers** | - | +| **Status** | Accepted (lead decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft), without the external review of D16) | +| **Reviewer roles needed** | runtime implementer (Kubernetes), runtime implementer (non-Kubernetes), author of command step images (still welcome; see Decision) | +| **Reviewers** | none yet | | **Target API version** | `v1alpha3` | | **Profiles affected** | `core` | | **Created** | 2026-11-19 | @@ -160,7 +160,10 @@ concept used the same file convention and a completion tool with real models. ## Decision -- +2026-11-25: accepted for `v1alpha3` in the form written into the draft, by the project lead +(decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)). The external review +that D16 requires was not held; reviews in the roles above are still invited, and their findings are +handled as errata of the `v1alpha3` draft or as new AEPs. ## References diff --git a/aep/0019-workflow-run-and-status.md b/aep/0019-workflow-run-and-status.md index 71be51e..efa6be1 100644 --- a/aep/0019-workflow-run-and-status.md +++ b/aep/0019-workflow-run-and-status.md @@ -5,11 +5,11 @@ | **AEP** | 0019 | | **Title** | Kind `WorkflowRun` and status conditions | | **Authors** | @agenticworkflowprotocol | -| **Shepherd** | to be assigned (not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | +| **Shepherd** | Project lead (D22) | | **Type** | Specification | -| **Status** | Draft | -| **Reviewer roles needed** | runtime implementer (Kubernetes operator), runtime implementer (non-Kubernetes), security reviewer | -| **Reviewers** | - | +| **Status** | Accepted (lead decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft), without the external review of D16) | +| **Reviewer roles needed** | runtime implementer (Kubernetes operator), runtime implementer (non-Kubernetes), security reviewer (still welcome; see Decision) | +| **Reviewers** | none yet | | **Target API version** | `v1alpha3` | | **Profiles affected** | `core` | | **Created** | 2026-11-19 | @@ -171,7 +171,10 @@ used its own run kind with a comparable shape and `Valid` and `Bound` conditions ## Decision -- +2026-11-25: accepted for `v1alpha3` in the form written into the draft, by the project lead +(decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)). The external review +that D16 requires was not held; reviews in the roles above are still invited, and their findings are +handled as errata of the `v1alpha3` draft or as new AEPs. ## References diff --git a/aep/0020-execution-pinning.md b/aep/0020-execution-pinning.md index 1638445..ac5a7b9 100644 --- a/aep/0020-execution-pinning.md +++ b/aep/0020-execution-pinning.md @@ -5,11 +5,11 @@ | **AEP** | 0020 | | **Title** | Pinning an execution to its manifests | | **Authors** | @agenticworkflowprotocol | -| **Shepherd** | to be assigned (not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | +| **Shepherd** | Project lead (D22) | | **Type** | Specification | -| **Status** | Draft | -| **Reviewer roles needed** | runtime implementer (Kubernetes operator with GitOps), security reviewer | -| **Reviewers** | - | +| **Status** | Accepted (lead decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft), without the external review of D16) | +| **Reviewer roles needed** | runtime implementer (Kubernetes operator with GitOps), security reviewer (still welcome; see Decision) | +| **Reviewers** | none yet | | **Target API version** | `v1alpha3` | | **Profiles affected** | `core`, `audit` | | **Created** | 2026-11-19 | @@ -148,7 +148,10 @@ start. ## Decision -- +2026-11-25: accepted for `v1alpha3` in the form written into the draft, by the project lead +(decision [D22](../docs/decisions.md#d22-v1alpha3-becomes-the-current-draft)). The external review +that D16 requires was not held; reviews in the roles above are still invited, and their findings are +handled as errata of the `v1alpha3` draft or as new AEPs. ## References diff --git a/conformance/README.md b/conformance/README.md index 8e2bd46..f73a2b7 100644 --- a/conformance/README.md +++ b/conformance/README.md @@ -26,8 +26,10 @@ npm test # node conformance/awp-check.mjs run ``` `npm test` validates every case of every suite, checks that every file in `valid/` and `invalid/` -is indexed, validates the manifest examples of the specification (`spec//examples/`) and -checks that the generated CustomResourceDefinitions are current. The checker selects the schema by +is indexed, validates the manifest examples of the specification (`spec//examples/`), +checks that the examples and the valid cases of `v1alpha1` and `v1alpha2` still validate after +`migrate` (`migrate:` cases, so older versions stay convertible; digests are not verified there) and checks that the generated CustomResourceDefinitions +are current. The checker selects the schema by `apiVersion`. It prints `PASS`/`FAIL` per case and exits with `1` if anything fails. `node conformance/awp-check.mjs run --json` prints the same result as JSON. diff --git a/conformance/awp-check.mjs b/conformance/awp-check.mjs index 2724aec..de4d23c 100644 --- a/conformance/awp-check.mjs +++ b/conformance/awp-check.mjs @@ -172,11 +172,45 @@ function runVersion(version) { return { index, results }; } +// Older versions stay convertible: the manifest examples of every version that `migrate` converts +// from must validate after migration to its target version (spec v1alpha3 section 14). +const MIGRATION_TARGET = 'v1alpha3'; + +/** Migrates every manifest of a file and validates the result as MIGRATION_TARGET. */ +function migratedResult({ id, file, profiles }) { + const loaded = loadManifests(fs.readFileSync(path.join(root, file), 'utf8')); + if (loaded.some(l => l.value === undefined)) return { id, file, section: '14', expect: 'valid', ok: false, detail: 'not a valid YAML manifest file' }; + const docs = loaded.map(({ value }) => stringify(migrateToV1alpha3(value).document, { lineWidth: 0 })); + // Digests are not verified: migration changes the digest input, `migrate` asks to recompute it. + const errs = errorsOf(validateText(docs.join('---\n'), file, { profiles })); + return { id, file, section: '14', expect: 'valid', ok: errs.length === 0, detail: errs[0] ? formatDiag(errs[0]) : '' }; +} + +function migratedExampleResults() { + const results = []; + for (const version of VERSIONS.slice(0, VERSIONS.indexOf(MIGRATION_TARGET))) { + const dir = suiteDir(version); + const index = JSON.parse(fs.readFileSync(path.join(dir, 'index.json'), 'utf8')); + const nonManifests = new Set(index.nonManifestExamples ?? []); + const exDir = path.join(root, 'spec', version, 'examples'); + for (const f of fs.readdirSync(exDir).filter(f => /\.ya?ml$|\.json$/.test(f) && !nonManifests.has(f)).sort()) { + results.push(migratedResult({ id: `migrate:${version}/${f}`, file: `spec/${version}/examples/${f}` })); + } + // The valid cases of the suite exercise what the examples do not: x- fields, owner shorthand, + // plain policy conditions. + for (const t of index.tests.filter(t => t.expect === 'valid')) { + results.push(migratedResult({ id: `migrate:${version}/${t.file}`, file: path.relative(root, path.join(dir, t.file)), profiles: t.profiles })); + } + } + return results; +} + function runSuite({ json }) { const runs = VERSIONS.map(runVersion); const crdProblems = checkCrds(); const results = [ ...runs.flatMap(r => r.results), + ...migratedExampleResults(), { id: 'crd:v1alpha3', file: 'schema/crd', section: '3.10', expect: 'fresh', ok: crdProblems.length === 0, detail: crdProblems.join('; ') }, ]; const failed = results.filter(r => !r.ok); diff --git a/docs/aep-process.md b/docs/aep-process.md index 04b104d..cbb6556 100644 --- a/docs/aep-process.md +++ b/docs/aep-process.md @@ -9,7 +9,8 @@ > Sections 1 to 6 and 7.0 are the adopted process. Sections 7.1 to 7.5 (conformance mark) remain > a proposal: no conformance mark exists, and no implementation has been certified or has received -> a mark. No AEP has been accepted yet. Nothing here is a +> a mark. No AEP has been accepted through the full process yet; AEP-0022 and AEPs 0015 to 0020 +> are accepted by the recorded lead decisions D19 and D22 (section 5.1, rule 1). Nothing here is a > compliance promise: 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. @@ -135,6 +136,11 @@ Decided on 2026-10-10 ([decision log D16](decisions.md#d16-external-reviewer-bef 1. **No self-acceptance.** An AEP cannot move to `Accepted` on the decision of its author alone, and not on the decision of the project lead alone. This also applies to alpha API versions. + Recorded exceptions, each limited to the AEPs it names: lead decision + [D19](decisions.md#d19-step-iteration-goes-into-v1alpha2-directly) (AEP-0022) and + [D22](decisions.md#d22-v1alpha3-becomes-the-current-draft) (AEPs 0015 to 0020). They do not + change this rule for any other AEP; reviews of the excepted AEPs are still invited and handled + as errata. 2. **Shepherd and reviewer are not the author.** The shepherd MUST NOT be listed as an author of the AEP. Before the Final Comment Period starts, at least one **reviewer** records a review in the AEP's pull request or issue (approval, or the objections that remain open). The reviewer @@ -215,7 +221,7 @@ Proposed rules: ### 6.2 Published versions are frozen -- An API version is a **draft** while its text carries the draft status (today: `v1alpha1` and `v1alpha2`). +- An API version is a **draft** while its text carries the draft status (today: `v1alpha1`, `v1alpha2` and `v1alpha3`, the current draft since D22). Drafts may change through AEPs and editorial pull requests. - When an API version is **published** (a repository release marks it as published), its normative text, JSON Schema `$id` and conformance requirements are frozen. Afterwards only diff --git a/docs/decisions.md b/docs/decisions.md index b843678..c4c6b06 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -2,8 +2,8 @@ | | | | --- | --- | -| **Status** | Record of the project owner's decisions. D1 and D2 change how this repository works. All other decisions set the direction of AEPs that are still in `Draft` or `Review`; they do not accept any AEP and do not change `v1alpha1`, except D19, which accepts AEP-0022 and starts the `v1alpha2` draft, and D20, which adds the `v1alpha3` draft and fixes the `v1alpha1` approval step schema. D21 refines D17. | -| **Decided** | 2026-10-10 (D1-D12, D16), 2026-11-18 (D17, D18), 2026-11-19 (D19, D20) and 2026-11-22 (D21) by the project lead | +| **Status** | Record of the project owner's decisions. D1 and D2 change how this repository works. All other decisions set the direction of AEPs that are still in `Draft` or `Review`; they do not accept any AEP and do not change `v1alpha1`, except D19, which accepts AEP-0022 and starts the `v1alpha2` draft, D20, which adds the `v1alpha3` draft and fixes the `v1alpha1` approval step schema, and D22, which accepts AEPs 0015 to 0020 and makes `v1alpha3` the current draft. D21 refines D17. | +| **Decided** | 2026-10-10 (D1-D12, D16), 2026-11-18 (D17, D18), 2026-11-19 (D19, D20), 2026-11-22 (D21) and 2026-11-25 (D22) by the project lead | | **Related** | [AEP process](aep-process.md), [extension prefix list](registry/extension-prefixes.md), [GOVERNANCE.md](../GOVERNANCE.md) | > Context. AWP is alpha. The owner allows the schema to change where implementation practice shows @@ -164,6 +164,7 @@ a single implementation and were removed from this log by D17. cannot be accepted by its author or by the project lead alone, also not during alpha. Each AEP lists the reviewer roles it needs in its header. Until reviews exist, every AEP stays in `Review`. +- **Exceptions**: D19 (AEP-0022) and D22 (AEPs 0015 to 0020), each limited to the AEPs it names. - **Applied in**: `docs/aep-process.md`, `aep/0000-template.md`, `aep/0001` to `aep/0011`. ### D17. The repository is implementation-neutral @@ -252,30 +253,72 @@ a single implementation and were removed from this log by D17. isolation. - **Applied in**: this log, `spec/v1alpha3/README.md`, `README.md`, `aep/0022-step-iteration.md`. +### D22. `v1alpha3` becomes the current draft + +- **Question**: since D20, `v1alpha3` contains AEPs 0015 to 0020 as written text, schema and + conformance cases, a Kubernetes runtime proof of concept was built against it, and the + validator and the editor support it. At the same time `v1alpha2` is called the current draft + and AEPs 0015 to 0020 are `Draft`. Which version do authors, tools and new AEPs target? +- **Decision**: the project lead accepts AEPs 0015 to 0020 in the form written into the + `v1alpha3` draft, and `v1alpha3` becomes the current draft. As in D19, this is an exception to + D16 for these AEPs only: they are accepted without the external review. Reviews are still + invited; their findings are handled as errata of the draft or as new AEPs. The exception deviates + from aep-process 5.1 rule 1 and the matching sentence of GOVERNANCE.md; both now name D19 and D22 + as the only recorded exceptions, so the rule stands for every other AEP. The project lead is the + shepherd of the six AEPs, as for AEP-0022. The owner waives the 5-day discussion period for this + change (alpha waiver of GOVERNANCE.md). `v1alpha3` stays an alpha draft (aep-process 6.2). The + open questions of the review guide are answered as follows: + 1. AEPs 0015 to 0020 are in the `v1alpha3` scope. + 2. The `extensions` objects of AEP-0015 stay. AEP-0021 (extension model) is not applied and + stays `Draft`; deciding it is a new decision. + 3. Spec 3.10 stays as written: the Kubernetes binding is normative for runtimes that store + manifests in Kubernetes, and AWP does not require Kubernetes. + 4. The questions of the runtime feedback stay open. +- **Consequence**: `v1alpha1` and `v1alpha2` stay supported drafts and are not changed, except + 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. +- **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), + `docs/v1alpha3-review-guide.md`, `docs/runtime-feedback.md`, `conformance/` (migrated examples and + valid cases of older versions are tested), `README.md`, `AGENTS.md`, `site/`; in the tool + repositories `awp-validator` and `awp-editor`. + ## 2. Resulting scope of `v1alpha2` +Amended by D22: the AEPs that targeted `v1alpha2` and are not accepted target `v1alpha3`, the +current draft. `v1alpha2` keeps what it has (`v1alpha1` plus AEP-0022) and only gets errata. + | AEP | Title | Target | Reason | | --- | --- | --- | --- | -| 0001 | Conditional steps (`when`) | `v1alpha2` | D5, D6 | -| 0002 | Argument constraints, call limits, no prefix wildcards | `v1alpha2` | D4 | -| 0003 | Typed handoffs | `v1alpha2` | scope decision of 2026-10-10 | -| 0004 | Event references | `v1alpha2` | D7 | -| 0005 | Kind `Prompt` | `v1alpha2` | D8 | -| 0006 | Kind `Playbook` | `v1alpha2` | D8 | -| 0007 | MCP catalog (in `mcp`, aligned with MCP) | `v1alpha2` | D8 + D9 | +| 0001 | Conditional steps (`when`) | `v1alpha3` (`v1alpha2` until D22) | D5, D6, D22 | +| 0002 | Argument constraints, call limits, no prefix wildcards | `v1alpha3` (`v1alpha2` until D22) | D4, D22 | +| 0003 | Typed handoffs | `v1alpha3` (`v1alpha2` until D22) | scope decision of 2026-10-10, D22 | +| 0004 | Event references | `v1alpha3` (`v1alpha2` until D22) | D7, D22 | +| 0005 | Kind `Prompt` | `v1alpha3` (`v1alpha2` until D22) | D8, D22 | +| 0006 | Kind `Playbook` | `v1alpha3` (`v1alpha2` until D22) | D8, D22 | +| 0007 | MCP catalog (in `mcp`, aligned with MCP) | `v1alpha3` (`v1alpha2` until D22) | D8 + D9, D22 | | 0008 | `ModelCatalog` kind, referenced by digest | `v1alpha3` | D10 | | 0009 | Audit payload levels, mandatory `contentRetention` | `v1alpha3` | D11 | -| 0010 | Digest canonicalisation | `v1alpha2` | scope decision of 2026-10-10 | -| 0011 | Required extensions | `v1alpha2` | D3 | -| 0012 | Tool steps | proposed for `v1alpha2`, not yet in scope | D18 | -| 0013 | Runtime clarifications | proposed for `v1alpha2`, not yet in scope | D18 | -| 0014 | Input examples and object schemas | proposed for `v1alpha2`, not yet in scope | D18 | -| 0022 | Step iteration (`forEach`) | `v1alpha2`, in the draft since 2026-11-19; also in the `v1alpha3` draft | D19, D20 | -| 0015-0021 | Kubernetes resource model, schedule semantics, human input, step outputs, `WorkflowRun`, execution pinning, extension model | proposed for `v1alpha3`, in its draft but not accepted | D20 | - -Since D19 `v1alpha2` exists as a draft. It is completed (no longer a draft) when every AEP in its -scope is `Accepted` and written into it, or explicitly moved to a later version by an amendment to -this table (an AEP that does not find a reviewer must not block the others). +| 0010 | Digest canonicalisation | `v1alpha3` (`v1alpha2` until D22) | scope decision of 2026-10-10, D22 | +| 0011 | Required extensions | `v1alpha3` (`v1alpha2` until D22) | D3, D22 | +| 0012 | Tool steps | proposed for `v1alpha3`, not yet in scope | D18, D22 | +| 0013 | Runtime clarifications | proposed for `v1alpha3`, not yet in scope | D18, D22 | +| 0014 | Input examples and object schemas | proposed for `v1alpha3`, not yet in scope | D18, D22 | +| 0022 | Step iteration (`forEach`) | `v1alpha2`, in the draft since 2026-11-19; also in `v1alpha3` | D19, D20 | +| 0015-0020 | Kubernetes resource model, schedule semantics, human input, step outputs, `WorkflowRun`, execution pinning | `v1alpha3`, accepted and in the draft | D20, D22 | +| 0021 | Extension model (concept) | proposed for `v1alpha3`, not applied | D20, D22 | +| 0023-0027 | Step isolation, event triggers, state, interactive execution, agent engine | proposed for `v1alpha3`, not applied | D18 | + +Since D19 `v1alpha2` exists as a draft, since D22 `v1alpha3` is the current draft. `v1alpha3` is +completed (no longer a draft) when every AEP in its scope is `Accepted` and written into it, or +explicitly moved to a later version by an amendment to this table (an AEP that does not find a +reviewer must not block the others). ## 3. Conflicts and how they are resolved @@ -285,7 +328,7 @@ D1 and D2 change how decisions are made. The process in force before (GOVERNANCE least 5 working days of public discussion for substantive changes. Resolution: the owner waived the 5-day period for that change (alpha, no third party depends on the schema yet; recorded under the "Alpha waiver" in GOVERNANCE.md). No AEP changes status beyond `Review` until the external -review (D16) has happened. +review (D16) has happened, except the AEPs named by the recorded lead decisions D19 and D22. ### C2. A larger `v1alpha2` depends on more reviews @@ -309,7 +352,8 @@ explicitly when the author does not choose one. Runtimes never assume a retentio AEPs could in principle be accepted by the project lead during alpha. D16 requires an external reviewer, and aep-process requires a Final Comment Period of at least 10 working days. Resolution: -no self-acceptance; AEPs are in `Review` and record the needed reviewer roles. +no self-acceptance; AEPs are in `Review` and record the needed reviewer roles. Recorded exceptions: +D19 (AEP-0022) and D22 (AEPs 0015 to 0020). Each names the AEPs it covers; it is no general rule. ### C7. MCP terms are external reference data diff --git a/docs/runtime-feedback.md b/docs/runtime-feedback.md index cabecc4..cf14498 100644 --- a/docs/runtime-feedback.md +++ b/docs/runtime-feedback.md @@ -36,7 +36,7 @@ portable runtimes, **should** needs a rule, **minor** is editorial or informativ | Status | Entries | | --- | --- | | Accepted and applied to `v1alpha2` and `v1alpha3` | G23 ([AEP-0022](../aep/0022-step-iteration.md), decision D19) | -| AEP drafted and applied to the `v1alpha3` draft (Draft, not accepted) | G01, G07, G08, G40; partly G14, G15 | +| AEP applied to the `v1alpha3` draft and accepted (AEPs 0018 to 0020, decision D22) | G01, G07, G08, G40; partly G14, G15 | | AEP drafted, not applied | G10, G47, G49, G50, G51, G61, G64, G67 to G69 (AEP-0023); G42 to G46, G54, G56, G86 (AEP-0024); G03, G53, G58, G87 (AEP-0025) | | New AEP proposed (number to be confirmed) | G62, G63, G73, G82, G85 (AEP-0026, interactive execution); G65, G66, G81, G83 (AEP-0027, agent engine) | | Amendment drafted in an existing AEP that is not applied yet (from section 10) | G71, G72 (AEP-0007); G74 (AEP-0002); G75 (AEP-0005); G76 (AEP-0009); G78 (AEP-0013). Open questions there or in AEP-0026: G70, G77, G84, G85 | diff --git a/docs/v1alpha3-review-guide.md b/docs/v1alpha3-review-guide.md index 1d78e22..6978875 100644 --- a/docs/v1alpha3-review-guide.md +++ b/docs/v1alpha3-review-guide.md @@ -2,7 +2,7 @@ | | | | --- | --- | -| **Status** | Informative. Explains pull request #16 and the decisions behind it; it decides nothing. Merged as the `v1alpha3` draft on top of `v1alpha2` by decision [D20](decisions.md#d20-the-kubernetes-resource-model-draft-becomes-v1alpha3); the pull request called it `v1alpha2`. | +| **Status** | Informative. Explains pull request #16 and the decisions behind it; it decides nothing. Merged as the `v1alpha3` draft on top of `v1alpha2` by decision [D20](decisions.md#d20-the-kubernetes-resource-model-draft-becomes-v1alpha3); the pull request called it `v1alpha2`. Since [D22](decisions.md#d22-v1alpha3-becomes-the-current-draft) `v1alpha3` is the current draft and AEPs 0015 to 0020 are accepted; D22 answers the questions of section 5 except the last one. | | **Audience** | Maintainers and reviewers of the `v1alpha3` draft | | **Related** | [decision log](decisions.md), [runtime feedback](runtime-feedback.md), [spec v1alpha3](../spec/v1alpha3/README.md), AEPs 0015 to 0021 | @@ -133,7 +133,7 @@ it. It is a concept: nothing in the schema changes until the project lead decide | D3 (required extensions, AEP-0011) | AEP-0021 | Unknown extension references fail closed by construction, so `requiredExtensions` is not needed. Reverses D3 if accepted. | | D12 (extension prefix list) | AEP-0021 | Domain prefixes are unique without a registry. Reverses D12 if accepted. | | Website page "Extending AWP" (`v1alpha1`) | AEP-0015, AEP-0021 | Correct for `v1alpha1`. In `v1alpha3`, `x-` fields move into `extensions`; AEP-0021 removes them. The page now says so in a note. | -| Scope table (decision log section 2) | AEPs 0015 to 0021 | Listed since D20 as proposed for `v1alpha3`, in its draft but not accepted. | +| Scope table (decision log section 2) | AEPs 0015 to 0021 | Listed since D20 as proposed for `v1alpha3`; since D22 AEPs 0015 to 0020 are accepted, AEP-0021 stays a concept. | | D19 (`v1alpha2` with step iteration, AEP-0022) | D20 | This draft starts from `v1alpha2`, so it has step iteration as section 5.6.5, combined with the step output interface (AEP-0018). | | D16 (external reviewer) | all new AEPs | Each still needs a reviewer who is not an author. | diff --git a/site/README.md b/site/README.md index 6fb1300..a2ce186 100644 --- a/site/README.md +++ b/site/README.md @@ -6,17 +6,23 @@ Static site for https://agenticworkflowprotocol.org, built with Astro Starlight. cd site npm ci # install scripts are disabled by .npmrc (ignore-scripts=true) npm run build # sync -> astro build -> dist/ (+ Pagefind index, sitemap, CNAME) -npm test # offline link check, size budget, axe-core accessibility check +npm test # marked examples, offline link check, size budget, axe-core accessibility check npm run dev # local development server ``` +- **Checked examples.** A YAML block directly after an `awp-check` comment is run through the + reference checker by `npm run check:examples` (no build needed; uses the root `npm ci`). + `` means valid under all profiles; `profiles=core,governance` narrows the + profiles, and `expect=` requires a rejection with that diagnostic code. In `.mdx` pages use + `{/* awp-check ... */}`. Mark every complete manifest; fragments and proposals stay unmarked. + - **Content.** The specification, glossary, CLI formats, changelog and community files are rendered from the repository files by `scripts/sync-content.mjs` into git-ignored paths; they are not - copied into Git. Example manifests on the site are imported from `spec/v1alpha1/examples/`. + copied into Git. Example manifests on the site are imported from `spec/v1alpha3/examples/` (the current draft). Hand-written pages are in `src/content/docs/`, the introduction page is `src/content/docs/index.mdx`; `scripts/build-llms.mjs` writes `llms.txt` and `llms-full.txt` into `dist/` at build time. - **No external requests.** System fonts, no CDN, no analytics; search is a static Pagefind index. `check:links` and `check:a11y` fail if any page references or requests an external resource. -- **Node.** Astro 5.18.2 and Starlight 0.37.7 are pinned because Astro 6 and later require Node 22. +- **Node.** Astro 7.3.3 and Starlight 0.42.6 are pinned and need Node 22.12 or later. The a11y check needs a system Chromium or Chrome (`CHROME_PATH`); no browser is downloaded. - **Languages.** English only. Add a `de` locale in `astro.config.mjs` and a `src/content/docs/de/` tree. - **Deploy.** Cloudflare Pages builds and serves the site from `main`. `.github/workflows/pages.yml` diff --git a/site/astro.config.mjs b/site/astro.config.mjs index 39e489c..0dd07fb 100644 --- a/site/astro.config.mjs +++ b/site/astro.config.mjs @@ -74,10 +74,12 @@ export default defineConfig({ ] }, { label: 'Specification', items: [ { label: 'Overview', slug: 'specification' }, + { label: 'v1alpha3 (current draft)', slug: 'specification/v1alpha3' }, + { label: 'v1alpha3: how it fits together', slug: 'specification/v1alpha3-guide' }, + { label: 'Migrating to v1alpha3', slug: 'specification/migrating-to-v1alpha3' }, { label: 'v1alpha2 (draft)', slug: 'specification/v1alpha2' }, - { label: 'v1alpha3 (proposed)', slug: 'specification/v1alpha3' }, { label: 'v1alpha1 (draft)', slug: 'specification/v1alpha1' }, - { label: 'Glossary', slug: 'specification/v1alpha2/glossary' }, + { label: 'Glossary', slug: 'specification/v1alpha3/glossary' }, { label: 'Versioning', slug: 'specification/versioning' }, { label: 'CLI output formats', slug: 'tooling/cli' }, { label: 'Changelog', slug: 'specification/changelog' }, diff --git a/site/package.json b/site/package.json index 073698e..c7392cb 100644 --- a/site/package.json +++ b/site/package.json @@ -16,7 +16,8 @@ "check:links": "node scripts/check-links.mjs", "check:budget": "node scripts/check-budget.mjs", "check:a11y": "node scripts/check-a11y.mjs", - "test": "npm run check:links && npm run check:budget && npm run check:a11y" + "check:examples": "node scripts/check-examples.mjs", + "test": "npm run check:examples && npm run check:links && npm run check:budget && npm run check:a11y" }, "dependencies": { "@astrojs/markdown-remark": "7.3.2", diff --git a/site/scripts/check-examples.mjs b/site/scripts/check-examples.mjs new file mode 100644 index 0000000..bcd0a2d --- /dev/null +++ b/site/scripts/check-examples.mjs @@ -0,0 +1,96 @@ +// Runs the YAML examples of the website through the reference checker, so that a page never shows a +// manifest the specification no longer accepts. Only marked code blocks are checked: a marker on its +// own line directly before a ```yaml fence, as an HTML comment in .md and as a JSX comment in .mdx. +// +// must be valid (all profiles) +// must be valid under these profiles +// must be rejected with this diagnostic code +// +// Unmarked blocks are fragments or proposals and are never checked. +import { readdirSync, readFileSync, statSync } from 'node:fs'; +import { join, relative, resolve, dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { validateText } from '../../conformance/awp-check.mjs'; +import { KNOWN_PROFILES } from '../../conformance/semantic.mjs'; + +const siteRoot = resolve(dirname(fileURLToPath(import.meta.url)), '..'); +const docsDir = join(siteRoot, 'src/content/docs'); +const MARKER = /^\s*(?:|\*\/\})\s*$/; +const YAML_FENCE = /^\s*```ya?ml\b/; +const FENCE_END = /^\s*```\s*$/; + +const walk = (dir) => readdirSync(dir).flatMap((name) => { + const path = join(dir, name); + return statSync(path).isDirectory() ? walk(path) : [path]; +}); + +const OPTIONS = ['profiles', 'expect']; + +/** Parses `profiles=a,b expect=code` after the marker keyword; unknown options or profiles are problems. */ +function parseOptions(text) { + const options = {}; + const problems = []; + for (const [, key, value] of text.matchAll(/(\w+)=(\S+)/g)) { + if (!OPTIONS.includes(key)) problems.push(`unknown awp-check option "${key}"`); + options[key] = value; + } + const profiles = options.profiles?.split(','); + // A misspelt profile would silently drop its rules, so it is an error like in the CLI. + for (const profile of profiles ?? []) if (!KNOWN_PROFILES.includes(profile)) problems.push(`unknown profile "${profile}"`); + return { options: { profiles, expect: options.expect }, problems }; +} + +/** The family of a diagnostic code: `security` for `security.image-not-pinned`. */ +const familyOf = (code) => code.split('.')[0]; + +/** Returns the marked YAML blocks of one page, and a problem for every marker without a YAML block. */ +function markedBlocks(lines) { + const blocks = []; + const problems = []; + lines.forEach((line, index) => { + const marker = line.match(MARKER); + if (!marker) return; + const start = index + 1; + const end = lines.findIndex((l, i) => i > start && FENCE_END.test(l)); + if (!YAML_FENCE.test(lines[start] ?? '') || end === -1) { + problems.push({ line: index + 1, message: 'awp-check marker is not followed by a complete yaml code block' }); + return; + } + const parsed = parseOptions(marker[1]); + for (const message of parsed.problems) problems.push({ line: index + 1, message }); + blocks.push({ line: start + 1, text: lines.slice(start + 1, end).join('\n'), ...parsed.options }); + }); + return { blocks, problems }; +} + +/** Checks one block and returns an error message, or null if the checker agrees with the marker. */ +function checkBlock(block, location) { + const errors = validateText(block.text, location, { profiles: block.profiles }).diagnostics + .filter((d) => d.severity === 'error'); + if (block.expect) { + // As in the conformance runner: the expected code must occur, and no error of another family. + const hit = errors.some((d) => d.code === block.expect); + const stray = errors.filter((d) => familyOf(d.code) !== familyOf(block.expect)); + return hit && stray.length === 0 ? null : `${location}: expected only ${block.expect}, got ${errors.map((d) => d.code).join(', ') || 'valid'}`; + } + return errors.length === 0 ? null : `${location}: ${errors.map((d) => `${d.code} ${d.path}`).join('; ')}`; +} + +const pages = walk(docsDir).filter((f) => /\.mdx?$/.test(f)); +const failures = []; +let checked = 0; +for (const page of pages) { + const name = relative(siteRoot, page); + const { blocks, problems } = markedBlocks(readFileSync(page, 'utf8').split('\n')); + for (const problem of problems) failures.push(`${name}:${problem.line}: ${problem.message}`); + for (const block of blocks) { + checked++; + const failure = checkBlock(block, `${name}:${block.line}`); + if (failure) failures.push(failure); + } +} +// A run that checks nothing means the markers were lost, not that every example is valid. +if (checked === 0) failures.push('no marked examples found; mark at least the Quickstart manifest'); +for (const failure of failures) console.error(failure); +console.log(`check-examples: ${checked} marked examples, ${failures.length} failed`); +process.exit(failures.length ? 1 : 0); diff --git a/site/scripts/sync-content.mjs b/site/scripts/sync-content.mjs index 731aa62..ede1ccd 100644 --- a/site/scripts/sync-content.mjs +++ b/site/scripts/sync-content.mjs @@ -10,6 +10,7 @@ const repoRoot = resolve(siteRoot, '..'); const GH = 'https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org'; const BANNER = 'Draft - v1alpha1. Fields and semantics may change before v1beta1.'; +const V1ALPHA3_BANNER = 'Draft - v1alpha3, the current draft (decision D22). Fields and semantics may change before v1beta1.'; // repo path -> { out: content path (below src/content/docs), title, description, banner } const pages = [ @@ -18,13 +19,13 @@ const pages = [ { src: 'spec/v1alpha1/glossary.md', out: 'specification/v1alpha1/glossary.md', url: '/specification/v1alpha1/glossary/', title: 'Glossary (v1alpha1)', description: 'Terms used in the AWP v1alpha1 specification.', banner: true }, { src: 'spec/v1alpha2/README.md', out: 'specification/v1alpha2/index.md', url: '/specification/v1alpha2/', - title: 'Specification v1alpha2', description: 'Normative text of the Agentic Workflow Protocol, API version v1alpha2 (draft): v1alpha1 plus step iteration.', banner: 'Draft - v1alpha2: v1alpha1 plus step iteration (forEach). Fields and semantics may change before v1beta1.' }, + title: 'Specification v1alpha2', description: 'Normative text of the Agentic Workflow Protocol, API version v1alpha2 (draft): v1alpha1 plus step iteration.', banner: 'Draft - v1alpha2: v1alpha1 plus step iteration (forEach), errata only. The current draft is v1alpha3.' }, { src: 'spec/v1alpha2/glossary.md', out: 'specification/v1alpha2/glossary.md', url: '/specification/v1alpha2/glossary/', - title: 'Glossary (v1alpha2)', description: 'Terms used in the AWP v1alpha2 specification.', banner: 'Draft - v1alpha2. Fields and semantics may change before v1beta1.' }, + title: 'Glossary (v1alpha2)', description: 'Terms used in the AWP v1alpha2 specification.', banner: 'Draft - v1alpha2, errata only. The current draft is v1alpha3.' }, { src: 'spec/v1alpha3/README.md', out: 'specification/v1alpha3/index.md', url: '/specification/v1alpha3/', - title: 'Specification v1alpha3 (proposed draft)', description: 'Working draft of AWP v1alpha3: v1alpha2 aligned with the Kubernetes resource model, built from Draft AEPs that are not accepted.', banner: 'Proposed draft - v1alpha3, built from Draft AEPs 0015 to 0021 (not accepted). The current draft is v1alpha2.' }, + title: 'Specification v1alpha3', description: 'Normative text of the Agentic Workflow Protocol, API version v1alpha3 (current draft): v1alpha2 aligned with the Kubernetes resource model.', banner: V1ALPHA3_BANNER }, { src: 'spec/v1alpha3/glossary.md', out: 'specification/v1alpha3/glossary.md', url: '/specification/v1alpha3/glossary/', - title: 'Glossary (v1alpha3)', description: 'Terms used in the AWP v1alpha3 draft.', banner: 'Proposed draft - v1alpha3. Fields and semantics may change.' }, + title: 'Glossary (v1alpha3)', description: 'Terms used in the AWP v1alpha3 specification.', banner: V1ALPHA3_BANNER }, { src: 'docs/cli.md', out: 'tooling/cli.md', url: '/tooling/cli/', title: 'CLI output formats', description: 'Output formats and exit codes of awp validate, lint, simulate, plan, run and audit (v1alpha1).', banner: true }, { src: 'CHANGELOG.md', out: 'specification/changelog.md', url: '/specification/changelog/', @@ -40,7 +41,7 @@ const pages = [ ]; const urlBySrc = new Map(pages.map((p) => [p.src, p.url])); urlBySrc.set('spec/README.md', '/specification/'); -urlBySrc.set('spec/v1alpha1/examples', '/examples/'); +urlBySrc.set('spec/v1alpha3/examples', '/examples/'); function mapTarget(fromSrc, target) { if (/^([a-z][a-z0-9+.-]*:|#|\/|mailto:)/i.test(target)) return target; @@ -81,7 +82,8 @@ for (const p of pages) { const genDir = join(siteRoot, 'src/generated/examples'); rmSync(genDir, { recursive: true, force: true }); mkdirSync(genDir, { recursive: true }); -const exDir = join(repoRoot, 'spec/v1alpha1/examples'); +// The example pages show the current draft (decision D22). +const exDir = join(repoRoot, 'spec/v1alpha3/examples'); for (const f of readdirSync(exDir).filter((f) => f.endsWith('.yaml'))) copyFileSync(join(exDir, f), join(genDir, f)); // Machine-readable schema, served at its $id (https://agenticworkflowprotocol.org/schema/...). diff --git a/site/src/components/Sidebar.astro b/site/src/components/Sidebar.astro index 9e0a5f2..a025235 100644 --- a/site/src/components/Sidebar.astro +++ b/site/src/components/Sidebar.astro @@ -5,10 +5,10 @@ import Default from '@astrojs/starlight/components/Sidebar.astro';

Specification version

- v1alpha2 (draft) + v1alpha3 (current draft) diff --git a/site/src/components/SiteTitle.astro b/site/src/components/SiteTitle.astro index b1cb430..026c202 100644 --- a/site/src/components/SiteTitle.astro +++ b/site/src/components/SiteTitle.astro @@ -4,7 +4,7 @@ import Default from '@astrojs/starlight/components/SiteTitle.astro';
- v1alpha2 (draft) + v1alpha3 (draft)