diff --git a/CHANGELOG.md b/CHANGELOG.md index af48013..c35aba6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,31 @@ All notable changes are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.0] - 2026-11-27 + +### Added + +- AWP `v1alpha4` (decision D23 of the specification): `v1alpha3` plus step + conditions (`when`, spec 3.12) and workflow steps (`type: workflow`, spec 5.6.6), with the new + diagnostics `when.syntax`, `when.limit-exceeded`, `when.forbidden-segment`, `when.unknown-root`, + `when.unknown-step`, `when.not-a-dependency`, `when.undeclared-output`, `step.workflow-output` + and the warning `when.undeclared-input`. +- `schemas.v1alpha4`, the export `./schema/v1alpha4.json` and `migrateToV1alpha4` (mechanical + migration of `v1alpha1`, `v1alpha2` and `v1alpha3` manifests). +- Tests run the `v1alpha4` conformance suite and examples against the Node.js build and the + browser bundle. + +### Changed + +- **Breaking:** `v1alpha4` is the current draft (decision D24 of the specification). `API_VERSION`, + the default `schema` and the export `./schema.json` are now `v1alpha4`; an unsupported + `apiVersion` is checked against `v1alpha4` and rejected at `/apiVersion`. Use + `./schema/v1alpha3.json` or `schemas.v1alpha3` for the previous default. +- `v1alpha1`, `v1alpha2` and `v1alpha3` documents are validated exactly as before, against the + schema of their own `apiVersion`. The vendored specification includes `conformance/conditions.mjs` + and is updated to commit `058c267` (D23 merged); D24 changes no vendored schema or rule. +- The website starts with a `v1alpha4` manifest and shows the `v1alpha4` examples. + ## [0.3.0] - 2026-11-25 ### Changed diff --git a/README.md b/README.md index 3d84cc2..7314080 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,9 @@ [![npm](https://img.shields.io/npm/v/@agenticworkflowprotocol/validator?label=npm)](https://www.npmjs.com/package/@agenticworkflowprotocol/validator) [![ci](https://github.com/agenticworkflowprotocol/awp-validator/actions/workflows/ci.yml/badge.svg)](https://github.com/agenticworkflowprotocol/awp-validator/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) Reference validator for [Agentic Workflow Protocol (AWP)](https://agenticworkflowprotocol.org) -manifests: the YAML restrictions, the JSON Schema and the semantic rules of AWP `v1alpha3` (the -current draft), `v1alpha2` and `v1alpha1` (each document is checked against the schema of its own +manifests: the YAML restrictions, the JSON Schema and the semantic rules of AWP `v1alpha4` (the +current draft: `v1alpha3` plus step conditions `when` and workflow steps), `v1alpha3`, `v1alpha2` +and `v1alpha1` (each document is checked against the schema of its own `apiVersion`), per conformance profile, with digest verification and machine-readable diagnostics. @@ -82,10 +83,10 @@ Diagnostics follow [section 3 of the CLI output formats](https://github.com/agen `severity`, `code` (stable), `message`, `path` (JSON Pointer), `section`, `document`, `source`. Further exports: `formatText`, `formatJson` (the `awp validate` formats), `manifestDigest`, `jcs`, -`migrateToV1alpha3`, `schemas` (by API version), `schema` (current draft `v1alpha3`), `provenance`, `KNOWN_PROFILES`, `API_VERSIONS`. Each +`migrateToV1alpha3`, `migrateToV1alpha4` (from every older version), `schemas` (by API version), `schema` (current draft `v1alpha4`), `provenance`, `KNOWN_PROFILES`, `API_VERSIONS`. Each document result carries `awp`, the API version it was validated as. Types are included (`types/index.d.ts`). The schema files are also available as -`@agenticworkflowprotocol/validator/schema/v1alpha1.json`, `.../schema/v1alpha2.json`, `.../schema/v1alpha3.json` and +`@agenticworkflowprotocol/validator/schema/v1alpha1.json`, `.../schema/v1alpha2.json`, `.../schema/v1alpha3.json`, `.../schema/v1alpha4.json` and `.../schema.json` (current draft). ### Embedding in a runtime diff --git a/package.json b/package.json index 588a4b0..44c7c98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agenticworkflowprotocol/validator", - "version": "0.3.0", + "version": "0.4.0", "description": "Reference validator and CLI for Agentic Workflow Protocol (AWP) manifests: YAML rules, JSON Schema and semantic checks per conformance profile, digest verification and machine-readable diagnostics.", "license": "Apache-2.0", "type": "module", @@ -35,10 +35,11 @@ "types": "./types/index.d.ts", "default": "./dist/browser/awp-validator.mjs" }, - "./schema.json": "./vendor/awp/schema/awp.v1alpha3.json", + "./schema.json": "./vendor/awp/schema/awp.v1alpha4.json", "./schema/v1alpha1.json": "./vendor/awp/schema/awp.v1alpha1.json", "./schema/v1alpha2.json": "./vendor/awp/schema/awp.v1alpha2.json", "./schema/v1alpha3.json": "./vendor/awp/schema/awp.v1alpha3.json", + "./schema/v1alpha4.json": "./vendor/awp/schema/awp.v1alpha4.json", "./provenance.json": "./vendor/awp/PROVENANCE.json", "./package.json": "./package.json" }, diff --git a/scripts/sync-spec.mjs b/scripts/sync-spec.mjs index e08a6d2..5dcbd8f 100644 --- a/scripts/sync-spec.mjs +++ b/scripts/sync-spec.mjs @@ -22,6 +22,7 @@ const SOURCES = [ ...API_VERSIONS.map((v) => `schema/awp.${v}.json`), 'conformance/semantic.mjs', 'conformance/human-input.mjs', + 'conformance/conditions.mjs', 'conformance/migrate.mjs', 'conformance/index.json', 'conformance/valid', diff --git a/site/app.js b/site/app.js index b30bc47..a73afdd 100644 --- a/site/app.js +++ b/site/app.js @@ -3,7 +3,7 @@ import { KNOWN_PROFILES, formatJson, isOk, validateText } from './lib/awp-valida const SPEC_URL = 'https://agenticworkflowprotocol.org/specification/'; const DEBOUNCE_MS = 300; -const STARTER = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha3 +const STARTER = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 kind: Workflow metadata: name: hello-workflow diff --git a/src/browser.js b/src/browser.js index 4e3128d..a059e65 100644 --- a/src/browser.js +++ b/src/browser.js @@ -6,14 +6,15 @@ import * as schemaValidators from '../build/schema-validator.mjs'; import v1alpha1 from '../vendor/awp/schema/awp.v1alpha1.json'; import v1alpha2 from '../vendor/awp/schema/awp.v1alpha2.json'; import v1alpha3 from '../vendor/awp/schema/awp.v1alpha3.json'; +import v1alpha4 from '../vendor/awp/schema/awp.v1alpha4.json'; import provenanceJson from '../vendor/awp/PROVENANCE.json'; import { createValidator } from './validator.js'; import { API_VERSION } from './versions.js'; export { API_VERSION, API_VERSIONS, KNOWN_PROFILES, UsageError, resolveProfiles, summarize } from './validator.js'; export { jcs, manifestDigest } from '../vendor/awp/conformance/semantic.mjs'; -export { migrateToV1alpha3 } from '../vendor/awp/conformance/migrate.mjs'; +export { migrateToV1alpha3, migrateToV1alpha4 } from '../vendor/awp/conformance/migrate.mjs'; export { formatDiagnostic, formatJson, formatText, isOk } from './format.js'; -export const schemas = { v1alpha1, v1alpha2, v1alpha3 }; +export const schemas = { v1alpha1, v1alpha2, v1alpha3, v1alpha4 }; export const schema = schemas[API_VERSION]; // the current draft export const provenance = provenanceJson; export const { validateManifest, validateText } = createValidator({ schemaValidators }); diff --git a/src/index.js b/src/index.js index 4a36289..2f6cbb4 100644 --- a/src/index.js +++ b/src/index.js @@ -6,7 +6,7 @@ import { API_VERSION, API_VERSIONS } from './versions.js'; export { API_VERSION, API_VERSIONS, KNOWN_PROFILES, UsageError, resolveProfiles, summarize } from './validator.js'; export { jcs, manifestDigest } from '../vendor/awp/conformance/semantic.mjs'; -export { migrateToV1alpha3 } from '../vendor/awp/conformance/migrate.mjs'; +export { migrateToV1alpha3, migrateToV1alpha4 } from '../vendor/awp/conformance/migrate.mjs'; export { formatDiagnostic, formatJson, formatText, isOk } from './format.js'; const vendor = new URL('../vendor/awp/', import.meta.url); diff --git a/src/validator.js b/src/validator.js index 92d5028..8dfd921 100644 --- a/src/validator.js +++ b/src/validator.js @@ -3,7 +3,7 @@ // uses a precompiled one (no eval). Results follow the diagnostics of the AWP CLI output formats, // section 3 (docs/cli.md in the specification repository). import { KNOWN_PROFILES, semanticCheck } from '../vendor/awp/conformance/semantic.mjs'; -import { versionOf } from './versions.js'; +import { API_VERSIONS, versionOf } from './versions.js'; import { loadDocuments, positionAt, positionOf } from './yaml.js'; export { API_VERSION, API_VERSIONS } from './versions.js'; @@ -58,7 +58,7 @@ function identity(value) { const meta = value.metadata && typeof value.metadata === 'object' ? value.metadata : {}; const spec = value.spec && typeof value.spec === 'object' ? value.spec : {}; // From v1alpha3 on the version is a spec field (Kubernetes resource model, spec 4.2). - const version = versionOf(value) === 'v1alpha3' ? spec.version : meta.version; + const version = API_VERSIONS.indexOf(versionOf(value)) >= API_VERSIONS.indexOf('v1alpha3') ? spec.version : meta.version; return { ...(typeof value.kind === 'string' ? { kind: value.kind } : {}), ...(typeof meta.name === 'string' ? { name: meta.name } : {}), diff --git a/src/versions.js b/src/versions.js index 48f85e0..6ff26e6 100644 --- a/src/versions.js +++ b/src/versions.js @@ -3,13 +3,13 @@ // v1alpha1, vendor/awp/conformance// for later versions); the semantic rules are shared. /** Supported API versions, oldest first. */ -export const API_VERSIONS = ['v1alpha1', 'v1alpha2', 'v1alpha3']; +export const API_VERSIONS = ['v1alpha1', 'v1alpha2', 'v1alpha3', 'v1alpha4']; /** - * The current draft (decision D22 of the specification): the default schema export, the version an + * The current draft (decision D24 of the specification): the default schema export, the version an * unsupported apiVersion is checked against, and the examples of the website. */ -export const API_VERSION = 'v1alpha3'; +export const API_VERSION = 'v1alpha4'; const API_GROUP = 'awp.agenticworkflowprotocol.org/'; diff --git a/test/api.test.js b/test/api.test.js index c45135d..a66d9a4 100644 --- a/test/api.test.js +++ b/test/api.test.js @@ -1,6 +1,6 @@ import assert from 'node:assert/strict'; import { test } from 'node:test'; -import { API_VERSION, API_VERSIONS, KNOWN_PROFILES, UsageError, migrateToV1alpha3, provenance, schema, schemas, validateManifest, validateText } from '../src/index.js'; +import { API_VERSION, API_VERSIONS, KNOWN_PROFILES, UsageError, migrateToV1alpha3, migrateToV1alpha4, provenance, schema, schemas, validateManifest, validateText } from '../src/index.js'; import { parse as parseFirst, stringify } from 'yaml'; const VALID = `apiVersion: awp.agenticworkflowprotocol.org/v1alpha1 @@ -38,13 +38,13 @@ const ITERATING = `${V2.trimEnd()} `; test('each document is validated against the schema of its own apiVersion', () => { - assert.deepEqual(API_VERSIONS, ['v1alpha1', 'v1alpha2', 'v1alpha3']); + assert.deepEqual(API_VERSIONS, ['v1alpha1', 'v1alpha2', 'v1alpha3', 'v1alpha4']); assert.equal(validateText(V2).documents[0].awp, 'v1alpha2'); assert.equal(validateText(V2).documents[0].valid, true); // A document in the layout of the current draft with an unsupported apiVersion: only the version is wrong. - const current = stringify(migrateToV1alpha3(parseFirst(VALID)).document); - const unknown = validateText(current.replace('/v1alpha3', '/v1alpha99')).documents[0]; - assert.equal(unknown.awp, 'v1alpha3', 'an unsupported version is checked against the current draft'); + const current = stringify(migrateToV1alpha4(parseFirst(VALID)).document); + const unknown = validateText(current.replace('/v1alpha4', '/v1alpha99')).documents[0]; + assert.equal(unknown.awp, 'v1alpha4', 'an unsupported version is checked against the current draft'); assert.deepEqual(unknown.diagnostics.map((d) => [d.code, d.path]), [['schema.const', '/apiVersion']]); }); @@ -108,8 +108,8 @@ test('unknown profiles are a usage error', () => { test('schema, profiles and provenance are exported', () => { assert.equal(schema.$schema, 'https://json-schema.org/draft/2020-12/schema'); assert.deepEqual(KNOWN_PROFILES, ['core', 'governance', 'audit', 'security', 'mcp', 'a2a', 'interaction']); - assert.equal(schema.$id, 'https://agenticworkflowprotocol.org/schema/awp.v1alpha3.json', 'the default schema is the current draft'); - assert.equal(API_VERSION, 'v1alpha3'); + assert.equal(schema.$id, 'https://agenticworkflowprotocol.org/schema/awp.v1alpha4.json', 'the default schema is the current draft'); + assert.equal(API_VERSION, 'v1alpha4'); assert.match(provenance.source.commit, /^[0-9a-f]{40}$/); }); @@ -129,3 +129,30 @@ test('v1alpha3: governance fields in spec, forEach as in v1alpha2, migration fro const oldLayout = validateText(withInput.replace('/v1alpha2', '/v1alpha3')).documents[0]; assert.equal(oldLayout.valid, false); }); + +test('v1alpha4: when conditions and workflow steps, migration from every older version', () => { + for (const source of [VALID, V2, stringify(migrateToV1alpha3(parseFirst(VALID)).document)]) { + const { document } = migrateToV1alpha4(parseFirst(source)); + assert.equal(document.apiVersion, 'awp.agenticworkflowprotocol.org/v1alpha4'); + const v4 = validateText(stringify(document)).documents[0]; + assert.equal(v4.awp, 'v1alpha4'); + assert.equal(v4.version, '0.1.0', 'the version comes from spec in v1alpha4'); + assert.deepEqual(v4.diagnostics.filter((d) => d.severity === 'error'), []); + } + const base = migrateToV1alpha4(parseFirst(VALID)).document; + const withSteps = structuredClone(base); + withSteps.spec.workflow[0].outputs = [{ name: 'affected' }]; + withSteps.spec.workflow.push( + { id: 'fix', type: 'workflow', dependsOn: ['greet'], when: 'steps.greet.outputs.affected == true', workflow: { ref: 'cve-fixer', version: '^0.5.0', wait: true } }, + ); + const ok = validateText(stringify(withSteps)).documents[0]; + assert.deepEqual(ok.diagnostics.filter((d) => d.severity === 'error'), []); + const notDependency = structuredClone(withSteps); + notDependency.spec.workflow[1].dependsOn = []; + const bad = validateText(stringify(notDependency)).documents[0]; + assert.ok(bad.diagnostics.some((d) => d.code === 'when.not-a-dependency' && d.path === '/spec/workflow/1/when')); + // when is a v1alpha4 field: the same step is rejected in v1alpha3. + const inV3 = validateText(stringify({ ...withSteps, apiVersion: 'awp.agenticworkflowprotocol.org/v1alpha3' })).documents[0]; + assert.equal(inV3.valid, false); + assert.ok(schemas.v1alpha4.$id.endsWith('awp.v1alpha4.json')); +}); diff --git a/test/cli.test.js b/test/cli.test.js index 4af0f19..112a73c 100644 --- a/test/cli.test.js +++ b/test/cli.test.js @@ -98,7 +98,7 @@ test('--strict fails on warnings, --quiet prints only errors', () => { }); test('--version and --help', () => { - assert.match(run(['--version']).out, /^awp-validator \d+\.\d+\.\d+ \(AWP v1alpha1, v1alpha2, v1alpha3, specification [0-9a-f]{7}\)\n$/); + assert.match(run(['--version']).out, /^awp-validator \d+\.\d+\.\d+ \(AWP v1alpha1, v1alpha2, v1alpha3, v1alpha4, specification [0-9a-f]{7}\)\n$/); assert.match(run(['--help']).out, /Usage: awp validate/); }); diff --git a/types/index.d.ts b/types/index.d.ts index bc07428..7cde1ff 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,7 +1,7 @@ // Types of @agenticworkflowprotocol/validator (Node.js entry and the `./browser` entry). /** Supported AWP API versions. */ -export type ApiVersion = 'v1alpha1' | 'v1alpha2' | 'v1alpha3'; +export type ApiVersion = 'v1alpha1' | 'v1alpha2' | 'v1alpha3' | 'v1alpha4'; /** Conformance profiles of AWP (spec 11.2); `interaction` exists from v1alpha3 on. */ export type Profile = 'core' | 'governance' | 'audit' | 'security' | 'mcp' | 'a2a' | 'interaction'; @@ -68,6 +68,8 @@ export class UsageError extends Error {} /** Mechanical migration of a v1alpha1 or v1alpha2 manifest to v1alpha3 (spec v1alpha3 section 14). */ export function migrateToV1alpha3(manifest: unknown): { document: Record; notes: string[] }; +/** Mechanical migration of a v1alpha1, v1alpha2 or v1alpha3 manifest to v1alpha4 (spec v1alpha4 section 14). */ +export function migrateToV1alpha4(manifest: unknown): { document: Record; notes: string[] }; /** JSON Canonicalization Scheme (RFC 8785) for manifest values. */ export function jcs(value: unknown): string; @@ -76,12 +78,12 @@ export function manifestDigest(manifest: unknown, algorithm?: 'sha256' | 'sha384 /** Supported API versions, oldest first. */ export const API_VERSIONS: ApiVersion[]; -/** The latest supported API version. */ +/** The current draft (`v1alpha4`, decision D24 of the specification). */ export const API_VERSION: ApiVersion; export const KNOWN_PROFILES: Profile[]; /** The AWP JSON Schemas (draft 2020-12) used by the validator, by API version. */ export const schemas: Record>; -/** The JSON Schema of the latest supported API version. */ +/** The JSON Schema of the current draft (`API_VERSION`). */ export const schema: Record; /** Commit and file hashes of the vendored specification artefacts. */ export const provenance: { diff --git a/vendor/awp/PROVENANCE.json b/vendor/awp/PROVENANCE.json index 21e6176..1eb50b4 100644 --- a/vendor/awp/PROVENANCE.json +++ b/vendor/awp/PROVENANCE.json @@ -4,12 +4,13 @@ "awpVersions": [ "v1alpha1", "v1alpha2", - "v1alpha3" + "v1alpha3", + "v1alpha4" ], "source": { "repository": "https://github.com/agenticworkflowprotocol/agenticworkflowprotocol.org", - "commit": "c8f79b1efc1983d5056c787d369d01b058633a07", - "commitDate": "2026-11-26T07:57:38+01:00" + "commit": "058c2673f4899512c7d7e24fda0a21c6484cfc8b", + "commitDate": "2026-11-27T07:35:18+01:00" }, "licenses": { "Apache-2.0": "code, JSON schema, conformance manifests and examples (LICENSE)", @@ -36,17 +37,25 @@ "path": "schema/awp.v1alpha3.json", "sha256": "d90e116b461ff036147d5328d363e6a186d01145e03bae8d6b14572891838a5a" }, + { + "path": "schema/awp.v1alpha4.json", + "sha256": "f75a7356b440c67f1e23770f4c26df1ffc11e8373a35f594de45ceaa0dec74f7" + }, { "path": "conformance/semantic.mjs", - "sha256": "be480b77214c84e9fb50f97f07c43b39bb604f790fe7270a5f6ade88a2776ce5" + "sha256": "193d13e6088b773fb5234e3324226c3a86d1b04f28bcea68da6ac6227db40e94" }, { "path": "conformance/human-input.mjs", "sha256": "1f73ba336cc0ce2bf24a1a5eea1bc7c195b26371c21ccb2fcf8f9eaf7e47cac2" }, + { + "path": "conformance/conditions.mjs", + "sha256": "662893c38691469904d88623c0f291e6aa8b4012b085494098b2ca3bd5bb7538" + }, { "path": "conformance/migrate.mjs", - "sha256": "48f262401a74063b0ed8ee1d7351c4631a8fa00725fe0e3e998f882317201638" + "sha256": "1aae3c2d57c5eb022a557ea71baaa90d2ccbc819f5bf7a26afe03fdb93888117" }, { "path": "conformance/index.json", @@ -2320,6 +2329,934 @@ "path": "conformance/v1alpha3/valid/9.4-pinned-images-security-profile.yaml", "sha256": "e0bd517b673dfeac8f442705c9a585215773ad4ed71c30fd696a96c05c384aed" }, + { + "path": "conformance/v1alpha4/index.json", + "sha256": "16083aff9a53df0d86234b08df60aa50b4dd62c61133fb9f2988e34aac902e14" + }, + { + "path": "conformance/v1alpha4/invalid/10.2-invalid-integrity-mode.yaml", + "sha256": "b6243ff8f1b5569ff81bef76b4f92967c41824a29e3dccd696dac366db6542b4" + }, + { + "path": "conformance/v1alpha4/invalid/10.2-invalid-payload.yaml", + "sha256": "f679f7ffe031f35a0b362b751027fe433f7d588773085b9379823515f5c97017" + }, + { + "path": "conformance/v1alpha4/invalid/10.2-invalid-retention.yaml", + "sha256": "a472041dcf537eff7cbba8fa2c5894f58595551e567aaac0a475e1e037329801" + }, + { + "path": "conformance/v1alpha4/invalid/10.8-workflow-ref-version-not-semver.yaml", + "sha256": "e11a20dfa5f4042b4a3c27b1d0a440fc9fba6d4281ed950172761909904d11c4" + }, + { + "path": "conformance/v1alpha4/invalid/10.8-workflow-run-governance-field.yaml", + "sha256": "bcfa7cb68e6f6e75b3ca662194c8c917d6cb90ab6856e2e9ae3b5a9ca088aa81" + }, + { + "path": "conformance/v1alpha4/invalid/10.8-workflow-run-without-name.yaml", + "sha256": "4e08a5f9f6d04e18fc68f59f038d6396d0b2e4b3b8b5c09855203c7945ef7c5a" + }, + { + "path": "conformance/v1alpha4/invalid/10.8-workflow-run-without-workflow-ref.yaml", + "sha256": "f9f719701f7703bedecb9ae13b2e2c7c75fe9fafcd59b14af9d2f1bf1d18a21d" + }, + { + "path": "conformance/v1alpha4/invalid/3.1-custom-tag.yaml", + "sha256": "ddf0bb5e9f911f55622669e466ce7748dddf19c7ed48b38a99cfeb036857a9bd" + }, + { + "path": "conformance/v1alpha4/invalid/3.1-non-string-key.yaml", + "sha256": "d168bff6d8df54c49faf101f434d46ec290feddd222f0b3014bf4e282ace901c" + }, + { + "path": "conformance/v1alpha4/invalid/3.1-syntax-error.yaml", + "sha256": "debf3fefa96c759a375a274e59fdfa48caa4860566ca848351656a938a7acc65" + }, + { + "path": "conformance/v1alpha4/invalid/3.12-when-forbidden-segment.yaml", + "sha256": "ea3b4f42e85a759af3fa1fc2cbee80ac5a3d63c6ed4a17f2b28c25cbb1fc5577" + }, + { + "path": "conformance/v1alpha4/invalid/3.12-when-not-dependency.yaml", + "sha256": "1677a2cde75ece9576c7df9dbf08928d9be526dd764bce52bdf28f759f6d3fb9" + }, + { + "path": "conformance/v1alpha4/invalid/3.12-when-syntax.yaml", + "sha256": "77600dbb6993276ff629fdbf455068091e6ed9742f548ae3db31337cc6a274da" + }, + { + "path": "conformance/v1alpha4/invalid/3.12-when-too-long.yaml", + "sha256": "0969f05bbf7724ae4c1bc101555a72fe0a5fd967611045deab41f087a5b57e4c" + }, + { + "path": "conformance/v1alpha4/invalid/3.12-when-undeclared-output.yaml", + "sha256": "8c8c40d5684f574e8f416ee7e9c42a5234bff7112bbd1674e6e11262fd6bbdc5" + }, + { + "path": "conformance/v1alpha4/invalid/3.12-when-unknown-root.yaml", + "sha256": "03b279368214f06a5a79ba7c8f83efede0adff71cac8b9b344e0ca01c8e18422" + }, + { + "path": "conformance/v1alpha4/invalid/3.2-missing-api-version.yaml", + "sha256": "83ec579c25753ad2e438a473d79bdcde1ad279dd08a9538e2bd0d8172d441355" + }, + { + "path": "conformance/v1alpha4/invalid/3.2-missing-metadata.yaml", + "sha256": "f9a540b3aaa8d8975f3e4d8d4fb1fdc4ff2dc29a9e6245fc202048b83a6e42bc" + }, + { + "path": "conformance/v1alpha4/invalid/3.2-missing-spec.yaml", + "sha256": "91f8f8bf0bb4933da727e1aedc57db02507ac6aad10b04047d1ee891e29305d1" + }, + { + "path": "conformance/v1alpha4/invalid/3.2-unsupported-api-version.yaml", + "sha256": "7b7c84a650107929301748276626cfeab6a41e7018b4b5c27d2ba9a355140c48" + }, + { + "path": "conformance/v1alpha4/invalid/3.2-unsupported-kind.yaml", + "sha256": "cdc626c1cb9b51091f8ac1855abb89a5904fe97db2bc50663b3cb10d5fecd977" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-extension-field-outside-extensions.yaml", + "sha256": "5800524dae9e7483c2df5f6d5feae27e4403dcc608c5d77bba4a38d5848a67ad" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-extension-key-without-prefix.yaml", + "sha256": "5e284c59262f73ad91add25f52400bdbed82bc1808c54583eeea985dad142eb1" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-a2a-agent.yaml", + "sha256": "01a293c1446f50c25a2684c3bb8d8155e7c4c0a436f9717b16ac0c25d841833c" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-approval-step.yaml", + "sha256": "8c55d082d7b94ebb42cb94e264ae5c1552ff6fbba93351976de7b694845a8b51" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-audit-field.yaml", + "sha256": "bc90124b7f9deeec2611c20eea00d5c6be164ce17f1754be5041e1aea190d2c4" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-governance-field.yaml", + "sha256": "2800e7337a254608d0c375f9fc86167e46c5d5a1b5948cc046a17148a3efd711" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-high-risk.yaml", + "sha256": "ad1737e9ce8ca3fce896b935478b48a69b7e666c74430cbf69a6e8eead94280d" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-interaction-step.yaml", + "sha256": "ef0a43aad20c87989194b9976d6e5bac264211a86332b55644974f6f81942631" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-mcp-field.yaml", + "sha256": "fbcf28c1ec4f085d677fce22456754036ed4e93d27895b95f0a3a8cf8456a57f" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-policy-kind.yaml", + "sha256": "02c99856ff3f08ee25517fa799895309b214eae4248bc48566b44ca39847f04d" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-profile-security-field.yaml", + "sha256": "eff66fb14e62e23e75004af2a8c9bdceadefc44efe4762f469df2846bc9dfc51" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-unknown-field-near-extension.yaml", + "sha256": "a309c3835ea187e8c6d97fd4fe0f66918d2ad78f449ed3c2971c937fd925521d" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-unknown-metadata-field.yaml", + "sha256": "98c8c483540ff8124f4a008fae9b499d937a92fc73c777b4a155e43b948a5619" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-unknown-step-field.yaml", + "sha256": "1d1fba40be88bf42c813e19a45d528973c87db777916b1ddeaaa6b0a55e0dd40" + }, + { + "path": "conformance/v1alpha4/invalid/3.3-unknown-top-level-field.yaml", + "sha256": "2788ee24ab0ed0a903898fd429e630f6caad13d9ee6a93b03e9b8e8ff2a316dc" + }, + { + "path": "conformance/v1alpha4/invalid/3.4-duplicate-agent-id.yaml", + "sha256": "8da6b43453c786623086f89c860e2c782c480784e407a513adfff76b25611ba2" + }, + { + "path": "conformance/v1alpha4/invalid/3.4-duplicate-rule-id.yaml", + "sha256": "497bf267ea8cbf981e0519463bb5095e2f2e019a80dbc6acb2cd9df4bb524416" + }, + { + "path": "conformance/v1alpha4/invalid/3.4-invalid-metadata-name.yaml", + "sha256": "fc7f07df794526809ce5a7ec7adb929d79980d8bb207c56e4a0acb418c43d0fd" + }, + { + "path": "conformance/v1alpha4/invalid/3.4-uppercase-agent-id.yaml", + "sha256": "519264eab324cd2bba31bb0bc2ae6fba03bda8fade8e1ae1df2671ab93abe2f7" + }, + { + "path": "conformance/v1alpha4/invalid/3.4-uppercase-metadata-name.yaml", + "sha256": "d60695658c321de48bbe7ef1b7c8b2e6ead548a4def5b6a8546f6b2eee755fc9" + }, + { + "path": "conformance/v1alpha4/invalid/3.5-version-leading-zero.yaml", + "sha256": "3ce2348ed1285d2cda3c462299ff9421f77963bc915758274dde42a54f0f86e3" + }, + { + "path": "conformance/v1alpha4/invalid/3.5-version-not-semver.yaml", + "sha256": "3a820a769ab9f7c7de075aa14d6f2014cd415126a492e1cef2f441d0ff1d4346" + }, + { + "path": "conformance/v1alpha4/invalid/3.6-duration-unknown-unit.yaml", + "sha256": "c441927142befefd4c31bba73312c02c5817bfb6bdfff14447de16ef24cd0bc5" + }, + { + "path": "conformance/v1alpha4/invalid/3.6-duration-zero.yaml", + "sha256": "8e78534172246a3798341b4a5f9fb5256562025296f59801d2526beea1b20cfc" + }, + { + "path": "conformance/v1alpha4/invalid/3.7-date-not-calendar-valid.yaml", + "sha256": "1f7e09392faa7f71a01b8b92b5cd791808cc9a9699c288750989c96c6bbd3f85" + }, + { + "path": "conformance/v1alpha4/invalid/3.7-date-wrong-format.yaml", + "sha256": "0862d04cb4a1591b0ab1049e36121781f13f71dd0ea1a364d296c8c43ab87c6e" + }, + { + "path": "conformance/v1alpha4/invalid/3.8-digest-uppercase-hex.yaml", + "sha256": "e39b17ba4f1a74b09fb8c3f8650ceb7a68bd1d3b7b8145740740d9b7707b1a5c" + }, + { + "path": "conformance/v1alpha4/invalid/3.8-digest-wrong-length.yaml", + "sha256": "2f7bc5a1431ab780e355055e6603911a6a201292529962daec5f46754be5e12a" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-expression-function.yaml", + "sha256": "be6d03f1193fe3053bd978ac8a5a912b42d0abcf8a7936db0fc72ebc10fb8b98" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-expression-in-env-key-ref-bad.yaml", + "sha256": "70faa144fd8b8c24e4ee5ac6a74e46440e0ba486e20d082530547c6a0aa85046" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-expression-operator.yaml", + "sha256": "ace81701bd03870574064204c70d4b8ec7f82a23d9e40c80658a9e344a606d76" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-expression-unknown-root.yaml", + "sha256": "8a1a91c47b952b4e4f5f9a8ac5f92f1deeec991b3bb5a7093ae59eddab7767ad" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-expression-unterminated.yaml", + "sha256": "003eefab0f4e71bb8bb7d96d5190c632758d57fd8199eecbf0e405327dea3ab0" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-iteration-reference-outside-for-each.yaml", + "sha256": "f628e1a959f53bc415da19a749a2e33e8ed10b81d005cdfc8ac68466b6610e5e" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-step-reference-in-permissions.yaml", + "sha256": "bf5fc17cb0210abe33c1eff3c2226610e279982803ebfcaf6aee141fb91e26ce" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-step-reference-unknown-step.yaml", + "sha256": "363832eb3d3b79d257cc9feb06239b8ce7eb5255900f2cb0e94941ca78b34ee5" + }, + { + "path": "conformance/v1alpha4/invalid/3.9-step-reference-without-dependency.yaml", + "sha256": "52c9feed4bcd32e6cbbb29382260f34a3ada91605f44b8724f345f03c5b08333" + }, + { + "path": "conformance/v1alpha4/invalid/4-governance-field-in-metadata.yaml", + "sha256": "dfa55b1f86b9151636d74afd1e5bbac1bda86c1ef7df3880cd2a64dca6047f76" + }, + { + "path": "conformance/v1alpha4/invalid/4-invalid-label-key.yaml", + "sha256": "eeb609d59f86088a7c454219e05e1d1f05c9584cd89519fac9b63a4024a9da51" + }, + { + "path": "conformance/v1alpha4/invalid/4-invalid-risk-level.yaml", + "sha256": "e25e09b82d64912bfcb34a4e4095cfff5d7c15a63285187e7f60091a02254053" + }, + { + "path": "conformance/v1alpha4/invalid/4-label-value-not-string.yaml", + "sha256": "9bec1393b67c0f0a5dad0d1215dc4c72015d17257dd4db5f6013584b0c359020" + }, + { + "path": "conformance/v1alpha4/invalid/4-label-value-too-long.yaml", + "sha256": "15923029770d7e5c8819ade47e5b8095891804d871f249fc23714a8272a76c11" + }, + { + "path": "conformance/v1alpha4/invalid/4-missing-owner.yaml", + "sha256": "087286e3b14066f7f4ae7e6adf1b8b9c413313c92a5274a81952c44278b50c1b" + }, + { + "path": "conformance/v1alpha4/invalid/4-missing-version.yaml", + "sha256": "f0f24078142b06937f906f75bcd013cb7dd65c65897468cc74485463560878d1" + }, + { + "path": "conformance/v1alpha4/invalid/4-owner-string.yaml", + "sha256": "b4f5c58a975ec3029ea5fec3fdef2676dcc0b4282017efc425559c751207c975" + }, + { + "path": "conformance/v1alpha4/invalid/4-owner-without-team.yaml", + "sha256": "6c5cd21829f97608d5e439490d42f1de2650c6a864b55a7596c222c3b50cc602" + }, + { + "path": "conformance/v1alpha4/invalid/5.2-concurrency-policy-on-event-trigger.yaml", + "sha256": "2b748995024cc692c6cdc4a165b233bc49954e9ae84d41ce6d1a1f093aeff8ca" + }, + { + "path": "conformance/v1alpha4/invalid/5.2-cron-not-five-fields.yaml", + "sha256": "7ac4c359d79b21195ef3077b20a4d2134ac473b86a8d9cebd9ba7686f6384fc6" + }, + { + "path": "conformance/v1alpha4/invalid/5.2-event-without-event-type.yaml", + "sha256": "5c995823366169aaf0b004a9b255a70a9d277d1bfac3038e972c78b3d145f66c" + }, + { + "path": "conformance/v1alpha4/invalid/5.2-invalid-concurrency-policy.yaml", + "sha256": "c978a5a02e20ccd8c4e58c1ab7c74a360034500754f8cb00a9acdc352e8defee" + }, + { + "path": "conformance/v1alpha4/invalid/5.2-schedule-without-cron.yaml", + "sha256": "a662d77f7ecd1493300931005268b808889d8dfbc59a425f78cf61233e5d29ab" + }, + { + "path": "conformance/v1alpha4/invalid/5.2-starting-deadline-not-duration.yaml", + "sha256": "e99d2c0b6c78487d5241eb8acc9ef4354c7dbf75e470674167176809147348a2" + }, + { + "path": "conformance/v1alpha4/invalid/5.2-unknown-trigger-type.yaml", + "sha256": "af12154346b9ee34ade207e7266f7ca841ce36e2df0c6b6fa60ae1bc3a375cfe" + }, + { + "path": "conformance/v1alpha4/invalid/5.3-default-wrong-type.yaml", + "sha256": "d658e21b6985ef7d6ace0a250cd10003fe1dcb8a17c6454f8a3f61e0c2c6dca7" + }, + { + "path": "conformance/v1alpha4/invalid/5.3-invalid-pattern.yaml", + "sha256": "ab7f6d27ff6964a2d178f079d7db68a30f7af14cc3e21ab23814f4b34cd287ae" + }, + { + "path": "conformance/v1alpha4/invalid/5.3-required-input-with-default.yaml", + "sha256": "2f3bf52f14df1c8f2f456b92806730a1a19193f81a2d7dfb57154d8f6ceb6676" + }, + { + "path": "conformance/v1alpha4/invalid/5.3-unknown-input-type.yaml", + "sha256": "6139bc77eb4f3ed879a51f2e167d7263483bff58fdfcc6cd435d43328752a77e" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.1-inline-agent-without-model.yaml", + "sha256": "a8144d2c834082b113390b359c27f7dffe1274eecc38c25b838b9e05701fee73" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.1-instructions-and-prompt-ref.yaml", + "sha256": "747bb250861ca7eef8cf5d8d74ba05a99dba6c97d3ee9485cb05316c00e7e3d8" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.2-reference-version-range.yaml", + "sha256": "532bf4935a250f46fb336182ba31da49ced0d4db597d80f635c3ec4b04b513d7" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.2-reference-with-instructions.yaml", + "sha256": "2512ff5eb49f4848b749360a3dec094a18d4eabd065c0eabf78ed3ffc65e9a2c" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.2-reference-with-model.yaml", + "sha256": "65fd787dcd8eeecd262d86d92f70a28d51e33e5fc79d77a6818748429413570c" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.2-reference-without-version.yaml", + "sha256": "b3b0aa33ef890167e4f1304ef6facd9f7f00dfc7ec4626e812e50d2257b2a99d" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.3-invalid-model-approval-status.yaml", + "sha256": "b6acb5ef8aa7177c2a8da374fbe8204d98f9b25851a56f07107d21c78cbb2700" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.3-model-without-name.yaml", + "sha256": "52536c0b0b359e88fb637b8e213cc97b220588f1e94c624950c7a774de9b1e9f" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.4-remote-agent-http-endpoint.yaml", + "sha256": "1afa0c6b2f3664c90d84485ba7974493599f43061c20ce880489c774dcd48490" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.4-remote-agent-with-model.yaml", + "sha256": "7f7e950cb6ab5d4866ca23a075f741936dc1c880a03cc0d91a4b3cf3e8bcf4fa" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.4-remote-agent-without-endpoint.yaml", + "sha256": "4c4067fcbfe4beee3d08643f25ba011313b560556c19eae05d4337127c1260d5" + }, + { + "path": "conformance/v1alpha4/invalid/5.4.4-remote-agent-wrong-protocol.yaml", + "sha256": "e504e100444520ed044ddf81c93201b070ae7415fa4f260e152da7409fb1b2a0" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.1-duplicate-server-name.yaml", + "sha256": "3150908772846b1cefa4cb5afcca9ffb92d79410756c02324a818c297b1e972f" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.1-mcp-url-not-https.yaml", + "sha256": "abd7e5927bc4dc476ce0993b147dd6b3d7158a81ce767a69d8e347e2e0939988" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.1-streamable-http-without-url.yaml", + "sha256": "7d121af3d46bd70e0fcbbcf23cf2c1746ba4ba32756506ceac64e169ea203654" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.1-unknown-transport.yaml", + "sha256": "e94c21a1fca5fab7356b278aa04dc908d444258f113ebdf35c12ba7a8e7f4d16" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.2-builtin-tool-source-without-name.yaml", + "sha256": "82266650c6bf1b81ed58c1f899f65f38b6bc8cf7c8fe3af22858b6fdfb1a6061" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.2-mcp-tool-source-without-server.yaml", + "sha256": "34f0112b28ffab228c57411ec7d2240100b427da5a22ce6fc050ed29e9ce53bd" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.3-invalid-action-identifier-in-permissions.yaml", + "sha256": "c257a5738052e17cbe27925e320ef29c1452d5469fd21ff0babacfa3281cd2ca" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.3-wildcard-not-final-segment.yaml", + "sha256": "def9f8a9fdecfb504899ec4d14fccfbdc7d9b4139a5a360a22341cf07a342942" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.4-group-contains-group.yaml", + "sha256": "f38cd9d28a6062ab9a5688950dda9a98d5c15209ef90fc1b48b53674b1274407" + }, + { + "path": "conformance/v1alpha4/invalid/5.5.4-invalid-group-identifier.yaml", + "sha256": "b2bb2dac42ffdf02823bb11fd6259d6a2088cce2aea01c62b7361ca71124d025" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-agent-step-with-command.yaml", + "sha256": "7e12fcbf638445460b67486c025b83281a94b7c07d1f8970914e526a9422d3db" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-agent-step-without-agent.yaml", + "sha256": "97ccfbeab1d1738d5daa2d328999112f81b39af61d57516314e1c06123d3095c" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-approval-step-required-for.yaml", + "sha256": "068e8ee9114bb839359a9fdf520fdf1990ec0e35da8cd903eec7732b8a9caacf" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-approval-step-separation-of-duties.yaml", + "sha256": "30743a36274ff5c93f21c45fdead3fdaf8fcaed0bcd3c320861bf565564eaa97" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-approval-step-without-approval.yaml", + "sha256": "adcf46aa0feb6848b8d71ada1f02370e20d89a9ac954aa19dae24240f8693b5b" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-command-step-with-agent.yaml", + "sha256": "f93cfc497990ef8bf78c6666ad742ddacb75067d154de185e3f7126e09186ef0" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-command-step-without-command.yaml", + "sha256": "7ab699c108628f9d8b1318597777c00a8a774acd9292e10a5781181a6daf9fc9" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-negative-retries.yaml", + "sha256": "0e8167a0ec30927b21c06dee388e4f2f4c8e2809615ce1e3b66a750d52d54ad7" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-output-name-with-dot.yaml", + "sha256": "4cb36749abf09dcf6e0bccd7b8a07f3b441ae4ac8949d356bebc2641727c654e" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-retries-exceed-max-retries.yaml", + "sha256": "f350ca17ab5ecf00ed40c30d7ad657c0c7f25f6692ba83604b6907d84ecd9454" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.1-unknown-step-type.yaml", + "sha256": "1acdc98448d894da63d1b7c85107f736dd9b64f6099ad6e8f20b84bcad9c6b2e" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.2-env-key-invalid.yaml", + "sha256": "ce68e0fd7772d264cb4fd9253c0e3b2a398cca507c0014a3a8707446403d9cd8" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.3-dependency-cycle.yaml", + "sha256": "808e4781daa60b612ef1638eae79564668a56718026d88ec730426b73e4cfc23" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.3-depends-on-unknown-step.yaml", + "sha256": "36d2c32d362abdc4d7c574b835dbc341c6dec29b6b4d9e4e48e9f5b579119015" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.3-duplicate-step-id.yaml", + "sha256": "b2443cac25d1e9c7deb6fa83586dcf4b34f9bf33c365b49eef17f60730c0820e" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.3-self-dependency.yaml", + "sha256": "d4427ff5401e890281dc108a434f924a2ea9f14fc3009aded4de874a2f541101" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.3-undeclared-step-output.yaml", + "sha256": "d91239b03ba12efbcc1fb9619d439486055601ac0f90925638afb6afee8f31e1" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.3-unknown-agent.yaml", + "sha256": "11ad6ff1e15ec088148f2940a6142d6c6534ce8f4f89a13ea1bd4290c540c776" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.4-reserved-env.yaml", + "sha256": "8f9ae788f1f654a63dfa1a694d7dbe63e9e64f7d2eda40d1e372b7f4a20040be" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.5-for-each-concurrency-exceeds-budget.yaml", + "sha256": "9cc0764a33a88911048b5a95bd380ebb5275ddd297ab444d1df23296e441050a" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.5-for-each-input-not-array.yaml", + "sha256": "2087894bb21ad182d984056405bb6dc888bdd339c54c3c8791c5c8364d12c4b5" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-dependency.yaml", + "sha256": "fb25cf202c04f043aefa432751cf7be3b926818ed7d09c7360e285b7caab3127" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-reference.yaml", + "sha256": "30118f8d317163863ac5bccb73432b1829116aac4d86165a9b35c5f4ddeff1f5" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.5-for-each-missing-max-items.yaml", + "sha256": "74ad0fca6344d861a5693f1cb99bcb020935beea14466c5b98b3209fb556156f" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.5-for-each-on-approval-step.yaml", + "sha256": "25b1633170f34eba7c5562c04b22a73c7f638dd53f83d49572032a6cebedd6d8" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.6-workflow-inputs-expression.yaml", + "sha256": "1bcff48357d3e9069a3ff89517562ab3582975a684a5a90ac47a1621c640d3d3" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.6-workflow-ref-not-dns-label.yaml", + "sha256": "ca50b09d2853e98e847164247bde0f7526ebe2df1136a8bb584976dcec4c7aea" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.6-workflow-step-agent.yaml", + "sha256": "04ef70a41b0a736167ba69c304ea0d0cd1311e24b9fb781706b080c68604c98b" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.6-workflow-step-for-each.yaml", + "sha256": "431ae02e4a0f063f2e50261939647cb06b63e3c4a1219215ec6078b2403fa0b8" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.6-workflow-step-output.yaml", + "sha256": "32a6a091b933fc4200d4f9d02baf404f0f6686bde1e4bd70708e69795bde9de5" + }, + { + "path": "conformance/v1alpha4/invalid/5.6.6-workflow-step-without-ref.yaml", + "sha256": "db9199c38c9247162ab63d8f8720a68176398a32c9c101d44c589a77499bb121" + }, + { + "path": "conformance/v1alpha4/invalid/5.7-negative-cost.yaml", + "sha256": "adc23b9b79e35c05efff4eed4bfd9f9c81ac036a562e9fe5ebb095c1f64c8c54" + }, + { + "path": "conformance/v1alpha4/invalid/5.7-unknown-budget-field.yaml", + "sha256": "713bc6c8a0fd068608163c2214c8e5e5e60d69eb1526c27c8e76e754b474a117" + }, + { + "path": "conformance/v1alpha4/invalid/5.7-zero-concurrency.yaml", + "sha256": "81cbec863f0d56bd659e18823016543bfb7e006d3316ea75f7203433905463b6" + }, + { + "path": "conformance/v1alpha4/invalid/5.7-zero-max-steps.yaml", + "sha256": "3cb791a0b4e16cdae89cd4bfa21775e9e268057a6231bdbafeff02a0f180947b" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-agent-invalid-on-timeout.yaml", + "sha256": "9d504224dce2da3222b0e0060f66edbc7e9406e8acd81759189bc7101c02e270" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-answer-field-nested-object.yaml", + "sha256": "16ec4c20765f2db22719032c4b455d9a62190f170c94cd449903abdab352b5a0" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-default-mismatch.yaml", + "sha256": "ef7c480290a25ff49df21d1d40313dc1307df7fef30502e25829e9de8afab7ed" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-input-step-with-agent.yaml", + "sha256": "fd63a6f1037f94907f5a87ad68106bfb7fa71f419e8c8ed3d6379a49b1b1003d" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-input-step-without-input.yaml", + "sha256": "fd30211e4a0d93551fa26f6c5c6ddaa9befd1a82c0622d04ad9e271c3524d5e9" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-input-without-answerers.yaml", + "sha256": "812ebbde9c6e488e600a706653e1dd1e3a0c56ec191326dbe5e57aa058dea172" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-required-unknown-field.yaml", + "sha256": "7ad29d2a9fa118f628da8b0db512cd9f4c6b56702d732f5e0353a8e34dc62600" + }, + { + "path": "conformance/v1alpha4/invalid/5.8-use-default-without-default.yaml", + "sha256": "ee2721079be8ed7d7400190dccbbd3a6f6bbf618794a695a47cddd824b469316" + }, + { + "path": "conformance/v1alpha4/invalid/6-agent-instructions-and-prompt-ref.yaml", + "sha256": "b2d5b037ac6690b7f653275b83802f5ff6ccf26d5621555e2cce30ec27e55fb2" + }, + { + "path": "conformance/v1alpha4/invalid/6-agent-kind-with-workflow-spec.yaml", + "sha256": "445270431b885213b406fd15cde6a284e4480ba78d6dba564f7008f2457ef03f" + }, + { + "path": "conformance/v1alpha4/invalid/6-agent-with-workflow-field.yaml", + "sha256": "5d18e4df887414ec92f11794dbc610e60329b0e1417c45d6dc20b83fe2e72b17" + }, + { + "path": "conformance/v1alpha4/invalid/6-agent-without-model.yaml", + "sha256": "39d4e19ad8b0c94774dd1e8f79c152ba5dfdd6dc0ddfdebbd9e54d6671e937e5" + }, + { + "path": "conformance/v1alpha4/invalid/7.1-governance-requires-classification.yaml", + "sha256": "6247f4387b55f6dc2189e45643edf4a4ead7a803b1e4fa643dddca639dd3bdf3" + }, + { + "path": "conformance/v1alpha4/invalid/7.10-environment-without-autonomy.yaml", + "sha256": "c2264f22e4cf60292b7b150051fba79b02bc4ccc16646322afb57a79b30948ba" + }, + { + "path": "conformance/v1alpha4/invalid/7.10-invalid-autonomy.yaml", + "sha256": "09698a81d123ea7dd8b9c633c3a18f66e472a0d79a81e6461bf08c2c4c924e95" + }, + { + "path": "conformance/v1alpha4/invalid/7.2-invalid-classification.yaml", + "sha256": "3d71970dd07a428c56cfe1937f338b690f2b7987000cea3ee4f79ca86b5cae9f" + }, + { + "path": "conformance/v1alpha4/invalid/7.2-invalid-external-transfer.yaml", + "sha256": "922376137a097f0ce1cc985abb1cffae8da1a2320dbc9bb562d3b0dffd85923e" + }, + { + "path": "conformance/v1alpha4/invalid/7.4-invalid-model-policy-status.yaml", + "sha256": "2aaea59de67e69a55131656c51df3456e1bdd6bf52857826cf3314c2278ffb94" + }, + { + "path": "conformance/v1alpha4/invalid/7.5-allow-not-boolean.yaml", + "sha256": "a5bb42c2adb77b470421804f25dbbcaf4d5510fa4b8b97569aad384e65f63cb3" + }, + { + "path": "conformance/v1alpha4/invalid/7.5-invalid-default.yaml", + "sha256": "29b799ecd2d04680c2881c7082acfded55773631ff903f7fbbf8f5c17bf3fb8c" + }, + { + "path": "conformance/v1alpha4/invalid/7.5-invalid-egress.yaml", + "sha256": "16428d2c17e06b9fc7cfc0960d88339a0e5e173f8ed81a8a32899e15611bd015" + }, + { + "path": "conformance/v1alpha4/invalid/7.5-tool-without-allow.yaml", + "sha256": "66d5bc42406198979b358aa8cdb102a705054ae0123ed55d4e19ba8c7ba44742" + }, + { + "path": "conformance/v1alpha4/invalid/7.6-approver-empty.yaml", + "sha256": "6e38507c4b44e4a9408a65a40db9fae0c9e043886ff0bb9678b9f4b5cbe1cb18" + }, + { + "path": "conformance/v1alpha4/invalid/7.6-approver-role-and-user.yaml", + "sha256": "d74f61284a4836132a4fdaf7b5909e19cef1831b2a5374022a5495f890fd7fb1" + }, + { + "path": "conformance/v1alpha4/invalid/7.6-invalid-on-timeout.yaml", + "sha256": "052fc8a470c66c4aed6396d4ed9b92e6cfac31fabd4925f68b4060d5e68b924f" + }, + { + "path": "conformance/v1alpha4/invalid/7.6-min-approvals-zero.yaml", + "sha256": "cff34cd2a7b9bcb3b2d2a9c34aad7cbad25c5751faaa5fed990a53b8ee7152d0" + }, + { + "path": "conformance/v1alpha4/invalid/7.6-required-for-invalid-key.yaml", + "sha256": "c45c9dfa7ba944a732dad0f20d83e07adaf5b6e2267e1ded94796ebb0a0ef6b9" + }, + { + "path": "conformance/v1alpha4/invalid/7.8-unknown-separation-rule.yaml", + "sha256": "0001c6ba6e3ffe91ca63f3ad179d16bd86030a9cc2c40aedaecca68fd50ad3d6" + }, + { + "path": "conformance/v1alpha4/invalid/7.9-literal-password-in-free-form-value.yaml", + "sha256": "2c6d1b95c3503d3f46f6d882695a08c585f1bc4668f81f0e1795029324d81d5c" + }, + { + "path": "conformance/v1alpha4/invalid/7.9-literal-token-field.yaml", + "sha256": "622b1fea23074d0a766069c187aa012ab54d33e465e327b00234c54c171a04e8" + }, + { + "path": "conformance/v1alpha4/invalid/7.9-remote-agent-secret-ref-out-of-scope.yaml", + "sha256": "81ce7ac557b2abd6481a2955de01fcb599954bde1c0f1ac4b4e4e7b2e865524e" + }, + { + "path": "conformance/v1alpha4/invalid/7.9-secret-ref-empty-scope.yaml", + "sha256": "da0ecdf029f1202937622c9955c883246e5eb9bb8cabd7ba5bc13b4e5c7561ff" + }, + { + "path": "conformance/v1alpha4/invalid/7.9-secret-ref-out-of-scope.yaml", + "sha256": "2a2bde4019ba298f4c9ceaf3f01af8cc78117487c6d059bdfef8fc6e70e79442" + }, + { + "path": "conformance/v1alpha4/invalid/7.9-secret-ref-undeclared.yaml", + "sha256": "b0f1f3d76486f5b52857c5548912e617061a434ee1fd0e991311549b1cb40142" + }, + { + "path": "conformance/v1alpha4/invalid/7.9-secret-without-source.yaml", + "sha256": "41e06d78f3fb6d30f08d252a8802000d8ea45a9e9fe830b4dfacc5410f81f4fd" + }, + { + "path": "conformance/v1alpha4/invalid/8.1-include-without-version.yaml", + "sha256": "dc2bac15df55651120a654c73154df418f2efb9a7781980b7add7a1a0c35b2b0" + }, + { + "path": "conformance/v1alpha4/invalid/8.1-shorthand-not-boolean.yaml", + "sha256": "d1a2318b2e9aff88d123ba0a8577df95c2210ba4242da49a8258e17d1a87a159" + }, + { + "path": "conformance/v1alpha4/invalid/8.1-unknown-shorthand.yaml", + "sha256": "5c5263151ce11825ec0f1952352aff35b3f36bf08b553f6a2e03bda21772db11" + }, + { + "path": "conformance/v1alpha4/invalid/8.2-no-allow-effect.yaml", + "sha256": "20f7b8b7c2db7cb80291d672842abbc2a762e78b9b1b1dd014e69cbc9c817241" + }, + { + "path": "conformance/v1alpha4/invalid/8.2-policy-without-rules.yaml", + "sha256": "5078375e03177f4d631236e22a29e349a61789a21f4c15bee08c6505d32624c0" + }, + { + "path": "conformance/v1alpha4/invalid/8.2-require-approval-without-approval.yaml", + "sha256": "fdb83fa42c75bfd2bbc14afc1110a15968b2867090089ce899e3abcb4c414e7e" + }, + { + "path": "conformance/v1alpha4/invalid/8.2-rule-without-when.yaml", + "sha256": "fcebdb7dfe5f3d788c21572e02bf7ad1c27a7be6a626948f108c074f0dc7b3b6" + }, + { + "path": "conformance/v1alpha4/invalid/8.3-empty-when.yaml", + "sha256": "dbcb7f0665387f77fd1559c3e0c82bbd6ff9bf4cee1587b2479392253b16fead" + }, + { + "path": "conformance/v1alpha4/invalid/8.3-in-not-a-list.yaml", + "sha256": "f73bcfa64b1d3d021f47dcfcd11cbf84587bc94bbf4eb80af0cd11c48d103be8" + }, + { + "path": "conformance/v1alpha4/invalid/8.3-invalid-actor-type.yaml", + "sha256": "e52737dfd79f81d68ca9379a0c969939942a7a8e717875c2b5d835ee33a98905" + }, + { + "path": "conformance/v1alpha4/invalid/8.3-invalid-classification-value.yaml", + "sha256": "315ac72c5775fd15c67d3986f38b4705d448fe03c5243c726537d5837943565c" + }, + { + "path": "conformance/v1alpha4/invalid/8.3-ordering-operator-on-unordered-attribute.yaml", + "sha256": "02cebae40226a2143983dc8e97163426d3a9602300feb16cce2b9ac025e1bd79" + }, + { + "path": "conformance/v1alpha4/invalid/8.3-plain-condition-value.yaml", + "sha256": "11e9e75410fcdce557724d45717616638b27d1d3ccce5990157cb1ad1ee43999" + }, + { + "path": "conformance/v1alpha4/invalid/8.3-unknown-attribute.yaml", + "sha256": "e0291c82be54351142fe43beb1f9ea6ba70f189c7900ac339351582c0138162a" + }, + { + "path": "conformance/v1alpha4/invalid/9.1-digest-mismatch.yaml", + "sha256": "2ac496d814c3e4e0a041ca674cf19766c501deacd5f4346ed117b2c83e854f8d" + }, + { + "path": "conformance/v1alpha4/invalid/9.4-unpinned-command-image-security-profile.yaml", + "sha256": "88534be7198a657d8955c82302a8b0dbbc7295b861c9c0b3418c796d4b172fe4" + }, + { + "path": "conformance/v1alpha4/invalid/9.4-unpinned-mcp-image-security-profile.yaml", + "sha256": "bfbe2fc4510e2e064a6c47c78964b6d615d541e5d4e65c1b712e621e58b3ae15" + }, + { + "path": "conformance/v1alpha4/valid/10.2-audit-configuration.yaml", + "sha256": "ddbca359fe1b57da342a7ccb19efcd36ade1d540e99daed837e10fade56bbc71" + }, + { + "path": "conformance/v1alpha4/valid/10.8-workflow-run-with-status.yaml", + "sha256": "1e49d94f49e3bebdd11abc9c022b31ee0588e29cc9839dcc4d70e780c9122d65" + }, + { + "path": "conformance/v1alpha4/valid/10.8-workflow-run.yaml", + "sha256": "078209f7d4fd1f11ca6452936e4077324232c6f63d1cc94d46303c05a616f779" + }, + { + "path": "conformance/v1alpha4/valid/3.1-json-serialization.json", + "sha256": "4ddea5836731b3adfed25b4daca4f4c7697fe3d9a17daa50589d830c1d3f47de" + }, + { + "path": "conformance/v1alpha4/valid/3.1-multi-document.yaml", + "sha256": "1db88823c2aa6abd3c94ee002b6f5c77a7a244b78f18ecab1810fab0e429b2bf" + }, + { + "path": "conformance/v1alpha4/valid/3.2-minimal-workflow.yaml", + "sha256": "1c31c809111f8e46066b65f4df5af8efcf83e091c0590a3db401166320b126c9" + }, + { + "path": "conformance/v1alpha4/valid/3.2-status-and-store-metadata.yaml", + "sha256": "4a2cddc439e271d880bcc58cd9f24bcd4494debd80f972ce8ed1460929810dc1" + }, + { + "path": "conformance/v1alpha4/valid/3.3-core-profile-only.yaml", + "sha256": "d6bc8bd339d8f2d84fd8812fdc9787db9ace2a0fe71e6e558c973b1adbf527a0" + }, + { + "path": "conformance/v1alpha4/valid/3.3-extension-fields.yaml", + "sha256": "24bdb871fea3212bc2349b5b34376ba96c1d22541f0bc7ed527a0a140c40ca98" + }, + { + "path": "conformance/v1alpha4/valid/3.6-durations.yaml", + "sha256": "b6982f72ab7a9b11df536a3576308d5085ddb4f9efe82cb32f0ecc854a823061" + }, + { + "path": "conformance/v1alpha4/valid/3.9-expression-references.yaml", + "sha256": "97e2a3d45f745aab54b68ddcd49518a9ff08c2efd09650673e885f1cb4b6dbaf" + }, + { + "path": "conformance/v1alpha4/valid/4-labels-and-annotations.yaml", + "sha256": "be8209f3082a0747bcb6d522eb6a19ea152f9832c190b340d0297450c91b82f4" + }, + { + "path": "conformance/v1alpha4/valid/5.2-schedule-concurrency-and-deadline.yaml", + "sha256": "83d505638deb319b819a41b9fa8d821cdc8b6e0e5165bd8029b88820d78f6376" + }, + { + "path": "conformance/v1alpha4/valid/5.2-triggers.yaml", + "sha256": "8c48630239591918d42842acfed05ed53e960d472d9f193682ec53cd10159261" + }, + { + "path": "conformance/v1alpha4/valid/5.3-inputs.yaml", + "sha256": "8277ad2dc37220a2ab0cc0bd076706543aec110abd95a738f075aec5e4282b63" + }, + { + "path": "conformance/v1alpha4/valid/5.4.2-agent-reference.yaml", + "sha256": "3b03fc0bbd96b93da229c703dbe66a76699c2695c0dada802cc96ea0fcb443f2" + }, + { + "path": "conformance/v1alpha4/valid/5.4.4-remote-agent.yaml", + "sha256": "5e73b588e4547d4b7eb85b6a2fb49cb17fa5c6dd58f365229175815fb6bd62d3" + }, + { + "path": "conformance/v1alpha4/valid/5.5.4-action-groups.yaml", + "sha256": "9dd07ac7f9f35cc16313982ca6d0d400f2ac6eefbee623925e5dfb83e80bb481" + }, + { + "path": "conformance/v1alpha4/valid/5.6.1-when-exists-and-in.yaml", + "sha256": "472466c923654f0886104e933d52f0d2f2f81975f358e6963ac141f853ffba29" + }, + { + "path": "conformance/v1alpha4/valid/5.6.1-when-json-path-into-output.yaml", + "sha256": "41d749e97e3463f8f410a544bab883657db9115dd1f67280b99ab06de433566c" + }, + { + "path": "conformance/v1alpha4/valid/5.6.1-when-on-every-step-type.yaml", + "sha256": "d9f344088b06f87098c0449e9cd8769ac96e089f5cd05791a765f20a4f73abfd" + }, + { + "path": "conformance/v1alpha4/valid/5.6.2-command-step-env.yaml", + "sha256": "2d3a1b6a36f7406083e3cff1cf5480dda3c6f11c48da0fdb3df642f8d892795d" + }, + { + "path": "conformance/v1alpha4/valid/5.6.3-transitive-step-reference.yaml", + "sha256": "d31123353c760b2c825a787f89a579096c13d7bc6d7117b2fb72c85f46ebe267" + }, + { + "path": "conformance/v1alpha4/valid/5.6.4-command-step-outputs.yaml", + "sha256": "7c000951f7a73a6bf9f45566a899a8316e16a71863226f437b7baa5670e883b0" + }, + { + "path": "conformance/v1alpha4/valid/5.6.5-for-each.yaml", + "sha256": "90e5762e28cde5b0d66cc5456192724637cbd3c70e931231bb682df132e91cb7" + }, + { + "path": "conformance/v1alpha4/valid/5.6.6-workflow-step-no-wait.yaml", + "sha256": "a2dd6591a375a2d8fdccef818e2070364151a6c587777e596df1d2f09f75ec4b" + }, + { + "path": "conformance/v1alpha4/valid/5.6.6-workflow-step-wait.yaml", + "sha256": "349d8b53732582dfa06f6c6bdc0351869cabae3b1984f7f84312968704cd110c" + }, + { + "path": "conformance/v1alpha4/valid/5.7-nested-budgets.yaml", + "sha256": "c1c34beecb6eafc8460764b1bf9b402ee9bcf702da7103fcd2b570674434110f" + }, + { + "path": "conformance/v1alpha4/valid/5.8-agent-human-input.yaml", + "sha256": "199d53f72e7f0930bf211ba4c89a89b3741ebb966f157b462ea7766cf7121898" + }, + { + "path": "conformance/v1alpha4/valid/5.8-agent-manifest-human-input.yaml", + "sha256": "41a69bd90d4387f37886617177673ea64bddb6d00968c8b566c911786fb9b47f" + }, + { + "path": "conformance/v1alpha4/valid/5.8-input-step-free-text.yaml", + "sha256": "147e50b0e47675bc3bc8e2d98c6e5e832645ca55e27830c708b936651f3baf1f" + }, + { + "path": "conformance/v1alpha4/valid/5.8-input-step.yaml", + "sha256": "afbe1bc82725da8cc27a9ac3ea8ae027478f18de115e7b818f0f7c5461af4061" + }, + { + "path": "conformance/v1alpha4/valid/6-agent-manifest.yaml", + "sha256": "3fcae7483d081e9436261b6eb099d520e8867d0f19852d1cd9bdf7a4652f40a8" + }, + { + "path": "conformance/v1alpha4/valid/6-agent-prompt-ref.yaml", + "sha256": "b1e1dc0fda7811ff9f7d451cbce769244b489bc9db37af7342d7548438288a81" + }, + { + "path": "conformance/v1alpha4/valid/7.10-environments.yaml", + "sha256": "c4c744b7938996109179774fe9a959d3717ba033c5b4b0f8ae8bb07541dbfb38" + }, + { + "path": "conformance/v1alpha4/valid/7.2-data-and-model-policy.yaml", + "sha256": "28e9a552e16f2d15250af97e5bd616080bbfcf820b52b274b542ea9e22b30639" + }, + { + "path": "conformance/v1alpha4/valid/7.5-permissions.yaml", + "sha256": "63ca93b32ec75681712a03e39985c60e05540e7d2eeb997dbf52d4adb0019b8b" + }, + { + "path": "conformance/v1alpha4/valid/7.6-approval-and-separation-of-duties.yaml", + "sha256": "d09572d5b88fd43c814002fa49d9fb785e00712bccb96e82b3ecaab8518ebcdf" + }, + { + "path": "conformance/v1alpha4/valid/8.1-policy-shorthands.yaml", + "sha256": "0c7dad08678088b4f793842c112b9c50f6414a89d24a306fd7efb5c81e294582" + }, + { + "path": "conformance/v1alpha4/valid/8.2-policy-manifest.yaml", + "sha256": "60dab378594264ed5e4ec6bfac74f65ea4fbf8dd69e46646bfb8b49a7d381d8d" + }, + { + "path": "conformance/v1alpha4/valid/8.3-conditions.yaml", + "sha256": "0dab8dede4d38009360bb4c4c68b5b9f7ff4849a4d9a1be50ca37b71bfef08ac" + }, + { + "path": "conformance/v1alpha4/valid/9.1-digest-ignores-deployment-fields.yaml", + "sha256": "9b561520f443a234992456a1a8085e4e43ab99e3c7880253d0d622e44b244103" + }, + { + "path": "conformance/v1alpha4/valid/9.1-digest-verified.yaml", + "sha256": "005b0dd85e826a4874d612fce7340fe91812cf5fc5be80c6ee463e9d1b71fe0d" + }, + { + "path": "conformance/v1alpha4/valid/9.4-pinned-images-security-profile.yaml", + "sha256": "ff7f80669f85340d2e5620f686ce6e6da4addb05fa1cc1797a04d04cb087e46e" + }, { "path": "spec/v1alpha1/examples/audit-events.yaml", "sha256": "293c50db5e705023295b92252fa91c5870b444e93e64929a346b209625eaa050" @@ -2439,6 +3376,54 @@ { "path": "spec/v1alpha3/examples/vulnerability-fixer.workflow.yaml", "sha256": "fda12f98b7903e6884c48b5c89e6a2e1b6177c85ba10de1d7d2db26e3abd20cb" + }, + { + "path": "spec/v1alpha4/examples/audit-events.yaml", + "sha256": "293c50db5e705023295b92252fa91c5870b444e93e64929a346b209625eaa050" + }, + { + "path": "spec/v1alpha4/examples/conformance-statement.yaml", + "sha256": "66129df962e076219b8fd307d518f553746ea0fdb4d9e2d8efae10ee8b062d86" + }, + { + "path": "spec/v1alpha4/examples/cve-risk-then-fix.yaml", + "sha256": "35a70e22c5c92803b135f15262a28aeda25524046f7d86f8dff9e472e1776002" + }, + { + "path": "spec/v1alpha4/examples/eu-data-residency.policy.yaml", + "sha256": "96e3cad0e1bed55803098e796abc9c1a2a3e041267d0962b420cbe2c77b093f8" + }, + { + "path": "spec/v1alpha4/examples/execution-record.yaml", + "sha256": "2b2768065b2655ebbd3a93f898d241a486046aabf9e2780b1aafa5ca768748ef" + }, + { + "path": "spec/v1alpha4/examples/image-review.workflow.yaml", + "sha256": "95641bc8442d0bf0e48cbab9d70d371afb552c5deb266dffde28ee6dcd972482" + }, + { + "path": "spec/v1alpha4/examples/invoice-extractor.agent.yaml", + "sha256": "49cbf02093335dc7a5ffab6a6746351b70fc6b740fc7ccc922bd9860fd349f76" + }, + { + "path": "spec/v1alpha4/examples/invoice-processing.workflow.yaml", + "sha256": "ae853e6e5d5147955415fd52ce9dcf7f7da3a817ed063fb8f3e4195af81f5de0" + }, + { + "path": "spec/v1alpha4/examples/no-production-autonomy.policy.yaml", + "sha256": "97be8d2763bc78bba922ed931c7ca3418304fef28e2593c99b87711085d1beaa" + }, + { + "path": "spec/v1alpha4/examples/security-review.a2a.workflow.yaml", + "sha256": "a2b90fdc0ce2022627d37b5efa4a65cfb73ab839138fb81b6c519aefbd2a6664" + }, + { + "path": "spec/v1alpha4/examples/vulnerability-fixer.run.yaml", + "sha256": "0eb66c684c995e63b454f82d4e6eebac6b37076f7893d7ff7f8ae0c4c26d73b7" + }, + { + "path": "spec/v1alpha4/examples/vulnerability-fixer.workflow.yaml", + "sha256": "8054808db3364d17e337195e883f0ed99fe04dd9c718898858409d04d25c1e26" } ] } diff --git a/vendor/awp/conformance/conditions.mjs b/vendor/awp/conformance/conditions.mjs new file mode 100644 index 0000000..5a1f666 --- /dev/null +++ b/vendor/awp/conformance/conditions.mjs @@ -0,0 +1,241 @@ +// Static checks of step conditions (`when`, v1alpha4 spec 3.12): tokenizer and parser of the +// restricted condition grammar with its limits. Evaluation is the runtime's job; this module only +// decides whether a condition is well-formed and which paths it reads. +// +// parseCondition(text) -> { ok: true, paths } | { ok: false, code, message } +// +// `paths` lists every path the condition reads: { root: 'inputs' | 'steps' | 'execution', +// name, stepId?, segments }. + +export const CONDITION_LIMITS = Object.freeze({ + maxLength: 512, + maxTokens: 128, + maxDepth: 16, + maxPathSegments: 16, + maxListItems: 32, + maxStringLength: 256, + maxIndex: 10000, +}); + +const FORBIDDEN_SEGMENTS = new Set(['__proto__', 'prototype', 'constructor']); +const COMPARISON_OPERATORS = new Set(['==', '!=', '<', '<=', '>', '>=', 'in']); +const KEYWORDS = new Set(['true', 'false', 'null', 'in', 'exists']); +const PUNCTUATION = ['&&', '||', '==', '!=', '<=', '>=', '<', '>', '!', '(', ')', '[', ']', ',', '.']; +const NUMBER_RE = /^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?/; +const NAME_RE = /^[A-Za-z_][A-Za-z0-9_-]*/; +const STRING_RE = /^"(?:[^"\\\u0000-\u001f]|\\(?:["\\/bfnrt]|u[0-9a-fA-F]{4}))*"/; + +class ConditionError extends Error { + constructor(code, message) { + super(message); + this.code = code; + } +} + +const syntaxError = message => new ConditionError('when.syntax', message); +const limitError = message => new ConditionError('when.limit-exceeded', message); + +function readToken(text, pos) { + const rest = text.slice(pos); + let m; + if ((m = STRING_RE.exec(rest))) { + const value = JSON.parse(m[0]); + if (value.length > CONDITION_LIMITS.maxStringLength) throw limitError(`string literal longer than ${CONDITION_LIMITS.maxStringLength} characters`); + return { kind: 'string', value, length: m[0].length }; + } + if (rest[0] === '"') throw syntaxError(`unterminated or invalid string at offset ${pos}`); + if ((m = NUMBER_RE.exec(rest))) return { kind: 'number', value: Number(m[0]), text: m[0], length: m[0].length }; + if ((m = NAME_RE.exec(rest))) return { kind: KEYWORDS.has(m[0]) ? m[0] : 'name', value: m[0], length: m[0].length }; + const punct = PUNCTUATION.find(p => rest.startsWith(p)); + if (punct) return { kind: punct, value: punct, length: punct.length }; + throw syntaxError(`unexpected character "${rest[0]}" at offset ${pos}`); +} + +/** Splits a condition into tokens; throws ConditionError. */ +export function tokenize(text) { + const tokens = []; + let pos = 0; + while (pos < text.length) { + if (/\s/.test(text[pos])) { pos++; continue; } + const token = readToken(text, pos); + tokens.push({ ...token, pos }); + pos += token.length; + if (tokens.length > CONDITION_LIMITS.maxTokens) throw limitError(`more than ${CONDITION_LIMITS.maxTokens} tokens`); + } + return tokens; +} + +/** Recursive descent parser over the token list; collects the paths the condition reads. */ +class Parser { + constructor(tokens) { + this.tokens = tokens; + this.index = 0; + this.depth = 0; + this.paths = []; + } + + peek() { return this.tokens[this.index]; } + + next() { return this.tokens[this.index++]; } + + expect(kind) { + const token = this.next(); + if (token?.kind !== kind) throw syntaxError(`expected "${kind}" ${token ? `at offset ${token.pos}` : 'at the end'}`); + return token; + } + + accept(kind) { + if (this.peek()?.kind !== kind) return false; + this.index++; + return true; + } + + nested(parse) { + if (++this.depth > CONDITION_LIMITS.maxDepth) throw limitError(`nesting deeper than ${CONDITION_LIMITS.maxDepth}`); + parse(); + this.depth--; + } + + parseCondition() { + if (this.tokens.length === 0) throw syntaxError('empty condition'); + this.parseOr(); + const rest = this.peek(); + if (rest) throw syntaxError(`unexpected "${rest.value}" at offset ${rest.pos}`); + } + + parseOr() { + this.parseAnd(); + while (this.accept('||')) this.parseAnd(); + } + + parseAnd() { + this.parseUnary(); + while (this.accept('&&')) this.parseUnary(); + } + + parseUnary() { + if (this.accept('!')) return this.nested(() => this.parseUnary()); + this.parseOperand(); + if (COMPARISON_OPERATORS.has(this.peek()?.kind)) { + this.next(); + this.parseOperand(); + } + } + + parseOperand() { + const token = this.peek(); + if (!token) throw syntaxError('unexpected end of condition'); + if (['string', 'number', 'true', 'false', 'null'].includes(token.kind)) return this.next(); + if (token.kind === '[') return this.parseList(); + if (token.kind === '(') return this.parseGroup(); + if (token.kind === 'exists') return this.parseExists(); + if (token.kind === 'name') return this.parsePath(); + throw syntaxError(`unexpected "${token.value}" at offset ${token.pos}`); + } + + parseGroup() { + this.expect('('); + this.nested(() => this.parseOr()); + this.expect(')'); + } + + parseExists() { + this.expect('exists'); + this.expect('('); + this.parsePath(); + this.expect(')'); + } + + parseList() { + this.expect('['); + let items = 0; + if (!this.accept(']')) { + do { + const token = this.next(); + if (!['string', 'number', 'true', 'false', 'null'].includes(token?.kind)) throw syntaxError('list items MUST be literals'); + if (++items > CONDITION_LIMITS.maxListItems) throw limitError(`list with more than ${CONDITION_LIMITS.maxListItems} items`); + } while (this.accept(',')); + this.expect(']'); + } + } + + /** A name after "." may also be a keyword (for example an output named `in`). */ + parseName() { + const token = this.next(); + if (token?.kind !== 'name' && !KEYWORDS.has(token?.kind)) throw syntaxError(`expected a name ${token ? `at offset ${token.pos}` : 'at the end'}`); + if (FORBIDDEN_SEGMENTS.has(token.value)) throw new ConditionError('when.forbidden-segment', `path segment "${token.value}" is not allowed`); + return token.value; + } + + parseDotName() { + this.expect('.'); + return this.parseName(); + } + + parseRoot() { + const root = this.parseName(); + if (root === 'inputs') return { root, name: this.parseDotName() }; + if (root === 'execution') { + const name = this.parseDotName(); + if (name !== 'environment') throw new ConditionError('when.unknown-root', `execution.${name} is not readable in conditions; only execution.environment is`); + return { root, name }; + } + if (root === 'steps') { + const stepId = this.parseDotName(); + if (this.parseDotName() !== 'outputs') throw syntaxError(`expected steps.${stepId}.outputs.`); + return { root, stepId, name: this.parseDotName() }; + } + throw new ConditionError('when.unknown-root', `unknown root "${root}"; conditions read inputs, steps..outputs and execution.environment`); + } + + parsePath() { + const path = { ...this.parseRoot(), segments: [] }; + while (['.', '['].includes(this.peek()?.kind)) { + path.segments.push(this.accept('.') ? this.parseName() : this.parseIndex()); + if (path.segments.length > CONDITION_LIMITS.maxPathSegments) throw limitError(`path with more than ${CONDITION_LIMITS.maxPathSegments} segments`); + } + this.paths.push(path); + } + + parseIndex() { + this.expect('['); + const token = this.expect('number'); + if (!/^(0|[1-9]\d*)$/.test(token.text)) throw syntaxError(`index "${token.text}" is not a non-negative integer`); + if (token.value > CONDITION_LIMITS.maxIndex) throw limitError(`index greater than ${CONDITION_LIMITS.maxIndex}`); + this.expect(']'); + return token.value; + } +} + +/** Parses a condition. Returns { ok: true, paths } or { ok: false, code, message }. */ +export function parseCondition(text) { + try { + if (text.length > CONDITION_LIMITS.maxLength) throw limitError(`condition longer than ${CONDITION_LIMITS.maxLength} characters`); + const parser = new Parser(tokenize(text)); + parser.parseCondition(); + return { ok: true, paths: parser.paths }; + } catch (e) { + if (!(e instanceof ConditionError)) throw e; + return { ok: false, code: e.code, message: e.message }; + } +} + +/** + * Static rules of a step's `when` (v1alpha4 spec 3.12): it parses, steps. is a direct or + * transitive dependency with a declared output , and inputs. is declared (warning). + * @param {{text: string, path: string, stepId: string, stepIds: Map, dependencies: Set, + * outputsOf: Map>, inputNames: Set, err: Function, warn: Function}} c + */ +export function checkStepCondition(c) { + const parsed = parseCondition(c.text); + if (!parsed.ok) return c.err(parsed.code, '3.12', c.path, `when: ${parsed.message}`); + for (const p of parsed.paths) { + if (p.root === 'inputs' && !c.inputNames.has(p.name)) { + c.warn('when.undeclared-input', '3.12', c.path, `condition reads undeclared input "${p.name}"`); + } + if (p.root !== 'steps') continue; + if (!c.stepIds.has(p.stepId)) c.err('when.unknown-step', '3.12', c.path, `condition reads non-existent step "${p.stepId}"`); + else if (!c.dependencies.has(p.stepId)) c.err('when.not-a-dependency', '3.12', c.path, `step "${c.stepId}" reads steps.${p.stepId} in when but does not depend on it (directly or transitively)`); + else if (!c.outputsOf.get(p.stepId).has(p.name)) c.err('when.undeclared-output', '3.12', c.path, `step "${p.stepId}" does not declare output "${p.name}"`); + } +} diff --git a/vendor/awp/conformance/migrate.mjs b/vendor/awp/conformance/migrate.mjs index 4cc675b..5586eff 100644 --- a/vendor/awp/conformance/migrate.mjs +++ b/vendor/awp/conformance/migrate.mjs @@ -1,10 +1,12 @@ -// Migration of AWP manifests from v1alpha1 or v1alpha2 to v1alpha3 (Kubernetes resource model -// alignment). v1alpha2 has the layout of v1alpha1 plus forEach, which carries over unchanged. +// Migration of AWP manifests to v1alpha4. v1alpha1 and v1alpha2 first move to the Kubernetes +// resource model of v1alpha3 (v1alpha2 has the layout of v1alpha1 plus forEach, which carries over +// unchanged). v1alpha4 only adds fields to v1alpha3, so from v1alpha3 only apiVersion changes. // Pure function on parsed documents; the CLI wrapper is `awp-check.mjs migrate`. const V1ALPHA1 = 'awp.agenticworkflowprotocol.org/v1alpha1'; const V1ALPHA2 = 'awp.agenticworkflowprotocol.org/v1alpha2'; const V1ALPHA3 = 'awp.agenticworkflowprotocol.org/v1alpha3'; +const V1ALPHA4 = 'awp.agenticworkflowprotocol.org/v1alpha4'; // Fields that leave metadata, in the order they are placed at the start of spec. const GOVERNANCE_FIELDS = ['version', 'description', 'owner', 'classification', 'purpose', 'risk', 'integrity', 'signature', 'provenance']; @@ -72,3 +74,15 @@ export function migrateToV1alpha3(doc) { return { document: { apiVersion: V1ALPHA3, kind: lifted.kind, metadata, spec }, notes }; } + +/** + * Migrate one parsed v1alpha1, v1alpha2 or v1alpha3 manifest to v1alpha4. Returns { document, notes } + * like migrateToV1alpha3. + */ +export function migrateToV1alpha4(doc) { + if (!isObj(doc) || ![V1ALPHA1, V1ALPHA2, V1ALPHA3].includes(doc.apiVersion)) { + throw new Error(`expected apiVersion ${V1ALPHA1}, ${V1ALPHA2} or ${V1ALPHA3}`); + } + const { document, notes } = doc.apiVersion === V1ALPHA3 ? { document: structuredClone(doc), notes: [] } : migrateToV1alpha3(doc); + return { document: { ...document, apiVersion: V1ALPHA4 }, notes }; +} diff --git a/vendor/awp/conformance/semantic.mjs b/vendor/awp/conformance/semantic.mjs index 71142b2..bec4ac5 100644 --- a/vendor/awp/conformance/semantic.mjs +++ b/vendor/awp/conformance/semantic.mjs @@ -1,13 +1,15 @@ -// Semantic validation rules of AWP v1alpha1, v1alpha2 and v1alpha3 that JSON Schema cannot express. +// Semantic validation rules of AWP v1alpha1 to v1alpha4 that JSON Schema cannot express. // v1alpha2 adds step iteration (forEach). v1alpha3 also has forEach and differs otherwise only in // layout: governance fields live in spec instead of metadata, extension fields in `extensions` -// objects instead of x- keys, and `status` is ignored. +// objects instead of x- keys, and `status` is ignored. v1alpha4 has the layout of v1alpha3 plus +// step conditions (`when`, conformance/conditions.mjs) and workflow steps. // Rule catalogue: schema/README.md. Every diagnostic has a stable `code`. // Runs on documents that already passed the structural schema of their apiVersion; fields that // only exist in v1alpha2 (forEach) cannot reach these rules in a v1alpha1 document. import { createHash } from 'node:crypto'; import { checkInputStep } from './human-input.mjs'; +import { checkStepCondition } from './conditions.mjs'; export const KNOWN_PROFILES = ['core', 'governance', 'audit', 'security', 'mcp', 'a2a', 'interaction']; @@ -19,11 +21,16 @@ const ptr = (...parts) => parts.map(p => '/' + esc(p)).join(''); const isObj = v => v !== null && typeof v === 'object' && !Array.isArray(v); const V1ALPHA3 = 'awp.agenticworkflowprotocol.org/v1alpha3'; +const V1ALPHA4 = 'awp.agenticworkflowprotocol.org/v1alpha4'; +// Versions with the Kubernetes resource model layout (governance fields in spec). +const KRM_VERSIONS = new Set([V1ALPHA3, V1ALPHA4]); +// The runtime provides exactly these outputs of a workflow step (v1alpha4 spec 5.6.6). +const WORKFLOW_STEP_OUTPUTS = new Set(['executionId', 'status']); const INTEGRITY_FIELDS = ['integrity', 'signature', 'provenance']; /** Where the governance fields (version, owner, classification, risk, integrity, ...) live. */ function governanceOf(doc) { - return doc.apiVersion === V1ALPHA3 + return KRM_VERSIONS.has(doc.apiVersion) ? { fields: doc.spec ?? {}, base: 'spec' } : { fields: doc.metadata ?? {}, base: 'metadata' }; } @@ -38,12 +45,12 @@ export function jcs(value) { /** The value the digest is computed over (spec 9.1). */ function digestInput(doc) { - if (doc.apiVersion !== V1ALPHA3) { + if (!KRM_VERSIONS.has(doc.apiVersion)) { const copy = structuredClone(doc); if (copy.metadata) for (const f of INTEGRITY_FIELDS) delete copy.metadata[f]; return copy; } - // v1alpha3: identity and spec only. Labels, annotations, namespace, store-populated metadata and + // v1alpha3 and later: identity and spec only. Labels, annotations, namespace, store-populated metadata and // status are changed by deployment tools and object stores, so they are not covered. const spec = structuredClone(doc.spec ?? {}); for (const f of INTEGRITY_FIELDS) delete spec[f]; @@ -75,6 +82,15 @@ function forEachNode(node, fn, path = []) { } } +/** 5.6.6 (v1alpha4): a workflow step declares no outputs other than executionId and status. */ +function checkWorkflowStepOutputs(step, base, err) { + (step.outputs ?? []).forEach((o, j) => { + if (!WORKFLOW_STEP_OUTPUTS.has(o.name)) { + err('step.workflow-output', '5.6.6', ptr(...base, 'outputs', j, 'name'), `a workflow step provides only the outputs executionId and status, not "${o.name}"`); + } + }); +} + /** * @param {object} doc parsed manifest * @param {{profiles?: string[], verifyDigest?: boolean}} opts @@ -260,8 +276,8 @@ export function semanticCheck(doc, opts = {}) { needProfile('interaction', 'step with type: input', ptr('spec', 'workflow', i), '3.3'); checkInputStep(s.input, ['spec', 'workflow', i, 'input'], err, ptr); } - // 5.6.4 (v1alpha3 only): the runtime owns AWP_* variables of command steps - for (const k of doc.apiVersion === V1ALPHA3 ? Object.keys(s.env ?? {}) : []) { + // 5.6.4 (v1alpha3 and later): the runtime owns AWP_* variables of command steps + for (const k of KRM_VERSIONS.has(doc.apiVersion) ? Object.keys(s.env ?? {}) : []) { if (k.startsWith('AWP_')) err('step.reserved-env', '5.6.4', ptr('spec', 'workflow', i, 'env', k), `environment variable "${k}" is reserved for the runtime (AWP_ prefix)`); } if (profiles.has('security') && s.type === 'command' && typeof s.image === 'string' && !/@(sha256:[0-9a-f]{64}|sha384:[0-9a-f]{96}|sha512:[0-9a-f]{128})$/.test(s.image)) { @@ -321,7 +337,7 @@ export function semanticCheck(doc, opts = {}) { // 5.6.4: iteration (v1alpha2) const inputTypes = new Map((spec.inputs ?? []).map(i => [i.name, i.type])); const agentsById = new Map((spec.agents ?? []).map(a => [a.id, a])); - const iterationSection = doc.apiVersion === V1ALPHA3 ? '5.6.5' : '5.6.4'; + const iterationSection = KRM_VERSIONS.has(doc.apiVersion) ? '5.6.5' : '5.6.4'; const checkForEach = (s, base) => { const f = s.forEach; checkExpr(f.items, ptr(...base, 'forEach', 'items'), s.id); @@ -344,6 +360,11 @@ export function semanticCheck(doc, opts = {}) { for (const [k, v] of Object.entries(s.env ?? {})) checkExpr(v, ptr(...base, 'env', k), s.id, iterating); checkExpr(s.approval?.message, ptr(...base, 'approval', 'message'), s.id); checkExpr(s.input?.message, ptr(...base, 'input', 'message'), s.id); + for (const [k, v] of Object.entries(s.workflow?.inputs ?? {})) checkExpr(v, ptr(...base, 'workflow', 'inputs', k), s.id); + if (typeof s.when === 'string') { + checkStepCondition({ text: s.when, path: ptr(...base, 'when'), stepId: s.id, stepIds, dependencies: closure(s.id), outputsOf, inputNames, err, warn }); + } + if (s.type === 'workflow') checkWorkflowStepOutputs(s, base, err); if (typeof s.command === 'string' && s.command.includes('${{')) { warn('lint.command-expression', '5.6.2', ptr(...base, 'command'), 'command is not expression-enabled; ${{ }} is passed literally. Use env.'); } diff --git a/vendor/awp/conformance/v1alpha4/index.json b/vendor/awp/conformance/v1alpha4/index.json new file mode 100644 index 0000000..57ae960 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/index.json @@ -0,0 +1,2094 @@ +{ + "$comment": "Machine-readable index of the AWP v1alpha4 conformance suite. Each invalid case violates exactly one rule; `code` and `path` identify the expected diagnostic (see schema/README.md).", + "suite": "awp-conformance", + "version": "0.1.0", + "awp": "v1alpha4", + "defaults": { + "profiles": [ + "core", + "governance", + "audit", + "security", + "mcp", + "a2a", + "interaction" + ], + "verifyDigest": false + }, + "nonManifestExamples": [ + "audit-events.yaml", + "conformance-statement.yaml", + "execution-record.yaml" + ], + "tests": [ + { + "id": "3.1-custom-tag", + "file": "invalid/3.1-custom-tag.yaml", + "section": "3.1", + "rule": "YAML features without a JSON equivalent (custom tags) MUST be rejected.", + "expect": "invalid", + "code": "yaml.custom-tag", + "path": "" + }, + { + "id": "3.1-non-string-key", + "file": "invalid/3.1-non-string-key.yaml", + "section": "3.1", + "rule": "YAML mapping keys MUST be strings.", + "expect": "invalid", + "code": "yaml.non-string-key", + "path": "" + }, + { + "id": "3.1-syntax-error", + "file": "invalid/3.1-syntax-error.yaml", + "section": "3.1", + "rule": "A document that is not well-formed YAML is rejected.", + "expect": "invalid", + "code": "yaml.parse-error", + "path": "" + }, + { + "id": "3.2-missing-api-version", + "file": "invalid/3.2-missing-api-version.yaml", + "section": "3.2", + "rule": "apiVersion is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "" + }, + { + "id": "3.2-missing-metadata", + "file": "invalid/3.2-missing-metadata.yaml", + "section": "3.2", + "rule": "metadata is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "" + }, + { + "id": "3.2-missing-spec", + "file": "invalid/3.2-missing-spec.yaml", + "section": "3.2", + "rule": "spec is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "" + }, + { + "id": "3.2-unsupported-api-version", + "file": "invalid/3.2-unsupported-api-version.yaml", + "section": "3.2", + "rule": "apiVersion MUST name a supported version.", + "expect": "invalid", + "code": "schema.const", + "path": "/apiVersion" + }, + { + "id": "3.2-unsupported-kind", + "file": "invalid/3.2-unsupported-kind.yaml", + "section": "3.2", + "rule": "kind MUST be Workflow, Agent or Policy.", + "expect": "invalid", + "code": "schema.enum", + "path": "/kind" + }, + { + "id": "3.3-extension-field-outside-extensions", + "file": "invalid/3.3-extension-field-outside-extensions.yaml", + "section": "3.3", + "rule": "Extension fields are placed in an extensions object; an x- field on the object itself is unknown.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/workflow/0/x-example-mode", + "profiles": [ + "core" + ] + }, + { + "id": "3.3-extension-key-without-prefix", + "file": "invalid/3.3-extension-key-without-prefix.yaml", + "section": "3.3", + "rule": "Keys of extensions start with x-.", + "expect": "invalid", + "code": "schema.propertyNames", + "path": "/spec/extensions/mode", + "profiles": [ + "core" + ] + }, + { + "id": "3.3-profile-a2a-agent", + "file": "invalid/3.3-profile-a2a-agent.yaml", + "section": "3.3", + "rule": "Agents with protocol a2a belong to the a2a profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/agents/1", + "profiles": [ + "core", + "mcp" + ] + }, + { + "id": "3.3-profile-approval-step", + "file": "invalid/3.3-profile-approval-step.yaml", + "section": "3.3", + "rule": "Steps with type approval belong to the governance profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/workflow/2", + "profiles": [ + "core", + "mcp" + ] + }, + { + "id": "3.3-profile-audit-field", + "file": "invalid/3.3-profile-audit-field.yaml", + "section": "3.3", + "rule": "spec.audit belongs to the audit profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/audit", + "profiles": [ + "core", + "mcp" + ] + }, + { + "id": "3.3-profile-governance-field", + "file": "invalid/3.3-profile-governance-field.yaml", + "section": "3.3", + "rule": "A field of a profile the implementation does not support MUST be rejected naming field and profile (spec.approval, governance).", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/approval", + "profiles": [ + "core", + "mcp" + ] + }, + { + "id": "3.3-profile-high-risk", + "file": "invalid/3.3-profile-high-risk.yaml", + "section": "3.3", + "rule": "spec.risk.level high or critical belongs to the governance profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/risk/level", + "profiles": [ + "core", + "mcp" + ] + }, + { + "id": "3.3-profile-interaction-step", + "file": "invalid/3.3-profile-interaction-step.yaml", + "section": "3.3", + "rule": "Steps with type input belong to the interaction profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/workflow/1", + "profiles": [ + "core", + "governance", + "audit", + "security", + "mcp", + "a2a" + ] + }, + { + "id": "3.3-profile-mcp-field", + "file": "invalid/3.3-profile-mcp-field.yaml", + "section": "3.3", + "rule": "spec.mcpServers belongs to the mcp profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/mcpServers", + "profiles": [ + "core" + ] + }, + { + "id": "3.3-profile-policy-kind", + "file": "invalid/3.3-profile-policy-kind.yaml", + "section": "3.3", + "rule": "Policy manifests belong to the governance profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/kind", + "profiles": [ + "core" + ] + }, + { + "id": "3.3-profile-security-field", + "file": "invalid/3.3-profile-security-field.yaml", + "section": "3.3", + "rule": "spec.signature belongs to the security profile.", + "expect": "invalid", + "code": "profile.unsupported", + "path": "/spec/signature", + "profiles": [ + "core", + "mcp" + ] + }, + { + "id": "3.3-unknown-field-near-extension", + "file": "invalid/3.3-unknown-field-near-extension.yaml", + "section": "3.3", + "rule": "Only the prefix x- marks an extension; x_foo and X-foo are unknown fields.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/X-foo" + }, + { + "id": "3.3-unknown-metadata-field", + "file": "invalid/3.3-unknown-metadata-field.yaml", + "section": "3.3", + "rule": "Unknown fields MUST be rejected (metadata).", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/metadata/team" + }, + { + "id": "3.3-unknown-step-field", + "file": "invalid/3.3-unknown-step-field.yaml", + "section": "3.3", + "rule": "Unknown fields MUST be rejected (nested in a list entry).", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/workflow/0/parallel" + }, + { + "id": "3.3-unknown-top-level-field", + "file": "invalid/3.3-unknown-top-level-field.yaml", + "section": "3.3", + "rule": "Unknown fields MUST be rejected (top level; status is reserved, not unknown).", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/data" + }, + { + "id": "3.4-duplicate-agent-id", + "file": "invalid/3.4-duplicate-agent-id.yaml", + "section": "3.4", + "rule": "Identifiers MUST be unique within their list (agents).", + "expect": "invalid", + "code": "id.duplicate", + "path": "/spec/agents/1/id" + }, + { + "id": "3.4-duplicate-rule-id", + "file": "invalid/3.4-duplicate-rule-id.yaml", + "section": "3.4", + "rule": "Identifiers MUST be unique within their list (rules).", + "expect": "invalid", + "code": "id.duplicate", + "path": "/spec/rules/1/id" + }, + { + "id": "3.4-invalid-metadata-name", + "file": "invalid/3.4-invalid-metadata-name.yaml", + "section": "3.4", + "rule": "metadata.name MUST be a DNS-1123 label.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/metadata/name" + }, + { + "id": "3.4-uppercase-agent-id", + "file": "invalid/3.4-uppercase-agent-id.yaml", + "section": "3.4", + "rule": "Identifiers MUST match ^[a-z][a-z0-9-]{0,62}$.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/agents/0/id" + }, + { + "id": "3.4-uppercase-metadata-name", + "file": "invalid/3.4-uppercase-metadata-name.yaml", + "section": "3.4", + "rule": "metadata.name MUST be a DNS-1123 label (lowercase).", + "expect": "invalid", + "code": "schema.pattern", + "path": "/metadata/name", + "profiles": [ + "core" + ] + }, + { + "id": "3.5-version-leading-zero", + "file": "invalid/3.5-version-leading-zero.yaml", + "section": "3.5", + "rule": "SemVer forbids leading zeros in numeric identifiers.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/version" + }, + { + "id": "3.5-version-not-semver", + "file": "invalid/3.5-version-not-semver.yaml", + "section": "3.5", + "rule": "spec.version MUST be a SemVer 2.0.0 string.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/version" + }, + { + "id": "3.6-duration-unknown-unit", + "file": "invalid/3.6-duration-unknown-unit.yaml", + "section": "3.6", + "rule": "Durations use the units ms, s, m, h, d, w, y.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/0/timeout" + }, + { + "id": "3.6-duration-zero", + "file": "invalid/3.6-duration-zero.yaml", + "section": "3.6", + "rule": "A duration MUST be greater than zero.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/budget/maxDuration" + }, + { + "id": "3.7-date-not-calendar-valid", + "file": "invalid/3.7-date-not-calendar-valid.yaml", + "section": "3.7", + "rule": "Dates are RFC 3339 full-date values; 2027-02-30 does not exist.", + "expect": "invalid", + "code": "date.invalid", + "path": "/spec/agents/0/model/approval/expires" + }, + { + "id": "3.7-date-wrong-format", + "file": "invalid/3.7-date-wrong-format.yaml", + "section": "3.7", + "rule": "Dates are RFC 3339 full-date values.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/agents/0/model/approval/expires" + }, + { + "id": "3.8-digest-uppercase-hex", + "file": "invalid/3.8-digest-uppercase-hex.yaml", + "section": "3.8", + "rule": "Digest hex is lowercase.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/integrity/digest" + }, + { + "id": "3.8-digest-wrong-length", + "file": "invalid/3.8-digest-wrong-length.yaml", + "section": "3.8", + "rule": "A sha256 digest has 64 lowercase hex characters.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/integrity/digest" + }, + { + "id": "3.9-expression-function", + "file": "invalid/3.9-expression-function.yaml", + "section": "3.9", + "rule": "No functions in expressions.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/0/task" + }, + { + "id": "3.9-expression-in-env-key-ref-bad", + "file": "invalid/3.9-expression-in-env-key-ref-bad.yaml", + "section": "3.9", + "rule": "env values are expression-enabled; other syntax is rejected.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/2/env/A" + }, + { + "id": "3.9-expression-operator", + "file": "invalid/3.9-expression-operator.yaml", + "section": "3.9", + "rule": "No operators in expressions.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/0/task" + }, + { + "id": "3.9-expression-unknown-root", + "file": "invalid/3.9-expression-unknown-root.yaml", + "section": "3.9", + "rule": "References are inputs, steps..outputs and execution only.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/0/task" + }, + { + "id": "3.9-expression-unterminated", + "file": "invalid/3.9-expression-unterminated.yaml", + "section": "3.9", + "rule": "An expression must be closed.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/0/task" + }, + { + "id": "3.9-iteration-reference-outside-for-each", + "file": "invalid/3.9-iteration-reference-outside-for-each.yaml", + "section": "3.9", + "rule": "forEach.* references MUST only be used in task and env of a step that declares forEach.", + "expect": "invalid", + "code": "expr.iteration-outside-forEach", + "path": "/spec/workflow/1/task" + }, + { + "id": "3.9-step-reference-in-permissions", + "file": "invalid/3.9-step-reference-in-permissions.yaml", + "section": "3.9", + "rule": "Step references are only valid inside a step.", + "expect": "invalid", + "code": "expr.step-reference-outside-step", + "path": "/spec/permissions/tools/tools.read/resources/0" + }, + { + "id": "3.9-step-reference-unknown-step", + "file": "invalid/3.9-step-reference-unknown-step.yaml", + "section": "3.9", + "rule": "A reference to a non-existent step is rejected.", + "expect": "invalid", + "code": "expr.unknown-step", + "path": "/spec/workflow/1/task" + }, + { + "id": "3.9-step-reference-without-dependency", + "file": "invalid/3.9-step-reference-without-dependency.yaml", + "section": "3.9", + "rule": "steps. MUST only be used in a step that depends on .", + "expect": "invalid", + "code": "expr.not-a-dependency", + "path": "/spec/workflow/1/task" + }, + { + "id": "4-governance-field-in-metadata", + "file": "invalid/4-governance-field-in-metadata.yaml", + "section": "4", + "rule": "Governance fields are spec fields; metadata.owner is unknown.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/metadata/owner", + "profiles": [ + "core" + ] + }, + { + "id": "4-invalid-label-key", + "file": "invalid/4-invalid-label-key.yaml", + "section": "4", + "rule": "Label keys MUST match ^[a-zA-Z0-9][a-zA-Z0-9._/-]{0,127}$.", + "expect": "invalid", + "code": "schema.propertyNames", + "path": "/metadata/labels/-bad" + }, + { + "id": "4-invalid-risk-level", + "file": "invalid/4-invalid-risk-level.yaml", + "section": "4", + "rule": "risk.level is one of low, medium, high, critical.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/risk/level" + }, + { + "id": "4-label-value-not-string", + "file": "invalid/4-label-value-not-string.yaml", + "section": "4", + "rule": "Labels are a map of strings.", + "expect": "invalid", + "code": "schema.type", + "path": "/metadata/labels/tier" + }, + { + "id": "4-label-value-too-long", + "file": "invalid/4-label-value-too-long.yaml", + "section": "4", + "rule": "Label values have at most 63 characters (Kubernetes label syntax).", + "expect": "invalid", + "code": "schema.maxLength", + "path": "/metadata/labels/tier", + "profiles": [ + "core" + ] + }, + { + "id": "4-missing-owner", + "file": "invalid/4-missing-owner.yaml", + "section": "4", + "rule": "spec.owner is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec" + }, + { + "id": "4-missing-version", + "file": "invalid/4-missing-version.yaml", + "section": "4", + "rule": "spec.version is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec" + }, + { + "id": "4-owner-string", + "file": "invalid/4-owner-string.yaml", + "section": "4", + "rule": "spec.owner is an object; the string shorthand of v1alpha1 is removed.", + "expect": "invalid", + "code": "schema.type", + "path": "/spec/owner", + "profiles": [ + "core" + ] + }, + { + "id": "4-owner-without-team", + "file": "invalid/4-owner-without-team.yaml", + "section": "4", + "rule": "owner as an object REQUIRES team.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/owner" + }, + { + "id": "5.2-concurrency-policy-on-event-trigger", + "file": "invalid/5.2-concurrency-policy-on-event-trigger.yaml", + "section": "5.2", + "rule": "concurrencyPolicy and startingDeadline belong to schedule triggers only.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/triggers/2" + }, + { + "id": "5.2-cron-not-five-fields", + "file": "invalid/5.2-cron-not-five-fields.yaml", + "section": "5.2", + "rule": "cron is a 5-field cron expression.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/triggers/0/cron" + }, + { + "id": "5.2-event-without-event-type", + "file": "invalid/5.2-event-without-event-type.yaml", + "section": "5.2", + "rule": "event triggers REQUIRE source and eventType.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/triggers/0" + }, + { + "id": "5.2-invalid-concurrency-policy", + "file": "invalid/5.2-invalid-concurrency-policy.yaml", + "section": "5.2", + "rule": "concurrencyPolicy is allow, forbid or replace.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/triggers/1/concurrencyPolicy" + }, + { + "id": "5.2-schedule-without-cron", + "file": "invalid/5.2-schedule-without-cron.yaml", + "section": "5.2", + "rule": "schedule triggers REQUIRE cron.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/triggers/0" + }, + { + "id": "5.2-starting-deadline-not-duration", + "file": "invalid/5.2-starting-deadline-not-duration.yaml", + "section": "5.2", + "rule": "startingDeadline is a duration.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/triggers/1/startingDeadline" + }, + { + "id": "5.2-unknown-trigger-type", + "file": "invalid/5.2-unknown-trigger-type.yaml", + "section": "5.2", + "rule": "type is manual, schedule or event.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/triggers/0/type" + }, + { + "id": "5.3-default-wrong-type", + "file": "invalid/5.3-default-wrong-type.yaml", + "section": "5.3", + "rule": "default MUST match type.", + "expect": "invalid", + "code": "schema.type", + "path": "/spec/inputs/0/default" + }, + { + "id": "5.3-invalid-pattern", + "file": "invalid/5.3-invalid-pattern.yaml", + "section": "5.3", + "rule": "pattern is an ECMA-262 regular expression.", + "expect": "invalid", + "code": "input.pattern-invalid", + "path": "/spec/inputs/0/pattern" + }, + { + "id": "5.3-required-input-with-default", + "file": "invalid/5.3-required-input-with-default.yaml", + "section": "5.3", + "rule": "default MUST NOT be set when required is true.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/inputs/0" + }, + { + "id": "5.3-unknown-input-type", + "file": "invalid/5.3-unknown-input-type.yaml", + "section": "5.3", + "rule": "type is string, integer, number, boolean, object, array or artifact.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/inputs/0/type" + }, + { + "id": "5.4.1-inline-agent-without-model", + "file": "invalid/5.4.1-inline-agent-without-model.yaml", + "section": "5.4.1", + "rule": "An inline agent REQUIRES model.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/agents/0" + }, + { + "id": "5.4.1-instructions-and-prompt-ref", + "file": "invalid/5.4.1-instructions-and-prompt-ref.yaml", + "section": "5.4.1", + "rule": "promptRef MUST NOT be combined with instructions.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/agents/0" + }, + { + "id": "5.4.2-reference-version-range", + "file": "invalid/5.4.2-reference-version-range.yaml", + "section": "5.4.2", + "rule": "ref.version is an exact SemVer version, no ranges.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/agents/1/ref/version" + }, + { + "id": "5.4.2-reference-with-instructions", + "file": "invalid/5.4.2-reference-with-instructions.yaml", + "section": "5.4.2", + "rule": "An agent reference MUST NOT contain instructions.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/agents/1/instructions" + }, + { + "id": "5.4.2-reference-with-model", + "file": "invalid/5.4.2-reference-with-model.yaml", + "section": "5.4.2", + "rule": "An agent reference MUST NOT contain model.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/agents/1/model" + }, + { + "id": "5.4.2-reference-without-version", + "file": "invalid/5.4.2-reference-without-version.yaml", + "section": "5.4.2", + "rule": "ref REQUIRES name and version.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/agents/1/ref" + }, + { + "id": "5.4.3-invalid-model-approval-status", + "file": "invalid/5.4.3-invalid-model-approval-status.yaml", + "section": "5.4.3", + "rule": "model.approval.status is approved, pending, rejected or revoked.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/agents/0/model/approval/status" + }, + { + "id": "5.4.3-model-without-name", + "file": "invalid/5.4.3-model-without-name.yaml", + "section": "5.4.3", + "rule": "model REQUIRES provider and name.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/agents/0/model" + }, + { + "id": "5.4.4-remote-agent-http-endpoint", + "file": "invalid/5.4.4-remote-agent-http-endpoint.yaml", + "section": "5.4.4", + "rule": "A remote agent endpoint is an HTTPS URL.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/agents/1/endpoint" + }, + { + "id": "5.4.4-remote-agent-with-model", + "file": "invalid/5.4.4-remote-agent-with-model.yaml", + "section": "5.4.4", + "rule": "A remote agent MUST NOT contain model.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/agents/1/model" + }, + { + "id": "5.4.4-remote-agent-without-endpoint", + "file": "invalid/5.4.4-remote-agent-without-endpoint.yaml", + "section": "5.4.4", + "rule": "A remote agent REQUIRES endpoint.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/agents/1" + }, + { + "id": "5.4.4-remote-agent-wrong-protocol", + "file": "invalid/5.4.4-remote-agent-wrong-protocol.yaml", + "section": "5.4.4", + "rule": "protocol MUST be a2a.", + "expect": "invalid", + "code": "schema.const", + "path": "/spec/agents/1/protocol" + }, + { + "id": "5.5.1-duplicate-server-name", + "file": "invalid/5.5.1-duplicate-server-name.yaml", + "section": "5.5.1", + "rule": "MCP server names are referenced by tool sources and must be unique.", + "expect": "invalid", + "code": "name.duplicate", + "path": "/spec/mcpServers/1/name" + }, + { + "id": "5.5.1-mcp-url-not-https", + "file": "invalid/5.5.1-mcp-url-not-https.yaml", + "section": "5.5.1", + "rule": "The url of an MCP server MUST use https.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/mcpServers/0/url" + }, + { + "id": "5.5.1-streamable-http-without-url", + "file": "invalid/5.5.1-streamable-http-without-url.yaml", + "section": "5.5.1", + "rule": "url is REQUIRED for streamable-http.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/mcpServers/0" + }, + { + "id": "5.5.1-unknown-transport", + "file": "invalid/5.5.1-unknown-transport.yaml", + "section": "5.5.1", + "rule": "transport is stdio or streamable-http.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/mcpServers/0/transport" + }, + { + "id": "5.5.2-builtin-tool-source-without-name", + "file": "invalid/5.5.2-builtin-tool-source-without-name.yaml", + "section": "5.5.2", + "rule": "A builtin tool source REQUIRES name.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/agents/0/tools/0" + }, + { + "id": "5.5.2-mcp-tool-source-without-server", + "file": "invalid/5.5.2-mcp-tool-source-without-server.yaml", + "section": "5.5.2", + "rule": "An mcp tool source REQUIRES server.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/agents/0/tools/0" + }, + { + "id": "5.5.3-invalid-action-identifier-in-permissions", + "file": "invalid/5.5.3-invalid-action-identifier-in-permissions.yaml", + "section": "5.5.3", + "rule": "Permission keys are action identifiers with at least two segments.", + "expect": "invalid", + "code": "schema.propertyNames", + "path": "/spec/permissions/tools/shell" + }, + { + "id": "5.5.3-wildcard-not-final-segment", + "file": "invalid/5.5.3-wildcard-not-final-segment.yaml", + "section": "5.5.3", + "rule": "Only a final segment may be the wildcard *.", + "expect": "invalid", + "code": "schema.propertyNames", + "path": "/spec/permissions/tools/*.read" + }, + { + "id": "5.5.4-group-contains-group", + "file": "invalid/5.5.4-group-contains-group.yaml", + "section": "5.5.4", + "rule": "Groups MUST NOT contain other groups.", + "expect": "invalid", + "code": "actionGroup.nested", + "path": "/spec/actionGroups/tools.all/0" + }, + { + "id": "5.5.4-invalid-group-identifier", + "file": "invalid/5.5.4-invalid-group-identifier.yaml", + "section": "5.5.4", + "rule": "A group identifier MUST be a valid action identifier.", + "expect": "invalid", + "code": "schema.propertyNames", + "path": "/spec/actionGroups/readers" + }, + { + "id": "5.6.1-agent-step-with-command", + "file": "invalid/5.6.1-agent-step-with-command.yaml", + "section": "5.6.1", + "rule": "Fields of command steps are not allowed in agent steps.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/workflow/0" + }, + { + "id": "5.6.1-agent-step-without-agent", + "file": "invalid/5.6.1-agent-step-without-agent.yaml", + "section": "5.6.1", + "rule": "An agent step REQUIRES agent.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/0" + }, + { + "id": "5.6.1-approval-step-required-for", + "file": "invalid/5.6.1-approval-step-required-for.yaml", + "section": "5.6.1", + "rule": "An approval step has no requiredFor; it applies only at workflow level.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/workflow/2/approval/requiredFor" + }, + { + "id": "5.6.1-approval-step-separation-of-duties", + "file": "invalid/5.6.1-approval-step-separation-of-duties.yaml", + "section": "5.6.1", + "rule": "An approval step has no separationOfDuties; it applies only at workflow level.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/workflow/2/approval/separationOfDuties" + }, + { + "id": "5.6.1-approval-step-without-approval", + "file": "invalid/5.6.1-approval-step-without-approval.yaml", + "section": "5.6.1", + "rule": "An approval step REQUIRES approval.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/2" + }, + { + "id": "5.6.1-command-step-with-agent", + "file": "invalid/5.6.1-command-step-with-agent.yaml", + "section": "5.6.1", + "rule": "A command step has no agent.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/workflow/2" + }, + { + "id": "5.6.1-command-step-without-command", + "file": "invalid/5.6.1-command-step-without-command.yaml", + "section": "5.6.1", + "rule": "A command step REQUIRES command.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/2" + }, + { + "id": "5.6.1-negative-retries", + "file": "invalid/5.6.1-negative-retries.yaml", + "section": "5.6.1", + "rule": "retries is a non-negative integer.", + "expect": "invalid", + "code": "schema.minimum", + "path": "/spec/workflow/0/retries" + }, + { + "id": "5.6.1-output-name-with-dot", + "file": "invalid/5.6.1-output-name-with-dot.yaml", + "section": "5.6.1", + "rule": "Output names match ^[A-Za-z_][A-Za-z0-9_]{0,62}$, so that they are file names and expression keys.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/2/outputs/0/name" + }, + { + "id": "5.6.1-retries-exceed-max-retries", + "file": "invalid/5.6.1-retries-exceed-max-retries.yaml", + "section": "5.6.1", + "rule": "retries MUST NOT exceed budget.resources.maxRetries if set.", + "expect": "invalid", + "code": "retries.exceeds-budget", + "path": "/spec/workflow/0/retries" + }, + { + "id": "5.6.1-unknown-step-type", + "file": "invalid/5.6.1-unknown-step-type.yaml", + "section": "5.6.1", + "rule": "type is agent, command or approval.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/workflow/0/type" + }, + { + "id": "5.6.2-env-key-invalid", + "file": "invalid/5.6.2-env-key-invalid.yaml", + "section": "5.6.2", + "rule": "env keys are environment variable names.", + "expect": "invalid", + "code": "schema.propertyNames", + "path": "/spec/workflow/2/env/BAD-KEY" + }, + { + "id": "5.6.3-dependency-cycle", + "file": "invalid/5.6.3-dependency-cycle.yaml", + "section": "5.6.3", + "rule": "The runtime MUST reject a workflow whose steps contain a cycle.", + "expect": "invalid", + "code": "dependsOn.cycle", + "path": "/spec/workflow" + }, + { + "id": "5.6.3-depends-on-unknown-step", + "file": "invalid/5.6.3-depends-on-unknown-step.yaml", + "section": "5.6.3", + "rule": "A dependsOn entry that names a non-existent step is rejected.", + "expect": "invalid", + "code": "dependsOn.unknown-step", + "path": "/spec/workflow/1/dependsOn/1" + }, + { + "id": "5.6.3-duplicate-step-id", + "file": "invalid/5.6.3-duplicate-step-id.yaml", + "section": "5.6.3", + "rule": "The runtime MUST reject a duplicate step id.", + "expect": "invalid", + "code": "id.duplicate", + "path": "/spec/workflow/1/id" + }, + { + "id": "5.6.3-self-dependency", + "file": "invalid/5.6.3-self-dependency.yaml", + "section": "5.6.3", + "rule": "A step that depends on itself is a cycle.", + "expect": "invalid", + "code": "dependsOn.cycle", + "path": "/spec/workflow/0/dependsOn" + }, + { + "id": "5.6.3-undeclared-step-output", + "file": "invalid/5.6.3-undeclared-step-output.yaml", + "section": "5.6.3", + "rule": "Outputs not declared in outputs MUST NOT be referenced.", + "expect": "invalid", + "code": "expr.undeclared-output", + "path": "/spec/workflow/1/task" + }, + { + "id": "5.6.3-unknown-agent", + "file": "invalid/5.6.3-unknown-agent.yaml", + "section": "5.6.3", + "rule": "An agent that names a non-existent agent is rejected.", + "expect": "invalid", + "code": "step.unknown-agent", + "path": "/spec/workflow/0/agent" + }, + { + "id": "5.6.4-reserved-env", + "file": "invalid/5.6.4-reserved-env.yaml", + "section": "5.6.4", + "rule": "Environment variables with the prefix AWP_ are reserved for the runtime.", + "expect": "invalid", + "code": "step.reserved-env", + "path": "/spec/workflow/2/env/AWP_OUTPUTS" + }, + { + "id": "5.6.5-for-each-concurrency-exceeds-budget", + "file": "invalid/5.6.5-for-each-concurrency-exceeds-budget.yaml", + "section": "5.6.5", + "rule": "forEach.concurrency MUST NOT exceed the effective budget.resources.maxConcurrency.", + "expect": "invalid", + "code": "forEach.concurrency-exceeds-budget", + "path": "/spec/workflow/1/forEach/concurrency" + }, + { + "id": "5.6.5-for-each-input-not-array", + "file": "invalid/5.6.5-for-each-input-not-array.yaml", + "section": "5.6.5", + "rule": "An input referenced by forEach.items MUST have type array.", + "expect": "invalid", + "code": "forEach.input-not-array", + "path": "/spec/workflow/1/forEach/items" + }, + { + "id": "5.6.5-for-each-items-not-a-dependency", + "file": "invalid/5.6.5-for-each-items-not-a-dependency.yaml", + "section": "3.9", + "rule": "forEach.items MUST only reference a step this step depends on.", + "expect": "invalid", + "code": "expr.not-a-dependency", + "path": "/spec/workflow/1/forEach/items" + }, + { + "id": "5.6.5-for-each-items-not-a-reference", + "file": "invalid/5.6.5-for-each-items-not-a-reference.yaml", + "section": "5.6.5", + "rule": "forEach.items is exactly one reference to an input or a step output.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/1/forEach/items" + }, + { + "id": "5.6.5-for-each-missing-max-items", + "file": "invalid/5.6.5-for-each-missing-max-items.yaml", + "section": "5.6.5", + "rule": "forEach.maxItems is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/1/forEach" + }, + { + "id": "5.6.5-for-each-on-approval-step", + "file": "invalid/5.6.5-for-each-on-approval-step.yaml", + "section": "5.6.1", + "rule": "forEach is not allowed on approval steps.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/workflow/1" + }, + { + "id": "5.7-negative-cost", + "file": "invalid/5.7-negative-cost.yaml", + "section": "5.7", + "rule": "All limits MUST be positive.", + "expect": "invalid", + "code": "schema.exclusiveMinimum", + "path": "/spec/budget/maxCostUsd" + }, + { + "id": "5.7-unknown-budget-field", + "file": "invalid/5.7-unknown-budget-field.yaml", + "section": "5.7", + "rule": "Unknown budget fields are rejected.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/budget/maxMoney" + }, + { + "id": "5.7-zero-concurrency", + "file": "invalid/5.7-zero-concurrency.yaml", + "section": "5.7", + "rule": "All limits MUST be positive.", + "expect": "invalid", + "code": "schema.minimum", + "path": "/spec/budget/resources/maxConcurrency" + }, + { + "id": "5.7-zero-max-steps", + "file": "invalid/5.7-zero-max-steps.yaml", + "section": "5.7", + "rule": "All limits MUST be positive.", + "expect": "invalid", + "code": "schema.minimum", + "path": "/spec/budget/maxSteps" + }, + { + "id": "5.8-agent-invalid-on-timeout", + "file": "invalid/5.8-agent-invalid-on-timeout.yaml", + "section": "5.8", + "rule": "humanInput.onTimeout is return or fail.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/agents/0/humanInput/onTimeout" + }, + { + "id": "5.8-answer-field-nested-object", + "file": "invalid/5.8-answer-field-nested-object.yaml", + "section": "5.8", + "rule": "Answer fields are primitive (string, number, integer, boolean).", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/workflow/1/input/answerSchema/properties/targets/type" + }, + { + "id": "5.8-default-mismatch", + "file": "invalid/5.8-default-mismatch.yaml", + "section": "5.8", + "rule": "default matches answerSchema.", + "expect": "invalid", + "code": "input.default-mismatch", + "path": "/spec/workflow/1/input/default" + }, + { + "id": "5.8-input-step-with-agent", + "file": "invalid/5.8-input-step-with-agent.yaml", + "section": "5.8", + "rule": "An input step has no agent.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/workflow/1" + }, + { + "id": "5.8-input-step-without-input", + "file": "invalid/5.8-input-step-without-input.yaml", + "section": "5.8", + "rule": "An input step REQUIRES input.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/1" + }, + { + "id": "5.8-input-without-answerers", + "file": "invalid/5.8-input-without-answerers.yaml", + "section": "5.8", + "rule": "answerers is REQUIRED; nobody else may answer.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/1/input" + }, + { + "id": "5.8-required-unknown-field", + "file": "invalid/5.8-required-unknown-field.yaml", + "section": "5.8", + "rule": "required names fields of answerSchema.properties.", + "expect": "invalid", + "code": "input.required-unknown-field", + "path": "/spec/workflow/1/input/answerSchema/required/0" + }, + { + "id": "5.8-use-default-without-default", + "file": "invalid/5.8-use-default-without-default.yaml", + "section": "5.8", + "rule": "onTimeout useDefault REQUIRES default.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/1/input" + }, + { + "id": "6-agent-instructions-and-prompt-ref", + "file": "invalid/6-agent-instructions-and-prompt-ref.yaml", + "section": "6", + "rule": "promptRef MUST NOT be combined with instructions.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec" + }, + { + "id": "6-agent-kind-with-workflow-spec", + "file": "invalid/6-agent-kind-with-workflow-spec.yaml", + "section": "6", + "rule": "agents/workflow belong to kind Workflow only.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/agents" + }, + { + "id": "6-agent-with-workflow-field", + "file": "invalid/6-agent-with-workflow-field.yaml", + "section": "6", + "rule": "An Agent manifest has no spec.workflow (unknown field).", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/workflow" + }, + { + "id": "6-agent-without-model", + "file": "invalid/6-agent-without-model.yaml", + "section": "6", + "rule": "An Agent manifest REQUIRES spec.model.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec" + }, + { + "id": "7.1-governance-requires-classification", + "file": "invalid/7.1-governance-requires-classification.yaml", + "section": "7.1", + "rule": "Under the governance profile Workflow and Agent REQUIRE spec.classification.", + "expect": "invalid", + "code": "governance.classification-required", + "path": "/spec" + }, + { + "id": "7.2-invalid-classification", + "file": "invalid/7.2-invalid-classification.yaml", + "section": "7.2", + "rule": "Data classes are public, internal, confidential, personal, restricted, sensitive, secret.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/classification" + }, + { + "id": "7.2-invalid-external-transfer", + "file": "invalid/7.2-invalid-external-transfer.yaml", + "section": "7.2", + "rule": "externalTransfer is allow or deny.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/dataPolicy/restrictions/externalTransfer" + }, + { + "id": "7.4-invalid-model-policy-status", + "file": "invalid/7.4-invalid-model-policy-status.yaml", + "section": "7.4", + "rule": "requirements.approvalStatus uses the model approval statuses.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/modelPolicy/requirements/approvalStatus" + }, + { + "id": "7.5-allow-not-boolean", + "file": "invalid/7.5-allow-not-boolean.yaml", + "section": "7.5.1", + "rule": "allow is a boolean.", + "expect": "invalid", + "code": "schema.type", + "path": "/spec/permissions/tools/tools.read/allow" + }, + { + "id": "7.5-invalid-default", + "file": "invalid/7.5-invalid-default.yaml", + "section": "7.5.1", + "rule": "permissions.default is allow or deny.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/permissions/default" + }, + { + "id": "7.5-invalid-egress", + "file": "invalid/7.5-invalid-egress.yaml", + "section": "7.5.1", + "rule": "network.egress is allow or deny.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/permissions/network/egress" + }, + { + "id": "7.5-tool-without-allow", + "file": "invalid/7.5-tool-without-allow.yaml", + "section": "7.5.1", + "rule": "permissions.tools entries REQUIRE allow.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/permissions/tools/tools.read" + }, + { + "id": "7.6-approver-empty", + "file": "invalid/7.6-approver-empty.yaml", + "section": "7.6", + "rule": "An approver has exactly one of role or user.", + "expect": "invalid", + "code": "schema.oneOf", + "path": "/spec/approval/approvers/0" + }, + { + "id": "7.6-approver-role-and-user", + "file": "invalid/7.6-approver-role-and-user.yaml", + "section": "7.6", + "rule": "An approver has exactly one of role or user.", + "expect": "invalid", + "code": "schema.oneOf", + "path": "/spec/approval/approvers/0" + }, + { + "id": "7.6-invalid-on-timeout", + "file": "invalid/7.6-invalid-on-timeout.yaml", + "section": "7.6", + "rule": "onTimeout is reject or fail.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/approval/onTimeout" + }, + { + "id": "7.6-min-approvals-zero", + "file": "invalid/7.6-min-approvals-zero.yaml", + "section": "7.6", + "rule": "minApprovals is a positive integer.", + "expect": "invalid", + "code": "schema.minimum", + "path": "/spec/approval/minApprovals" + }, + { + "id": "7.6-required-for-invalid-key", + "file": "invalid/7.6-required-for-invalid-key.yaml", + "section": "7.6", + "rule": "requiredFor lists action keys.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/approval/requiredFor/0" + }, + { + "id": "7.8-unknown-separation-rule", + "file": "invalid/7.8-unknown-separation-rule.yaml", + "section": "7.8", + "rule": "Separation-of-duties rules are the defined rules only.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/approval/separationOfDuties/rules/0/everyoneCanApprove" + }, + { + "id": "7.9-literal-password-in-free-form-value", + "file": "invalid/7.9-literal-password-in-free-form-value.yaml", + "section": "7.9", + "rule": "Credential-named fields are rejected anywhere outside x- extensions, also inside free-form values.", + "expect": "invalid", + "code": "secret.literal-field", + "path": "/spec/inputs/0/default/password" + }, + { + "id": "7.9-literal-token-field", + "file": "invalid/7.9-literal-token-field.yaml", + "section": "7.9", + "rule": "Fields named token, password, apiKey, secret or privateKey with a literal value are rejected (here: unknown field in auth).", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/mcpServers/0/auth/token" + }, + { + "id": "7.9-remote-agent-secret-ref-out-of-scope", + "file": "invalid/7.9-remote-agent-secret-ref-out-of-scope.yaml", + "section": "7.9", + "rule": "A remote agent credential is scoped to the agent id.", + "expect": "invalid", + "code": "secretRef.scope", + "path": "/spec/agents/1/auth/secretRef" + }, + { + "id": "7.9-secret-ref-empty-scope", + "file": "invalid/7.9-secret-ref-empty-scope.yaml", + "section": "7.9", + "rule": "The default scope is none.", + "expect": "invalid", + "code": "secretRef.scope", + "path": "/spec/mcpServers/0/auth/secretRef" + }, + { + "id": "7.9-secret-ref-out-of-scope", + "file": "invalid/7.9-secret-ref-out-of-scope.yaml", + "section": "7.9", + "rule": "The scope of the secret MUST include the consumer.", + "expect": "invalid", + "code": "secretRef.scope", + "path": "/spec/mcpServers/0/auth/secretRef" + }, + { + "id": "7.9-secret-ref-undeclared", + "file": "invalid/7.9-secret-ref-undeclared.yaml", + "section": "7.9", + "rule": "A secretRef MUST name a secret declared in spec.secrets.", + "expect": "invalid", + "code": "secretRef.undeclared", + "path": "/spec/mcpServers/0/auth/secretRef" + }, + { + "id": "7.9-secret-without-source", + "file": "invalid/7.9-secret-without-source.yaml", + "section": "7.9", + "rule": "A secret declaration REQUIRES name and source.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/secrets/0" + }, + { + "id": "7.10-environment-without-autonomy", + "file": "invalid/7.10-environment-without-autonomy.yaml", + "section": "7.10", + "rule": "Each environment REQUIRES autonomy.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/environments/production" + }, + { + "id": "7.10-invalid-autonomy", + "file": "invalid/7.10-invalid-autonomy.yaml", + "section": "7.10", + "rule": "autonomy is unrestricted, controlled, approval-required or prohibited.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/environments/production/autonomy" + }, + { + "id": "8.1-include-without-version", + "file": "invalid/8.1-include-without-version.yaml", + "section": "8.1", + "rule": "include entries name a Policy by name and exact version.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/policies/include/0" + }, + { + "id": "8.1-shorthand-not-boolean", + "file": "invalid/8.1-shorthand-not-boolean.yaml", + "section": "8.1", + "rule": "Policy shorthands are booleans.", + "expect": "invalid", + "code": "schema.type", + "path": "/spec/policies/git/allowPush" + }, + { + "id": "8.1-unknown-shorthand", + "file": "invalid/8.1-unknown-shorthand.yaml", + "section": "8.1", + "rule": "Unknown shorthands are rejected.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/policies/network" + }, + { + "id": "8.2-no-allow-effect", + "file": "invalid/8.2-no-allow-effect.yaml", + "section": "8.2", + "rule": "Policy rules can only restrict: effect is deny or requireApproval.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/rules/0/effect" + }, + { + "id": "8.2-policy-without-rules", + "file": "invalid/8.2-policy-without-rules.yaml", + "section": "8.2", + "rule": "A Policy REQUIRES rules.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec" + }, + { + "id": "8.2-require-approval-without-approval", + "file": "invalid/8.2-require-approval-without-approval.yaml", + "section": "8.2", + "rule": "approval is REQUIRED for requireApproval.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/rules/0" + }, + { + "id": "8.2-rule-without-when", + "file": "invalid/8.2-rule-without-when.yaml", + "section": "8.2", + "rule": "A rule REQUIRES when.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/rules/0" + }, + { + "id": "8.3-empty-when", + "file": "invalid/8.3-empty-when.yaml", + "section": "8.3", + "rule": "A condition has at least one attribute.", + "expect": "invalid", + "code": "schema.minProperties", + "path": "/spec/rules/0/when" + }, + { + "id": "8.3-in-not-a-list", + "file": "invalid/8.3-in-not-a-list.yaml", + "section": "8.3", + "rule": "in and notIn take lists.", + "expect": "invalid", + "code": "schema.type", + "path": "/spec/rules/0/when/destination.region/in" + }, + { + "id": "8.3-invalid-actor-type", + "file": "invalid/8.3-invalid-actor-type.yaml", + "section": "8.3", + "rule": "actor.type is agent, human, runtime or system.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/rules/0/when/actor.type/equals" + }, + { + "id": "8.3-invalid-classification-value", + "file": "invalid/8.3-invalid-classification-value.yaml", + "section": "8.3", + "rule": "Classification values in conditions are data classes.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/rules/0/when/data.classification/gte" + }, + { + "id": "8.3-ordering-operator-on-unordered-attribute", + "file": "invalid/8.3-ordering-operator-on-unordered-attribute.yaml", + "section": "8.3", + "rule": "gt, gte, lt, lte are for data.classification and risk.level only.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/rules/0/when/action/gt" + }, + { + "id": "8.3-plain-condition-value", + "file": "invalid/8.3-plain-condition-value.yaml", + "section": "8.3", + "rule": "Each condition attribute maps to an operator object; the plain-value shorthand of v1alpha1 is removed.", + "expect": "invalid", + "code": "schema.type", + "path": "/spec/rules/0/when/action", + "profiles": [ + "core" + ] + }, + { + "id": "8.3-unknown-attribute", + "file": "invalid/8.3-unknown-attribute.yaml", + "section": "8.3", + "rule": "Only the defined attributes may be used in conditions.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec/rules/0/when/user.name" + }, + { + "id": "9.1-digest-mismatch", + "file": "invalid/9.1-digest-mismatch.yaml", + "section": "9.1", + "rule": "If spec.integrity.digest is present, runtimes verify it and reject on mismatch.", + "expect": "invalid", + "code": "digest.mismatch", + "path": "/spec/integrity/digest", + "verifyDigest": true + }, + { + "id": "9.4-unpinned-command-image-security-profile", + "file": "invalid/9.4-unpinned-command-image-security-profile.yaml", + "section": "9.4", + "rule": "Under the security profile command step images MUST be pinned by digest.", + "expect": "invalid", + "code": "security.image-not-pinned", + "path": "/spec/workflow/2/image" + }, + { + "id": "9.4-unpinned-mcp-image-security-profile", + "file": "invalid/9.4-unpinned-mcp-image-security-profile.yaml", + "section": "9.4", + "rule": "Under the security profile container images MUST be pinned by digest.", + "expect": "invalid", + "code": "security.image-not-pinned", + "path": "/spec/mcpServers/1/image" + }, + { + "id": "10.2-invalid-integrity-mode", + "file": "invalid/10.2-invalid-integrity-mode.yaml", + "section": "10.2", + "rule": "audit.integrity.mode is none, hash-chain or signed.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/audit/integrity/mode" + }, + { + "id": "10.2-invalid-payload", + "file": "invalid/10.2-invalid-payload.yaml", + "section": "10.2", + "rule": "audit.payload is metadata or full.", + "expect": "invalid", + "code": "schema.enum", + "path": "/spec/audit/payload" + }, + { + "id": "10.2-invalid-retention", + "file": "invalid/10.2-invalid-retention.yaml", + "section": "10.2", + "rule": "retention.duration is a duration.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/audit/retention/duration" + }, + { + "id": "10.8-workflow-ref-version-not-semver", + "file": "invalid/10.8-workflow-ref-version-not-semver.yaml", + "section": "10.8", + "rule": "workflowRef.version is a semantic version.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflowRef/version" + }, + { + "id": "10.8-workflow-run-governance-field", + "file": "invalid/10.8-workflow-run-governance-field.yaml", + "section": "10.8", + "rule": "A WorkflowRun has no governance fields; they belong to the workflow.", + "expect": "invalid", + "code": "schema.additionalProperties", + "path": "/spec" + }, + { + "id": "10.8-workflow-run-without-name", + "file": "invalid/10.8-workflow-run-without-name.yaml", + "section": "10.8", + "rule": "metadata has name or generateName.", + "expect": "invalid", + "code": "schema.anyOf", + "path": "/metadata" + }, + { + "id": "10.8-workflow-run-without-workflow-ref", + "file": "invalid/10.8-workflow-run-without-workflow-ref.yaml", + "section": "10.8", + "rule": "spec.workflowRef is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec" + }, + { + "id": "3.1-json-serialization", + "file": "valid/3.1-json-serialization.json", + "section": "3.1", + "rule": "Manifests are representable as JSON and implementations accept JSON.", + "expect": "valid" + }, + { + "id": "3.1-multi-document", + "file": "valid/3.1-multi-document.yaml", + "section": "3.1", + "rule": "A file may contain several YAML documents; each is an independent manifest.", + "expect": "valid" + }, + { + "id": "3.2-minimal-workflow", + "file": "valid/3.2-minimal-workflow.yaml", + "section": "3.2", + "rule": "Minimal Workflow of the specification (hello); spec.classification is only REQUIRED under the governance profile.", + "expect": "valid", + "profiles": [ + "core" + ] + }, + { + "id": "3.2-status-and-store-metadata", + "file": "valid/3.2-status-and-store-metadata.yaml", + "section": "3.2", + "rule": "status and metadata fields populated by an object store are accepted and ignored.", + "expect": "valid", + "profiles": [ + "core" + ] + }, + { + "id": "3.3-core-profile-only", + "file": "valid/3.3-core-profile-only.yaml", + "section": "3.3", + "rule": "A manifest using only core fields is valid for a validator that supports only the core profile.", + "expect": "valid", + "profiles": [ + "core" + ] + }, + { + "id": "3.3-extension-fields", + "file": "valid/3.3-extension-fields.yaml", + "section": "3.3", + "rule": "Fields starting with x- may appear in any object and are ignored.", + "expect": "valid" + }, + { + "id": "3.6-durations", + "file": "valid/3.6-durations.yaml", + "section": "3.6", + "rule": "Durations use units ms, s, m, h, d, w, y and may be combined.", + "expect": "valid" + }, + { + "id": "3.9-expression-references", + "file": "valid/3.9-expression-references.yaml", + "section": "3.9", + "rule": "The allowed references are inputs., steps..outputs., execution.id, execution.environment.", + "expect": "valid" + }, + { + "id": "4-labels-and-annotations", + "file": "valid/4-labels-and-annotations.yaml", + "section": "4", + "rule": "labels and annotations are string maps with Kubernetes key syntax.", + "expect": "valid", + "profiles": [ + "core", + "mcp" + ] + }, + { + "id": "5.2-schedule-concurrency-and-deadline", + "file": "valid/5.2-schedule-concurrency-and-deadline.yaml", + "section": "5.2", + "rule": "A schedule trigger may set concurrencyPolicy and startingDeadline.", + "expect": "valid" + }, + { + "id": "5.2-triggers", + "file": "valid/5.2-triggers.yaml", + "section": "5.2", + "rule": "manual, schedule and event triggers.", + "expect": "valid" + }, + { + "id": "5.3-inputs", + "file": "valid/5.3-inputs.yaml", + "section": "5.3", + "rule": "Input declarations with all types; default matches type.", + "expect": "valid" + }, + { + "id": "5.4.2-agent-reference", + "file": "valid/5.4.2-agent-reference.yaml", + "section": "5.4.2", + "rule": "Agent reference with exact version and digest.", + "expect": "valid" + }, + { + "id": "5.4.4-remote-agent", + "file": "valid/5.4.4-remote-agent.yaml", + "section": "5.4.4", + "rule": "Remote A2A agent with HTTPS endpoint and a scoped secretRef.", + "expect": "valid" + }, + { + "id": "5.5.4-action-groups", + "file": "valid/5.5.4-action-groups.yaml", + "section": "5.5.4", + "rule": "Groups map concrete actions to well-known actions; groups hold only concrete actions.", + "expect": "valid" + }, + { + "id": "5.6.2-command-step-env", + "file": "valid/5.6.2-command-step-env.yaml", + "section": "5.6.2", + "rule": "Command steps receive values through env; the command text has no expressions.", + "expect": "valid" + }, + { + "id": "5.6.3-transitive-step-reference", + "file": "valid/5.6.3-transitive-step-reference.yaml", + "section": "5.6.3", + "rule": "A step may reference outputs of steps it depends on transitively.", + "expect": "valid" + }, + { + "id": "5.6.4-command-step-outputs", + "file": "valid/5.6.4-command-step-outputs.yaml", + "section": "5.6.4", + "rule": "A command step declares outputs whose names are valid file names in $AWP_OUTPUTS.", + "expect": "valid" + }, + { + "id": "5.6.5-for-each", + "file": "valid/5.6.5-for-each.yaml", + "section": "5.6.5", + "rule": "An agent or command step MAY iterate over an array input or a step output with forEach.", + "expect": "valid" + }, + { + "id": "5.7-nested-budgets", + "file": "valid/5.7-nested-budgets.yaml", + "section": "5.7", + "rule": "Budgets on workflow, agent and step; retries do not exceed maxRetries.", + "expect": "valid" + }, + { + "id": "5.8-agent-human-input", + "file": "valid/5.8-agent-human-input.yaml", + "section": "5.8", + "rule": "An agent with humanInput may ask a person during its step.", + "expect": "valid" + }, + { + "id": "5.8-agent-manifest-human-input", + "file": "valid/5.8-agent-manifest-human-input.yaml", + "section": "5.8", + "rule": "humanInput is also allowed in an Agent manifest.", + "expect": "valid" + }, + { + "id": "5.8-input-step-free-text", + "file": "valid/5.8-input-step-free-text.yaml", + "section": "5.8", + "rule": "Without answerSchema the answer is free text.", + "expect": "valid" + }, + { + "id": "5.8-input-step", + "file": "valid/5.8-input-step.yaml", + "section": "5.8", + "rule": "An input step asks named answerers, waits up to its timeout and provides the output answer.", + "expect": "valid" + }, + { + "id": "6-agent-manifest", + "file": "valid/6-agent-manifest.yaml", + "section": "6", + "rule": "A complete Agent manifest.", + "expect": "valid" + }, + { + "id": "6-agent-prompt-ref", + "file": "valid/6-agent-prompt-ref.yaml", + "section": "6", + "rule": "An Agent may use promptRef instead of instructions.", + "expect": "valid" + }, + { + "id": "7.2-data-and-model-policy", + "file": "valid/7.2-data-and-model-policy.yaml", + "section": "7.2", + "rule": "Data policy, residency, processing and model policy.", + "expect": "valid" + }, + { + "id": "7.5-permissions", + "file": "valid/7.5-permissions.yaml", + "section": "7.5", + "rule": "All permission fields, wildcard keys and resource scopes.", + "expect": "valid" + }, + { + "id": "7.6-approval-and-separation-of-duties", + "file": "valid/7.6-approval-and-separation-of-duties.yaml", + "section": "7.6", + "rule": "Workflow approval, approval step and separation of duties.", + "expect": "valid" + }, + { + "id": "7.10-environments", + "file": "valid/7.10-environments.yaml", + "section": "7.10", + "rule": "Environments with autonomy levels.", + "expect": "valid" + }, + { + "id": "8.1-policy-shorthands", + "file": "valid/8.1-policy-shorthands.yaml", + "section": "8.1", + "rule": "Policy shorthands and policy includes.", + "expect": "valid" + }, + { + "id": "8.2-policy-manifest", + "file": "valid/8.2-policy-manifest.yaml", + "section": "8.2", + "rule": "Policy manifest with requireApproval and deny rules.", + "expect": "valid" + }, + { + "id": "8.3-conditions", + "file": "valid/8.3-conditions.yaml", + "section": "8.3", + "rule": "All condition attributes and operators; ordering operators on ordered attributes.", + "expect": "valid" + }, + { + "id": "9.1-digest-ignores-deployment-fields", + "file": "valid/9.1-digest-ignores-deployment-fields.yaml", + "section": "9.1", + "rule": "The digest covers apiVersion, kind, metadata.name and spec without integrity, signature and provenance; namespace, labels, annotations and status do not change it.", + "expect": "valid", + "profiles": [ + "core" + ], + "verifyDigest": true + }, + { + "id": "9.1-digest-verified", + "file": "valid/9.1-digest-verified.yaml", + "section": "9.1", + "rule": "spec.integrity.digest matches the JCS digest of the manifest without integrity, signature and provenance.", + "expect": "valid", + "verifyDigest": true + }, + { + "id": "9.4-pinned-images-security-profile", + "file": "valid/9.4-pinned-images-security-profile.yaml", + "section": "9.4", + "rule": "Under the security profile images are pinned by digest.", + "expect": "valid" + }, + { + "id": "10.2-audit-configuration", + "file": "valid/10.2-audit-configuration.yaml", + "section": "10.2", + "rule": "Audit configuration.", + "expect": "valid" + }, + { + "id": "10.8-workflow-run-with-status", + "file": "valid/10.8-workflow-run-with-status.yaml", + "section": "10.8", + "rule": "A WorkflowRun may use generateName; validators ignore status written by the runtime.", + "expect": "valid" + }, + { + "id": "10.8-workflow-run", + "file": "valid/10.8-workflow-run.yaml", + "section": "10.8", + "rule": "A WorkflowRun requests one execution of a workflow with inputs and an environment.", + "expect": "valid" + }, + { + "id": "5.6.1-when-on-every-step-type", + "file": "valid/5.6.1-when-on-every-step-type.yaml", + "section": "5.6.1", + "rule": "when is allowed on agent, command, approval, input and workflow steps.", + "expect": "valid" + }, + { + "id": "5.6.1-when-exists-and-in", + "file": "valid/5.6.1-when-exists-and-in.yaml", + "section": "3.12", + "rule": "Conditions combine exists(), in with literal lists, comparisons and boolean operators.", + "expect": "valid" + }, + { + "id": "5.6.1-when-json-path-into-output", + "file": "valid/5.6.1-when-json-path-into-output.yaml", + "section": "3.12", + "rule": "Path segments after the output name select into the output parsed as JSON; a transitive dependency may be read.", + "expect": "valid" + }, + { + "id": "5.6.6-workflow-step-wait", + "file": "valid/5.6.6-workflow-step-wait.yaml", + "section": "5.6.6", + "rule": "A workflow step starts a child workflow with expression-enabled inputs, waits for it and provides executionId and status.", + "expect": "valid" + }, + { + "id": "5.6.6-workflow-step-no-wait", + "file": "valid/5.6.6-workflow-step-no-wait.yaml", + "section": "5.6.6", + "rule": "With wait: false the workflow step only starts the child execution.", + "expect": "valid" + }, + { + "id": "3.12-when-syntax", + "file": "invalid/3.12-when-syntax.yaml", + "section": "3.12", + "rule": "when MUST parse in the condition grammar.", + "expect": "invalid", + "code": "when.syntax", + "path": "/spec/workflow/1/when" + }, + { + "id": "3.12-when-too-long", + "file": "invalid/3.12-when-too-long.yaml", + "section": "3.12", + "rule": "A condition has at most 512 characters.", + "expect": "invalid", + "code": "schema.maxLength", + "path": "/spec/workflow/1/when" + }, + { + "id": "3.12-when-not-dependency", + "file": "invalid/3.12-when-not-dependency.yaml", + "section": "3.12", + "rule": "steps. in when MUST be a direct or transitive dependency.", + "expect": "invalid", + "code": "when.not-a-dependency", + "path": "/spec/workflow/2/when" + }, + { + "id": "3.12-when-undeclared-output", + "file": "invalid/3.12-when-undeclared-output.yaml", + "section": "3.12", + "rule": " in steps..outputs. MUST be a declared output of .", + "expect": "invalid", + "code": "when.undeclared-output", + "path": "/spec/workflow/1/when" + }, + { + "id": "3.12-when-forbidden-segment", + "file": "invalid/3.12-when-forbidden-segment.yaml", + "section": "3.12", + "rule": "Path segments __proto__, prototype and constructor MUST be rejected.", + "expect": "invalid", + "code": "when.forbidden-segment", + "path": "/spec/workflow/1/when" + }, + { + "id": "3.12-when-unknown-root", + "file": "invalid/3.12-when-unknown-root.yaml", + "section": "3.12", + "rule": "Conditions read only inputs, steps..outputs and execution.environment.", + "expect": "invalid", + "code": "when.unknown-root", + "path": "/spec/workflow/1/when" + }, + { + "id": "5.6.6-workflow-step-without-ref", + "file": "invalid/5.6.6-workflow-step-without-ref.yaml", + "section": "5.6.6", + "rule": "workflow.ref is REQUIRED.", + "expect": "invalid", + "code": "schema.required", + "path": "/spec/workflow/1/workflow" + }, + { + "id": "5.6.6-workflow-step-for-each", + "file": "invalid/5.6.6-workflow-step-for-each.yaml", + "section": "5.6.6", + "rule": "forEach is not allowed on a workflow step.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/workflow/1" + }, + { + "id": "5.6.6-workflow-step-output", + "file": "invalid/5.6.6-workflow-step-output.yaml", + "section": "5.6.6", + "rule": "A workflow step declares no outputs other than executionId and status.", + "expect": "invalid", + "code": "step.workflow-output", + "path": "/spec/workflow/1/outputs/1/name" + }, + { + "id": "5.6.6-workflow-ref-not-dns-label", + "file": "invalid/5.6.6-workflow-ref-not-dns-label.yaml", + "section": "5.6.6", + "rule": "workflow.ref is a DNS-1123 label like metadata.name.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/1/workflow/ref" + }, + { + "id": "5.6.6-workflow-step-agent", + "file": "invalid/5.6.6-workflow-step-agent.yaml", + "section": "5.6.6", + "rule": "A workflow step has no agent.", + "expect": "invalid", + "code": "schema.not", + "path": "/spec/workflow/1" + }, + { + "id": "5.6.6-workflow-inputs-expression", + "file": "invalid/5.6.6-workflow-inputs-expression.yaml", + "section": "3.9", + "rule": "workflow.inputs values are expression-enabled; other syntax is rejected.", + "expect": "invalid", + "code": "schema.pattern", + "path": "/spec/workflow/1/workflow/inputs/repoUrl" + } + ] +} diff --git a/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-integrity-mode.yaml b/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-integrity-mode.yaml new file mode 100644 index 0000000..76c62a9 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-integrity-mode.yaml @@ -0,0 +1,66 @@ +# Conformance case 10.2-invalid-integrity-mode +# Spec section 10.2: audit.integrity.mode is none, hash-chain or signed. +# Expected: invalid (schema.enum at /spec/audit/integrity/mode) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + audit: + integrity: + mode: blockchain diff --git a/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-payload.yaml b/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-payload.yaml new file mode 100644 index 0000000..0034fe7 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-payload.yaml @@ -0,0 +1,65 @@ +# Conformance case 10.2-invalid-payload +# Spec section 10.2: audit.payload is metadata or full. +# Expected: invalid (schema.enum at /spec/audit/payload) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + audit: + payload: verbose diff --git a/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-retention.yaml b/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-retention.yaml new file mode 100644 index 0000000..b1a23bd --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/10.2-invalid-retention.yaml @@ -0,0 +1,66 @@ +# Conformance case 10.2-invalid-retention +# Spec section 10.2: retention.duration is a duration. +# Expected: invalid (schema.pattern at /spec/audit/retention/duration) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + audit: + retention: + duration: forever diff --git a/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-ref-version-not-semver.yaml b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-ref-version-not-semver.yaml new file mode 100644 index 0000000..3a9328d --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-ref-version-not-semver.yaml @@ -0,0 +1,15 @@ +# Conformance case 10.8-workflow-ref-version-not-semver +# Spec section 10.8: workflowRef.version is a semantic version. +# Expected: invalid (schema.pattern at /spec/workflowRef/version) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: WorkflowRun +metadata: + name: conformance-base-20261119 + namespace: conformance +spec: + workflowRef: + name: conformance-base + version: latest + inputs: + repo: example-org/web-shop + environment: staging diff --git a/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-governance-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-governance-field.yaml new file mode 100644 index 0000000..8391cbf --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-governance-field.yaml @@ -0,0 +1,17 @@ +# Conformance case 10.8-workflow-run-governance-field +# Spec section 10.8: A WorkflowRun has no governance fields; they belong to the workflow. +# Expected: invalid (schema.additionalProperties at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: WorkflowRun +metadata: + name: conformance-base-20261119 + namespace: conformance +spec: + workflowRef: + name: conformance-base + version: 1.0.0 + inputs: + repo: example-org/web-shop + environment: staging + owner: + team: conformance-team diff --git a/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-without-name.yaml b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-without-name.yaml new file mode 100644 index 0000000..444cd46 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-without-name.yaml @@ -0,0 +1,14 @@ +# Conformance case 10.8-workflow-run-without-name +# Spec section 10.8: metadata has name or generateName. +# Expected: invalid (schema.anyOf at /metadata) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: WorkflowRun +metadata: + namespace: conformance +spec: + workflowRef: + name: conformance-base + version: 1.0.0 + inputs: + repo: example-org/web-shop + environment: staging diff --git a/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-without-workflow-ref.yaml b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-without-workflow-ref.yaml new file mode 100644 index 0000000..4188b34 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/10.8-workflow-run-without-workflow-ref.yaml @@ -0,0 +1,12 @@ +# Conformance case 10.8-workflow-run-without-workflow-ref +# Spec section 10.8: spec.workflowRef is REQUIRED. +# Expected: invalid (schema.required at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: WorkflowRun +metadata: + name: conformance-base-20261119 + namespace: conformance +spec: + inputs: + repo: example-org/web-shop + environment: staging diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.1-custom-tag.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.1-custom-tag.yaml new file mode 100644 index 0000000..50e9ae6 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.1-custom-tag.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.1-custom-tag +# Spec section 3.1: YAML features without a JSON equivalent (custom tags) MUST be rejected. +# Expected: invalid (yaml.custom-tag at ) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: !custom conformance-base + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low +spec: + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.1-non-string-key.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.1-non-string-key.yaml new file mode 100644 index 0000000..0b4c4d3 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.1-non-string-key.yaml @@ -0,0 +1,65 @@ +# Conformance case 3.1-non-string-key +# Spec section 3.1: YAML mapping keys MUST be strings. +# Expected: invalid (yaml.non-string-key at ) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low +spec: + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true +x-extra: + 1: one diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.1-syntax-error.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.1-syntax-error.yaml new file mode 100644 index 0000000..9e369f2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.1-syntax-error.yaml @@ -0,0 +1,5 @@ +# Conformance case 3.1-syntax-error +# Spec section 3.1: A document that is not well-formed YAML is rejected. +# Expected: invalid (yaml.parse-error at ) +apiVersion: [unclosed +kind: Workflow diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.12-when-forbidden-segment.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-forbidden-segment.yaml new file mode 100644 index 0000000..a1597b5 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-forbidden-segment.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.12-when-forbidden-segment +# Spec section 3.12: Path segments __proto__, prototype and constructor MUST be rejected. +# Expected: invalid (when.forbidden-segment at /spec/workflow/1/when) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + dependsOn: + - analyze + when: 'exists(steps.analyze.outputs.report.__proto__)' + task: Apply the report. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.12-when-not-dependency.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-not-dependency.yaml new file mode 100644 index 0000000..e5e7340 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-not-dependency.yaml @@ -0,0 +1,69 @@ +# Conformance case 3.12-when-not-dependency +# Spec section 3.12: steps. in when MUST be a direct or transitive dependency. +# Expected: invalid (when.not-a-dependency at /spec/workflow/2/when) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: plan + agent: worker + task: Plan the change. + outputs: + - name: plan + - id: apply + agent: worker + dependsOn: + - analyze + when: steps.plan.outputs.plan == "go" + task: Apply the report. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.12-when-syntax.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-syntax.yaml new file mode 100644 index 0000000..f700360 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-syntax.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.12-when-syntax +# Spec section 3.12: when MUST parse in the condition grammar. +# Expected: invalid (when.syntax at /spec/workflow/1/when) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + dependsOn: + - analyze + when: 'steps.analyze.outputs.report ==' + task: Apply the report. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.12-when-too-long.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-too-long.yaml new file mode 100644 index 0000000..1fa25e4 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-too-long.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.12-when-too-long +# Spec section 3.12: A condition has at most 512 characters. +# Expected: invalid (schema.maxLength at /spec/workflow/1/when) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + dependsOn: + - analyze + when: 'steps.analyze.outputs.report == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" || steps.analyze.outputs.report == "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" || steps.analyze.outputs.report == "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"' + task: Apply the report. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.12-when-undeclared-output.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-undeclared-output.yaml new file mode 100644 index 0000000..4956127 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-undeclared-output.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.12-when-undeclared-output +# Spec section 3.12: in steps..outputs. MUST be a declared output of . +# Expected: invalid (when.undeclared-output at /spec/workflow/1/when) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + dependsOn: + - analyze + when: 'steps.analyze.outputs.severity == "high"' + task: Apply the report. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.12-when-unknown-root.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-unknown-root.yaml new file mode 100644 index 0000000..42f0842 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.12-when-unknown-root.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.12-when-unknown-root +# Spec section 3.12: Conditions read only inputs, steps..outputs and execution.environment. +# Expected: invalid (when.unknown-root at /spec/workflow/1/when) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + dependsOn: + - analyze + when: 'event.action == "opened"' + task: Apply the report. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-api-version.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-api-version.yaml new file mode 100644 index 0000000..0f2985e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-api-version.yaml @@ -0,0 +1,62 @@ +# Conformance case 3.2-missing-api-version +# Spec section 3.2: apiVersion is REQUIRED. +# Expected: invalid (schema.required at ) +kind: Workflow +metadata: + name: conformance-base + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low +spec: + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-metadata.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-metadata.yaml new file mode 100644 index 0000000..0225ae4 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-metadata.yaml @@ -0,0 +1,55 @@ +# Conformance case 3.2-missing-metadata +# Spec section 3.2: metadata is REQUIRED. +# Expected: invalid (schema.required at ) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +spec: + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-spec.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-spec.yaml new file mode 100644 index 0000000..494f5a8 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.2-missing-spec.yaml @@ -0,0 +1,13 @@ +# Conformance case 3.2-missing-spec +# Spec section 3.2: spec is REQUIRED. +# Expected: invalid (schema.required at ) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.2-unsupported-api-version.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.2-unsupported-api-version.yaml new file mode 100644 index 0000000..9ab0770 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.2-unsupported-api-version.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.2-unsupported-api-version +# Spec section 3.2: apiVersion MUST name a supported version. +# Expected: invalid (schema.const at /apiVersion) +apiVersion: awp.agenticworkflowprotocol.org/v9 +kind: Workflow +metadata: + name: conformance-base + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low +spec: + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.2-unsupported-kind.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.2-unsupported-kind.yaml new file mode 100644 index 0000000..ace6871 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.2-unsupported-kind.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.2-unsupported-kind +# Spec section 3.2: kind MUST be Workflow, Agent or Policy. +# Expected: invalid (schema.enum at /kind) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Pipeline +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-extension-field-outside-extensions.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-extension-field-outside-extensions.yaml new file mode 100644 index 0000000..be318e3 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-extension-field-outside-extensions.yaml @@ -0,0 +1,22 @@ +# Conformance case 3.3-extension-field-outside-extensions +# Spec section 3.3: Extension fields are placed in an extensions object; an x- field on the object itself is unknown. +# Expected: invalid (schema.additionalProperties at /spec/workflow/0/x-example-mode) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. + x-example-mode: fast diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-extension-key-without-prefix.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-extension-key-without-prefix.yaml new file mode 100644 index 0000000..c93350e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-extension-key-without-prefix.yaml @@ -0,0 +1,23 @@ +# Conformance case 3.3-extension-key-without-prefix +# Spec section 3.3: Keys of extensions start with x-. +# Expected: invalid (schema.propertyNames at /spec/extensions/mode) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. + extensions: + mode: fast diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-a2a-agent.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-a2a-agent.yaml new file mode 100644 index 0000000..601d03d --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-a2a-agent.yaml @@ -0,0 +1,67 @@ +# Conformance case 3.3-profile-a2a-agent +# Spec section 3.3: Agents with protocol a2a belong to the a2a profile. +# Expected: invalid (profile.unsupported at /spec/agents/1) +# Profiles supported by the validator for this case: core, mcp +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: remote + protocol: a2a + endpoint: https://agents.example.com/a2a + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-approval-step.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-approval-step.yaml new file mode 100644 index 0000000..99112b9 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-approval-step.yaml @@ -0,0 +1,71 @@ +# Conformance case 3.3-profile-approval-step +# Spec section 3.3: Steps with type approval belong to the governance profile. +# Expected: invalid (profile.unsupported at /spec/workflow/2) +# Profiles supported by the validator for this case: core, mcp +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: gate + type: approval + approval: + approvers: + - role: x + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-audit-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-audit-field.yaml new file mode 100644 index 0000000..3c44214 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-audit-field.yaml @@ -0,0 +1,66 @@ +# Conformance case 3.3-profile-audit-field +# Spec section 3.3: spec.audit belongs to the audit profile. +# Expected: invalid (profile.unsupported at /spec/audit) +# Profiles supported by the validator for this case: core, mcp +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + audit: + enabled: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-governance-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-governance-field.yaml new file mode 100644 index 0000000..7943b4b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-governance-field.yaml @@ -0,0 +1,67 @@ +# Conformance case 3.3-profile-governance-field +# Spec section 3.3: A field of a profile the implementation does not support MUST be rejected naming field and profile (spec.approval, governance). +# Expected: invalid (profile.unsupported at /spec/approval) +# Profiles supported by the validator for this case: core, mcp +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + requiredFor: + - git.merge diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-high-risk.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-high-risk.yaml new file mode 100644 index 0000000..b865336 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-high-risk.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.3-profile-high-risk +# Spec section 3.3: spec.risk.level high or critical belongs to the governance profile. +# Expected: invalid (profile.unsupported at /spec/risk/level) +# Profiles supported by the validator for this case: core, mcp +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: high + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-interaction-step.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-interaction-step.yaml new file mode 100644 index 0000000..4a1a5e5 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-interaction-step.yaml @@ -0,0 +1,83 @@ +# Conformance case 3.3-profile-interaction-step +# Spec section 3.3: Steps with type input belong to the interaction profile. +# Expected: invalid (profile.unsupported at /spec/workflow/1) +# Profiles supported by the validator for this case: core, governance, audit, security, mcp, a2a +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-mcp-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-mcp-field.yaml new file mode 100644 index 0000000..801bcd5 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-mcp-field.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.3-profile-mcp-field +# Spec section 3.3: spec.mcpServers belongs to the mcp profile. +# Expected: invalid (profile.unsupported at /spec/mcpServers) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-policy-kind.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-policy-kind.yaml new file mode 100644 index 0000000..ffacf43 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-policy-kind.yaml @@ -0,0 +1,21 @@ +# Conformance case 3.3-profile-policy-kind +# Spec section 3.3: Policy manifests belong to the governance profile. +# Expected: invalid (profile.unsupported at /kind) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: + equals: production.deploy + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-security-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-security-field.yaml new file mode 100644 index 0000000..8c07a49 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-profile-security-field.yaml @@ -0,0 +1,67 @@ +# Conformance case 3.3-profile-security-field +# Spec section 3.3: spec.signature belongs to the security profile. +# Expected: invalid (profile.unsupported at /spec/signature) +# Profiles supported by the validator for this case: core, mcp +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + signature: + format: jws + ref: https://registry.example.com/s + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-field-near-extension.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-field-near-extension.yaml new file mode 100644 index 0000000..bc5baac --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-field-near-extension.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.3-unknown-field-near-extension +# Spec section 3.3: Only the prefix x- marks an extension; x_foo and X-foo are unknown fields. +# Expected: invalid (schema.additionalProperties at /spec/X-foo) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + X-foo: 1 diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-metadata-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-metadata-field.yaml new file mode 100644 index 0000000..f16b9cb --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-metadata-field.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.3-unknown-metadata-field +# Spec section 3.3: Unknown fields MUST be rejected (metadata). +# Expected: invalid (schema.additionalProperties at /metadata/team) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base + team: x +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-step-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-step-field.yaml new file mode 100644 index 0000000..245b8c2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-step-field.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.3-unknown-step-field +# Spec section 3.3: Unknown fields MUST be rejected (nested in a list entry). +# Expected: invalid (schema.additionalProperties at /spec/workflow/0/parallel) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + parallel: true + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-top-level-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-top-level-field.yaml new file mode 100644 index 0000000..1f7ed47 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.3-unknown-top-level-field.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.3-unknown-top-level-field +# Spec section 3.3: Unknown fields MUST be rejected (top level; status is reserved, not unknown). +# Expected: invalid (schema.additionalProperties at /data) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true +data: x diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.4-duplicate-agent-id.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.4-duplicate-agent-id.yaml new file mode 100644 index 0000000..2e448d3 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.4-duplicate-agent-id.yaml @@ -0,0 +1,70 @@ +# Conformance case 3.4-duplicate-agent-id +# Spec section 3.4: Identifiers MUST be unique within their list (agents). +# Expected: invalid (id.duplicate at /spec/agents/1/id) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.4-duplicate-rule-id.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.4-duplicate-rule-id.yaml new file mode 100644 index 0000000..6896822 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.4-duplicate-rule-id.yaml @@ -0,0 +1,28 @@ +# Conformance case 3.4-duplicate-rule-id +# Spec section 3.4: Identifiers MUST be unique within their list (rules). +# Expected: invalid (id.duplicate at /spec/rules/1/id) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: + equals: production.deploy + effect: requireApproval + approval: + approvers: + - role: release-manager + - id: deploy-needs-approval + when: + action: + equals: production.deploy + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.4-invalid-metadata-name.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.4-invalid-metadata-name.yaml new file mode 100644 index 0000000..71a160b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.4-invalid-metadata-name.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.4-invalid-metadata-name +# Spec section 3.4: metadata.name MUST be a DNS-1123 label. +# Expected: invalid (schema.pattern at /metadata/name) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: ends-with-hyphen- +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.4-uppercase-agent-id.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.4-uppercase-agent-id.yaml new file mode 100644 index 0000000..abbc609 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.4-uppercase-agent-id.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.4-uppercase-agent-id +# Spec section 3.4: Identifiers MUST match ^[a-z][a-z0-9-]{0,62}$. +# Expected: invalid (schema.pattern at /spec/agents/0/id) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: Worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.4-uppercase-metadata-name.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.4-uppercase-metadata-name.yaml new file mode 100644 index 0000000..1f450af --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.4-uppercase-metadata-name.yaml @@ -0,0 +1,21 @@ +# Conformance case 3.4-uppercase-metadata-name +# Spec section 3.4: metadata.name MUST be a DNS-1123 label (lowercase). +# Expected: invalid (schema.pattern at /metadata/name) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: Hello +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.5-version-leading-zero.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.5-version-leading-zero.yaml new file mode 100644 index 0000000..576358b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.5-version-leading-zero.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.5-version-leading-zero +# Spec section 3.5: SemVer forbids leading zeros in numeric identifiers. +# Expected: invalid (schema.pattern at /spec/version) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 01.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.5-version-not-semver.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.5-version-not-semver.yaml new file mode 100644 index 0000000..ac52a9c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.5-version-not-semver.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.5-version-not-semver +# Spec section 3.5: spec.version MUST be a SemVer 2.0.0 string. +# Expected: invalid (schema.pattern at /spec/version) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: "1.0" + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.6-duration-unknown-unit.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.6-duration-unknown-unit.yaml new file mode 100644 index 0000000..6c780f9 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.6-duration-unknown-unit.yaml @@ -0,0 +1,64 @@ +# Conformance case 3.6-duration-unknown-unit +# Spec section 3.6: Durations use the units ms, s, m, h, d, w, y. +# Expected: invalid (schema.pattern at /spec/workflow/0/timeout) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + timeout: 10min + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.6-duration-zero.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.6-duration-zero.yaml new file mode 100644 index 0000000..c82d13a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.6-duration-zero.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.6-duration-zero +# Spec section 3.6: A duration MUST be greater than zero. +# Expected: invalid (schema.pattern at /spec/budget/maxDuration) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 0s + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.7-date-not-calendar-valid.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.7-date-not-calendar-valid.yaml new file mode 100644 index 0000000..dbf0578 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.7-date-not-calendar-valid.yaml @@ -0,0 +1,66 @@ +# Conformance case 3.7-date-not-calendar-valid +# Spec section 3.7: Dates are RFC 3339 full-date values; 2027-02-30 does not exist. +# Expected: invalid (date.invalid at /spec/agents/0/model/approval/expires) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + approval: + status: approved + expires: 2027-02-30 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.7-date-wrong-format.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.7-date-wrong-format.yaml new file mode 100644 index 0000000..344aa3f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.7-date-wrong-format.yaml @@ -0,0 +1,66 @@ +# Conformance case 3.7-date-wrong-format +# Spec section 3.7: Dates are RFC 3339 full-date values. +# Expected: invalid (schema.pattern at /spec/agents/0/model/approval/expires) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + approval: + status: approved + expires: 01/01/2027 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.8-digest-uppercase-hex.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.8-digest-uppercase-hex.yaml new file mode 100644 index 0000000..6406644 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.8-digest-uppercase-hex.yaml @@ -0,0 +1,65 @@ +# Conformance case 3.8-digest-uppercase-hex +# Spec section 3.8: Digest hex is lowercase. +# Expected: invalid (schema.pattern at /spec/integrity/digest) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + integrity: + digest: sha256:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.8-digest-wrong-length.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.8-digest-wrong-length.yaml new file mode 100644 index 0000000..138e77a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.8-digest-wrong-length.yaml @@ -0,0 +1,65 @@ +# Conformance case 3.8-digest-wrong-length +# Spec section 3.8: A sha256 digest has 64 lowercase hex characters. +# Expected: invalid (schema.pattern at /spec/integrity/digest) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + integrity: + digest: sha256:abc123 + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-function.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-function.yaml new file mode 100644 index 0000000..d0ea9d1 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-function.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.9-expression-function +# Spec section 3.9: No functions in expressions. +# Expected: invalid (schema.pattern at /spec/workflow/0/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: ${{ toUpper(inputs.repo) }} + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-in-env-key-ref-bad.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-in-env-key-ref-bad.yaml new file mode 100644 index 0000000..b7a59dc --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-in-env-key-ref-bad.yaml @@ -0,0 +1,70 @@ +# Conformance case 3.9-expression-in-env-key-ref-bad +# Spec section 3.9: env values are expression-enabled; other syntax is rejected. +# Expected: invalid (schema.pattern at /spec/workflow/2/env/A) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: cmd + type: command + command: "true" + env: + A: ${{ secrets.TOOLS_TOKEN }} + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-operator.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-operator.yaml new file mode 100644 index 0000000..925cf87 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-operator.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.9-expression-operator +# Spec section 3.9: No operators in expressions. +# Expected: invalid (schema.pattern at /spec/workflow/0/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Count ${{ inputs.repo + 1 }} + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-unknown-root.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-unknown-root.yaml new file mode 100644 index 0000000..9a855af --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-unknown-root.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.9-expression-unknown-root +# Spec section 3.9: References are inputs, steps..outputs and execution only. +# Expected: invalid (schema.pattern at /spec/workflow/0/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: ${{ env.HOME }} + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-unterminated.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-unterminated.yaml new file mode 100644 index 0000000..cd64207 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-expression-unterminated.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.9-expression-unterminated +# Spec section 3.9: An expression must be closed. +# Expected: invalid (schema.pattern at /spec/workflow/0/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Go ${{ inputs.repo + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-iteration-reference-outside-for-each.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-iteration-reference-outside-for-each.yaml new file mode 100644 index 0000000..4ebdfdd --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-iteration-reference-outside-for-each.yaml @@ -0,0 +1,66 @@ +# Conformance case 3.9-iteration-reference-outside-for-each +# Spec section 3.9: forEach.* references MUST only be used in task and env of a step that declares forEach. +# Expected: invalid (expr.iteration-outside-forEach at /spec/workflow/1/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 2 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: review + agent: worker + task: Review ${{ forEach.item }}. + dependsOn: + - list + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-in-permissions.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-in-permissions.yaml new file mode 100644 index 0000000..8d09ca1 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-in-permissions.yaml @@ -0,0 +1,65 @@ +# Conformance case 3.9-step-reference-in-permissions +# Spec section 3.9: Step references are only valid inside a step. +# Expected: invalid (expr.step-reference-outside-step at /spec/permissions/tools/tools.read/resources/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + resources: + - ${{ steps.analyze.outputs.report }} diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-unknown-step.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-unknown-step.yaml new file mode 100644 index 0000000..b019925 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-unknown-step.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.9-step-reference-unknown-step +# Spec section 3.9: A reference to a non-existent step is rejected. +# Expected: invalid (expr.unknown-step at /spec/workflow/1/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: ${{ steps.ghost.outputs.report }} + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-without-dependency.yaml b/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-without-dependency.yaml new file mode 100644 index 0000000..ce7e1f1 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/3.9-step-reference-without-dependency.yaml @@ -0,0 +1,62 @@ +# Conformance case 3.9-step-reference-without-dependency +# Spec section 3.9: steps. MUST only be used in a step that depends on . +# Expected: invalid (expr.not-a-dependency at /spec/workflow/1/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: [] + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-governance-field-in-metadata.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-governance-field-in-metadata.yaml new file mode 100644 index 0000000..e286cc7 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-governance-field-in-metadata.yaml @@ -0,0 +1,23 @@ +# Conformance case 4-governance-field-in-metadata +# Spec section 4: Governance fields are spec fields; metadata.owner is unknown. +# Expected: invalid (schema.additionalProperties at /metadata/owner) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello + owner: + team: platform-team +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-invalid-label-key.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-invalid-label-key.yaml new file mode 100644 index 0000000..b9ebf6c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-invalid-label-key.yaml @@ -0,0 +1,65 @@ +# Conformance case 4-invalid-label-key +# Spec section 4: Label keys MUST match ^[a-zA-Z0-9][a-zA-Z0-9._/-]{0,127}$. +# Expected: invalid (schema.propertyNames at /metadata/labels/-bad) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base + labels: + -bad: x +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-invalid-risk-level.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-invalid-risk-level.yaml new file mode 100644 index 0000000..088f0a2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-invalid-risk-level.yaml @@ -0,0 +1,63 @@ +# Conformance case 4-invalid-risk-level +# Spec section 4: risk.level is one of low, medium, high, critical. +# Expected: invalid (schema.enum at /spec/risk/level) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: extreme + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-label-value-not-string.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-label-value-not-string.yaml new file mode 100644 index 0000000..40b4b6d --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-label-value-not-string.yaml @@ -0,0 +1,65 @@ +# Conformance case 4-label-value-not-string +# Spec section 4: Labels are a map of strings. +# Expected: invalid (schema.type at /metadata/labels/tier) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base + labels: + tier: 1 +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-label-value-too-long.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-label-value-too-long.yaml new file mode 100644 index 0000000..95ebb66 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-label-value-too-long.yaml @@ -0,0 +1,23 @@ +# Conformance case 4-label-value-too-long +# Spec section 4: Label values have at most 63 characters (Kubernetes label syntax). +# Expected: invalid (schema.maxLength at /metadata/labels/tier) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello + labels: + tier: gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-missing-owner.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-missing-owner.yaml new file mode 100644 index 0000000..556c6c2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-missing-owner.yaml @@ -0,0 +1,61 @@ +# Conformance case 4-missing-owner +# Spec section 4: spec.owner is REQUIRED. +# Expected: invalid (schema.required at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-missing-version.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-missing-version.yaml new file mode 100644 index 0000000..ddd4da9 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-missing-version.yaml @@ -0,0 +1,62 @@ +# Conformance case 4-missing-version +# Spec section 4: spec.version is REQUIRED. +# Expected: invalid (schema.required at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-owner-string.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-owner-string.yaml new file mode 100644 index 0000000..ad9284e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-owner-string.yaml @@ -0,0 +1,20 @@ +# Conformance case 4-owner-string +# Spec section 4: spec.owner is an object; the string shorthand of v1alpha1 is removed. +# Expected: invalid (schema.type at /spec/owner) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello +spec: + version: 0.1.0 + owner: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. diff --git a/vendor/awp/conformance/v1alpha4/invalid/4-owner-without-team.yaml b/vendor/awp/conformance/v1alpha4/invalid/4-owner-without-team.yaml new file mode 100644 index 0000000..b3cddcf --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/4-owner-without-team.yaml @@ -0,0 +1,63 @@ +# Conformance case 4-owner-without-team +# Spec section 4: owner as an object REQUIRES team. +# Expected: invalid (schema.required at /spec/owner) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + contact: a@example.com + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.2-concurrency-policy-on-event-trigger.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.2-concurrency-policy-on-event-trigger.yaml new file mode 100644 index 0000000..0a5cc0f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.2-concurrency-policy-on-event-trigger.yaml @@ -0,0 +1,74 @@ +# Conformance case 5.2-concurrency-policy-on-event-trigger +# Spec section 5.2: concurrencyPolicy and startingDeadline belong to schedule triggers only. +# Expected: invalid (schema.not at /spec/triggers/2) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop + concurrencyPolicy: forbid diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.2-cron-not-five-fields.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.2-cron-not-five-fields.yaml new file mode 100644 index 0000000..9cf9072 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.2-cron-not-five-fields.yaml @@ -0,0 +1,66 @@ +# Conformance case 5.2-cron-not-five-fields +# Spec section 5.2: cron is a 5-field cron expression. +# Expected: invalid (schema.pattern at /spec/triggers/0/cron) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: schedule + cron: 0 6 * * diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.2-event-without-event-type.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.2-event-without-event-type.yaml new file mode 100644 index 0000000..1309b15 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.2-event-without-event-type.yaml @@ -0,0 +1,66 @@ +# Conformance case 5.2-event-without-event-type +# Spec section 5.2: event triggers REQUIRE source and eventType. +# Expected: invalid (schema.required at /spec/triggers/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: event + source: git.example.com diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.2-invalid-concurrency-policy.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.2-invalid-concurrency-policy.yaml new file mode 100644 index 0000000..e5eed32 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.2-invalid-concurrency-policy.yaml @@ -0,0 +1,74 @@ +# Conformance case 5.2-invalid-concurrency-policy +# Spec section 5.2: concurrencyPolicy is allow, forbid or replace. +# Expected: invalid (schema.enum at /spec/triggers/1/concurrencyPolicy) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + concurrencyPolicy: queue + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.2-schedule-without-cron.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.2-schedule-without-cron.yaml new file mode 100644 index 0000000..e2a361e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.2-schedule-without-cron.yaml @@ -0,0 +1,66 @@ +# Conformance case 5.2-schedule-without-cron +# Spec section 5.2: schedule triggers REQUIRE cron. +# Expected: invalid (schema.required at /spec/triggers/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: schedule + timezone: UTC diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.2-starting-deadline-not-duration.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.2-starting-deadline-not-duration.yaml new file mode 100644 index 0000000..62afd72 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.2-starting-deadline-not-duration.yaml @@ -0,0 +1,74 @@ +# Conformance case 5.2-starting-deadline-not-duration +# Spec section 5.2: startingDeadline is a duration. +# Expected: invalid (schema.pattern at /spec/triggers/1/startingDeadline) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + startingDeadline: "300" + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.2-unknown-trigger-type.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.2-unknown-trigger-type.yaml new file mode 100644 index 0000000..f27fc4a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.2-unknown-trigger-type.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.2-unknown-trigger-type +# Spec section 5.2: type is manual, schedule or event. +# Expected: invalid (schema.enum at /spec/triggers/0/type) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: webhook diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.3-default-wrong-type.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.3-default-wrong-type.yaml new file mode 100644 index 0000000..9054a17 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.3-default-wrong-type.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.3-default-wrong-type +# Spec section 5.3: default MUST match type. +# Expected: invalid (schema.type at /spec/inputs/0/default) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: limit + type: integer + default: five + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.3-invalid-pattern.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.3-invalid-pattern.yaml new file mode 100644 index 0000000..8d4cfb2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.3-invalid-pattern.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.3-invalid-pattern +# Spec section 5.3: pattern is an ECMA-262 regular expression. +# Expected: invalid (input.pattern-invalid at /spec/inputs/0/pattern) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: x + type: string + pattern: ([a-z + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.3-required-input-with-default.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.3-required-input-with-default.yaml new file mode 100644 index 0000000..205e3d7 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.3-required-input-with-default.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.3-required-input-with-default +# Spec section 5.3: default MUST NOT be set when required is true. +# Expected: invalid (schema.not at /spec/inputs/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + default: x + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.3-unknown-input-type.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.3-unknown-input-type.yaml new file mode 100644 index 0000000..28e0c97 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.3-unknown-input-type.yaml @@ -0,0 +1,62 @@ +# Conformance case 5.3-unknown-input-type +# Spec section 5.3: type is string, integer, number, boolean, object, array or artifact. +# Expected: invalid (schema.enum at /spec/inputs/0/type) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: x + type: date + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.1-inline-agent-without-model.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.1-inline-agent-without-model.yaml new file mode 100644 index 0000000..2e7a552 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.1-inline-agent-without-model.yaml @@ -0,0 +1,60 @@ +# Conformance case 5.4.1-inline-agent-without-model +# Spec section 5.4.1: An inline agent REQUIRES model. +# Expected: invalid (schema.required at /spec/agents/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.1-instructions-and-prompt-ref.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.1-instructions-and-prompt-ref.yaml new file mode 100644 index 0000000..5226e35 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.1-instructions-and-prompt-ref.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.4.1-instructions-and-prompt-ref +# Spec section 5.4.1: promptRef MUST NOT be combined with instructions. +# Expected: invalid (schema.not at /spec/agents/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + instructions: x + promptRef: + name: p + version: "1" + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-version-range.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-version-range.yaml new file mode 100644 index 0000000..044a16e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-version-range.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.4.2-reference-version-range +# Spec section 5.4.2: ref.version is an exact SemVer version, no ranges. +# Expected: invalid (schema.pattern at /spec/agents/1/ref/version) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: ext + ref: + name: a + version: ^1.0.0 + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-with-instructions.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-with-instructions.yaml new file mode 100644 index 0000000..b6db6e4 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-with-instructions.yaml @@ -0,0 +1,68 @@ +# Conformance case 5.4.2-reference-with-instructions +# Spec section 5.4.2: An agent reference MUST NOT contain instructions. +# Expected: invalid (schema.additionalProperties at /spec/agents/1/instructions) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: ext + ref: + name: a + version: 1.0.0 + instructions: x + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-with-model.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-with-model.yaml new file mode 100644 index 0000000..ba244b2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-with-model.yaml @@ -0,0 +1,70 @@ +# Conformance case 5.4.2-reference-with-model +# Spec section 5.4.2: An agent reference MUST NOT contain model. +# Expected: invalid (schema.additionalProperties at /spec/agents/1/model) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: ext + ref: + name: a + version: 1.0.0 + model: + provider: x + name: y + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-without-version.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-without-version.yaml new file mode 100644 index 0000000..d08468a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.2-reference-without-version.yaml @@ -0,0 +1,66 @@ +# Conformance case 5.4.2-reference-without-version +# Spec section 5.4.2: ref REQUIRES name and version. +# Expected: invalid (schema.required at /spec/agents/1/ref) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: ext + ref: + name: a + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.3-invalid-model-approval-status.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.3-invalid-model-approval-status.yaml new file mode 100644 index 0000000..48430ba --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.3-invalid-model-approval-status.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.4.3-invalid-model-approval-status +# Spec section 5.4.3: model.approval.status is approved, pending, rejected or revoked. +# Expected: invalid (schema.enum at /spec/agents/0/model/approval/status) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + approval: + status: maybe + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.3-model-without-name.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.3-model-without-name.yaml new file mode 100644 index 0000000..407191b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.3-model-without-name.yaml @@ -0,0 +1,62 @@ +# Conformance case 5.4.3-model-without-name +# Spec section 5.4.3: model REQUIRES provider and name. +# Expected: invalid (schema.required at /spec/agents/0/model) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-http-endpoint.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-http-endpoint.yaml new file mode 100644 index 0000000..53d58c1 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-http-endpoint.yaml @@ -0,0 +1,66 @@ +# Conformance case 5.4.4-remote-agent-http-endpoint +# Spec section 5.4.4: A remote agent endpoint is an HTTPS URL. +# Expected: invalid (schema.pattern at /spec/agents/1/endpoint) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: remote + protocol: a2a + endpoint: http://agents.example.com/a2a + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-with-model.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-with-model.yaml new file mode 100644 index 0000000..9128796 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-with-model.yaml @@ -0,0 +1,69 @@ +# Conformance case 5.4.4-remote-agent-with-model +# Spec section 5.4.4: A remote agent MUST NOT contain model. +# Expected: invalid (schema.additionalProperties at /spec/agents/1/model) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: remote + protocol: a2a + endpoint: https://agents.example.com/a2a + model: + provider: x + name: y + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-without-endpoint.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-without-endpoint.yaml new file mode 100644 index 0000000..4e66a18 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-without-endpoint.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.4.4-remote-agent-without-endpoint +# Spec section 5.4.4: A remote agent REQUIRES endpoint. +# Expected: invalid (schema.required at /spec/agents/1) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: remote + protocol: a2a + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-wrong-protocol.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-wrong-protocol.yaml new file mode 100644 index 0000000..3d935e8 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.4.4-remote-agent-wrong-protocol.yaml @@ -0,0 +1,66 @@ +# Conformance case 5.4.4-remote-agent-wrong-protocol +# Spec section 5.4.4: protocol MUST be a2a. +# Expected: invalid (schema.const at /spec/agents/1/protocol) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: remote + protocol: grpc + endpoint: https://agents.example.com/a2a + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.1-duplicate-server-name.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-duplicate-server-name.yaml new file mode 100644 index 0000000..be7c081 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-duplicate-server-name.yaml @@ -0,0 +1,68 @@ +# Conformance case 5.5.1-duplicate-server-name +# Spec section 5.5.1: MCP server names are referenced by tool sources and must be unique. +# Expected: invalid (name.duplicate at /spec/mcpServers/1/name) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.1-mcp-url-not-https.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-mcp-url-not-https.yaml new file mode 100644 index 0000000..9429049 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-mcp-url-not-https.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.5.1-mcp-url-not-https +# Spec section 5.5.1: The url of an MCP server MUST use https. +# Expected: invalid (schema.pattern at /spec/mcpServers/0/url) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: http://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.1-streamable-http-without-url.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-streamable-http-without-url.yaml new file mode 100644 index 0000000..ed137ad --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-streamable-http-without-url.yaml @@ -0,0 +1,62 @@ +# Conformance case 5.5.1-streamable-http-without-url +# Spec section 5.5.1: url is REQUIRED for streamable-http. +# Expected: invalid (schema.required at /spec/mcpServers/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.1-unknown-transport.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-unknown-transport.yaml new file mode 100644 index 0000000..230225a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.1-unknown-transport.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.5.1-unknown-transport +# Spec section 5.5.1: transport is stdio or streamable-http. +# Expected: invalid (schema.enum at /spec/mcpServers/0/transport) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: sse + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.2-builtin-tool-source-without-name.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.2-builtin-tool-source-without-name.yaml new file mode 100644 index 0000000..1934de8 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.2-builtin-tool-source-without-name.yaml @@ -0,0 +1,62 @@ +# Conformance case 5.5.2-builtin-tool-source-without-name +# Spec section 5.5.2: A builtin tool source REQUIRES name. +# Expected: invalid (schema.required at /spec/agents/0/tools/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: builtin + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.2-mcp-tool-source-without-server.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.2-mcp-tool-source-without-server.yaml new file mode 100644 index 0000000..ed9ffc2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.2-mcp-tool-source-without-server.yaml @@ -0,0 +1,62 @@ +# Conformance case 5.5.2-mcp-tool-source-without-server +# Spec section 5.5.2: An mcp tool source REQUIRES server. +# Expected: invalid (schema.required at /spec/agents/0/tools/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.3-invalid-action-identifier-in-permissions.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.3-invalid-action-identifier-in-permissions.yaml new file mode 100644 index 0000000..96a64e6 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.3-invalid-action-identifier-in-permissions.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.5.3-invalid-action-identifier-in-permissions +# Spec section 5.5.3: Permission keys are action identifiers with at least two segments. +# Expected: invalid (schema.propertyNames at /spec/permissions/tools/shell) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + shell: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.3-wildcard-not-final-segment.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.3-wildcard-not-final-segment.yaml new file mode 100644 index 0000000..5823c6b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.3-wildcard-not-final-segment.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.5.3-wildcard-not-final-segment +# Spec section 5.5.3: Only a final segment may be the wildcard *. +# Expected: invalid (schema.propertyNames at /spec/permissions/tools/*.read) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + "*.read": + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.4-group-contains-group.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.4-group-contains-group.yaml new file mode 100644 index 0000000..6ff0cb9 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.4-group-contains-group.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.5.4-group-contains-group +# Spec section 5.5.4: Groups MUST NOT contain other groups. +# Expected: invalid (actionGroup.nested at /spec/actionGroups/tools.all/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + tools.all: + - tools.read + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.5.4-invalid-group-identifier.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.5.4-invalid-group-identifier.yaml new file mode 100644 index 0000000..eb34dce --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.5.4-invalid-group-identifier.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.5.4-invalid-group-identifier +# Spec section 5.5.4: A group identifier MUST be a valid action identifier. +# Expected: invalid (schema.propertyNames at /spec/actionGroups/readers) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + readers: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-agent-step-with-command.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-agent-step-with-command.yaml new file mode 100644 index 0000000..0660159 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-agent-step-with-command.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.6.1-agent-step-with-command +# Spec section 5.6.1: Fields of command steps are not allowed in agent steps. +# Expected: invalid (schema.not at /spec/workflow/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + command: ls + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-agent-step-without-agent.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-agent-step-without-agent.yaml new file mode 100644 index 0000000..4b7c464 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-agent-step-without-agent.yaml @@ -0,0 +1,62 @@ +# Conformance case 5.6.1-agent-step-without-agent +# Spec section 5.6.1: An agent step REQUIRES agent. +# Expected: invalid (schema.required at /spec/workflow/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-required-for.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-required-for.yaml new file mode 100644 index 0000000..65e0fa3 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-required-for.yaml @@ -0,0 +1,72 @@ +# Conformance case 5.6.1-approval-step-required-for +# Spec section 5.6.1: An approval step has no requiredFor; it applies only at workflow level. +# Expected: invalid (schema.additionalProperties at /spec/workflow/2/approval/requiredFor) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: gate + type: approval + dependsOn: + - apply + approval: + approvers: + - role: release-manager + requiredFor: + - production.deploy + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-separation-of-duties.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-separation-of-duties.yaml new file mode 100644 index 0000000..31f381f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-separation-of-duties.yaml @@ -0,0 +1,74 @@ +# Conformance case 5.6.1-approval-step-separation-of-duties +# Spec section 5.6.1: An approval step has no separationOfDuties; it applies only at workflow level. +# Expected: invalid (schema.additionalProperties at /spec/workflow/2/approval/separationOfDuties) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: gate + type: approval + dependsOn: + - apply + approval: + approvers: + - role: release-manager + separationOfDuties: + enabled: true + rules: + - initiatorCannotApprove: true + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-without-approval.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-without-approval.yaml new file mode 100644 index 0000000..621b5ff --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-approval-step-without-approval.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.6.1-approval-step-without-approval +# Spec section 5.6.1: An approval step REQUIRES approval. +# Expected: invalid (schema.required at /spec/workflow/2) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: gate + type: approval + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-command-step-with-agent.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-command-step-with-agent.yaml new file mode 100644 index 0000000..f62ce6f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-command-step-with-agent.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.6.1-command-step-with-agent +# Spec section 5.6.1: A command step has no agent. +# Expected: invalid (schema.not at /spec/workflow/2) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: cmd + type: command + command: ls + agent: worker + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-command-step-without-command.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-command-step-without-command.yaml new file mode 100644 index 0000000..c8242db --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-command-step-without-command.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.6.1-command-step-without-command +# Spec section 5.6.1: A command step REQUIRES command. +# Expected: invalid (schema.required at /spec/workflow/2) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: cmd + type: command + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-negative-retries.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-negative-retries.yaml new file mode 100644 index 0000000..a2d6335 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-negative-retries.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.6.1-negative-retries +# Spec section 5.6.1: retries is a non-negative integer. +# Expected: invalid (schema.minimum at /spec/workflow/0/retries) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + retries: -1 + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-output-name-with-dot.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-output-name-with-dot.yaml new file mode 100644 index 0000000..6367d9c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-output-name-with-dot.yaml @@ -0,0 +1,82 @@ +# Conformance case 5.6.1-output-name-with-dot +# Spec section 5.6.1: Output names match ^[A-Za-z_][A-Za-z0-9_]{0,62}$, so that they are file names and expression keys. +# Expected: invalid (schema.pattern at /spec/workflow/2/outputs/0/name) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: count + type: command + command: ./count.sh + env: + REPORT: ${{ steps.analyze.outputs.report }} + dependsOn: + - analyze + outputs: + - name: ../report.json + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-retries-exceed-max-retries.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-retries-exceed-max-retries.yaml new file mode 100644 index 0000000..078f762 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-retries-exceed-max-retries.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.6.1-retries-exceed-max-retries +# Spec section 5.6.1: retries MUST NOT exceed budget.resources.maxRetries if set. +# Expected: invalid (retries.exceeds-budget at /spec/workflow/0/retries) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + retries: 5 + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.1-unknown-step-type.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-unknown-step-type.yaml new file mode 100644 index 0000000..f82af93 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.1-unknown-step-type.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.6.1-unknown-step-type +# Spec section 5.6.1: type is agent, command or approval. +# Expected: invalid (schema.enum at /spec/workflow/0/type) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + type: parallel + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.2-env-key-invalid.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.2-env-key-invalid.yaml new file mode 100644 index 0000000..762b7fe --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.2-env-key-invalid.yaml @@ -0,0 +1,70 @@ +# Conformance case 5.6.2-env-key-invalid +# Spec section 5.6.2: env keys are environment variable names. +# Expected: invalid (schema.propertyNames at /spec/workflow/2/env/BAD-KEY) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: cmd + type: command + command: "true" + env: + BAD-KEY: x + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.3-dependency-cycle.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-dependency-cycle.yaml new file mode 100644 index 0000000..21c8315 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-dependency-cycle.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.6.3-dependency-cycle +# Spec section 5.6.3: The runtime MUST reject a workflow whose steps contain a cycle. +# Expected: invalid (dependsOn.cycle at /spec/workflow) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Go + outputs: + - name: report + dependsOn: + - apply + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.3-depends-on-unknown-step.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-depends-on-unknown-step.yaml new file mode 100644 index 0000000..95c6f20 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-depends-on-unknown-step.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.6.3-depends-on-unknown-step +# Spec section 5.6.3: A dependsOn entry that names a non-existent step is rejected. +# Expected: invalid (dependsOn.unknown-step at /spec/workflow/1/dependsOn/1) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - ghost + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.3-duplicate-step-id.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-duplicate-step-id.yaml new file mode 100644 index 0000000..f7423fc --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-duplicate-step-id.yaml @@ -0,0 +1,62 @@ +# Conformance case 5.6.3-duplicate-step-id +# Spec section 5.6.3: The runtime MUST reject a duplicate step id. +# Expected: invalid (id.duplicate at /spec/workflow/1/id) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: analyze + agent: worker + task: x + dependsOn: [] + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.3-self-dependency.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-self-dependency.yaml new file mode 100644 index 0000000..6a34cd4 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-self-dependency.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.6.3-self-dependency +# Spec section 5.6.3: A step that depends on itself is a cycle. +# Expected: invalid (dependsOn.cycle at /spec/workflow/0/dependsOn) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + dependsOn: + - analyze + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.3-undeclared-step-output.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-undeclared-step-output.yaml new file mode 100644 index 0000000..914a2d3 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-undeclared-step-output.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.6.3-undeclared-step-output +# Spec section 5.6.3: Outputs not declared in outputs MUST NOT be referenced. +# Expected: invalid (expr.undeclared-output at /spec/workflow/1/task) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: ${{ steps.analyze.outputs.summary }} + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.3-unknown-agent.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-unknown-agent.yaml new file mode 100644 index 0000000..3863108 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.3-unknown-agent.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.6.3-unknown-agent +# Spec section 5.6.3: An agent that names a non-existent agent is rejected. +# Expected: invalid (step.unknown-agent at /spec/workflow/0/agent) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: ghost + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.4-reserved-env.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.4-reserved-env.yaml new file mode 100644 index 0000000..2c2e724 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.4-reserved-env.yaml @@ -0,0 +1,83 @@ +# Conformance case 5.6.4-reserved-env +# Spec section 5.6.4: Environment variables with the prefix AWP_ are reserved for the runtime. +# Expected: invalid (step.reserved-env at /spec/workflow/2/env/AWP_OUTPUTS) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: count + type: command + command: ./count.sh + env: + AWP_OUTPUTS: /tmp/out + dependsOn: + - analyze + outputs: + - name: newCount + - name: summary_text + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-concurrency-exceeds-budget.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-concurrency-exceeds-budget.yaml new file mode 100644 index 0000000..d0e7afa --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-concurrency-exceeds-budget.yaml @@ -0,0 +1,70 @@ +# Conformance case 5.6.5-for-each-concurrency-exceeds-budget +# Spec section 5.6.5: forEach.concurrency MUST NOT exceed the effective budget.resources.maxConcurrency. +# Expected: invalid (forEach.concurrency-exceeds-budget at /spec/workflow/1/forEach/concurrency) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: review + agent: worker + task: Review ${{ forEach.item }}. + dependsOn: + - list + forEach: + items: ${{ steps.list.outputs.files }} + maxItems: 20 + concurrency: 2 + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-input-not-array.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-input-not-array.yaml new file mode 100644 index 0000000..d4eb7db --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-input-not-array.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.6.5-for-each-input-not-array +# Spec section 5.6.5: An input referenced by forEach.items MUST have type array. +# Expected: invalid (forEach.input-not-array at /spec/workflow/1/forEach/items) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 2 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: review + agent: worker + task: Review ${{ forEach.item }}. + forEach: + items: ${{ inputs.repo }} + maxItems: 20 + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-dependency.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-dependency.yaml new file mode 100644 index 0000000..bf5fc66 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-dependency.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.6.5-for-each-items-not-a-dependency +# Spec section 3.9: forEach.items MUST only reference a step this step depends on. +# Expected: invalid (expr.not-a-dependency at /spec/workflow/1/forEach/items) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 2 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: review + agent: worker + task: Review ${{ forEach.item }}. + forEach: + items: ${{ steps.list.outputs.files }} + maxItems: 20 + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-reference.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-reference.yaml new file mode 100644 index 0000000..c8c5ed9 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-items-not-a-reference.yaml @@ -0,0 +1,69 @@ +# Conformance case 5.6.5-for-each-items-not-a-reference +# Spec section 5.6.5: forEach.items is exactly one reference to an input or a step output. +# Expected: invalid (schema.pattern at /spec/workflow/1/forEach/items) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 2 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: review + agent: worker + task: Review ${{ forEach.item }}. + dependsOn: + - list + forEach: + items: "Files: ${{ steps.list.outputs.files }}" + maxItems: 20 + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-missing-max-items.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-missing-max-items.yaml new file mode 100644 index 0000000..908641f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-missing-max-items.yaml @@ -0,0 +1,68 @@ +# Conformance case 5.6.5-for-each-missing-max-items +# Spec section 5.6.5: forEach.maxItems is REQUIRED. +# Expected: invalid (schema.required at /spec/workflow/1/forEach) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 2 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: review + agent: worker + task: Review ${{ forEach.item }}. + dependsOn: + - list + forEach: + items: ${{ steps.list.outputs.files }} + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-on-approval-step.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-on-approval-step.yaml new file mode 100644 index 0000000..c921351 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.5-for-each-on-approval-step.yaml @@ -0,0 +1,71 @@ +# Conformance case 5.6.5-for-each-on-approval-step +# Spec section 5.6.1: forEach is not allowed on approval steps. +# Expected: invalid (schema.not at /spec/workflow/1) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 2 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: release + type: approval + dependsOn: + - list + approval: + approvers: + - role: release-manager + forEach: + items: ${{ steps.list.outputs.files }} + maxItems: 20 + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-inputs-expression.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-inputs-expression.yaml new file mode 100644 index 0000000..1733297 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-inputs-expression.yaml @@ -0,0 +1,66 @@ +# Conformance case 5.6.6-workflow-inputs-expression +# Spec section 3.9: workflow.inputs values are expression-enabled; other syntax is rejected. +# Expected: invalid (schema.pattern at /spec/workflow/1/workflow/inputs/repoUrl) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: fix + type: workflow + dependsOn: + - analyze + workflow: + ref: cve-fixer + inputs: + repoUrl: ${{ secrets.token }} + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-ref-not-dns-label.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-ref-not-dns-label.yaml new file mode 100644 index 0000000..7f507cc --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-ref-not-dns-label.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.6.6-workflow-ref-not-dns-label +# Spec section 5.6.6: workflow.ref is a DNS-1123 label like metadata.name. +# Expected: invalid (schema.pattern at /spec/workflow/1/workflow/ref) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: fix + type: workflow + dependsOn: + - analyze + workflow: + ref: CVE_Fixer + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-agent.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-agent.yaml new file mode 100644 index 0000000..898c58a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-agent.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.6.6-workflow-step-agent +# Spec section 5.6.6: A workflow step has no agent. +# Expected: invalid (schema.not at /spec/workflow/1) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: fix + type: workflow + dependsOn: + - analyze + agent: worker + workflow: + ref: cve-fixer + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-for-each.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-for-each.yaml new file mode 100644 index 0000000..befbdbb --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-for-each.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.6.6-workflow-step-for-each +# Spec section 5.6.6: forEach is not allowed on a workflow step. +# Expected: invalid (schema.not at /spec/workflow/1) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: fix + type: workflow + dependsOn: + - analyze + forEach: + items: ${{ inputs.repo }} + maxItems: 5 + workflow: + ref: cve-fixer + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-output.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-output.yaml new file mode 100644 index 0000000..05cfabf --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-output.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.6.6-workflow-step-output +# Spec section 5.6.6: A workflow step declares no outputs other than executionId and status. +# Expected: invalid (step.workflow-output at /spec/workflow/1/outputs/1/name) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: fix + type: workflow + dependsOn: + - analyze + workflow: + ref: cve-fixer + outputs: + - name: executionId + - name: report + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-without-ref.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-without-ref.yaml new file mode 100644 index 0000000..d390bbe --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.6.6-workflow-step-without-ref.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.6.6-workflow-step-without-ref +# Spec section 5.6.6: workflow.ref is REQUIRED. +# Expected: invalid (schema.required at /spec/workflow/1/workflow) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: fix + type: workflow + dependsOn: + - analyze + workflow: + wait: true + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.7-negative-cost.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.7-negative-cost.yaml new file mode 100644 index 0000000..e5d8a51 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.7-negative-cost.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.7-negative-cost +# Spec section 5.7: All limits MUST be positive. +# Expected: invalid (schema.exclusiveMinimum at /spec/budget/maxCostUsd) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: -1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.7-unknown-budget-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.7-unknown-budget-field.yaml new file mode 100644 index 0000000..9dd84bc --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.7-unknown-budget-field.yaml @@ -0,0 +1,64 @@ +# Conformance case 5.7-unknown-budget-field +# Spec section 5.7: Unknown budget fields are rejected. +# Expected: invalid (schema.additionalProperties at /spec/budget/maxMoney) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + maxMoney: 5 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.7-zero-concurrency.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.7-zero-concurrency.yaml new file mode 100644 index 0000000..8ce6218 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.7-zero-concurrency.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.7-zero-concurrency +# Spec section 5.7: All limits MUST be positive. +# Expected: invalid (schema.minimum at /spec/budget/resources/maxConcurrency) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 0 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.7-zero-max-steps.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.7-zero-max-steps.yaml new file mode 100644 index 0000000..6ff8337 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.7-zero-max-steps.yaml @@ -0,0 +1,63 @@ +# Conformance case 5.7-zero-max-steps +# Spec section 5.7: All limits MUST be positive. +# Expected: invalid (schema.minimum at /spec/budget/maxSteps) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 0 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-agent-invalid-on-timeout.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-agent-invalid-on-timeout.yaml new file mode 100644 index 0000000..039e1aa --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-agent-invalid-on-timeout.yaml @@ -0,0 +1,79 @@ +# Conformance case 5.8-agent-invalid-on-timeout +# Spec section 5.8: humanInput.onTimeout is return or fail. +# Expected: invalid (schema.enum at /spec/agents/0/humanInput/onTimeout) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + humanInput: + answerers: + - role: maintainer + timeout: 30m + onTimeout: useDefault + maxRequests: 3 + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-answer-field-nested-object.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-answer-field-nested-object.yaml new file mode 100644 index 0000000..15e34bf --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-answer-field-nested-object.yaml @@ -0,0 +1,87 @@ +# Conformance case 5.8-answer-field-nested-object +# Spec section 5.8: Answer fields are primitive (string, number, integer, boolean). +# Expected: invalid (schema.enum at /spec/workflow/1/input/answerSchema/properties/targets/type) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + answerSchema: + type: object + properties: + targets: + type: object + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-default-mismatch.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-default-mismatch.yaml new file mode 100644 index 0000000..48ca978 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-default-mismatch.yaml @@ -0,0 +1,101 @@ +# Conformance case 5.8-default-mismatch +# Spec section 5.8: default matches answerSchema. +# Expected: invalid (input.default-mismatch at /spec/workflow/1/input/default) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + answerSchema: + type: object + properties: + environment: + type: string + enum: + - staging + - production + title: Environment + maxHosts: + type: integer + minimum: 1 + notify: + type: boolean + required: + - environment + onTimeout: useDefault + default: + environment: qa + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-input-step-with-agent.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-input-step-with-agent.yaml new file mode 100644 index 0000000..d2e08ea --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-input-step-with-agent.yaml @@ -0,0 +1,83 @@ +# Conformance case 5.8-input-step-with-agent +# Spec section 5.8: An input step has no agent. +# Expected: invalid (schema.not at /spec/workflow/1) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + agent: worker + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-input-step-without-input.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-input-step-without-input.yaml new file mode 100644 index 0000000..5ee1a3f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-input-step-without-input.yaml @@ -0,0 +1,77 @@ +# Conformance case 5.8-input-step-without-input +# Spec section 5.8: An input step REQUIRES input. +# Expected: invalid (schema.required at /spec/workflow/1) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-input-without-answerers.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-input-without-answerers.yaml new file mode 100644 index 0000000..736160b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-input-without-answerers.yaml @@ -0,0 +1,80 @@ +# Conformance case 5.8-input-without-answerers +# Spec section 5.8: answerers is REQUIRED; nobody else may answer. +# Expected: invalid (schema.required at /spec/workflow/1/input) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + timeout: 4h + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-required-unknown-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-required-unknown-field.yaml new file mode 100644 index 0000000..d7c861f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-required-unknown-field.yaml @@ -0,0 +1,89 @@ +# Conformance case 5.8-required-unknown-field +# Spec section 5.8: required names fields of answerSchema.properties. +# Expected: invalid (input.required-unknown-field at /spec/workflow/1/input/answerSchema/required/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + answerSchema: + type: object + properties: + environment: + type: string + required: + - region + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/5.8-use-default-without-default.yaml b/vendor/awp/conformance/v1alpha4/invalid/5.8-use-default-without-default.yaml new file mode 100644 index 0000000..959c166 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/5.8-use-default-without-default.yaml @@ -0,0 +1,83 @@ +# Conformance case 5.8-use-default-without-default +# Spec section 5.8: onTimeout useDefault REQUIRES default. +# Expected: invalid (schema.required at /spec/workflow/1/input) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + onTimeout: useDefault + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/invalid/6-agent-instructions-and-prompt-ref.yaml b/vendor/awp/conformance/v1alpha4/invalid/6-agent-instructions-and-prompt-ref.yaml new file mode 100644 index 0000000..04ec861 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/6-agent-instructions-and-prompt-ref.yaml @@ -0,0 +1,21 @@ +# Conformance case 6-agent-instructions-and-prompt-ref +# Spec section 6: promptRef MUST NOT be combined with instructions. +# Expected: invalid (schema.not at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: conformance-agent +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + model: + provider: ollama + name: qwen3 + instructions: Extract fields. + permissions: + default: deny + promptRef: + name: p + version: "1" diff --git a/vendor/awp/conformance/v1alpha4/invalid/6-agent-kind-with-workflow-spec.yaml b/vendor/awp/conformance/v1alpha4/invalid/6-agent-kind-with-workflow-spec.yaml new file mode 100644 index 0000000..68ba08f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/6-agent-kind-with-workflow-spec.yaml @@ -0,0 +1,19 @@ +# Conformance case 6-agent-kind-with-workflow-spec +# Spec section 6: agents/workflow belong to kind Workflow only. +# Expected: invalid (schema.additionalProperties at /spec/agents) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: conformance-agent +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + model: + provider: ollama + name: qwen3 + instructions: Extract fields. + permissions: + default: deny + agents: [] diff --git a/vendor/awp/conformance/v1alpha4/invalid/6-agent-with-workflow-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/6-agent-with-workflow-field.yaml new file mode 100644 index 0000000..0274908 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/6-agent-with-workflow-field.yaml @@ -0,0 +1,19 @@ +# Conformance case 6-agent-with-workflow-field +# Spec section 6: An Agent manifest has no spec.workflow (unknown field). +# Expected: invalid (schema.additionalProperties at /spec/workflow) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: conformance-agent +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + model: + provider: ollama + name: qwen3 + instructions: Extract fields. + permissions: + default: deny + workflow: [] diff --git a/vendor/awp/conformance/v1alpha4/invalid/6-agent-without-model.yaml b/vendor/awp/conformance/v1alpha4/invalid/6-agent-without-model.yaml new file mode 100644 index 0000000..1831d3e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/6-agent-without-model.yaml @@ -0,0 +1,15 @@ +# Conformance case 6-agent-without-model +# Spec section 6: An Agent manifest REQUIRES spec.model. +# Expected: invalid (schema.required at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: conformance-agent +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + instructions: Extract fields. + permissions: + default: deny diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.1-governance-requires-classification.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.1-governance-requires-classification.yaml new file mode 100644 index 0000000..df24f1b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.1-governance-requires-classification.yaml @@ -0,0 +1,62 @@ +# Conformance case 7.1-governance-requires-classification +# Spec section 7.1: Under the governance profile Workflow and Agent REQUIRE spec.classification. +# Expected: invalid (governance.classification-required at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.10-environment-without-autonomy.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.10-environment-without-autonomy.yaml new file mode 100644 index 0000000..70303d5 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.10-environment-without-autonomy.yaml @@ -0,0 +1,65 @@ +# Conformance case 7.10-environment-without-autonomy +# Spec section 7.10: Each environment REQUIRES autonomy. +# Expected: invalid (schema.required at /spec/environments/production) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + environments: + production: {} diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.10-invalid-autonomy.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.10-invalid-autonomy.yaml new file mode 100644 index 0000000..1548582 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.10-invalid-autonomy.yaml @@ -0,0 +1,66 @@ +# Conformance case 7.10-invalid-autonomy +# Spec section 7.10: autonomy is unrestricted, controlled, approval-required or prohibited. +# Expected: invalid (schema.enum at /spec/environments/production/autonomy) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + environments: + production: + autonomy: free diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.2-invalid-classification.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.2-invalid-classification.yaml new file mode 100644 index 0000000..ccd46b2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.2-invalid-classification.yaml @@ -0,0 +1,63 @@ +# Conformance case 7.2-invalid-classification +# Spec section 7.2: Data classes are public, internal, confidential, personal, restricted, sensitive, secret. +# Expected: invalid (schema.enum at /spec/classification) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: top-secret + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.2-invalid-external-transfer.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.2-invalid-external-transfer.yaml new file mode 100644 index 0000000..8bf7bf3 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.2-invalid-external-transfer.yaml @@ -0,0 +1,66 @@ +# Conformance case 7.2-invalid-external-transfer +# Spec section 7.2: externalTransfer is allow or deny. +# Expected: invalid (schema.enum at /spec/dataPolicy/restrictions/externalTransfer) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + dataPolicy: + restrictions: + externalTransfer: maybe diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.4-invalid-model-policy-status.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.4-invalid-model-policy-status.yaml new file mode 100644 index 0000000..9c40e4f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.4-invalid-model-policy-status.yaml @@ -0,0 +1,66 @@ +# Conformance case 7.4-invalid-model-policy-status +# Spec section 7.4: requirements.approvalStatus uses the model approval statuses. +# Expected: invalid (schema.enum at /spec/modelPolicy/requirements/approvalStatus) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + modelPolicy: + requirements: + approvalStatus: green diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.5-allow-not-boolean.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.5-allow-not-boolean.yaml new file mode 100644 index 0000000..bf91932 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.5-allow-not-boolean.yaml @@ -0,0 +1,63 @@ +# Conformance case 7.5-allow-not-boolean +# Spec section 7.5.1: allow is a boolean. +# Expected: invalid (schema.type at /spec/permissions/tools/tools.read/allow) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: yes diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.5-invalid-default.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.5-invalid-default.yaml new file mode 100644 index 0000000..8c54c73 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.5-invalid-default.yaml @@ -0,0 +1,63 @@ +# Conformance case 7.5-invalid-default +# Spec section 7.5.1: permissions.default is allow or deny. +# Expected: invalid (schema.enum at /spec/permissions/default) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: maybe + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.5-invalid-egress.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.5-invalid-egress.yaml new file mode 100644 index 0000000..ab0da88 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.5-invalid-egress.yaml @@ -0,0 +1,65 @@ +# Conformance case 7.5-invalid-egress +# Spec section 7.5.1: network.egress is allow or deny. +# Expected: invalid (schema.enum at /spec/permissions/network/egress) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + network: + egress: limited diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.5-tool-without-allow.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.5-tool-without-allow.yaml new file mode 100644 index 0000000..842bd2b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.5-tool-without-allow.yaml @@ -0,0 +1,64 @@ +# Conformance case 7.5-tool-without-allow +# Spec section 7.5.1: permissions.tools entries REQUIRE allow. +# Expected: invalid (schema.required at /spec/permissions/tools/tools.read) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + resources: + - x diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.6-approver-empty.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.6-approver-empty.yaml new file mode 100644 index 0000000..62283ff --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.6-approver-empty.yaml @@ -0,0 +1,66 @@ +# Conformance case 7.6-approver-empty +# Spec section 7.6: An approver has exactly one of role or user. +# Expected: invalid (schema.oneOf at /spec/approval/approvers/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + approvers: + - {} diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.6-approver-role-and-user.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.6-approver-role-and-user.yaml new file mode 100644 index 0000000..95c1e9f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.6-approver-role-and-user.yaml @@ -0,0 +1,67 @@ +# Conformance case 7.6-approver-role-and-user +# Spec section 7.6: An approver has exactly one of role or user. +# Expected: invalid (schema.oneOf at /spec/approval/approvers/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + approvers: + - role: a + user: b diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.6-invalid-on-timeout.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.6-invalid-on-timeout.yaml new file mode 100644 index 0000000..0585a12 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.6-invalid-on-timeout.yaml @@ -0,0 +1,65 @@ +# Conformance case 7.6-invalid-on-timeout +# Spec section 7.6: onTimeout is reject or fail. +# Expected: invalid (schema.enum at /spec/approval/onTimeout) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + onTimeout: approve diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.6-min-approvals-zero.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.6-min-approvals-zero.yaml new file mode 100644 index 0000000..6809761 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.6-min-approvals-zero.yaml @@ -0,0 +1,65 @@ +# Conformance case 7.6-min-approvals-zero +# Spec section 7.6: minApprovals is a positive integer. +# Expected: invalid (schema.minimum at /spec/approval/minApprovals) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + minApprovals: 0 diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.6-required-for-invalid-key.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.6-required-for-invalid-key.yaml new file mode 100644 index 0000000..746a991 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.6-required-for-invalid-key.yaml @@ -0,0 +1,66 @@ +# Conformance case 7.6-required-for-invalid-key +# Spec section 7.6: requiredFor lists action keys. +# Expected: invalid (schema.pattern at /spec/approval/requiredFor/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + requiredFor: + - deploy diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.8-unknown-separation-rule.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.8-unknown-separation-rule.yaml new file mode 100644 index 0000000..4bda200 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.8-unknown-separation-rule.yaml @@ -0,0 +1,68 @@ +# Conformance case 7.8-unknown-separation-rule +# Spec section 7.8: Separation-of-duties rules are the defined rules only. +# Expected: invalid (schema.additionalProperties at /spec/approval/separationOfDuties/rules/0/everyoneCanApprove) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + separationOfDuties: + enabled: true + rules: + - everyoneCanApprove: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.9-literal-password-in-free-form-value.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.9-literal-password-in-free-form-value.yaml new file mode 100644 index 0000000..3505cb6 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.9-literal-password-in-free-form-value.yaml @@ -0,0 +1,64 @@ +# Conformance case 7.9-literal-password-in-free-form-value +# Spec section 7.9: Credential-named fields are rejected anywhere outside x- extensions, also inside free-form values. +# Expected: invalid (secret.literal-field at /spec/inputs/0/default/password) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: cfg + type: object + default: + password: hunter2 + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.9-literal-token-field.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.9-literal-token-field.yaml new file mode 100644 index 0000000..5003bed --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.9-literal-token-field.yaml @@ -0,0 +1,64 @@ +# Conformance case 7.9-literal-token-field +# Spec section 7.9: Fields named token, password, apiKey, secret or privateKey with a literal value are rejected (here: unknown field in auth). +# Expected: invalid (schema.additionalProperties at /spec/mcpServers/0/auth/token) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + token: ghp_example + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.9-remote-agent-secret-ref-out-of-scope.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.9-remote-agent-secret-ref-out-of-scope.yaml new file mode 100644 index 0000000..fe3f1a9 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.9-remote-agent-secret-ref-out-of-scope.yaml @@ -0,0 +1,68 @@ +# Conformance case 7.9-remote-agent-secret-ref-out-of-scope +# Spec section 7.9: A remote agent credential is scoped to the agent id. +# Expected: invalid (secretRef.scope at /spec/agents/1/auth/secretRef) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: remote + protocol: a2a + endpoint: https://agents.example.com/a2a + auth: + secretRef: TOOLS_TOKEN + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-empty-scope.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-empty-scope.yaml new file mode 100644 index 0000000..8e0dca1 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-empty-scope.yaml @@ -0,0 +1,61 @@ +# Conformance case 7.9-secret-ref-empty-scope +# Spec section 7.9: The default scope is none. +# Expected: invalid (secretRef.scope at /spec/mcpServers/0/auth/secretRef) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-out-of-scope.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-out-of-scope.yaml new file mode 100644 index 0000000..182d742 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-out-of-scope.yaml @@ -0,0 +1,63 @@ +# Conformance case 7.9-secret-ref-out-of-scope +# Spec section 7.9: The scope of the secret MUST include the consumer. +# Expected: invalid (secretRef.scope at /spec/mcpServers/0/auth/secretRef) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - someone-else + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-undeclared.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-undeclared.yaml new file mode 100644 index 0000000..2a5e26c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-ref-undeclared.yaml @@ -0,0 +1,63 @@ +# Conformance case 7.9-secret-ref-undeclared +# Spec section 7.9: A secretRef MUST name a secret declared in spec.secrets. +# Expected: invalid (secretRef.undeclared at /spec/mcpServers/0/auth/secretRef) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: OTHER_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-without-source.yaml b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-without-source.yaml new file mode 100644 index 0000000..3236157 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/7.9-secret-without-source.yaml @@ -0,0 +1,62 @@ +# Conformance case 7.9-secret-without-source +# Spec section 7.9: A secret declaration REQUIRES name and source. +# Expected: invalid (schema.required at /spec/secrets/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.1-include-without-version.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.1-include-without-version.yaml new file mode 100644 index 0000000..a78eea0 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.1-include-without-version.yaml @@ -0,0 +1,66 @@ +# Conformance case 8.1-include-without-version +# Spec section 8.1: include entries name a Policy by name and exact version. +# Expected: invalid (schema.required at /spec/policies/include/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + policies: + include: + - name: p diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.1-shorthand-not-boolean.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.1-shorthand-not-boolean.yaml new file mode 100644 index 0000000..324b2ac --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.1-shorthand-not-boolean.yaml @@ -0,0 +1,66 @@ +# Conformance case 8.1-shorthand-not-boolean +# Spec section 8.1: Policy shorthands are booleans. +# Expected: invalid (schema.type at /spec/policies/git/allowPush) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + policies: + git: + allowPush: no diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.1-unknown-shorthand.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.1-unknown-shorthand.yaml new file mode 100644 index 0000000..8aebd2e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.1-unknown-shorthand.yaml @@ -0,0 +1,66 @@ +# Conformance case 8.1-unknown-shorthand +# Spec section 8.1: Unknown shorthands are rejected. +# Expected: invalid (schema.additionalProperties at /spec/policies/network) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + policies: + network: + allow: false diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.2-no-allow-effect.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.2-no-allow-effect.yaml new file mode 100644 index 0000000..93fc086 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.2-no-allow-effect.yaml @@ -0,0 +1,20 @@ +# Conformance case 8.2-no-allow-effect +# Spec section 8.2: Policy rules can only restrict: effect is deny or requireApproval. +# Expected: invalid (schema.enum at /spec/rules/0/effect) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: + equals: production.deploy + effect: allow + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.2-policy-without-rules.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.2-policy-without-rules.yaml new file mode 100644 index 0000000..f206c5b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.2-policy-without-rules.yaml @@ -0,0 +1,11 @@ +# Conformance case 8.2-policy-without-rules +# Spec section 8.2: A Policy REQUIRES rules. +# Expected: invalid (schema.required at /spec) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.2-require-approval-without-approval.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.2-require-approval-without-approval.yaml new file mode 100644 index 0000000..b60012d --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.2-require-approval-without-approval.yaml @@ -0,0 +1,17 @@ +# Conformance case 8.2-require-approval-without-approval +# Spec section 8.2: approval is REQUIRED for requireApproval. +# Expected: invalid (schema.required at /spec/rules/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: + equals: production.deploy + effect: requireApproval diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.2-rule-without-when.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.2-rule-without-when.yaml new file mode 100644 index 0000000..eb281ca --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.2-rule-without-when.yaml @@ -0,0 +1,17 @@ +# Conformance case 8.2-rule-without-when +# Spec section 8.2: A rule REQUIRES when. +# Expected: invalid (schema.required at /spec/rules/0) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.3-empty-when.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.3-empty-when.yaml new file mode 100644 index 0000000..cc79919 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.3-empty-when.yaml @@ -0,0 +1,18 @@ +# Conformance case 8.3-empty-when +# Spec section 8.3: A condition has at least one attribute. +# Expected: invalid (schema.minProperties at /spec/rules/0/when) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: {} + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.3-in-not-a-list.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.3-in-not-a-list.yaml new file mode 100644 index 0000000..2b3e06e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.3-in-not-a-list.yaml @@ -0,0 +1,20 @@ +# Conformance case 8.3-in-not-a-list +# Spec section 8.3: in and notIn take lists. +# Expected: invalid (schema.type at /spec/rules/0/when/destination.region/in) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + destination.region: + in: EU + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.3-invalid-actor-type.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.3-invalid-actor-type.yaml new file mode 100644 index 0000000..8543cb0 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.3-invalid-actor-type.yaml @@ -0,0 +1,20 @@ +# Conformance case 8.3-invalid-actor-type +# Spec section 8.3: actor.type is agent, human, runtime or system. +# Expected: invalid (schema.enum at /spec/rules/0/when/actor.type/equals) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + actor.type: + equals: robot + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.3-invalid-classification-value.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.3-invalid-classification-value.yaml new file mode 100644 index 0000000..90b2354 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.3-invalid-classification-value.yaml @@ -0,0 +1,20 @@ +# Conformance case 8.3-invalid-classification-value +# Spec section 8.3: Classification values in conditions are data classes. +# Expected: invalid (schema.enum at /spec/rules/0/when/data.classification/gte) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + data.classification: + gte: topsecret + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.3-ordering-operator-on-unordered-attribute.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.3-ordering-operator-on-unordered-attribute.yaml new file mode 100644 index 0000000..03e161c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.3-ordering-operator-on-unordered-attribute.yaml @@ -0,0 +1,20 @@ +# Conformance case 8.3-ordering-operator-on-unordered-attribute +# Spec section 8.3: gt, gte, lt, lte are for data.classification and risk.level only. +# Expected: invalid (schema.additionalProperties at /spec/rules/0/when/action/gt) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: + gt: a.b + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.3-plain-condition-value.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.3-plain-condition-value.yaml new file mode 100644 index 0000000..f9b5e0c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.3-plain-condition-value.yaml @@ -0,0 +1,31 @@ +# Conformance case 8.3-plain-condition-value +# Spec section 8.3: Each condition attribute maps to an operator object; the plain-value shorthand of v1alpha1 is removed. +# Expected: invalid (schema.type at /spec/rules/0/when/action) +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: production.deploy + effect: requireApproval + approval: + approvers: + - role: release-manager + - id: pd-stays-in-eu + when: + data.classification: + in: + - personal + - sensitive + destination.region: + notIn: + - EU + effect: deny + message: Personal data must stay in the EU. diff --git a/vendor/awp/conformance/v1alpha4/invalid/8.3-unknown-attribute.yaml b/vendor/awp/conformance/v1alpha4/invalid/8.3-unknown-attribute.yaml new file mode 100644 index 0000000..ff485e7 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/8.3-unknown-attribute.yaml @@ -0,0 +1,20 @@ +# Conformance case 8.3-unknown-attribute +# Spec section 8.3: Only the defined attributes may be used in conditions. +# Expected: invalid (schema.additionalProperties at /spec/rules/0/when/user.name) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + user.name: + equals: x + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/invalid/9.1-digest-mismatch.yaml b/vendor/awp/conformance/v1alpha4/invalid/9.1-digest-mismatch.yaml new file mode 100644 index 0000000..e10621c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/9.1-digest-mismatch.yaml @@ -0,0 +1,66 @@ +# Conformance case 9.1-digest-mismatch +# Spec section 9.1: If spec.integrity.digest is present, runtimes verify it and reject on mismatch. +# Expected: invalid (digest.mismatch at /spec/integrity/digest) +# Validator option: verify metadata.integrity.digest +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + integrity: + digest: sha256:0000000000000000000000000000000000000000000000000000000000000000 + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/9.4-unpinned-command-image-security-profile.yaml b/vendor/awp/conformance/v1alpha4/invalid/9.4-unpinned-command-image-security-profile.yaml new file mode 100644 index 0000000..9ead605 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/9.4-unpinned-command-image-security-profile.yaml @@ -0,0 +1,69 @@ +# Conformance case 9.4-unpinned-command-image-security-profile +# Spec section 9.4: Under the security profile command step images MUST be pinned by digest. +# Expected: invalid (security.image-not-pinned at /spec/workflow/2/image) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: cmd + type: command + command: "true" + image: node:20 + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/invalid/9.4-unpinned-mcp-image-security-profile.yaml b/vendor/awp/conformance/v1alpha4/invalid/9.4-unpinned-mcp-image-security-profile.yaml new file mode 100644 index 0000000..034594e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/invalid/9.4-unpinned-mcp-image-security-profile.yaml @@ -0,0 +1,66 @@ +# Conformance case 9.4-unpinned-mcp-image-security-profile +# Spec section 9.4: Under the security profile container images MUST be pinned by digest. +# Expected: invalid (security.image-not-pinned at /spec/mcpServers/1/image) +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + - name: local + transport: stdio + image: registry.example.com/mcp/local:latest + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/10.2-audit-configuration.yaml b/vendor/awp/conformance/v1alpha4/valid/10.2-audit-configuration.yaml new file mode 100644 index 0000000..c16cfbf --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/10.2-audit-configuration.yaml @@ -0,0 +1,70 @@ +# Conformance case 10.2-audit-configuration +# Spec section 10.2: Audit configuration. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + audit: + enabled: true + payload: metadata + integrity: + mode: hash-chain + retention: + duration: 7y diff --git a/vendor/awp/conformance/v1alpha4/valid/10.8-workflow-run-with-status.yaml b/vendor/awp/conformance/v1alpha4/valid/10.8-workflow-run-with-status.yaml new file mode 100644 index 0000000..211f702 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/10.8-workflow-run-with-status.yaml @@ -0,0 +1,50 @@ +# Conformance case 10.8-workflow-run-with-status +# Spec section 10.8: A WorkflowRun may use generateName; validators ignore status written by the runtime. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: WorkflowRun +metadata: + generateName: conformance-base- + namespace: conformance + uid: 6f1c9b52-4c1e-4c59-9a43-0b1d2f7a9e10 + generation: 1 +spec: + workflowRef: + name: conformance-base + version: 1.0.0 + inputs: + repo: example-org/web-shop + environment: staging +status: + observedGeneration: 1 + executionId: awp-exec-01JD6Q8Z5K3M4N5P6Q7R8S9T0V + phase: running + actor: + type: human + id: alice@example.com + trigger: + type: manual + index: 0 + environment: staging + workflow: + name: conformance-base + version: 1.0.0 + digest: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + startedAt: 2026-11-19T08:00:00Z + steps: + - id: analyze + status: succeeded + attempts: 1 + outputs: + - name: report + digest: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb + size: 2048 + - id: apply + status: running + attempts: 1 + conditions: + - type: Accepted + status: "True" + reason: Validated + message: "" + lastTransitionTime: 2026-11-19T08:00:00Z diff --git a/vendor/awp/conformance/v1alpha4/valid/10.8-workflow-run.yaml b/vendor/awp/conformance/v1alpha4/valid/10.8-workflow-run.yaml new file mode 100644 index 0000000..7f90221 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/10.8-workflow-run.yaml @@ -0,0 +1,15 @@ +# Conformance case 10.8-workflow-run +# Spec section 10.8: A WorkflowRun requests one execution of a workflow with inputs and an environment. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: WorkflowRun +metadata: + name: conformance-base-20261119 + namespace: conformance +spec: + workflowRef: + name: conformance-base + version: 1.0.0 + inputs: + repo: example-org/web-shop + environment: staging diff --git a/vendor/awp/conformance/v1alpha4/valid/3.1-json-serialization.json b/vendor/awp/conformance/v1alpha4/valid/3.1-json-serialization.json new file mode 100644 index 0000000..7770ada --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.1-json-serialization.json @@ -0,0 +1,60 @@ +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/3.1-multi-document.yaml b/vendor/awp/conformance/v1alpha4/valid/3.1-multi-document.yaml new file mode 100644 index 0000000..4e9982d --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.1-multi-document.yaml @@ -0,0 +1,81 @@ +# Conformance case 3.1-multi-document +# Spec section 3.1: A file may contain several YAML documents; each is an independent manifest. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true +--- +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: + equals: production.deploy + effect: requireApproval + approval: + approvers: + - role: release-manager diff --git a/vendor/awp/conformance/v1alpha4/valid/3.2-minimal-workflow.yaml b/vendor/awp/conformance/v1alpha4/valid/3.2-minimal-workflow.yaml new file mode 100644 index 0000000..8417604 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.2-minimal-workflow.yaml @@ -0,0 +1,21 @@ +# Conformance case 3.2-minimal-workflow +# Spec section 3.2: Minimal Workflow of the specification (hello); spec.classification is only REQUIRED under the governance profile. +# Expected: valid +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. diff --git a/vendor/awp/conformance/v1alpha4/valid/3.2-status-and-store-metadata.yaml b/vendor/awp/conformance/v1alpha4/valid/3.2-status-and-store-metadata.yaml new file mode 100644 index 0000000..4696eb3 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.2-status-and-store-metadata.yaml @@ -0,0 +1,40 @@ +# Conformance case 3.2-status-and-store-metadata +# Spec section 3.2: status and metadata fields populated by an object store are accepted and ignored. +# Expected: valid +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello + namespace: team-a + labels: + app.kubernetes.io/instance: agents + annotations: + example.com/last-applied: "{}" + uid: 2f1c7a52-6a0e-4d55-9b1e-0c2f4b9a7d11 + resourceVersion: "4711" + generation: 3 + creationTimestamp: 2026-11-18T10:00:00Z + finalizers: + - example.com/cleanup + managedFields: + - manager: example-controller + operation: Apply +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. +status: + observedGeneration: 3 + conditions: + - type: Ready + status: "True" diff --git a/vendor/awp/conformance/v1alpha4/valid/3.3-core-profile-only.yaml b/vendor/awp/conformance/v1alpha4/valid/3.3-core-profile-only.yaml new file mode 100644 index 0000000..0aecb83 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.3-core-profile-only.yaml @@ -0,0 +1,24 @@ +# Conformance case 3.3-core-profile-only +# Spec section 3.3: A manifest using only core fields is valid for a validator that supports only the core profile. +# Expected: valid +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello +spec: + version: 0.1.0 + owner: + team: platform-team + risk: + level: medium + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + permissions: + default: deny diff --git a/vendor/awp/conformance/v1alpha4/valid/3.3-extension-fields.yaml b/vendor/awp/conformance/v1alpha4/valid/3.3-extension-fields.yaml new file mode 100644 index 0000000..b4dc4e0 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.3-extension-fields.yaml @@ -0,0 +1,75 @@ +# Conformance case 3.3-extension-fields +# Spec section 3.3: Fields starting with x- may appear in any object and are ignored. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + extensions: + x-model: 1 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + extensions: + x-step: ok + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + extensions: + x-perm: null + extensions: + x-top: 1 + x-meta: + any: + - thing + x-spec: true diff --git a/vendor/awp/conformance/v1alpha4/valid/3.6-durations.yaml b/vendor/awp/conformance/v1alpha4/valid/3.6-durations.yaml new file mode 100644 index 0000000..d19a66a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.6-durations.yaml @@ -0,0 +1,65 @@ +# Conformance case 3.6-durations +# Spec section 3.6: Durations use units ms, s, m, h, d, w, y and may be combined. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 1h30m + resources: + maxRetries: 3 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + timeout: 24h + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + timeout: 7y + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/3.9-expression-references.yaml b/vendor/awp/conformance/v1alpha4/valid/3.9-expression-references.yaml new file mode 100644 index 0000000..97cb249 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/3.9-expression-references.yaml @@ -0,0 +1,63 @@ +# Conformance case 3.9-expression-references +# Spec section 3.9: The allowed references are inputs., steps..outputs., execution.id, execution.environment. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Run ${{ execution.id }} in ${{ execution.environment }} with ${{inputs.repo}}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/4-labels-and-annotations.yaml b/vendor/awp/conformance/v1alpha4/valid/4-labels-and-annotations.yaml new file mode 100644 index 0000000..3f5849c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/4-labels-and-annotations.yaml @@ -0,0 +1,67 @@ +# Conformance case 4-labels-and-annotations +# Spec section 4: labels and annotations are string maps with Kubernetes key syntax. +# Expected: valid +# Profiles supported by the validator for this case: core, mcp +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base + labels: + team.example/tier: gold + annotations: + note: x +spec: + version: 1.0.0 + owner: + team: platform-team + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.2-schedule-concurrency-and-deadline.yaml b/vendor/awp/conformance/v1alpha4/valid/5.2-schedule-concurrency-and-deadline.yaml new file mode 100644 index 0000000..1b7ac2c --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.2-schedule-concurrency-and-deadline.yaml @@ -0,0 +1,75 @@ +# Conformance case 5.2-schedule-concurrency-and-deadline +# Spec section 5.2: A schedule trigger may set concurrencyPolicy and startingDeadline. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + concurrencyPolicy: replace + startingDeadline: 15m + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/valid/5.2-triggers.yaml b/vendor/awp/conformance/v1alpha4/valid/5.2-triggers.yaml new file mode 100644 index 0000000..9eecc6d --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.2-triggers.yaml @@ -0,0 +1,73 @@ +# Conformance case 5.2-triggers +# Spec section 5.2: manual, schedule and event triggers. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/valid/5.3-inputs.yaml b/vendor/awp/conformance/v1alpha4/valid/5.3-inputs.yaml new file mode 100644 index 0000000..38da30e --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.3-inputs.yaml @@ -0,0 +1,86 @@ +# Conformance case 5.3-inputs +# Spec section 5.3: Input declarations with all types; default matches type. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + pattern: ^[a-z/-]+$ + - name: limit + type: integer + default: 5 + - name: ratio + type: number + default: 0.5 + - name: dry + type: boolean + default: true + - name: opts + type: object + default: + a: 1 + - name: tags + type: array + default: + - a + enum: + - - a + - name: doc + type: artifact + classification: confidential + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.4.2-agent-reference.yaml b/vendor/awp/conformance/v1alpha4/valid/5.4.2-agent-reference.yaml new file mode 100644 index 0000000..391161b --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.4.2-agent-reference.yaml @@ -0,0 +1,74 @@ +# Conformance case 5.4.2-agent-reference +# Spec section 5.4.2: Agent reference with exact version and digest. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: extractor + ref: + name: invoice-extractor + version: 1.0.0 + digest: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + permissions: + default: deny + budget: + maxSteps: 3 + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: extract + agent: extractor + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.4.4-remote-agent.yaml b/vendor/awp/conformance/v1alpha4/valid/5.4.4-remote-agent.yaml new file mode 100644 index 0000000..f3daab8 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.4.4-remote-agent.yaml @@ -0,0 +1,79 @@ +# Conformance case 5.4.4-remote-agent +# Spec section 5.4.4: Remote A2A agent with HTTPS endpoint and a scoped secretRef. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + - name: REVIEW_TOKEN + source: vault + scope: + - reviewer + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + - id: reviewer + protocol: a2a + endpoint: https://agents.example.com/a2a/review + agentCard: + url: https://agents.example.com/card.json + digest: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb + auth: + secretRef: REVIEW_TOKEN + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: review + agent: reviewer + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.5.4-action-groups.yaml b/vendor/awp/conformance/v1alpha4/valid/5.5.4-action-groups.yaml new file mode 100644 index 0000000..6ac8a15 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.5.4-action-groups.yaml @@ -0,0 +1,67 @@ +# Conformance case 5.5.4-action-groups +# Spec section 5.5.4: Groups map concrete actions to well-known actions; groups hold only concrete actions. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + git.merge: + - tools.merge_pull_request + production.deploy: + - tools.deploy + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-exists-and-in.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-exists-and-in.yaml new file mode 100644 index 0000000..1ff3785 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-exists-and-in.yaml @@ -0,0 +1,65 @@ +# Conformance case 5.6.1-when-exists-and-in +# Spec section 3.12: Conditions combine exists(), in with literal lists, comparisons and boolean operators. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - name: level + - id: comment + agent: worker + dependsOn: + - analyze + when: 'exists(steps.analyze.outputs.level) && (steps.analyze.outputs.level in ["high", "critical"] || inputs.repo == "example-org/web-shop")' + task: Comment on ${{ inputs.repo }}. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-json-path-into-output.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-json-path-into-output.yaml new file mode 100644 index 0000000..a704439 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-json-path-into-output.yaml @@ -0,0 +1,70 @@ +# Conformance case 5.6.1-when-json-path-into-output +# Spec section 3.12: Path segments after the output name select into the output parsed as JSON; a transitive dependency may be read. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - name: level + - id: plan + agent: worker + dependsOn: + - analyze + task: Plan ${{ steps.analyze.outputs.report }}. + - id: apply + agent: worker + dependsOn: + - plan + when: steps.analyze.outputs.report.findings[0].severity >= 7 && steps.analyze.outputs.report.affected == true + task: Apply the plan. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-on-every-step-type.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-on-every-step-type.yaml new file mode 100644 index 0000000..40a46fb --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.1-when-on-every-step-type.yaml @@ -0,0 +1,96 @@ +# Conformance case 5.6.1-when-on-every-step-type +# Spec section 5.6.1: when is allowed on agent, command, approval, input and workflow steps. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - name: level + - id: apply + agent: worker + dependsOn: + - analyze + when: steps.analyze.outputs.level == "high" + task: Apply ${{ steps.analyze.outputs.report }}. + - id: count + type: command + dependsOn: + - analyze + when: steps.analyze.outputs.level != "low" + command: ./count.sh + - id: release + type: approval + dependsOn: + - apply + when: execution.environment == "production" + approval: + approvers: + - role: release-manager + - id: ask + type: input + dependsOn: + - analyze + when: '!(steps.analyze.outputs.level == "low")' + input: + message: Apply the fix? + answerers: + - role: release-manager + timeout: 4h + - id: fix + type: workflow + dependsOn: + - analyze + when: steps.analyze.outputs.level == "critical" + workflow: + ref: cve-fixer + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.2-command-step-env.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.2-command-step-env.yaml new file mode 100644 index 0000000..ec75a6f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.2-command-step-env.yaml @@ -0,0 +1,73 @@ +# Conformance case 5.6.2-command-step-env +# Spec section 5.6.2: Command steps receive values through env; the command text has no expressions. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: scan + type: command + command: ./scan.sh "$REPO" + image: registry.example.com/build/node@sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc + env: + REPO: ${{ inputs.repo }} + workingDir: /workspace + dependsOn: + - apply + timeout: 5m + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.3-transitive-step-reference.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.3-transitive-step-reference.yaml new file mode 100644 index 0000000..6383c47 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.3-transitive-step-reference.yaml @@ -0,0 +1,68 @@ +# Conformance case 5.6.3-transitive-step-reference +# Spec section 5.6.3: A step may reference outputs of steps it depends on transitively. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: third + agent: worker + task: ${{ steps.analyze.outputs.report }} + dependsOn: + - apply + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.4-command-step-outputs.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.4-command-step-outputs.yaml new file mode 100644 index 0000000..ee4e1e2 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.4-command-step-outputs.yaml @@ -0,0 +1,83 @@ +# Conformance case 5.6.4-command-step-outputs +# Spec section 5.6.4: A command step declares outputs whose names are valid file names in $AWP_OUTPUTS. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: count + type: command + command: ./count.sh + env: + REPORT: ${{ steps.analyze.outputs.report }} + dependsOn: + - analyze + outputs: + - name: newCount + - name: summary_text + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.5-for-each.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.5-for-each.yaml new file mode 100644 index 0000000..33354cb --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.5-for-each.yaml @@ -0,0 +1,82 @@ +# Conformance case 5.6.5-for-each +# Spec section 5.6.5: An agent or command step MAY iterate over an array input or a step output with forEach. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + - name: images + type: array + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 2 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: list + agent: worker + task: List the files of ${{ inputs.repo }}. + outputs: + - name: files + - id: review + agent: worker + task: Review file ${{ forEach.index }} of the list, ${{ forEach.item }}. + dependsOn: + - list + forEach: + items: ${{ steps.list.outputs.files }} + maxItems: 20 + concurrency: 2 + retries: 1 + timeout: 5m + outputs: + - name: finding + - id: scan + type: command + command: ./scan.sh "$IMAGE" + env: + IMAGE: ${{ forEach.item.name }}:${{ forEach.item.tag }} + forEach: + items: ${{ inputs.images }} + maxItems: 5 + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.6-workflow-step-no-wait.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.6-workflow-step-no-wait.yaml new file mode 100644 index 0000000..67c8e6a --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.6-workflow-step-no-wait.yaml @@ -0,0 +1,70 @@ +# Conformance case 5.6.6-workflow-step-no-wait +# Spec section 5.6.6: With wait: false the workflow step only starts the child execution. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - name: level + - id: start-scan + type: workflow + dependsOn: + - analyze + timeout: 5m + retries: 1 + workflow: + ref: nightly-scan + wait: false + outputs: + - name: executionId + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.6.6-workflow-step-wait.yaml b/vendor/awp/conformance/v1alpha4/valid/5.6.6-workflow-step-wait.yaml new file mode 100644 index 0000000..a238605 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.6.6-workflow-step-wait.yaml @@ -0,0 +1,79 @@ +# Conformance case 5.6.6-workflow-step-wait +# Spec section 5.6.6: A workflow step starts a child workflow with expression-enabled inputs, waits for it and provides executionId and status. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - name: level + - id: fix + type: workflow + dependsOn: + - analyze + workflow: + ref: cve-fixer + version: ^0.5.0 + inputs: + repoUrl: ${{ inputs.repo }} + report: Fix ${{ steps.analyze.outputs.report }} in ${{ execution.environment }}. + wait: true + outputs: + - name: executionId + - name: status + - id: notify + agent: worker + dependsOn: + - fix + when: steps.fix.outputs.status == "succeeded" + task: Report child execution ${{ steps.fix.outputs.executionId }}. + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.7-nested-budgets.yaml b/vendor/awp/conformance/v1alpha4/valid/5.7-nested-budgets.yaml new file mode 100644 index 0000000..d98fd63 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.7-nested-budgets.yaml @@ -0,0 +1,70 @@ +# Conformance case 5.7-nested-budgets +# Spec section 5.7: Budgets on workflow, agent and step; retries do not exceed maxRetries. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + budget: + maxCostUsd: 0.5 + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + budget: + maxSteps: 3 + resources: + maxTokens: 1000 + retries: 2 + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/5.8-agent-human-input.yaml b/vendor/awp/conformance/v1alpha4/valid/5.8-agent-human-input.yaml new file mode 100644 index 0000000..3fba1f0 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.8-agent-human-input.yaml @@ -0,0 +1,79 @@ +# Conformance case 5.8-agent-human-input +# Spec section 5.8: An agent with humanInput may ask a person during its step. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + humanInput: + answerers: + - role: maintainer + timeout: 30m + onTimeout: return + maxRequests: 3 + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/valid/5.8-agent-manifest-human-input.yaml b/vendor/awp/conformance/v1alpha4/valid/5.8-agent-manifest-human-input.yaml new file mode 100644 index 0000000..13e46cd --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.8-agent-manifest-human-input.yaml @@ -0,0 +1,39 @@ +# Conformance case 5.8-agent-manifest-human-input +# Spec section 5.8: humanInput is also allowed in an Agent manifest. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: conformance-agent +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + model: + provider: ollama + name: qwen3 + instructions: Extract fields. + permissions: + default: deny + mcpServers: + - name: docs + transport: stdio + image: registry.example.com/mcp/docs@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd + tools: + - type: mcp + server: docs + tools: + - read + - type: builtin + name: shell + budget: + maxSteps: 5 + secrets: + - name: DOCS_KEY + source: vault + scope: + - docs + humanInput: + answerers: + - user: alice@example.com diff --git a/vendor/awp/conformance/v1alpha4/valid/5.8-input-step-free-text.yaml b/vendor/awp/conformance/v1alpha4/valid/5.8-input-step-free-text.yaml new file mode 100644 index 0000000..8df1206 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.8-input-step-free-text.yaml @@ -0,0 +1,82 @@ +# Conformance case 5.8-input-step-free-text +# Spec section 5.8: Without answerSchema the answer is free text. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/valid/5.8-input-step.yaml b/vendor/awp/conformance/v1alpha4/valid/5.8-input-step.yaml new file mode 100644 index 0000000..358d701 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/5.8-input-step.yaml @@ -0,0 +1,102 @@ +# Conformance case 5.8-input-step +# Spec section 5.8: An input step asks named answerers, waits up to its timeout and provides the output answer. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + default: example-org/web-shop + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: ask-targets + type: input + dependsOn: + - analyze + input: + message: Which targets should ${{ steps.analyze.outputs.report }} be applied to? + answerers: + - role: release-manager + timeout: 4h + answerSchema: + type: object + properties: + environment: + type: string + enum: + - staging + - production + title: Environment + maxHosts: + type: integer + minimum: 1 + notify: + type: boolean + required: + - environment + onTimeout: useDefault + default: + environment: staging + classification: internal + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }} to ${{ steps.ask-targets.outputs.answer }}. + dependsOn: + - ask-targets + permissions: + default: deny + tools: + tools.read: + allow: true + triggers: + - type: manual + - type: schedule + cron: 0 6 * * 1-5 + timezone: Europe/Berlin + - type: event + source: git.example.com + eventType: pull_request.opened + filter: + repository: example-org/web-shop diff --git a/vendor/awp/conformance/v1alpha4/valid/6-agent-manifest.yaml b/vendor/awp/conformance/v1alpha4/valid/6-agent-manifest.yaml new file mode 100644 index 0000000..e55df80 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/6-agent-manifest.yaml @@ -0,0 +1,36 @@ +# Conformance case 6-agent-manifest +# Spec section 6: A complete Agent manifest. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: conformance-agent +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + model: + provider: ollama + name: qwen3 + instructions: Extract fields. + permissions: + default: deny + mcpServers: + - name: docs + transport: stdio + image: registry.example.com/mcp/docs@sha256:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd + tools: + - type: mcp + server: docs + tools: + - read + - type: builtin + name: shell + budget: + maxSteps: 5 + secrets: + - name: DOCS_KEY + source: vault + scope: + - docs diff --git a/vendor/awp/conformance/v1alpha4/valid/6-agent-prompt-ref.yaml b/vendor/awp/conformance/v1alpha4/valid/6-agent-prompt-ref.yaml new file mode 100644 index 0000000..0003d29 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/6-agent-prompt-ref.yaml @@ -0,0 +1,20 @@ +# Conformance case 6-agent-prompt-ref +# Spec section 6: An Agent may use promptRef instead of instructions. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: conformance-agent +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + model: + provider: ollama + name: qwen3 + permissions: + default: deny + promptRef: + name: extract + version: "2" diff --git a/vendor/awp/conformance/v1alpha4/valid/7.10-environments.yaml b/vendor/awp/conformance/v1alpha4/valid/7.10-environments.yaml new file mode 100644 index 0000000..36841b8 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/7.10-environments.yaml @@ -0,0 +1,74 @@ +# Conformance case 7.10-environments +# Spec section 7.10: Environments with autonomy levels. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + environment: + name: production + environments: + development: + autonomy: unrestricted + production: + autonomy: approval-required + autoApprove: + - erp.read + frozen: + autonomy: prohibited diff --git a/vendor/awp/conformance/v1alpha4/valid/7.2-data-and-model-policy.yaml b/vendor/awp/conformance/v1alpha4/valid/7.2-data-and-model-policy.yaml new file mode 100644 index 0000000..527e218 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/7.2-data-and-model-policy.yaml @@ -0,0 +1,105 @@ +# Conformance case 7.2-data-and-model-policy +# Spec section 7.2: Data policy, residency, processing and model policy. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + version: "3.0" + region: EU + approval: + status: approved + expires: 2027-01-01 + approvedBy: model-board + riskClassification: low + evaluation: + status: passed + ref: https://reports.example.com/e1 + allowedUseCases: + - analysis + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + dataPolicy: + classification: confidential + inputs: + - name: repo + classification: internal + outputs: + - name: report + classification: internal + restrictions: + externalTransfer: deny + residency: + allowed: + - EU + processing: + allowedProviders: + - ollama + forbiddenProviders: + - public-cloud-us + modelPolicy: + allowedProviders: + - ollama + allowedModels: + - qwen3 + forbiddenModels: + - unapproved + requirements: + approvalStatus: approved + encryption: true + region: EU + evaluationStatus: passed diff --git a/vendor/awp/conformance/v1alpha4/valid/7.5-permissions.yaml b/vendor/awp/conformance/v1alpha4/valid/7.5-permissions.yaml new file mode 100644 index 0000000..d9f9678 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/7.5-permissions.yaml @@ -0,0 +1,80 @@ +# Conformance case 7.5-permissions +# Spec section 7.5: All permission fields, wildcard keys and resource scopes. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: allow + tools: + tools.*: + allow: true + resources: + - ${{ inputs.repo }} + production.deploy: + allow: false + network: + egress: deny + allowHosts: + - mcp.example.com + filesystem: + read: + - /workspace + write: + - /workspace/out + secrets: + - TOOLS_TOKEN + environments: + - development diff --git a/vendor/awp/conformance/v1alpha4/valid/7.6-approval-and-separation-of-duties.yaml b/vendor/awp/conformance/v1alpha4/valid/7.6-approval-and-separation-of-duties.yaml new file mode 100644 index 0000000..eab381f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/7.6-approval-and-separation-of-duties.yaml @@ -0,0 +1,89 @@ +# Conformance case 7.6-approval-and-separation-of-duties +# Spec section 7.6: Workflow approval, approval step and separation of duties. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: high + category: + - financial + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + - id: release + type: approval + dependsOn: + - apply + approval: + approvers: + - role: release-manager + message: Release ${{ steps.analyze.outputs.report }}? + permissions: + default: deny + tools: + tools.read: + allow: true + approval: + requiredFor: + - production.deploy + approvers: + - role: security-reviewer + - user: user:alice + minApprovals: 2 + timeout: 24h + onTimeout: reject + message: Deploy ${{ execution.id }}? + separationOfDuties: + enabled: true + rules: + - actorCannotApproveOwnAction: true + - initiatorCannotApprove: true + - distinctApprovers: true diff --git a/vendor/awp/conformance/v1alpha4/valid/8.1-policy-shorthands.yaml b/vendor/awp/conformance/v1alpha4/valid/8.1-policy-shorthands.yaml new file mode 100644 index 0000000..e1fb2a6 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/8.1-policy-shorthands.yaml @@ -0,0 +1,77 @@ +# Conformance case 8.1-policy-shorthands +# Spec section 8.1: Policy shorthands and policy includes. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true + policies: + git: + allowPush: true + allowForcePush: false + pullRequest: + allowCreate: true + merge: + allow: false + production: + allow: false + include: + - name: no-production-autonomy + version: 1.0.0 + digest: sha256:eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee diff --git a/vendor/awp/conformance/v1alpha4/valid/8.2-policy-manifest.yaml b/vendor/awp/conformance/v1alpha4/valid/8.2-policy-manifest.yaml new file mode 100644 index 0000000..d6f155f --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/8.2-policy-manifest.yaml @@ -0,0 +1,31 @@ +# Conformance case 8.2-policy-manifest +# Spec section 8.2: Policy manifest with requireApproval and deny rules. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: deploy-needs-approval + when: + action: + equals: production.deploy + effect: requireApproval + approval: + approvers: + - role: release-manager + - id: pd-stays-in-eu + when: + data.classification: + in: + - personal + - sensitive + destination.region: + notIn: + - EU + effect: deny + message: Personal data must stay in the EU. diff --git a/vendor/awp/conformance/v1alpha4/valid/8.3-conditions.yaml b/vendor/awp/conformance/v1alpha4/valid/8.3-conditions.yaml new file mode 100644 index 0000000..91cafbc --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/8.3-conditions.yaml @@ -0,0 +1,42 @@ +# Conformance case 8.3-conditions +# Spec section 8.3: All condition attributes and operators; ordering operators on ordered attributes. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: conformance-policy +spec: + version: 1.0.0 + owner: + team: governance-team + rules: + - id: c1 + effect: deny + when: + action: + equals: github.* + environment.name: + equals: production + risk.level: + gte: high + data.classification: + gt: internal + lt: secret + destination.provider: + equals: x + destination.region: + notEquals: EU + model.provider: + equals: ollama + model.name: + in: + - qwen3 + actor.type: + equals: agent + workflow.name: + equals: w + step.id: + equals: s + agent.id: + notIn: + - a diff --git a/vendor/awp/conformance/v1alpha4/valid/9.1-digest-ignores-deployment-fields.yaml b/vendor/awp/conformance/v1alpha4/valid/9.1-digest-ignores-deployment-fields.yaml new file mode 100644 index 0000000..6b5addb --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/9.1-digest-ignores-deployment-fields.yaml @@ -0,0 +1,30 @@ +# Conformance case 9.1-digest-ignores-deployment-fields +# Spec section 9.1: The digest covers apiVersion, kind, metadata.name and spec without integrity, signature and provenance; namespace, labels, annotations and status do not change it. +# Expected: valid +# Profiles supported by the validator for this case: core +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: hello + namespace: team-b + labels: + tier: gold + annotations: + note: deployed by a tool +spec: + version: 0.1.0 + owner: + team: platform-team + agents: + - id: assistant + model: + provider: ollama + name: qwen3 + workflow: + - id: greet + agent: assistant + task: Say hello. + integrity: + digest: sha256:856f0318b028a660b198022600be8e62c307bd2a542923d042a03526da900b4e +status: + observedGeneration: 1 diff --git a/vendor/awp/conformance/v1alpha4/valid/9.1-digest-verified.yaml b/vendor/awp/conformance/v1alpha4/valid/9.1-digest-verified.yaml new file mode 100644 index 0000000..b345d43 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/9.1-digest-verified.yaml @@ -0,0 +1,66 @@ +# Conformance case 9.1-digest-verified +# Spec section 9.1: spec.integrity.digest matches the JCS digest of the manifest without integrity, signature and provenance. +# Expected: valid +# Validator option: verify metadata.integrity.digest +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + integrity: + digest: sha256:8d2dc91764acb483a526f0f3a9bb4b7b009ac2b3fb40a6a7542e1f4b4537ec5f + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/conformance/v1alpha4/valid/9.4-pinned-images-security-profile.yaml b/vendor/awp/conformance/v1alpha4/valid/9.4-pinned-images-security-profile.yaml new file mode 100644 index 0000000..b156f92 --- /dev/null +++ b/vendor/awp/conformance/v1alpha4/valid/9.4-pinned-images-security-profile.yaml @@ -0,0 +1,73 @@ +# Conformance case 9.4-pinned-images-security-profile +# Spec section 9.4: Under the security profile images are pinned by digest. +# Expected: valid +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: conformance-base +spec: + version: 1.0.0 + owner: + team: conformance-team + classification: internal + risk: + level: low + signature: + format: sigstore-bundle + ref: https://registry.example.com/sig.json + identity: release@example.com + provenance: + format: slsa-provenance-v1 + ref: https://registry.example.com/prov.json + inputs: + - name: repo + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 10 + maxDuration: 10m + resources: + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: TOOLS_TOKEN + source: secret-manager + scope: + - tools + mcpServers: + - name: tools + transport: streamable-http + url: https://mcp.example.com/tools + auth: + secretRef: TOOLS_TOKEN + - name: local + transport: stdio + image: registry.example.com/mcp/local@sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + actionGroups: + tools.read: + - tools.read_file + agents: + - id: worker + model: + provider: ollama + name: qwen3 + tools: + - type: mcp + server: tools + workflow: + - id: analyze + agent: worker + task: Analyze ${{ inputs.repo }}. + outputs: + - name: report + - id: apply + agent: worker + task: Apply ${{ steps.analyze.outputs.report }}. + dependsOn: + - analyze + permissions: + default: deny + tools: + tools.read: + allow: true diff --git a/vendor/awp/schema/awp.v1alpha4.json b/vendor/awp/schema/awp.v1alpha4.json new file mode 100644 index 0000000..8cb62c4 --- /dev/null +++ b/vendor/awp/schema/awp.v1alpha4.json @@ -0,0 +1,3797 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://agenticworkflowprotocol.org/schema/awp.v1alpha4.json", + "title": "Agentic Workflow Protocol manifest (v1alpha4)", + "description": "Structural rules of AWP v1alpha4 (spec/v1alpha4/README.md). Rules that JSON Schema cannot express are listed in schema/README.md as semantic validation rules. Per-kind entry points: #/$defs/Workflow, #/$defs/Agent, #/$defs/Policy, #/$defs/WorkflowRun.", + "type": "object", + "required": [ + "kind" + ], + "properties": { + "kind": { + "enum": [ + "Workflow", + "Agent", + "Policy", + "WorkflowRun" + ] + } + }, + "allOf": [ + { + "if": { + "properties": { + "kind": { + "const": "Workflow" + } + }, + "required": [ + "kind" + ] + }, + "then": { + "$ref": "#/$defs/Workflow" + } + }, + { + "if": { + "properties": { + "kind": { + "const": "Agent" + } + }, + "required": [ + "kind" + ] + }, + "then": { + "$ref": "#/$defs/Agent" + } + }, + { + "if": { + "properties": { + "kind": { + "const": "Policy" + } + }, + "required": [ + "kind" + ] + }, + "then": { + "$ref": "#/$defs/Policy" + } + }, + { + "if": { + "properties": { + "kind": { + "const": "WorkflowRun" + } + }, + "required": [ + "kind" + ] + }, + "then": { + "$ref": "#/$defs/WorkflowRun" + } + } + ], + "$defs": { + "Name": { + "description": "Name (spec 3.4).", + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,62}$" + }, + "Identifier": { + "description": "Identifier (spec 3.4).", + "type": "string", + "pattern": "^[a-z][a-z0-9-]{0,62}$" + }, + "ActionIdentifier": { + "description": "Action identifier (spec 5.5.3).", + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*(\\.[a-zA-Z0-9_-]+)+$" + }, + "ActionKey": { + "description": "Action identifier, group identifier or wildcard pattern with a final segment * (spec 5.5.3, 5.5.4).", + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*(\\.[a-zA-Z0-9_-]+)*(\\.[a-zA-Z0-9_-]+|\\.\\*)$" + }, + "SemVer": { + "description": "Semantic Version 2.0.0 (spec 3.5).", + "type": "string", + "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" + }, + "Duration": { + "description": "Duration greater than zero (spec 3.6).", + "type": "string", + "pattern": "^(?!(?:0+(?:ms|s|m|h|d|w|y))+$)(?:[0-9]+(?:ms|s|m|h|d|w|y))+$" + }, + "Date": { + "description": "RFC 3339 full-date (spec 3.7). Calendar validity is a semantic rule.", + "type": "string", + "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" + }, + "Digest": { + "description": "Digest : (spec 3.8). sha256/sha384/sha512 have fixed lengths; other algorithms are accepted syntactically.", + "type": "string", + "pattern": "^(sha256:[0-9a-f]{64}|sha384:[0-9a-f]{96}|sha512:[0-9a-f]{128}|(?!sha256:|sha384:|sha512:)[a-z0-9][a-z0-9_+.-]*:[0-9a-f]+)$" + }, + "HttpsUrl": { + "description": "HTTPS URL.", + "type": "string", + "pattern": "^https://[^\\s/?#]+([/?#]\\S*)?$" + }, + "Classification": { + "description": "Data class (spec 7.2).", + "enum": [ + "public", + "internal", + "confidential", + "personal", + "restricted", + "sensitive", + "secret" + ] + }, + "RiskLevel": { + "enum": [ + "low", + "medium", + "high", + "critical" + ] + }, + "Expression": { + "description": "Expression-enabled string (spec 3.9): only inputs., steps..outputs., execution.id, execution.environment, forEach.item, forEach.item. and forEach.index are allowed inside ${{ }}.", + "type": "string", + "pattern": "^(?:(?!\\$\\{\\{)[\\s\\S]|\\$\\{\\{ *(?:inputs\\.[a-zA-Z][a-zA-Z0-9_-]{0,62}|steps\\.[a-z][a-z0-9-]{0,62}\\.outputs\\.[^\\s.{}$]+|execution\\.id|execution\\.environment|forEach\\.index|forEach\\.item(?:\\.[a-zA-Z0-9_-]{1,63})*) *\\}\\})*$" + }, + "Approver": { + "description": "Exactly one of role or user (spec 7.6).", + "type": "object", + "additionalProperties": false, + "properties": { + "role": { + "type": "string", + "minLength": 1 + }, + "user": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "oneOf": [ + { + "required": [ + "role" + ], + "not": { + "required": [ + "user" + ] + } + }, + { + "required": [ + "user" + ], + "not": { + "required": [ + "role" + ] + } + } + ] + }, + "SeparationOfDuties": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "rules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "actorCannotApproveOwnAction": { + "type": "boolean" + }, + "initiatorCannotApprove": { + "type": "boolean" + }, + "distinctApprovers": { + "type": "boolean" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "Approval": { + "description": "Workflow-level approval configuration (spec 7.6).", + "type": "object", + "properties": { + "requiredFor": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionKey" + } + }, + "approvers": { + "type": "array", + "items": { + "$ref": "#/$defs/Approver" + } + }, + "minApprovals": { + "type": "integer", + "minimum": 1 + }, + "timeout": { + "$ref": "#/$defs/Duration" + }, + "onTimeout": { + "enum": [ + "reject", + "fail" + ] + }, + "message": { + "$ref": "#/$defs/Expression" + }, + "separationOfDuties": { + "$ref": "#/$defs/SeparationOfDuties" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "ApprovalStep": { + "description": "Payload of an approval step (spec 5.6.1, 7.6): the fields of Approval without requiredFor and separationOfDuties, which apply only at workflow level.", + "type": "object", + "properties": { + "approvers": { + "$ref": "#/$defs/Approval/properties/approvers" + }, + "minApprovals": { + "$ref": "#/$defs/Approval/properties/minApprovals" + }, + "timeout": { + "$ref": "#/$defs/Duration" + }, + "onTimeout": { + "$ref": "#/$defs/Approval/properties/onTimeout" + }, + "message": { + "$ref": "#/$defs/Expression" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "Budget": { + "description": "Budget (spec 5.7). All limits are positive.", + "type": "object", + "properties": { + "maxCostUsd": { + "type": "number", + "exclusiveMinimum": 0 + }, + "maxSteps": { + "type": "integer", + "minimum": 1 + }, + "maxDuration": { + "$ref": "#/$defs/Duration" + }, + "resources": { + "type": "object", + "properties": { + "maxTokens": { + "type": "integer", + "minimum": 1 + }, + "maxToolCalls": { + "type": "integer", + "minimum": 1 + }, + "maxRetries": { + "type": "integer", + "minimum": 1 + }, + "maxConcurrency": { + "type": "integer", + "minimum": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "Permissions": { + "description": "Permissions (spec 7.5).", + "type": "object", + "properties": { + "default": { + "enum": [ + "allow", + "deny" + ] + }, + "tools": { + "type": "object", + "propertyNames": { + "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*(\\.[a-zA-Z0-9_-]+)*(\\.[a-zA-Z0-9_-]+|\\.\\*)$" + }, + "additionalProperties": { + "type": "object", + "properties": { + "allow": { + "type": "boolean" + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/$defs/Expression" + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "allow" + ], + "additionalProperties": false + } + }, + "network": { + "type": "object", + "properties": { + "egress": { + "enum": [ + "allow", + "deny" + ] + }, + "allowHosts": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "filesystem": { + "type": "object", + "properties": { + "read": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "write": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/$defs/Name" + } + }, + "environments": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "Model": { + "description": "Model object (spec 5.4.3).", + "type": "object", + "properties": { + "provider": { + "type": "string", + "minLength": 1 + }, + "name": { + "type": "string", + "minLength": 1 + }, + "version": { + "type": "string", + "minLength": 1 + }, + "region": { + "type": "string", + "minLength": 1 + }, + "approval": { + "type": "object", + "properties": { + "status": { + "enum": [ + "approved", + "pending", + "rejected", + "revoked" + ] + }, + "expires": { + "$ref": "#/$defs/Date" + }, + "approvedBy": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "riskClassification": { + "$ref": "#/$defs/RiskLevel" + }, + "evaluation": { + "type": "object", + "properties": { + "status": { + "enum": [ + "passed", + "failed", + "pending", + "notEvaluated" + ] + }, + "ref": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "allowedUseCases": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "provider", + "name" + ], + "additionalProperties": false + }, + "PromptRef": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "version": { + "type": "string", + "minLength": 1 + }, + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "version" + ], + "additionalProperties": false + }, + "ToolSource": { + "description": "Tool source (spec 5.5.2).", + "type": "object", + "properties": { + "type": { + "enum": [ + "mcp", + "builtin" + ] + }, + "server": { + "$ref": "#/$defs/Name" + }, + "name": { + "type": "string", + "minLength": 1 + }, + "tools": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "type" + ], + "additionalProperties": false, + "allOf": [ + { + "if": { + "properties": { + "type": { + "const": "mcp" + } + }, + "required": [ + "type" + ] + }, + "then": { + "required": [ + "server" + ] + } + }, + { + "if": { + "properties": { + "type": { + "const": "builtin" + } + }, + "required": [ + "type" + ] + }, + "then": { + "required": [ + "name" + ] + } + } + ] + }, + "McpServer": { + "description": "MCP server (spec 5.5.1).", + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/Name" + }, + "transport": { + "enum": [ + "stdio", + "streamable-http" + ] + }, + "url": { + "$ref": "#/$defs/HttpsUrl" + }, + "image": { + "type": "string", + "minLength": 1 + }, + "version": { + "type": "string", + "minLength": 1 + }, + "auth": { + "type": "object", + "properties": { + "secretRef": { + "$ref": "#/$defs/Name" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "secretRef" + ], + "additionalProperties": false + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "transport" + ], + "additionalProperties": false, + "if": { + "properties": { + "transport": { + "const": "streamable-http" + } + }, + "required": [ + "transport" + ] + }, + "then": { + "required": [ + "url" + ] + } + }, + "Secret": { + "description": "Secret declaration (spec 7.9). Secret values never appear in manifests.", + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/Name" + }, + "source": { + "type": "string", + "minLength": 1 + }, + "key": { + "type": "string", + "minLength": 1 + }, + "scope": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "source" + ], + "additionalProperties": false + }, + "ActionGroups": { + "description": "Action groups (spec 5.5.4). Nesting is a semantic rule.", + "type": "object", + "propertyNames": { + "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*(\\.[a-zA-Z0-9_-]+)+$" + }, + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionIdentifier" + } + } + }, + "InlineAgent": { + "description": "Inline agent (spec 5.4.1).", + "type": "object", + "properties": { + "id": { + "$ref": "#/$defs/Identifier" + }, + "model": { + "$ref": "#/$defs/Model" + }, + "instructions": { + "type": "string" + }, + "promptRef": { + "$ref": "#/$defs/PromptRef" + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/$defs/ToolSource" + } + }, + "permissions": { + "$ref": "#/$defs/Permissions" + }, + "budget": { + "$ref": "#/$defs/Budget" + }, + "humanInput": { + "$ref": "#/$defs/HumanInput" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "id", + "model" + ], + "additionalProperties": false, + "not": { + "required": [ + "instructions", + "promptRef" + ] + } + }, + "AgentReference": { + "description": "Agent reference (spec 5.4.2).", + "type": "object", + "properties": { + "id": { + "$ref": "#/$defs/Identifier" + }, + "ref": { + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/Name" + }, + "version": { + "$ref": "#/$defs/SemVer" + }, + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "version" + ], + "additionalProperties": false + }, + "permissions": { + "$ref": "#/$defs/Permissions" + }, + "budget": { + "$ref": "#/$defs/Budget" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "id", + "ref" + ], + "additionalProperties": false + }, + "RemoteAgent": { + "description": "Remote agent over A2A (spec 5.4.4).", + "type": "object", + "properties": { + "id": { + "$ref": "#/$defs/Identifier" + }, + "protocol": { + "const": "a2a" + }, + "endpoint": { + "$ref": "#/$defs/HttpsUrl" + }, + "agentCard": { + "type": "object", + "properties": { + "url": { + "$ref": "#/$defs/HttpsUrl" + }, + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "url" + ], + "additionalProperties": false + }, + "auth": { + "type": "object", + "properties": { + "secretRef": { + "$ref": "#/$defs/Name" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "secretRef" + ], + "additionalProperties": false + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "id", + "protocol", + "endpoint" + ], + "additionalProperties": false + }, + "AgentEntry": { + "description": "One entry of spec.agents: agent reference if it has ref, remote agent if it has protocol, otherwise inline agent (spec 5.4).", + "type": "object", + "required": [ + "id" + ], + "if": { + "required": [ + "ref" + ] + }, + "then": { + "$ref": "#/$defs/AgentReference" + }, + "else": { + "if": { + "required": [ + "protocol" + ] + }, + "then": { + "$ref": "#/$defs/RemoteAgent" + }, + "else": { + "$ref": "#/$defs/InlineAgent" + } + } + }, + "Trigger": { + "description": "Trigger (spec 5.2).", + "type": "object", + "properties": { + "type": { + "enum": [ + "manual", + "schedule", + "event" + ] + }, + "cron": { + "type": "string", + "pattern": "^\\S+(\\s+\\S+){4}$" + }, + "timezone": { + "type": "string", + "minLength": 1 + }, + "source": { + "type": "string", + "minLength": 1 + }, + "eventType": { + "type": "string", + "minLength": 1 + }, + "filter": { + "type": "object", + "propertyNames": { + "pattern": "^.+$" + }, + "additionalProperties": { + "type": "string" + } + }, + "concurrencyPolicy": { + "enum": [ + "allow", + "forbid", + "replace" + ] + }, + "startingDeadline": { + "$ref": "#/$defs/Duration" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "type" + ], + "additionalProperties": false, + "allOf": [ + { + "if": { + "properties": { + "type": { + "const": "manual" + } + }, + "required": [ + "type" + ] + }, + "then": { + "not": { + "anyOf": [ + { + "required": [ + "cron" + ] + }, + { + "required": [ + "timezone" + ] + }, + { + "required": [ + "source" + ] + }, + { + "required": [ + "eventType" + ] + }, + { + "required": [ + "filter" + ] + }, + { + "required": [ + "concurrencyPolicy" + ] + }, + { + "required": [ + "startingDeadline" + ] + } + ] + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "schedule" + } + }, + "required": [ + "type" + ] + }, + "then": { + "required": [ + "cron" + ], + "not": { + "anyOf": [ + { + "required": [ + "source" + ] + }, + { + "required": [ + "eventType" + ] + }, + { + "required": [ + "filter" + ] + } + ] + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "event" + } + }, + "required": [ + "type" + ] + }, + "then": { + "required": [ + "source", + "eventType" + ], + "not": { + "anyOf": [ + { + "required": [ + "cron" + ] + }, + { + "required": [ + "timezone" + ] + }, + { + "required": [ + "concurrencyPolicy" + ] + }, + { + "required": [ + "startingDeadline" + ] + } + ] + } + } + } + ] + }, + "Input": { + "description": "Workflow input (spec 5.3).", + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/Name" + }, + "type": { + "enum": [ + "string", + "integer", + "number", + "boolean", + "object", + "array", + "artifact" + ] + }, + "required": { + "type": "boolean" + }, + "default": {}, + "description": { + "type": "string" + }, + "pattern": { + "type": "string" + }, + "enum": { + "type": "array", + "items": {} + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "type" + ], + "additionalProperties": false, + "allOf": [ + { + "if": { + "properties": { + "type": { + "const": "string" + } + }, + "required": [ + "type" + ] + }, + "then": { + "properties": { + "default": { + "type": "string" + } + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "integer" + } + }, + "required": [ + "type" + ] + }, + "then": { + "properties": { + "default": { + "type": "integer" + } + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "number" + } + }, + "required": [ + "type" + ] + }, + "then": { + "properties": { + "default": { + "type": "number" + } + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "boolean" + } + }, + "required": [ + "type" + ] + }, + "then": { + "properties": { + "default": { + "type": "boolean" + } + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "object" + } + }, + "required": [ + "type" + ] + }, + "then": { + "properties": { + "default": { + "type": "object" + } + } + } + }, + { + "if": { + "properties": { + "type": { + "const": "array" + } + }, + "required": [ + "type" + ] + }, + "then": { + "properties": { + "default": { + "type": "array" + } + } + } + }, + { + "if": { + "properties": { + "required": { + "const": true + } + }, + "required": [ + "required" + ] + }, + "then": { + "not": { + "required": [ + "default" + ] + } + } + } + ] + }, + "Step": { + "description": "Workflow step (spec 5.6).", + "type": "object", + "properties": { + "id": { + "$ref": "#/$defs/Identifier" + }, + "type": { + "enum": [ + "agent", + "command", + "approval", + "input", + "workflow" + ] + }, + "dependsOn": { + "type": "array", + "items": { + "$ref": "#/$defs/Identifier" + } + }, + "timeout": { + "$ref": "#/$defs/Duration" + }, + "retries": { + "type": "integer", + "minimum": 0 + }, + "when": { + "description": "Condition (spec 3.12): the step runs only if it evaluates to true. The whole field is the expression, without ${{ }}.", + "type": "string", + "minLength": 1, + "maxLength": 512 + }, + "outputs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "description": "Output name (spec 5.6.1). Also the file name in $AWP_OUTPUTS (spec 5.6.4).", + "type": "string", + "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$" + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "description": { + "type": "string" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name" + ], + "additionalProperties": false + } + }, + "budget": { + "$ref": "#/$defs/Budget" + }, + "agent": { + "$ref": "#/$defs/Identifier" + }, + "task": { + "$ref": "#/$defs/Expression" + }, + "command": { + "type": "string", + "minLength": 1 + }, + "image": { + "type": "string", + "minLength": 1 + }, + "env": { + "type": "object", + "propertyNames": { + "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" + }, + "additionalProperties": { + "$ref": "#/$defs/Expression" + } + }, + "workingDir": { + "type": "string", + "minLength": 1 + }, + "approval": { + "$ref": "#/$defs/ApprovalStep" + }, + "input": { + "$ref": "#/$defs/InputStep" + }, + "workflow": { + "$ref": "#/$defs/WorkflowCall" + }, + "forEach": { + "$ref": "#/$defs/ForEach" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "id" + ], + "additionalProperties": false, + "if": { + "required": [ + "type" + ], + "properties": { + "type": { + "const": "workflow" + } + } + }, + "then": { + "required": [ + "workflow" + ], + "not": { + "anyOf": [ + { + "required": [ + "agent" + ] + }, + { + "required": [ + "task" + ] + }, + { + "required": [ + "command" + ] + }, + { + "required": [ + "image" + ] + }, + { + "required": [ + "env" + ] + }, + { + "required": [ + "workingDir" + ] + }, + { + "required": [ + "approval" + ] + }, + { + "required": [ + "input" + ] + }, + { + "required": [ + "forEach" + ] + } + ] + } + }, + "else": { + "if": { + "required": [ + "type" + ], + "properties": { + "type": { + "const": "command" + } + } + }, + "then": { + "required": [ + "command" + ], + "not": { + "anyOf": [ + { + "required": [ + "agent" + ] + }, + { + "required": [ + "task" + ] + }, + { + "required": [ + "approval" + ] + }, + { + "required": [ + "input" + ] + }, + { + "required": [ + "workflow" + ] + } + ] + } + }, + "else": { + "if": { + "required": [ + "type" + ], + "properties": { + "type": { + "const": "approval" + } + } + }, + "then": { + "required": [ + "approval" + ], + "not": { + "anyOf": [ + { + "required": [ + "agent" + ] + }, + { + "required": [ + "task" + ] + }, + { + "required": [ + "command" + ] + }, + { + "required": [ + "image" + ] + }, + { + "required": [ + "env" + ] + }, + { + "required": [ + "workingDir" + ] + }, + { + "required": [ + "input" + ] + }, + { + "required": [ + "forEach" + ] + }, + { + "required": [ + "workflow" + ] + } + ] + } + }, + "else": { + "if": { + "required": [ + "type" + ], + "properties": { + "type": { + "const": "input" + } + } + }, + "then": { + "required": [ + "input" + ], + "not": { + "anyOf": [ + { + "required": [ + "agent" + ] + }, + { + "required": [ + "task" + ] + }, + { + "required": [ + "command" + ] + }, + { + "required": [ + "image" + ] + }, + { + "required": [ + "env" + ] + }, + { + "required": [ + "workingDir" + ] + }, + { + "required": [ + "approval" + ] + }, + { + "required": [ + "forEach" + ] + }, + { + "required": [ + "workflow" + ] + } + ] + } + }, + "else": { + "required": [ + "agent" + ], + "not": { + "anyOf": [ + { + "required": [ + "command" + ] + }, + { + "required": [ + "image" + ] + }, + { + "required": [ + "env" + ] + }, + { + "required": [ + "workingDir" + ] + }, + { + "required": [ + "approval" + ] + }, + { + "required": [ + "input" + ] + }, + { + "required": [ + "workflow" + ] + } + ] + } + } + } + } + } + }, + "DataPolicy": { + "description": "Data policy (spec 7.2, 7.3).", + "type": "object", + "properties": { + "classification": { + "$ref": "#/$defs/Classification" + }, + "inputs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "classification" + ], + "additionalProperties": false + } + }, + "outputs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "classification" + ], + "additionalProperties": false + } + }, + "restrictions": { + "type": "object", + "properties": { + "externalTransfer": { + "enum": [ + "allow", + "deny" + ] + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "residency": { + "type": "object", + "properties": { + "allowed": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "processing": { + "type": "object", + "properties": { + "allowedProviders": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "forbiddenProviders": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "ModelPolicy": { + "description": "Model policy (spec 7.4).", + "type": "object", + "properties": { + "allowedProviders": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "allowedModels": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "forbiddenModels": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "requirements": { + "type": "object", + "properties": { + "approvalStatus": { + "enum": [ + "approved", + "pending", + "rejected", + "revoked" + ] + }, + "encryption": { + "type": "boolean" + }, + "region": { + "type": "string", + "minLength": 1 + }, + "evaluationStatus": { + "enum": [ + "passed", + "failed", + "pending", + "notEvaluated" + ] + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "Policies": { + "description": "Workflow policy shorthands and includes (spec 8.1).", + "type": "object", + "properties": { + "git": { + "type": "object", + "properties": { + "allowPush": { + "type": "boolean" + }, + "allowForcePush": { + "type": "boolean" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "pullRequest": { + "type": "object", + "properties": { + "allowCreate": { + "type": "boolean" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "merge": { + "type": "object", + "properties": { + "allow": { + "type": "boolean" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "production": { + "type": "object", + "properties": { + "allow": { + "type": "boolean" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "include": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/Name" + }, + "version": { + "$ref": "#/$defs/SemVer" + }, + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name", + "version" + ], + "additionalProperties": false + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "Audit": { + "description": "Audit configuration (spec 10.2).", + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "payload": { + "enum": [ + "metadata", + "full" + ] + }, + "integrity": { + "type": "object", + "properties": { + "mode": { + "enum": [ + "none", + "hash-chain", + "signed" + ] + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "retention": { + "type": "object", + "properties": { + "duration": { + "$ref": "#/$defs/Duration" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "Environments": { + "description": "Environments (spec 7.10). Keys are organizational environment names.", + "type": "object", + "propertyNames": { + "pattern": "^.+$" + }, + "additionalProperties": { + "type": "object", + "properties": { + "autonomy": { + "enum": [ + "unrestricted", + "controlled", + "approval-required", + "prohibited" + ] + }, + "autoApprove": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionKey" + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "autonomy" + ], + "additionalProperties": false + } + }, + "Owner": { + "description": "Ownership (spec 7.1).", + "type": "object", + "properties": { + "team": { + "type": "string", + "minLength": 1 + }, + "contact": { + "type": "string" + }, + "businessOwner": { + "type": "string" + }, + "technicalOwner": { + "type": "string" + }, + "dataOwner": { + "type": "string" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "team" + ], + "additionalProperties": false + }, + "Metadata": { + "description": "Object metadata (spec 4): the subset of Kubernetes ObjectMeta that authors write. Fields that an object store populates are tolerated and ignored.", + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/ObjectName" + }, + "namespace": { + "$ref": "#/$defs/ObjectName" + }, + "labels": { + "type": "object", + "propertyNames": { + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[A-Za-z0-9]([-A-Za-z0-9_.]{0,61}[A-Za-z0-9])?$", + "maxLength": 316 + }, + "additionalProperties": { + "type": "string", + "pattern": "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$", + "maxLength": 63 + } + }, + "annotations": { + "type": "object", + "propertyNames": { + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[A-Za-z0-9]([-A-Za-z0-9_.]{0,61}[A-Za-z0-9])?$", + "maxLength": 316 + }, + "additionalProperties": { + "type": "string" + } + }, + "uid": { + "type": "string" + }, + "resourceVersion": { + "type": "string" + }, + "generation": { + "type": "integer" + }, + "creationTimestamp": { + "type": "string" + }, + "deletionTimestamp": { + "type": "string" + }, + "deletionGracePeriodSeconds": { + "type": "integer" + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "ownerReferences": { + "type": "array", + "items": { + "type": "object" + } + }, + "managedFields": { + "type": "array", + "items": { + "type": "object" + } + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "WorkflowSpec": { + "description": "spec of kind Workflow (spec 5.1).", + "type": "object", + "properties": { + "version": { + "$ref": "#/$defs/SemVer" + }, + "description": { + "type": "string" + }, + "owner": { + "$ref": "#/$defs/Owner" + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "purpose": { + "type": "string" + }, + "risk": { + "type": "object", + "properties": { + "level": { + "$ref": "#/$defs/RiskLevel" + }, + "category": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "level" + ], + "additionalProperties": false + }, + "integrity": { + "type": "object", + "properties": { + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "digest" + ], + "additionalProperties": false + }, + "signature": { + "type": "object", + "properties": { + "format": { + "type": "string", + "minLength": 1 + }, + "ref": { + "type": "string", + "minLength": 1 + }, + "identity": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "provenance": { + "type": "object", + "properties": { + "format": { + "type": "string", + "minLength": 1 + }, + "ref": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "triggers": { + "type": "array", + "items": { + "$ref": "#/$defs/Trigger" + } + }, + "inputs": { + "type": "array", + "items": { + "$ref": "#/$defs/Input" + } + }, + "budget": { + "$ref": "#/$defs/Budget" + }, + "agents": { + "type": "array", + "items": { + "$ref": "#/$defs/AgentEntry" + } + }, + "mcpServers": { + "type": "array", + "items": { + "$ref": "#/$defs/McpServer" + } + }, + "actionGroups": { + "$ref": "#/$defs/ActionGroups" + }, + "workflow": { + "type": "array", + "items": { + "$ref": "#/$defs/Step" + } + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/$defs/Secret" + } + }, + "environment": { + "type": "object", + "properties": { + "name": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "environments": { + "$ref": "#/$defs/Environments" + }, + "permissions": { + "$ref": "#/$defs/Permissions" + }, + "dataPolicy": { + "$ref": "#/$defs/DataPolicy" + }, + "modelPolicy": { + "$ref": "#/$defs/ModelPolicy" + }, + "approval": { + "$ref": "#/$defs/Approval" + }, + "policies": { + "$ref": "#/$defs/Policies" + }, + "audit": { + "$ref": "#/$defs/Audit" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "version", + "owner", + "agents", + "workflow" + ], + "additionalProperties": false + }, + "AgentSpec": { + "description": "spec of kind Agent (spec 6).", + "type": "object", + "properties": { + "version": { + "$ref": "#/$defs/SemVer" + }, + "description": { + "type": "string" + }, + "owner": { + "$ref": "#/$defs/Owner" + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "purpose": { + "type": "string" + }, + "risk": { + "type": "object", + "properties": { + "level": { + "$ref": "#/$defs/RiskLevel" + }, + "category": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "level" + ], + "additionalProperties": false + }, + "integrity": { + "type": "object", + "properties": { + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "digest" + ], + "additionalProperties": false + }, + "signature": { + "type": "object", + "properties": { + "format": { + "type": "string", + "minLength": 1 + }, + "ref": { + "type": "string", + "minLength": 1 + }, + "identity": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "provenance": { + "type": "object", + "properties": { + "format": { + "type": "string", + "minLength": 1 + }, + "ref": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "model": { + "$ref": "#/$defs/Model" + }, + "instructions": { + "type": "string" + }, + "promptRef": { + "$ref": "#/$defs/PromptRef" + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/$defs/ToolSource" + } + }, + "mcpServers": { + "type": "array", + "items": { + "$ref": "#/$defs/McpServer" + } + }, + "actionGroups": { + "$ref": "#/$defs/ActionGroups" + }, + "permissions": { + "$ref": "#/$defs/Permissions" + }, + "budget": { + "$ref": "#/$defs/Budget" + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/$defs/Secret" + } + }, + "humanInput": { + "$ref": "#/$defs/HumanInput" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "version", + "owner", + "model" + ], + "additionalProperties": false, + "not": { + "required": [ + "instructions", + "promptRef" + ] + } + }, + "Condition": { + "description": "Policy rule conditions (spec 8.3): each attribute maps to an operator object. Unknown attributes are rejected; ordering operators are limited to data.classification and risk.level.", + "type": "object", + "minProperties": 1, + "additionalProperties": false, + "properties": { + "action": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionKey" + } + }, + "notIn": { + "type": "array", + "items": { + "$ref": "#/$defs/ActionKey" + } + }, + "equals": { + "$ref": "#/$defs/ActionKey" + }, + "notEquals": { + "$ref": "#/$defs/ActionKey" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "environment.name": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "risk.level": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "$ref": "#/$defs/RiskLevel" + } + }, + "notIn": { + "type": "array", + "items": { + "$ref": "#/$defs/RiskLevel" + } + }, + "equals": { + "$ref": "#/$defs/RiskLevel" + }, + "notEquals": { + "$ref": "#/$defs/RiskLevel" + }, + "gt": { + "$ref": "#/$defs/RiskLevel" + }, + "gte": { + "$ref": "#/$defs/RiskLevel" + }, + "lt": { + "$ref": "#/$defs/RiskLevel" + }, + "lte": { + "$ref": "#/$defs/RiskLevel" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "data.classification": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "$ref": "#/$defs/Classification" + } + }, + "notIn": { + "type": "array", + "items": { + "$ref": "#/$defs/Classification" + } + }, + "equals": { + "$ref": "#/$defs/Classification" + }, + "notEquals": { + "$ref": "#/$defs/Classification" + }, + "gt": { + "$ref": "#/$defs/Classification" + }, + "gte": { + "$ref": "#/$defs/Classification" + }, + "lt": { + "$ref": "#/$defs/Classification" + }, + "lte": { + "$ref": "#/$defs/Classification" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "destination.provider": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "destination.region": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "model.provider": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "model.name": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "actor.type": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "enum": [ + "agent", + "human", + "runtime", + "system" + ] + } + }, + "notIn": { + "type": "array", + "items": { + "enum": [ + "agent", + "human", + "runtime", + "system" + ] + } + }, + "equals": { + "enum": [ + "agent", + "human", + "runtime", + "system" + ] + }, + "notEquals": { + "enum": [ + "agent", + "human", + "runtime", + "system" + ] + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "workflow.name": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "step.id": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + }, + "agent.id": { + "type": "object", + "properties": { + "in": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "notIn": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "equals": { + "type": "string", + "minLength": 1 + }, + "notEquals": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false, + "minProperties": 1 + } + } + }, + "Rule": { + "description": "Policy rule (spec 8.2).", + "type": "object", + "properties": { + "id": { + "$ref": "#/$defs/Identifier" + }, + "when": { + "$ref": "#/$defs/Condition" + }, + "effect": { + "enum": [ + "deny", + "requireApproval" + ] + }, + "approval": { + "type": "object", + "properties": { + "approvers": { + "type": "array", + "items": { + "$ref": "#/$defs/Approver" + } + }, + "minApprovals": { + "type": "integer", + "minimum": 1 + }, + "timeout": { + "$ref": "#/$defs/Duration" + }, + "onTimeout": { + "enum": [ + "reject", + "fail" + ] + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "message": { + "type": "string" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "id", + "when", + "effect" + ], + "additionalProperties": false, + "if": { + "properties": { + "effect": { + "const": "requireApproval" + } + }, + "required": [ + "effect" + ] + }, + "then": { + "required": [ + "approval" + ] + } + }, + "PolicySpec": { + "description": "spec of kind Policy (spec 8.2).", + "type": "object", + "properties": { + "version": { + "$ref": "#/$defs/SemVer" + }, + "description": { + "type": "string" + }, + "owner": { + "$ref": "#/$defs/Owner" + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "purpose": { + "type": "string" + }, + "risk": { + "type": "object", + "properties": { + "level": { + "$ref": "#/$defs/RiskLevel" + }, + "category": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "level" + ], + "additionalProperties": false + }, + "integrity": { + "type": "object", + "properties": { + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "digest" + ], + "additionalProperties": false + }, + "signature": { + "type": "object", + "properties": { + "format": { + "type": "string", + "minLength": 1 + }, + "ref": { + "type": "string", + "minLength": 1 + }, + "identity": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "provenance": { + "type": "object", + "properties": { + "format": { + "type": "string", + "minLength": 1 + }, + "ref": { + "type": "string", + "minLength": 1 + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "additionalProperties": false + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/$defs/Rule" + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "version", + "owner", + "rules" + ], + "additionalProperties": false + }, + "Workflow": { + "description": "A complete manifest of kind Workflow (spec 3.2, 5).", + "type": "object", + "properties": { + "apiVersion": { + "const": "awp.agenticworkflowprotocol.org/v1alpha4" + }, + "kind": { + "const": "Workflow" + }, + "metadata": { + "$ref": "#/$defs/Metadata" + }, + "spec": { + "$ref": "#/$defs/WorkflowSpec" + }, + "status": { + "description": "Written by the runtime or object store (shape: ManifestStatus, spec 3.11). Ignored by validators and excluded from the digest (spec 3.2).", + "type": "object" + } + }, + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "additionalProperties": false + }, + "Agent": { + "description": "A complete manifest of kind Agent (spec 3.2, 6).", + "type": "object", + "properties": { + "apiVersion": { + "const": "awp.agenticworkflowprotocol.org/v1alpha4" + }, + "kind": { + "const": "Agent" + }, + "metadata": { + "$ref": "#/$defs/Metadata" + }, + "spec": { + "$ref": "#/$defs/AgentSpec" + }, + "status": { + "description": "Written by the runtime or object store (shape: ManifestStatus, spec 3.11). Ignored by validators and excluded from the digest (spec 3.2).", + "type": "object" + } + }, + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "additionalProperties": false + }, + "Policy": { + "description": "A complete manifest of kind Policy (spec 3.2, 8.2).", + "type": "object", + "properties": { + "apiVersion": { + "const": "awp.agenticworkflowprotocol.org/v1alpha4" + }, + "kind": { + "const": "Policy" + }, + "metadata": { + "$ref": "#/$defs/Metadata" + }, + "spec": { + "$ref": "#/$defs/PolicySpec" + }, + "status": { + "description": "Written by the runtime or object store (shape: ManifestStatus, spec 3.11). Ignored by validators and excluded from the digest (spec 3.2).", + "type": "object" + } + }, + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "additionalProperties": false + }, + "Extensions": { + "description": "Extension fields (spec 3.3): keys start with x-, values are opaque to AWP. Replaces the x- fields of v1alpha1, which a Kubernetes structural schema cannot express.", + "type": "object", + "propertyNames": { + "pattern": "^x-[a-zA-Z0-9][a-zA-Z0-9_-]*$" + }, + "additionalProperties": {} + }, + "ObjectName": { + "description": "Object name (spec 3.4): a DNS-1123 label.", + "type": "string", + "maxLength": 63, + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "AnswerField": { + "description": "One field of an answer schema (spec 5.8): a primitive value, as in MCP elicitation.", + "type": "object", + "properties": { + "type": { + "enum": [ + "string", + "number", + "integer", + "boolean" + ] + }, + "title": { + "type": "string", + "minLength": 1 + }, + "description": { + "type": "string" + }, + "enum": { + "type": "array", + "minItems": 1, + "items": { + "type": "string" + } + }, + "format": { + "enum": [ + "email", + "uri", + "date", + "date-time" + ] + }, + "minLength": { + "type": "integer", + "minimum": 0 + }, + "maxLength": { + "type": "integer", + "minimum": 1 + }, + "minimum": { + "type": "number" + }, + "maximum": { + "type": "number" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "type" + ], + "additionalProperties": false + }, + "AnswerSchema": { + "description": "Schema of a structured answer (spec 5.8): a flat object of primitive fields, the requested-schema subset of MCP elicitation.", + "type": "object", + "properties": { + "type": { + "const": "object" + }, + "properties": { + "type": "object", + "minProperties": 1, + "propertyNames": { + "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,62}$" + }, + "additionalProperties": { + "$ref": "#/$defs/AnswerField" + } + }, + "required": { + "type": "array", + "items": { + "type": "string", + "minLength": 1 + } + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "type", + "properties" + ], + "additionalProperties": false + }, + "InputStep": { + "description": "Payload of an input step (spec 5.8): ask a person and wait for the answer.", + "type": "object", + "properties": { + "message": { + "$ref": "#/$defs/Expression" + }, + "answerSchema": { + "$ref": "#/$defs/AnswerSchema" + }, + "answerers": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/$defs/Approver" + } + }, + "timeout": { + "$ref": "#/$defs/Duration" + }, + "onTimeout": { + "enum": [ + "fail", + "useDefault" + ] + }, + "default": {}, + "classification": { + "$ref": "#/$defs/Classification" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "message", + "answerers" + ], + "additionalProperties": false, + "if": { + "properties": { + "onTimeout": { + "const": "useDefault" + } + }, + "required": [ + "onTimeout" + ] + }, + "then": { + "required": [ + "default" + ] + } + }, + "WorkflowCall": { + "description": "Payload of a workflow step (spec 5.6.6): start another workflow of the same scope as a child execution.", + "type": "object", + "properties": { + "ref": { + "$ref": "#/$defs/ObjectName" + }, + "version": { + "description": "Semantic version range of the child workflow. Default: the version the runtime treats as current.", + "type": "string", + "minLength": 1 + }, + "inputs": { + "description": "Inputs of the child execution; values are expression-enabled (spec 3.9).", + "type": "object", + "additionalProperties": { + "$ref": "#/$defs/Expression" + } + }, + "wait": { + "description": "Wait for the child execution to finish (default true).", + "type": "boolean" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "ref" + ], + "additionalProperties": false + }, + "HumanInput": { + "description": "Lets an agent ask a person during its step (spec 5.8).", + "type": "object", + "properties": { + "answerers": { + "type": "array", + "minItems": 1, + "items": { + "$ref": "#/$defs/Approver" + } + }, + "timeout": { + "$ref": "#/$defs/Duration" + }, + "onTimeout": { + "enum": [ + "return", + "fail" + ] + }, + "maxRequests": { + "type": "integer", + "minimum": 1 + }, + "classification": { + "$ref": "#/$defs/Classification" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "answerers" + ], + "additionalProperties": false + }, + "Timestamp": { + "description": "RFC 3339 timestamp (spec 3.7).", + "type": "string", + "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]+)?([Zz]|[+-][0-9]{2}:[0-9]{2})$" + }, + "StatusCondition": { + "description": "A status condition in the shape of Kubernetes metav1.Condition (spec 3.11).", + "type": "object", + "properties": { + "type": { + "type": "string", + "maxLength": 316, + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$" + }, + "status": { + "enum": [ + "True", + "False", + "Unknown" + ] + }, + "observedGeneration": { + "type": "integer", + "minimum": 0 + }, + "lastTransitionTime": { + "description": "When status last changed (RFC 3339).", + "$ref": "#/$defs/Timestamp" + }, + "reason": { + "type": "string", + "minLength": 1, + "maxLength": 1024, + "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$" + }, + "message": { + "type": "string", + "maxLength": 32768 + } + }, + "required": [ + "type", + "status", + "lastTransitionTime", + "reason", + "message" + ] + }, + "ManifestStatus": { + "description": "Status a runtime writes on a Workflow, Agent or Policy (spec 3.11). Validators ignore it (spec 3.2).", + "type": "object", + "properties": { + "observedGeneration": { + "type": "integer", + "minimum": 0 + }, + "digest": { + "description": "Digest of the manifest as the runtime validated it (spec 9.1).", + "$ref": "#/$defs/Digest" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/$defs/StatusCondition" + } + } + } + }, + "WorkflowRunStatus": { + "description": "Status a runtime writes on a WorkflowRun (spec 10.8). Validators ignore it (spec 3.2).", + "type": "object", + "properties": { + "observedGeneration": { + "type": "integer", + "minimum": 0 + }, + "executionId": { + "type": "string" + }, + "phase": { + "enum": [ + "pending", + "running", + "succeeded", + "failed", + "cancelled", + "rejected" + ] + }, + "reason": { + "type": "string" + }, + "message": { + "type": "string" + }, + "actor": { + "type": "object", + "properties": { + "type": { + "enum": [ + "human", + "system", + "runtime", + "agent" + ] + }, + "id": { + "type": "string" + } + } + }, + "trigger": { + "type": "object", + "properties": { + "type": { + "enum": [ + "manual", + "schedule", + "event" + ] + }, + "index": { + "type": "integer", + "minimum": 0 + }, + "scheduledAt": { + "description": "Tick time for schedule triggers.", + "$ref": "#/$defs/Timestamp" + } + } + }, + "environment": { + "type": "string" + }, + "workflow": { + "description": "The manifest the execution is pinned to (spec 10.1).", + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/ObjectName" + }, + "version": { + "$ref": "#/$defs/SemVer" + }, + "digest": { + "$ref": "#/$defs/Digest" + } + } + }, + "startedAt": { + "description": "Start of the execution.", + "$ref": "#/$defs/Timestamp" + }, + "finishedAt": { + "description": "End of the execution.", + "$ref": "#/$defs/Timestamp" + }, + "steps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "$ref": "#/$defs/Identifier" + }, + "status": { + "enum": [ + "pending", + "running", + "waitingForApproval", + "waitingForInput", + "succeeded", + "failed", + "skipped", + "cancelled" + ] + }, + "attempts": { + "type": "integer", + "minimum": 0 + }, + "startedAt": { + "description": "Start of the first attempt.", + "$ref": "#/$defs/Timestamp" + }, + "finishedAt": { + "description": "End of the last attempt.", + "$ref": "#/$defs/Timestamp" + }, + "reason": { + "type": "string" + }, + "message": { + "type": "string" + }, + "outputs": { + "description": "Produced outputs. Values are not stored in status, only references.", + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "digest": { + "$ref": "#/$defs/Digest" + }, + "size": { + "type": "integer", + "minimum": 0 + }, + "classification": { + "$ref": "#/$defs/Classification" + } + }, + "required": [ + "name" + ] + } + } + }, + "required": [ + "id", + "status" + ] + } + }, + "usage": { + "description": "Usage as in workflow.completed (spec 5.7, 10.4).", + "type": "object" + }, + "conditions": { + "type": "array", + "items": { + "$ref": "#/$defs/StatusCondition" + } + } + } + }, + "RunMetadata": { + "description": "Metadata of a WorkflowRun (spec 10.8): as Metadata, but a client MAY set generateName instead of name.", + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/ObjectName" + }, + "namespace": { + "$ref": "#/$defs/ObjectName" + }, + "labels": { + "type": "object", + "propertyNames": { + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[A-Za-z0-9]([-A-Za-z0-9_.]{0,61}[A-Za-z0-9])?$", + "maxLength": 316 + }, + "additionalProperties": { + "type": "string", + "pattern": "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$", + "maxLength": 63 + } + }, + "annotations": { + "type": "object", + "propertyNames": { + "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[A-Za-z0-9]([-A-Za-z0-9_.]{0,61}[A-Za-z0-9])?$", + "maxLength": 316 + }, + "additionalProperties": { + "type": "string" + } + }, + "uid": { + "type": "string" + }, + "resourceVersion": { + "type": "string" + }, + "generation": { + "type": "integer" + }, + "creationTimestamp": { + "type": "string" + }, + "deletionTimestamp": { + "type": "string" + }, + "deletionGracePeriodSeconds": { + "type": "integer" + }, + "finalizers": { + "type": "array", + "items": { + "type": "string" + } + }, + "ownerReferences": { + "type": "array", + "items": { + "type": "object" + } + }, + "managedFields": { + "type": "array", + "items": { + "type": "object" + } + }, + "generateName": { + "type": "string", + "maxLength": 58, + "pattern": "^[a-z0-9]([-a-z0-9]*)?$" + } + }, + "anyOf": [ + { + "required": [ + "name" + ] + }, + { + "required": [ + "generateName" + ] + } + ], + "additionalProperties": false + }, + "WorkflowRunSpec": { + "description": "Request for one execution of a workflow (spec 10.8).", + "type": "object", + "properties": { + "workflowRef": { + "description": "The workflow to run, in the namespace of the WorkflowRun. version and digest are assertions, not selectors.", + "type": "object", + "properties": { + "name": { + "$ref": "#/$defs/ObjectName" + }, + "version": { + "$ref": "#/$defs/SemVer" + }, + "digest": { + "$ref": "#/$defs/Digest" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "name" + ], + "additionalProperties": false + }, + "inputs": { + "description": "Input values (spec 5.3).", + "type": "object" + }, + "environment": { + "description": "Environment name (spec 7.10).", + "type": "string", + "minLength": 1 + }, + "cancel": { + "description": "Request to cancel the execution (spec 10.8).", + "type": "boolean" + }, + "extensions": { + "$ref": "#/$defs/Extensions" + } + }, + "required": [ + "workflowRef" + ], + "additionalProperties": false + }, + "WorkflowRun": { + "description": "An execution of a workflow as an object (spec 10.8).", + "type": "object", + "properties": { + "apiVersion": { + "const": "awp.agenticworkflowprotocol.org/v1alpha4" + }, + "kind": { + "const": "WorkflowRun" + }, + "metadata": { + "$ref": "#/$defs/RunMetadata" + }, + "spec": { + "$ref": "#/$defs/WorkflowRunSpec" + }, + "status": { + "description": "Written by the runtime (shape: WorkflowRunStatus). Ignored by validators (spec 3.2).", + "type": "object" + } + }, + "required": [ + "apiVersion", + "kind", + "metadata", + "spec" + ], + "additionalProperties": false + }, + "ForEach": { + "description": "Iteration over a list (spec 5.6.5): the step runs once per item, bounded by maxItems and concurrency.", + "type": "object", + "properties": { + "items": { + "description": "Exactly one reference to an array input or to an output of a step this step depends on.", + "type": "string", + "pattern": "^\\$\\{\\{ *(?:inputs\\.[a-zA-Z][a-zA-Z0-9_-]{0,62}|steps\\.[a-z][a-z0-9-]{0,62}\\.outputs\\.[^\\s.{}$]+) *\\}\\}$" + }, + "maxItems": { + "type": "integer", + "minimum": 1 + }, + "concurrency": { + "type": "integer", + "minimum": 1 + } + }, + "required": [ + "items", + "maxItems" + ], + "additionalProperties": false + } + } +} diff --git a/vendor/awp/spec/v1alpha4/examples/audit-events.yaml b/vendor/awp/spec/v1alpha4/examples/audit-events.yaml new file mode 100644 index 0000000..e7fe3dc --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/audit-events.yaml @@ -0,0 +1,120 @@ +# Example: an excerpt of the audit event stream of one execution of +# vulnerability-fixer@0.1.0 (YAML for readability; implementations typically emit JSON lines). +--- +id: 01JABC0000000000000000000A +type: workflow.started +time: "2026-10-05T13:42:11Z" +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +workflow: + name: vulnerability-fixer + version: 0.1.0 + digest: sha256:5c4b3a29180716f5e4d3c2b1a0f9e8d7c6b5a49382716f5e4d3c2b1a0f9e8d7c +actor: + type: human + id: user:alice@example.com +environment: development +data: + trigger: + type: manual + inputs: + repository: example-org/web-shop + cve: CVE-2026-12345 +--- +id: 01JABC0000000000000000000B +type: tool.requested +time: "2026-10-05T13:42:30Z" +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +stepId: investigate +actor: + type: agent + id: researcher +data: + action: github.search_code + server: github + arguments: + query: "lodash.template repo:example-org/web-shop" +--- +id: 01JABC0000000000000000000C +type: policy.evaluated +time: "2026-10-05T13:42:30Z" +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +stepId: investigate +actor: + type: runtime + id: example-runtime +data: + action: github.search_code + decision: allow + evaluated: + - source: permissions + result: allow + - source: policies.git + result: notApplicable +--- +id: 01JABC0000000000000000000D +type: tool.executed +time: "2026-10-05T13:42:31Z" +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +stepId: investigate +actor: + type: agent + id: researcher +data: + action: github.search_code + outcome: success + durationMs: 812 +--- +id: 01JABC0000000000000000000E +type: tool.denied +time: "2026-10-05T13:47:02Z" +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +stepId: fix +actor: + type: agent + id: fixer +data: + action: github.merge_pull_request + reason: policy + policy: policies.merge.allow +--- +id: 01JABC0000000000000000000F +type: tool.requested +time: "2026-10-05T13:49:40Z" +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +stepId: fix +actor: + type: agent + id: fixer +data: + action: github.create_pull_request + server: github + decision: + action: create_pull_request + reason: + type: policy-compatible-action + summary: Fix applied and tests requested; pull request creation is allowed. + evidence: + - type: artifact + ref: report + - type: step + ref: investigate + policyChecks: + - permissions + - policies.pullRequest +--- +id: 01JABC0000000000000000000G +type: workflow.completed +time: "2026-10-05T13:55:12Z" +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +actor: + type: runtime + id: example-runtime +data: + status: succeeded + usage: + steps: 21 + costUsd: 0.84 + costKnown: true + tokens: 183220 + toolCalls: 37 + durationMs: 781000 diff --git a/vendor/awp/spec/v1alpha4/examples/conformance-statement.yaml b/vendor/awp/spec/v1alpha4/examples/conformance-statement.yaml new file mode 100644 index 0000000..c2a1fac --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/conformance-statement.yaml @@ -0,0 +1,21 @@ +# Example: conformance statement published by an implementation. +implementation: + name: example-runtime + version: 0.4.0 + url: https://runtime.example.org +conformance: + awp: v1alpha4 + profiles: + - core + - governance + - audit + limitations: + - "audit: integrity mode signed is not supported; hash-chain only" + limits: + outputSize: 1MiB + stepOutputSize: 4MiB + executionObjects: true + testedWith: + suite: awp-conformance + version: 0.1.0 + date: "2026-10-09" diff --git a/vendor/awp/spec/v1alpha4/examples/cve-risk-then-fix.yaml b/vendor/awp/spec/v1alpha4/examples/cve-risk-then-fix.yaml new file mode 100644 index 0000000..78a278e --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/cve-risk-then-fix.yaml @@ -0,0 +1,122 @@ +# Example: analyse the risk of a CVE for a repository, always write a report, and start the +# fix workflow `cve-fixer` only when the repository is affected (spec 3.12, 5.6.6). +# Profiles exercised: core, mcp. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: cve-risk-then-fix +spec: + version: 0.1.0 + description: Rate the risk of a CVE for a repository and start the fix workflow if it is affected. + owner: + team: security-team + contact: security-team@example.com + classification: internal + purpose: Fix known vulnerabilities only where they apply, with a report for every analysis. + risk: + level: medium + category: + - security + triggers: + - type: manual + inputs: + - name: repository + type: string + required: true + description: Repository in the form owner/name. + - name: cve + type: string + required: true + pattern: ^CVE-[0-9]{4}-[0-9]{4,}$ + budget: + maxCostUsd: 5 + maxSteps: 40 + maxDuration: 1h + resources: + maxTokens: 400000 + maxToolCalls: 60 + maxConcurrency: 2 + secrets: + - name: GITHUB_TOKEN + source: secret-manager + scope: + - github + mcpServers: + - name: github + transport: streamable-http + url: https://mcp.example.com/github + auth: + secretRef: GITHUB_TOKEN + actionGroups: + github.read: + - github.search_code + - github.get_file_contents + agents: + - id: analyst + model: + provider: anthropic + name: claude + instructions: | + Decide whether the repository uses the vulnerable dependency or code path. + Complete the step with affected set to true or false, and risk set to one of + low, medium, high or critical. + tools: + - type: mcp + server: github + tools: + - search_code + - get_file_contents + - id: writer + model: + provider: ollama + name: qwen3 + instructions: | + Write a short risk report in Markdown for the security team. + workflow: + - id: risk + agent: analyst + task: Rate the risk of ${{ inputs.cve }} for ${{ inputs.repository }}. + outputs: + - name: affected + description: true if the repository is affected, otherwise false. + - name: risk + description: low, medium, high or critical. + # Runs after every analysis, whether or not the fix workflow is started. + - id: report + agent: writer + dependsOn: + - risk + task: >- + Report on ${{ inputs.cve }} in ${{ inputs.repository }}: + affected ${{ steps.risk.outputs.affected }}, risk ${{ steps.risk.outputs.risk }}. + outputs: + - name: summary + classification: internal + # Skipped with reason `condition` when the repository is not affected; the execution still + # succeeds. The output text `true` is read as the boolean true (spec 3.12). + - id: fix + type: workflow + dependsOn: + - risk + when: steps.risk.outputs.affected == true + workflow: + ref: cve-fixer + version: ^0.5.0 + inputs: + repository: ${{ inputs.repository }} + cve: ${{ inputs.cve }} + wait: true + outputs: + - name: executionId + - name: status + permissions: + default: deny + tools: + github.read: + allow: true + workflow.start: + allow: true + network: + egress: deny + allowHosts: + - mcp.example.com diff --git a/vendor/awp/spec/v1alpha4/examples/eu-data-residency.policy.yaml b/vendor/awp/spec/v1alpha4/examples/eu-data-residency.policy.yaml new file mode 100644 index 0000000..3862361 --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/eu-data-residency.policy.yaml @@ -0,0 +1,22 @@ +# Example: a reusable policy that keeps personal data inside the EU. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: eu-data-residency +spec: + version: 1.0.0 + owner: + team: data-protection + contact: data-protection@example.com + rules: + - id: personal-data-stays-in-eu + when: + data.classification: + in: + - personal + - sensitive + destination.region: + notIn: + - EU + effect: deny + message: Personal and sensitive data must not leave the EU. diff --git a/vendor/awp/spec/v1alpha4/examples/execution-record.yaml b/vendor/awp/spec/v1alpha4/examples/execution-record.yaml new file mode 100644 index 0000000..2434857 --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/execution-record.yaml @@ -0,0 +1,53 @@ +# Example: reproducibility record for one execution of vulnerability-fixer@0.1.0. +executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D +startedAt: "2026-10-05T13:42:11Z" +finishedAt: "2026-10-05T13:55:12Z" +status: succeeded +environment: development +runtime: + name: example-runtime + version: 0.4.0 + conformance: + awp: v1alpha4 + profiles: + - core + - governance + - audit +workflow: + name: vulnerability-fixer + version: 0.1.0 + digest: sha256:5c4b3a29180716f5e4d3c2b1a0f9e8d7c6b5a49382716f5e4d3c2b1a0f9e8d7c +agents: + - id: researcher + model: + provider: anthropic + name: claude + version: claude-example-2026-06 + instructionsDigest: sha256:aa11bb22cc33dd44ee55ff6600112233445566778899aabbccddeeff00112233 + - id: fixer + model: + provider: ollama + name: qwen3 + version: "3.0" + instructionsDigest: sha256:bb22cc33dd44ee55ff6600112233445566778899aabbccddeeff0011223344aa +tools: + - server: github + version: 1.8.0 + url: https://mcp.example.com/github +images: + - ref: registry.example.com/build/node@sha256:3f1d5c0a9e2b7c4d6e8f0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f +policies: + - source: inline + digest: sha256:cc33dd44ee55ff6600112233445566778899aabbccddeeff00112233445566bb +inputs: + - name: repository + digest: sha256:dd44ee55ff6600112233445566778899aabbccddeeff00112233445566bbcc11 + - name: cve + digest: sha256:ee55ff6600112233445566778899aabbccddeeff00112233445566bbcc11dd22 +artifacts: + - name: report + stepId: investigate + digest: sha256:ff6600112233445566778899aabbccddeeff00112233445566bbcc11dd22ee33 + - name: pull-request + stepId: fix + uri: https://git.example.com/example-org/web-shop/pull/42 diff --git a/vendor/awp/spec/v1alpha4/examples/image-review.workflow.yaml b/vendor/awp/spec/v1alpha4/examples/image-review.workflow.yaml new file mode 100644 index 0000000..8d021ce --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/image-review.workflow.yaml @@ -0,0 +1,87 @@ +# Example: review every container image of a repository for known vulnerabilities, one item run +# per image (forEach, spec 5.6.5), then write one migration plan. +# Profiles exercised: core, mcp. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: image-review +spec: + version: 0.1.0 + description: Find the container images of a repository, scan each one and plan the upgrade. + owner: + team: platform-team + classification: internal + risk: + level: low + triggers: + - type: manual + inputs: + - name: repository + type: string + required: true + description: Repository in the form owner/name. + budget: + maxCostUsd: 3 + maxSteps: 40 + maxDuration: 1h + resources: + maxToolCalls: 60 + maxConcurrency: 2 + mcpServers: + - name: scanner + transport: streamable-http + url: https://mcp.example.com/scanner + agents: + - id: inventory + model: + provider: ollama + name: qwen3 + instructions: List every container image reference with its tag. + tools: + - type: mcp + server: scanner + tools: + - image_refs + - id: reviewer + model: + provider: ollama + name: qwen3 + instructions: Scan one image and summarize its critical and high findings. + tools: + - type: mcp + server: scanner + tools: + - scan_image + workflow: + - id: images + agent: inventory + task: List the container images of ${{ inputs.repository }} as a JSON list of strings. + outputs: + - name: refs + - id: scan + agent: reviewer + dependsOn: + - images + task: Scan image ${{ forEach.item }} (number ${{ forEach.index }} of the list). + forEach: + items: ${{ steps.images.outputs.refs }} + maxItems: 20 + concurrency: 2 + timeout: 10m + retries: 1 + outputs: + - name: findings + - id: plan + agent: reviewer + dependsOn: + - scan + task: "Write one upgrade plan from these findings, one entry per image: ${{ steps.scan.outputs.findings }}" + outputs: + - name: plan + permissions: + default: deny + tools: + scanner.image_refs: + allow: true + scanner.scan_image: + allow: true diff --git a/vendor/awp/spec/v1alpha4/examples/invoice-extractor.agent.yaml b/vendor/awp/spec/v1alpha4/examples/invoice-extractor.agent.yaml new file mode 100644 index 0000000..382d39c --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/invoice-extractor.agent.yaml @@ -0,0 +1,36 @@ +# Example: a reusable agent definition referenced by invoice-processing.workflow.yaml. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Agent +metadata: + name: invoice-extractor +spec: + version: 2.0.1 + description: Extracts structured data from invoice documents. + owner: + team: finance-ai + contact: finance-ai@example.com + classification: confidential + risk: + level: medium + category: + - financial + model: + provider: ollama + name: qwen3 + version: "3.0" + region: EU + approval: + status: approved + expires: 2027-03-31 + instructions: | + Extract supplier name, invoice number, dates, currency, totals and line items. + Return JSON only. Never guess missing values; mark them as null. + tools: [] + budget: + maxSteps: 10 + resources: + maxTokens: 30000 + permissions: + default: deny + network: + egress: deny diff --git a/vendor/awp/spec/v1alpha4/examples/invoice-processing.workflow.yaml b/vendor/awp/spec/v1alpha4/examples/invoice-processing.workflow.yaml new file mode 100644 index 0000000..890470c --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/invoice-processing.workflow.yaml @@ -0,0 +1,208 @@ +# Example: a governance-heavy workflow that processes supplier invoices. +# Profiles exercised: core, governance, audit, security, mcp. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: invoice-processing + labels: + department: finance +spec: + version: 1.2.0 + description: Extract invoice data, check it against purchase orders and prepare payments. + owner: + team: finance-ai + contact: finance-ai@example.com + businessOwner: accounts-payable@example.com + technicalOwner: platform-team@example.com + dataOwner: finance-data@example.com + classification: confidential + purpose: Prepare supplier payments for human release. + risk: + level: high + category: + - financial + integrity: + digest: sha256:9b2f6c1e4d8a0b7c3e5f1a2d4c6b8e0f1a3c5e7b9d0f2a4c6e8b0d1f3a5c7e9b + signature: + format: sigstore-bundle + ref: https://registry.example.com/awp/invoice-processing/1.2.0.sigstore.json + identity: release-pipeline@example.com + provenance: + format: slsa-provenance-v1 + ref: https://registry.example.com/awp/invoice-processing/1.2.0.intoto.jsonl + triggers: + - type: event + source: mailbox.invoices + eventType: message.received + inputs: + - name: invoice + type: artifact + required: true + classification: personal + environment: + name: production + environments: + development: + autonomy: unrestricted + staging: + autonomy: controlled + production: + autonomy: approval-required + autoApprove: + - erp.read + budget: + maxCostUsd: 5 + maxSteps: 50 + maxDuration: 30m + resources: + maxTokens: 100000 + maxToolCalls: 100 + maxRetries: 3 + maxConcurrency: 2 + secrets: + - name: ERP_API_TOKEN + source: secret-manager + scope: + - erp + mcpServers: + - name: erp + transport: stdio + image: registry.example.com/mcp/erp@sha256:0c1d2e3f405162738495a6b7c8d9e0f1a2b3c4d5e6f708192a3b4c5d6e7f8091 + version: 2.4.1 + auth: + secretRef: ERP_API_TOKEN + actionGroups: + erp.read: + - erp.get_purchase_order + - erp.get_supplier + erp.write: + - erp.create_payment_draft + agents: + - id: extractor + ref: + name: invoice-extractor + version: 2.0.1 + digest: sha256:4e5f6a7b8c9d0e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091 + - id: checker + model: + provider: azure-openai + name: gpt-5 + version: 2026-08 + region: EU + approval: + status: approved + expires: 2027-01-01 + riskClassification: medium + evaluation: + status: passed + ref: https://evals.example.com/reports/gpt-5-invoice-check + allowedUseCases: + - document-extraction + - reconciliation + promptRef: + name: invoice-check + version: 3.1.0 + digest: sha256:7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b + tools: + - type: mcp + server: erp + workflow: + - id: extract + agent: extractor + task: Extract supplier, amounts and line items from ${{ inputs.invoice }}. + outputs: + - name: invoiceData + classification: personal + - id: reconcile + agent: checker + task: Check ${{ steps.extract.outputs.invoiceData }} against the purchase order. + dependsOn: + - extract + outputs: + - name: paymentDraft + classification: confidential + - id: release + type: approval + approval: + approvers: + - role: accounts-payable-approver + minApprovals: 2 + timeout: 24h + dependsOn: + - reconcile + dataPolicy: + classification: confidential + inputs: + - name: invoice + classification: personal + outputs: + - name: paymentDraft + classification: confidential + restrictions: + externalTransfer: deny + residency: + allowed: + - EU + processing: + allowedProviders: + - ollama + - azure-openai + forbiddenProviders: + - public-cloud-us + modelPolicy: + allowedProviders: + - azure-openai + - ollama + allowedModels: + - gpt-5 + - qwen3 + forbiddenModels: + - unapproved-model + requirements: + approvalStatus: approved + encryption: true + region: EU + permissions: + default: deny + tools: + erp.read: + allow: true + erp.write: + allow: true + shell.execute: + allow: false + network: + egress: deny + filesystem: + read: + - /workspace + write: + - /workspace/out + secrets: + - ERP_API_TOKEN + approval: + requiredFor: + - erp.create_payment_draft + - external.communication + approvers: + - role: finance-reviewer + timeout: 24h + onTimeout: reject + separationOfDuties: + enabled: true + rules: + - actorCannotApproveOwnAction: true + - initiatorCannotApprove: true + policies: + include: + - name: eu-data-residency + version: 1.0.0 + - name: no-production-autonomy + version: 1.0.0 + audit: + enabled: true + payload: metadata + integrity: + mode: hash-chain + retention: + duration: 7y diff --git a/vendor/awp/spec/v1alpha4/examples/no-production-autonomy.policy.yaml b/vendor/awp/spec/v1alpha4/examples/no-production-autonomy.policy.yaml new file mode 100644 index 0000000..eec6d4e --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/no-production-autonomy.policy.yaml @@ -0,0 +1,31 @@ +# Example: a reusable policy that requires a release manager for production deployments. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Policy +metadata: + name: no-production-autonomy +spec: + version: 1.0.0 + owner: + team: platform-governance + contact: governance@example.com + rules: + - id: deploy-needs-release-manager + when: + action: + equals: production.deploy + effect: requireApproval + approval: + approvers: + - role: release-manager + - id: no-merge-in-production + when: + action: + equals: git.merge + environment.name: + equals: production + effect: requireApproval + approval: + approvers: + - role: release-manager + - role: security-reviewer + minApprovals: 2 diff --git a/vendor/awp/spec/v1alpha4/examples/security-review.a2a.workflow.yaml b/vendor/awp/spec/v1alpha4/examples/security-review.a2a.workflow.yaml new file mode 100644 index 0000000..e8cc22b --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/security-review.a2a.workflow.yaml @@ -0,0 +1,60 @@ +# Example: delegating a review to a remote agent over A2A. +# Profiles exercised: core, governance, audit, a2a. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: security-review +spec: + version: 0.3.0 + owner: + team: appsec + contact: appsec@example.com + classification: internal + risk: + level: low + triggers: + - type: event + source: git.example.com + eventType: pull_request.opened + inputs: + - name: pullRequestUrl + type: string + required: true + budget: + maxCostUsd: 1 + maxSteps: 20 + maxDuration: 10m + secrets: + - name: REVIEW_AGENT_TOKEN + source: secret-manager + scope: + - security-agent + agents: + - id: security-agent + protocol: a2a + endpoint: https://agents.example.com/a2a/security-review + agentCard: + url: https://agents.example.com/.well-known/agent-card.json + digest: sha256:1f2e3d4c5b6a79880716253443526170f1e2d3c4b5a6978877665544332211ff + auth: + secretRef: REVIEW_AGENT_TOKEN + workflow: + - id: review + agent: security-agent + task: Review ${{ inputs.pullRequestUrl }} for security issues and report findings. + outputs: + - name: findings + classification: internal + permissions: + default: deny + tools: + a2a.security-agent.send: + allow: true + dataPolicy: + restrictions: + externalTransfer: allow + processing: + allowedProviders: + - agents.example.com + audit: + enabled: true diff --git a/vendor/awp/spec/v1alpha4/examples/vulnerability-fixer.run.yaml b/vendor/awp/spec/v1alpha4/examples/vulnerability-fixer.run.yaml new file mode 100644 index 0000000..6ec4fb0 --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/vulnerability-fixer.run.yaml @@ -0,0 +1,68 @@ +# Example: a WorkflowRun of vulnerability-fixer@0.1.0 (spec section 10.8), with the status a +# runtime writes while the step fix is running. Validators ignore status. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: WorkflowRun +metadata: + name: vulnerability-fixer-7k2xq + generateName: vulnerability-fixer- + namespace: security + generation: 1 +spec: + workflowRef: + name: vulnerability-fixer + version: 0.1.0 + inputs: + repository: example-org/web-shop + cve: CVE-2026-12345 + environment: development +status: + observedGeneration: 1 + executionId: awp-exec-01JABC7Q4M2W9X0Y1Z2A3B4C5D + phase: running + actor: + type: human + id: alice@example.com + trigger: + type: manual + index: 0 + environment: development + workflow: + name: vulnerability-fixer + version: 0.1.0 + digest: sha256:5c4b3a29180716f5e4d3c2b1a0f9e8d7c6b5a49382716f5e4d3c2b1a0f9e8d7c + startedAt: "2026-10-05T13:42:11Z" + steps: + - id: investigate + status: succeeded + attempts: 1 + startedAt: "2026-10-05T13:42:12Z" + finishedAt: "2026-10-05T13:47:40Z" + outputs: + - name: report + digest: sha256:9f8e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a0 + size: 4182 + classification: internal + - id: fix + status: running + attempts: 1 + startedAt: "2026-10-05T13:47:41Z" + - id: test + status: pending + usage: + steps: 1 + costUsd: 0.42 + costKnown: true + tokens: 94550 + toolCalls: 18 + durationMs: 329000 + conditions: + - type: Accepted + status: "True" + reason: Validated + message: "" + lastTransitionTime: "2026-10-05T13:42:11Z" + - type: Succeeded + status: Unknown + reason: Running + message: "" + lastTransitionTime: "2026-10-05T13:42:11Z" diff --git a/vendor/awp/spec/v1alpha4/examples/vulnerability-fixer.workflow.yaml b/vendor/awp/spec/v1alpha4/examples/vulnerability-fixer.workflow.yaml new file mode 100644 index 0000000..250c74a --- /dev/null +++ b/vendor/awp/spec/v1alpha4/examples/vulnerability-fixer.workflow.yaml @@ -0,0 +1,136 @@ +# Example: an agentic workflow that investigates and fixes a CVE in a repository. +# Profiles exercised: core, governance, audit, mcp. +apiVersion: awp.agenticworkflowprotocol.org/v1alpha4 +kind: Workflow +metadata: + name: vulnerability-fixer +spec: + version: 0.1.0 + description: Investigate a CVE in a repository, prepare a fix and open a pull request. + owner: + team: security-team + contact: security-team@example.com + classification: internal + purpose: Reduce time to remediate known vulnerabilities in internal repositories. + risk: + level: medium + category: + - security + triggers: + - type: manual + inputs: + - name: repository + type: string + required: true + description: Repository in the form owner/name. + - name: cve + type: string + required: true + pattern: ^CVE-[0-9]{4}-[0-9]{4,}$ + budget: + maxCostUsd: 2 + maxSteps: 30 + maxDuration: 15m + resources: + maxTokens: 400000 + maxToolCalls: 60 + maxRetries: 2 + maxConcurrency: 1 + secrets: + - name: GITHUB_TOKEN + source: secret-manager + scope: + - github + mcpServers: + - name: github + transport: streamable-http + url: https://mcp.example.com/github + auth: + secretRef: GITHUB_TOKEN + actionGroups: + github.read: + - github.search_code + - github.get_file_contents + github.write: + - github.create_branch + - github.push_files + - github.create_pull_request + - github.merge_pull_request + git.push: + - github.push_files + pullRequest.create: + - github.create_pull_request + git.merge: + - github.merge_pull_request + agents: + - id: researcher + model: + provider: anthropic + name: claude + instructions: | + Find where the vulnerable dependency or code path is used and summarize + the affected files and the recommended fix. + tools: + - type: mcp + server: github + tools: + - search_code + - get_file_contents + - id: fixer + model: + provider: ollama + name: qwen3 + instructions: | + Apply the recommended fix with the smallest possible change. + tools: + - type: mcp + server: github + workflow: + - id: investigate + agent: researcher + task: Investigate ${{ inputs.cve }} in ${{ inputs.repository }}. + outputs: + - name: report + classification: internal + - id: fix + agent: fixer + task: "Fix the issue described in the report: ${{ steps.investigate.outputs.report }}" + dependsOn: + - investigate + - id: test + type: command + command: npm test + image: registry.example.com/build/node@sha256:3f1d5c0a9e2b7c4d6e8f0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f + timeout: 10m + dependsOn: + - fix + permissions: + default: deny + tools: + github.read: + allow: true + github.write: + allow: true + resources: + - ${{ inputs.repository }} + shell.execute: + allow: true + production.deploy: + allow: false + network: + egress: deny + allowHosts: + - mcp.example.com + - registry.npmjs.org + policies: + git: + allowPush: true + allowForcePush: false + pullRequest: + allowCreate: true + merge: + allow: false + production: + allow: false + audit: + enabled: true