Skip to content
Open
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV

### Changed

- Runtime feedback G88 to G95 from a comparison with kagent (`docs/runtime-feedback.md` section 11, questions 12 and 13 for the project lead). New Draft AEPs: 0029 (references by name, `version` and `digest` as optional assertions, recorded resolution, `workflow.digest` for workflow steps), 0030 (kind `Model`, one object per model with limits, defaults, profiles and provider-neutral parameters; runtime model calls under model policy, data policy and budget; proposed to supersede AEP-0008), 0031 (kind `McpServer`, one object per MCP server referenced by name; proposed to replace the kind `McpCatalog` of AEP-0007), 0032 (policy shorthands as enums, conditions as match expressions) and 0033 (durations in the Go and Kubernetes format, retention in days); 0032 and 0033 target the API version after `v1alpha4`. Amendments: AEP-0003 (outputs with a schema are typed by it in conditions), AEP-0021 (policy attachment with `targetRefs` for organisation policies, schedule suspension in the binding, signatures outside `spec` as an open question), AEP-0023 (secret delivery as a header to one target, execution identity with `audiences`, no `allowTo` entries for declared model and MCP endpoints). None is accepted.
- Spec `v1alpha4` (editorial): in an object store a reference resolves by name and `version` and `digest` are assertions (3.10); a policy shorthand `true` does not allow the action (8.1); network requirements of a specific use belong in the workflow (7.5.4).
- Decision D24: `v1alpha4` is the current draft. AEP-0001 and AEP-0028 are already accepted by D23; D24 accepts no further AEP and needs no exception to the external review beyond the one D23 recorded (alpha waiver of the discussion period). AEPs that targeted `v1alpha3` and are not accepted (0002 to 0014) and the Draft AEPs 0021 and 0023 to 0027 now target `v1alpha4`; `v1alpha1`, `v1alpha2` and `v1alpha3` stay supported and only get errata. The status notes of `spec/v1alpha3/README.md` and `spec/v1alpha4/README.md` say so (no other change to the text of either version); the CRDs keep `v1alpha3` as the storage version. The website (version selector, sidebar, banners, versioning, specification overview, introduction, examples rendered from `spec/v1alpha4/examples/`, concept, governance, security, integration and implementation pages), the README, the Quickstart, the CLI output formats (`docs/cli.md`), the site plan, `llms.txt` and `SECURITY.md` use `v1alpha4`. New pages "v1alpha4: what's new" and "Migrating to v1alpha4" (from `v1alpha3` only `apiVersion` changes); their complete manifests are checked by `check:examples`.
- 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.
Expand Down
47 changes: 46 additions & 1 deletion aep/0003-typed-handoffs.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,31 @@ step's expressions as an object keyed by their reference text).

`handoff.invalid` MUST NOT contain the offending values under `payload: metadata`.

### Typing in conditions and expressions (amendment for `v1alpha4`)

`v1alpha4` reads step outputs in conditions as JSON if the text parses as a JSON value, and
otherwise as a string (spec 3.12, "Values and typing"). Without a schema, the form of the text
decides the type: an output `true` is a boolean, and an output that happens to parse as JSON
changes its type. With this AEP the type is declared instead:

1. **Outputs with `schema`.** The value of an output with `schema` is the validated JSON value. In
a condition, `steps.<id>.outputs.<name>` and every path below it have the type the schema
gives them. The runtime MUST NOT apply the parse rule of spec 3.12 to such an output: the
string output `"true"` of a schema `{ type: string }` stays a string.
2. **Outputs without `schema`.** The parse rule of spec 3.12 applies unchanged.
3. **Field access in expressions.** For an output with an object or array schema, an expression
MAY select into the value: `${{ steps.<id>.outputs.<name>.<key> }}` with one or more keys, with
the key syntax and rendering rules of `forEach.item.<key>` (spec 3.9). Validators MUST reject a
key path that the schema does not allow when the schema sets `additionalProperties: false` on
the object along the path. Field access on an output without `schema` MUST be rejected.
4. **The runtime validates itself.** A runtime MAY pass the schema to the model provider (for
example a strict structured-output mode). It MUST still validate the value itself against the
schema before the step completes. A provider mode is an optimisation, never the check.

The static rule of spec 3.12 (item 2, `<name>` is a declared output) is extended: a path below an
output with a schema SHOULD be checked against the schema, and validators SHOULD warn when a path
cannot resolve under it.

## Examples

```yaml
Expand Down Expand Up @@ -137,12 +162,24 @@ spec:
- steps.analysis.outputs.result
```

With a schema, the condition above reads `action` as a string because the schema says so, and a
task can use a single field:

```yaml
- id: notify
agent: writer
dependsOn: [analysis]
task: "Write a short note for a ${{ steps.analysis.outputs.result.severity }} finding."
```

## Schema changes

- `WorkflowSpec.properties.schemas`; output entry `schema`, `onInvalid`; step `input`.
- `$defs/SchemaSubset` (structural part); keyword, reference, recursion and limit rules as semantic
rules `schema.keyword`, `schema.ref`, `schema.recursion`, `schema.limits`, `schema.pattern`;
`input.from-not-a-dependency`, `input.from-undeclared-output`, `input.expression-not-in-from`.
- Expression references `steps.<id>.outputs.<name>.<key>` (amendment); semantic rules
`expression.field-access-without-schema`, `expression.field-not-in-schema`.

## Conformance impact

Expand All @@ -151,6 +188,9 @@ spec:
- New cases: `valid/5.8-schemas-and-handoffs.yaml`; invalid: `5.8-unsupported-keyword.yaml`,
`5.8-remote-ref.yaml`, `5.8-recursive-ref.yaml`, `5.8-pattern-without-maxlength.yaml`,
`5.6.1-input-from-not-dependency.yaml`, `5.6.1-expression-outside-from.yaml`.
- Amendment: `valid/3.12-condition-schema-typed.yaml` (a string-typed output `"true"` compared
with `"true"`); invalid: `3.9-field-access-without-schema.yaml`,
`3.9-field-not-in-schema.yaml`.

## Compatibility and migration

Expand Down Expand Up @@ -180,6 +220,10 @@ enforce their own compliance requirements. This proposal makes no compliance pro
- **Full JSON Schema**: unbounded evaluation cost, remote references, formats; rejected.
- **Schemas only on workflow inputs**: does not cover model output, which is the risky part.
- **Do nothing**: typing stays in prompts.
- **Rely on provider structured-output modes**: not portable, and not every provider has one.
Prior art: kagent (a CNCF project) defines a portable schema subset for agent output, validates
in the runtime regardless of the provider mode, and fails the task on an invalid value; this AEP
follows the same split (amendment above, item 4).

## Implementation status

Expand All @@ -204,4 +248,5 @@ Owner direction of 2026-10-10: part of the `v1alpha2` scope ([decision log secti
## References

- JSON Schema draft 2020-12.
- Spec sections 3.9, 5.6, 10.4.
- Spec sections 3.9, 3.12 (`v1alpha4`), 5.6, 10.4.
- Runtime feedback G02, G16, G66 ([docs/runtime-feedback.md](../docs/runtime-feedback.md)).
4 changes: 4 additions & 0 deletions aep/0007-mcp-connection-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ The event carries digests only, never the definition text.
referenced manifests it is resolved by the runtime and never fetched from a URL found in the
catalog.

Note (2026-11-27): [AEP-0031](0031-mcp-server-kind.md) proposes to replace this kind by a kind
`McpServer`, one object per server with the catalog, the transport and the authorization metadata
but without URL and credentials, referenced by name with optional `version` and `digest`.

## Examples

```yaml
Expand Down
4 changes: 4 additions & 0 deletions aep/0008-model-provider-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ governance status and optional aliases, referenced from a workflow (`spec.modelP
name, version and a required digest. The catalog becomes an input of model policy, data residency and budget
checks; it replaces per-runtime lookup tables that differ between runtimes.

> **Note (2026-11-27):** [AEP-0030](0030-model-kind.md) proposes to replace the list kind
> `ModelCatalog` with one `Model` object per model, referenced by name with an optional digest,
> and to supersede this AEP if accepted. This AEP is otherwise unchanged.

## Motivation

Spec 5.4.3 says provider identifiers are opaque and region and cost are runtime knowledge. The
Expand Down
22 changes: 22 additions & 0 deletions aep/0021-extension-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,14 @@ status:
- Status per target as in the Gateway API (`ancestors[]`, `Accepted` with `Invalid` or
`TargetNotFound`); the target gets a condition `PoliciesAttached`. Attached policies are pinned
with the execution (spec 10.1).
- **Amendment (2026-11-27): attachment is the primary way for organisation policies.** A policy
that a platform or governance team owns is attached with `targetRefs`; `policies.include`
(spec 8.1) is for policies the author of the workflow chooses. With `include` and its exact
`version`, every change of an organisation policy needs a change in every workflow that includes
it; with attachment, the team that owns the policy changes it once, and the record of each
execution shows which version applied. The specification SHOULD say so in 8.1, and the
`governance` profile SHOULD let an operator attach policies to all workflows of a scope (open
question 4).

### B6. Runtime bindings

Expand Down Expand Up @@ -297,6 +305,14 @@ spec:
endpoints, of secret stores and of egress destinations), and MUST reject a binding outside them
(`Accepted=False`, reason `NotAllowed`). The audit events name the binding and its version.
- Bindings are pinned with the execution like attached policies (spec 10.1).
- **Amendment (2026-11-27): suspending schedules (runtime feedback G90).** Pausing the schedule of
a workflow is an operational setting, not part of the reviewed manifest. It belongs to the
binding (for example a field `suspend`, as `CronJob.spec.suspend` in Kubernetes), so that
pausing does not change the digest. AWP reserves the reason `suspended` for the event
`trigger.skipped` (spec 10.4): while the accepted binding suspends a workflow, every due schedule
tick emits `trigger.skipped` with this reason and starts nothing. A `WorkflowRun` created by hand
(spec 10.8) and other non-schedule triggers still start while the schedule is suspended, unless
the runtime documents otherwise.

### B7. Annotations only for hints

Expand Down Expand Up @@ -421,6 +437,12 @@ of its objects should become AWP kinds is discussed in runtime feedback section
enough, or should conformance require a fixed list?
8. Conflicting bindings: B6 proposes "oldest wins" with an audited takeover. Is that acceptable, or
should a conflict block the workflow?
9. Added 2026-11-27: signatures and provenance outside `spec`. Spec 9.1 removes `spec.integrity`,
`spec.signature` and `spec.provenance` before computing the digest, so the desired state carries
data that is not desired state. Should signatures and provenance live next to the manifest
instead, as detached signatures and attestations in the style of OCI artifacts (for example
Sigstore bundles referenced by digest) or as annotations, so that `spec` is covered by the
digest without exceptions?

## Decision

Expand Down
Loading