Repository navigation
feat(spec): start v1alpha2 with Kubernetes resource model alignment - #16
Merged
Merged
Conversation
… 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>
Member
|
Thank you, Simon. Merged into
The side-by-side page ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Starts the
v1alpha2draft. 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).v1alpha1stays unchanged, apart from one fix to the approval step schema.Nothing in this PR is accepted. Every new AEP has the status
Draftand needs a reviewer who is not an author before it can move on (aep-process 5.1). Thev1alpha2text 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
fix(spec)approval steps and schedule inputsv1alpha1schema: approval steps no longer acceptrequiredForandseparationOfDuties(spec 5.6.1). Spec 5.2: a schedule trigger supplies no inputs, so required inputs block it. New lintlint.schedule-required-inputfeat(spec)KRM alignmentmetadataholds only ObjectMeta fields;version,owner, classification, integrity and provenance move tospec.statusis reserved. The digest coversapiVersion,kind,metadata.nameandspec. New spec 3.10 on object stores.schema/awp.v1alpha2.json, generated CRDs inschema/crd/, av1alpha2conformance suite, andawp-check.mjs migrateforv1alpha1filesdocs(aep)authorsdocs(aep)numbersfeat(spec)schedules and human inputconcurrencyPolicy,startingDeadline,trigger.skipped. AEP-0017: input steps andhumanInputfor agents. Answers are never approvals. Newinteractionprofilefeat(spec)outputs, runs, pinning$AWP_OUTPUTSfor command steps,complete_stepfor agent steps, minimum sizes, reservedAWP_prefix. AEP-0019: kindWorkflowRun, status conditionsValid/Ready/Accepted/Succeeded, typed CRD status and printer columns. AEP-0020: an execution keeps the manifests it started with, andworkflow.digestis required inworkflow.starteddocsruntime feedbackdocs/runtime-feedback.md: working list of gaps G01 to G38 from the proof of concept, with their status and the questions for the project leaddocs(aep)extension modelx-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" pagedocsreview guidedocs/v1alpha2-review-guide.mdHow it was tested
npm test: 397/397 passed.kubectl wait --for=condition=Valid;generateNameonWorkflowRun;Known limitations and open points
x-kubernetes-preserve-unknown-fields), sokubectl apply --validate=strictcannot reject a misplaced field (G09). AEP-0021 proposes pruning plus CEL; it is a concept only and needs a decision first.v1alpha2yet.docs/runtime-feedback.md. Among them: which drafts join thev1alpha2scope, and whether the Kubernetes mapping should be normative or informative.Type of change
Checklist
git commit -s)[Unreleased]for user-visible changes