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
3 changes: 3 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
49 changes: 49 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<old>.json`, `spec/<old>/`, the conformance suites of older versions and their
examples are unchanged. Check with `git diff origin/main -- schema/awp.<old>.json spec/<old> 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/<version>.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/<version>/`.
- 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.
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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).
Expand Down
2 changes: 2 additions & 0 deletions GOVERNANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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`) |
Expand Down
3 changes: 2 additions & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 4 additions & 2 deletions aep/0001-conditional-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions aep/0002-tool-argument-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions aep/0003-typed-handoffs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions aep/0004-event-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions aep/0005-prompt-kind.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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
Expand Down
Loading