Skip to content

feat(spec): start v1alpha2 with Kubernetes resource model alignment - #16

Merged
weisser-dev merged 12 commits into
mainfrom
feat/v1alpha2-refactoring
Nov 20, 2026
Merged

weisser-dev merged 12 commits into
mainfrom
feat/v1alpha2-refactoring

Conversation

@slauger

@slauger slauger commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What and why

Start here: docs/v1alpha2-review-guide.md says what to read and what to skip: most of the 26,000 lines are generated CRDs and migrated test cases. It also gives the reason and the rejected alternatives for each change, and lists the questions only the project lead can answer.

Side by side: https://agenticworkflowprotocol.github.io/awp-v1alpha2-draft/ shows 28 examples, each with v1alpha1 on the left, the v1alpha2 draft on the right, and what changes and why.

Starts the v1alpha2 draft. AWP manifests become valid Kubernetes resources (Kubernetes resource model, KRM) and stay usable by runtimes without Kubernetes. The draft also takes in the first implementation experience from a Kubernetes runtime proof of concept (decision D18). v1alpha1 stays unchanged, apart from one fix to the approval step schema.

Nothing in this PR is accepted. Every new AEP has the status Draft and needs a reviewer who is not an author before it can move on (aep-process 5.1). The v1alpha2 text marks the parts that come from these drafts.

The new AEPs are numbered 0015 to 0021 (aep-process 3).

Discussion period: this PR is a substantive specification change under GOVERNANCE.md. It needs at least 5 working days of public discussion.

What changes

Commit Content
fix(spec) approval steps and schedule inputs v1alpha1 schema: approval steps no longer accept requiredFor and separationOfDuties (spec 5.6.1). Spec 5.2: a schedule trigger supplies no inputs, so required inputs block it. New lint lint.schedule-required-input
feat(spec) KRM alignment AEP-0015. metadata holds only ObjectMeta fields; version, owner, classification, integrity and provenance move to spec. status is reserved. The digest covers apiVersion, kind, metadata.name and spec. New spec 3.10 on object stores. schema/awp.v1alpha2.json, generated CRDs in schema/crd/, a v1alpha2 conformance suite, and awp-check.mjs migrate for v1alpha1 files
docs(aep) authors AEPs name the organisation as author
docs(aep) numbers The six drafts get the numbers 0015 to 0020
feat(spec) schedules and human input AEP-0016: concurrencyPolicy, startingDeadline, trigger.skipped. AEP-0017: input steps and humanInput for agents. Answers are never approvals. New interaction profile
feat(spec) outputs, runs, pinning AEP-0018: $AWP_OUTPUTS for command steps, complete_step for agent steps, minimum sizes, reserved AWP_ prefix. AEP-0019: kind WorkflowRun, status conditions Valid/Ready/Accepted/Succeeded, typed CRD status and printer columns. AEP-0020: an execution keeps the manifests it started with, and workflow.digest is required in workflow.started
docs runtime feedback docs/runtime-feedback.md: working list of gaps G01 to G38 from the proof of concept, with their status and the questions for the project lead
docs(aep) extension model AEP-0021 (concept, not applied to the schema): an extension model aligned with the Kubernetes Gateway API instead of x- fields. It would replace AEP-0011 and the prefix list, so it touches D3 and D12. G39 (runtime neutrality). A note on the "Extending AWP" page
docs review guide docs/v1alpha2-review-guide.md

How it was tested

  • npm test: 397/397 passed.
  • All valid cases and examples passed a server-side dry run with strict validation on a local k3s cluster (k3d). On the same cluster I also checked:
    • status subresource patches;
    • printer columns;
    • kubectl wait --for=condition=Valid;
    • generateName on WorkflowRun;
    • that the API server rejects an invalid phase.

Known limitations and open points

  • The CRDs keep unknown fields (x-kubernetes-preserve-unknown-fields), so kubectl apply --validate=strict cannot reject a misplaced field (G09). AEP-0021 proposes pruning plus CEL; it is a concept only and needs a decision first.
  • The website does not show v1alpha2 yet.
  • The questions for the project lead are in section 8 of docs/runtime-feedback.md. Among them: which drafts join the v1alpha2 scope, and whether the Kubernetes mapping should be normative or informative.

Type of change

  • Editorial (wording, typos, examples)
  • Substantive specification change (link the issue)
  • Breaking change (requires a new API version)
  • Schemas, conformance tests, tooling or website

Checklist

  • Commits are signed off (DCO: git commit -s)
  • YAML examples parse and match the normative text
  • Normative key words (MUST/SHOULD/MAY) are used deliberately and in uppercase
  • No vendor lock-in, no compliance claims, no secrets or real personal data
  • CHANGELOG.md updated under [Unreleased] for user-visible changes

… inputs

- Schema: approval steps no longer accept requiredFor and
  separationOfDuties (new definition ApprovalStep), with two
  conformance cases.
- Spec 5.2 (editorial): a schedule trigger supplies no input values,
  so required inputs block it. Fix the 5.2-triggers case, the
  invoice-processing example and the website triggers page, and add
  the checker warning lint.schedule-required-input.

Signed-off-by: Simon Lauger <simon@lauger.de>
Proposed in aep/0000-kubernetes-resource-model.md (Draft). AWP
manifests become valid Kubernetes resources and stay portable to
runtimes without Kubernetes:

- metadata holds only ObjectMeta fields (DNS-1123 names, Kubernetes
  label syntax); version, owner, classification, risk, integrity,
  signature and provenance move to spec
- extension fields move into extensions objects, owner and policy
  conditions get a single type, status is reserved
- the digest covers apiVersion, kind, metadata.name and spec, so it
  survives object stores and GitOps tools
- new section 3.10 on object stores and the Kubernetes binding
- schema/awp.v1alpha2.json, generated CRDs in schema/crd/ that keep
  unknown fields so validation can still fail closed
- conformance suite for v1alpha2, version selection by apiVersion in
  the reference checker, and awp-check.mjs migrate for v1alpha1 files

Signed-off-by: Simon Lauger <simon@lauger.de>
Signed-off-by: Simon Lauger <simon@lauger.de>
Schedule triggers (aep/0000-schedule-semantics.md, Draft):
- concurrencyPolicy allow, forbid (default) or replace for ticks
  while the previous scheduled execution still runs
- missed ticks are skipped unless startingDeadline allows one late
  start; every tick without an execution emits trigger.skipped

Human input (aep/0000-human-input.md, Draft):
- input steps and agent requests (humanInput) ask named human
  answerers for free text or a structured answer (MCP elicitation
  schema subset), with timeout and onTimeout
- answers never count as approvals, follow the payload rules in the
  input.* audit events, and belong to the new interaction profile

Schema, CRDs, semantic rules and 17 conformance cases updated.

Signed-off-by: Simon Lauger <simon@lauger.de>
Command steps write outputs as files to AWP_OUTPUTS and agent steps
complete with complete_step (spec 5.6.4). Status conditions follow
metav1.Condition with Valid and Ready (spec 3.11), the new kind
WorkflowRun requests and reports one execution (spec 10.8), and an
execution is pinned to the manifests it started with (spec 10.1).

Adds three draft AEPs, the workflowruns CRD with typed status and
condition columns, nine conformance cases, and a working list of
runtime feedback in docs/runtime-feedback.md.

Signed-off-by: Simon Lauger <simon@lauger.de>
Signed-off-by: Simon Lauger <simon@lauger.de>
Signed-off-by: Simon Lauger <simon@lauger.de>
Kubernetes resource model 0015, schedule semantics 0016, human input
0017, step outputs 0018, WorkflowRun and status 0019, execution
pinning 0020. Files renamed and all references updated.

Signed-off-by: Simon Lauger <simon@lauger.de>
Concept for discussion: support levels and named features, extensionRef
at defined extension points that fail closed, domain-prefixed values,
policy attachment with targetRefs, runtime bindings with operator-side
constraints, and CRDs with pruning and CEL. Would replace extensions
objects, AEP-0011 and the prefix list.

Adds runtime feedback G39 (runtime neutrality) and a note on the
Extending AWP page that x- fields change in the v1alpha2 draft.

Signed-off-by: Simon Lauger <simon@lauger.de>
Explains what to read in the v1alpha2 pull request, the reasons and
rejected alternatives for each change, where it touches existing
decisions, and the questions for the project lead.

Signed-off-by: Simon Lauger <simon@lauger.de>
The AWP_ prefix is reserved by spec v1alpha2 section 5.6.4. The rule also
rejected v1alpha1 manifests, whose specification reserves nothing.

Signed-off-by: Simon Lauger <simon@lauger.de>
Images referenced by tag are resolved to digests (the image index digest
for multi-platform images) when an execution starts and used for every
step and attempt; the reproducibility record lists reference and digest.
Tags stay allowed outside the security profile. A runtime that cannot run
a command step image rejects the workflow instead of running the command
elsewhere. Extends AEP-0020 and records runtime feedback G40.

Signed-off-by: Simon Lauger <simon@lauger.de>
weisser-dev added a commit that referenced this pull request Nov 20, 2026
…n top of v1alpha2

Decision D20: v1alpha2 stays the draft with step iteration (forEach, D19). The draft of
pull request #16 (Simon Lauger) becomes v1alpha3 and starts from v1alpha2, keeping the best
of both:

- v1alpha3 = v1alpha2 + Kubernetes resource model alignment, schedule semantics, human input,
  step outputs, WorkflowRun, execution pinning (AEPs 0015 to 0021, Draft) + step iteration
  as section 5.6.5, combined with the step output interface (outputs per item run,
  AWP_FOREACH_INDEX, items parsed as a JSON array, no forEach on input steps); section 14.2
  lists the changes from v1alpha2.
- Step iteration AEP renumbered 0015 -> 0022 (the numbers of the pull request were public).
- Conformance: one suite per version (conformance/, conformance/v1alpha2/,
  conformance/v1alpha3/); v1alpha2 gets the v1alpha1 cases plus forEach, v1alpha3 the forEach
  cases; migrate converts v1alpha1 and v1alpha2 to v1alpha3; CRDs regenerated.
- The v1alpha1 approval step fix of the pull request also applies to v1alpha2.
- Website: v1alpha3 as a proposed draft.
- The owner waives the 5-day discussion period for this change (alpha waiver, recorded in D20).

Co-authored-by: Simon Lauger <slauger@users.noreply.github.com>
Signed-off-by: weisser-dev <erik@weisser.dev>
@weisser-dev
weisser-dev merged commit b8a0ee8 into main Nov 20, 2026
2 checks passed
@weisser-dev

Copy link
Copy Markdown
Member

Thank you, Simon. Merged into main (dc6fb3d) with one change of numbering, decided as D20 in docs/decisions.md:

  • v1alpha2 already exists as the draft with step iteration (forEach, D19). Your draft therefore became v1alpha3 and now starts from v1alpha2: spec/v1alpha3/, schema/awp.v1alpha3.json, conformance/v1alpha3/, schema/crd/ (regenerated), docs/v1alpha3-review-guide.md. Your commits are kept; the rename is commit da6a7f1.
  • Step iteration is section 5.6.5 in v1alpha3 (your step outputs keep 5.6.4) and uses your output interface: each item run has its own $AWP_OUTPUTS / complete_step, command steps get AWP_FOREACH_INDEX, an output referenced by forEach.items is parsed as a JSON array, and forEach is not allowed on input steps. Section 14.2 lists the changes from v1alpha2.
  • AEPs 0015 to 0021 keep your numbers and stay Draft; the step iteration AEP moved to 0022.
  • Your v1alpha1 approval step fix is also applied to v1alpha2, which had the same schema bug.
  • migrate converts v1alpha1 and v1alpha2 manifests to v1alpha3. npm test: 596/596.
  • The 5-day discussion period was waived by the owner (alpha waiver, recorded in D20). The open questions of the review guide and the reviews of AEPs 0015 to 0021 continue in issues.

The side-by-side page (awp-v1alpha2-draft) still says v1alpha2 for what is now v1alpha3; could you rename it there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants