Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV

### Changed

- Runtime feedback: section 10 with G62 to G87 from interactive sessions and a coding agent engine, a proposal which platform objects become AWP kinds (extends K), and evidence for G50 and G60.
- AEP-0023 (Draft): credentials of tool servers outside steps (G69), approval authority outside the execution environment (G64), a minimum isolation class on agents (G67), and one rule for platform ceilings: anything above a ceiling is rejected, nothing is adjusted (G68); `allowHosts` replaced by structured `allowTo` (`host` or `cidr`, `except`, `ports`, aligned with network policies); IPv4-embedding IPv6 addresses normalised and NAT64 and 6to4 denied as internal destinations. Answers its open question 2.
- New AEP drafts: AEP-0026 interactive execution (kind `AgentSession`, autonomy levels with an author ceiling, `confirm` per action, G62, G63, G73, G82) and AEP-0027 agent engine (`agents[].engine`, workspace configuration off by default, G65, G66, G81, G83). Numbers to be confirmed.
- Amendments from runtime feedback G70 to G78 and G84 to existing AEPs: AEP-0007 server prompts as allow list with default none (answers its open question 3), no resource without a catalog entry, server requests (sampling, roots, elicitation), resolution order, explicit tools for unattended executions; AEP-0002 resource scope of `shell.execute`; AEP-0005 prompts as tasks of interactive executions; AEP-0009 origin of events, tool arguments and session history as content; AEP-0013 budgets during streaming; AEP-0017 agent requests in sessions; AEP-0021 B6 bindings for `Agent`.
- AEP-0024 and AEP-0025 (Draft): evidence from interactive sessions (runtime events, event-started sessions, workspaces across pause and resume, shared workspaces).
- AEP-0021 B4: `triggers[].source` is no domain-prefixed value space; it is the CloudEvents `source` of the event producer (runtime feedback G54).
- Spec `v1alpha3` section 12: content kept between executions (state) is untrusted input like tool results (runtime feedback G58).
- README: the minimal manifest is now valid under all profiles (classification, declared MCP server, explicit tools and permissions).
- Conformance case `3.2-unsupported-api-version` uses `awp.agenticworkflowprotocol.org/v9`, because `v1alpha3` is now a supported version of the reference checker.
- The repository is implementation-neutral (decision D17): implementation-specific alignment documents, mappings and the single implementation page were removed, the AEPs describe prior art without naming products, the extension prefix list starts empty, and the project contact is info@agenticworkflowprotocol.org. Repository links point to `agenticworkflowprotocol/agenticworkflowprotocol.org`.
Expand All @@ -30,6 +37,9 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV

### Added

- Decision D21 (refines D17): open specifications and vendor-neutral foundation projects may be named as prior art, not as dependencies. Spec `v1alpha3` section 1.2 and the README name the Open Workflow Specification and agent-sandbox as related work; AEP-0022 names the `for` task of the Open Workflow Specification as prior art.
- AEP-0023 (step isolation: network permissions, platform ceilings and model credentials), AEP-0024 (event triggers with CloudEvents) and AEP-0025 (state across executions) as Draft for `v1alpha3`, from runtime feedback G03, G10, G42 to G47, G49 to G51, G53, G54, G56, G58 and G61.
- `docs/runtime-feedback.md`: gaps G41 to G61 (event triggers, the concept review, models), with the AEP each belongs to and the evidence from the runtime.
- Decision D20: the Kubernetes resource model draft of pull request #16 becomes `v1alpha3` and starts from `v1alpha2`; the 5-day discussion period is waived for it. `v1alpha3` has step iteration as section 5.6.5, combined with the step output interface: each item run produces its outputs through `$AWP_OUTPUTS` or `complete_step`, command steps get `AWP_FOREACH_INDEX`, an output referenced by `forEach.items` is parsed as a JSON array, and `forEach` is not allowed on input steps (section 14.2 lists the changes from `v1alpha2`).
- Conformance suite for `v1alpha2` (`conformance/v1alpha2/`): the `v1alpha1` cases with apiVersion `v1alpha2` plus the step iteration cases; the `v1alpha3` suite has the step iteration cases too. `awp-check.mjs migrate` also converts `v1alpha2` manifests.
- Website: `v1alpha3` as a proposed draft next to `v1alpha1` and `v1alpha2`.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ AWP complements existing protocols instead of replacing them:
| A2A | Agent ↔ agent communication |
| AWP | Definition, governance, execution and audit of agentic workflows |

AWP also takes ideas from the [Open Workflow Specification](https://github.com/open-workflow-specification/specification)
(control flow of workflows) and [agent-sandbox](https://agent-sandbox.sigs.k8s.io/) (isolated
execution of agent code on Kubernetes), without depending on them.

A minimal manifest:

```yaml
Expand Down
26 changes: 26 additions & 0 deletions aep/0002-tool-argument-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,26 @@ denied actions do not count. When the limit is reached, further matching actions
with `reason: budget`. `maxCalls` is
independent of `budget.resources.maxToolCalls`; both apply.

### New section 7.5.7: Resource scope of `shell.execute` (runtime feedback G74)

A command line is not one target: it can chain commands (`;`, `&&`, `||`, `|`), substitute
commands (`$(...)`, backquotes), nest them in subshells or compound commands, and set variables
before a command. For `shell.execute` the resource of a call is defined as follows:

1. The resources of a command line are its **simple commands**: the words of each command, without
quotes, joined by one space, with redirections removed.
2. `resources` entries are glob patterns: `*` matches any sequence, `?` one character, and a
trailing ` *` also matches the command without arguments.
3. The call is allowed only if **every** simple command of the line matches an entry.
4. A runtime MUST deny a line it cannot split into simple commands: command or process
substitution, subshells, compound commands (`if`, `for`, functions), leading variable
assignments, and expansions in the command name.
5. `resources` on a group or wildcard key applies to every action the key matches. A runtime that
cannot apply it to an action of the group MUST deny that action.
6. Informative: an allow list restricts which programs start, not what an allowed program does
(`make`, `npm test`, a test runner execute code from the repository). The isolation class and
the network rules of AEP-0023 are the boundary for that.

### Changes to section 5.5.3 (wildcards): decision (confirmed by owner decision D4)

The existing rule stays: a wildcard is only a final segment `*` (`github.*`). **Prefix wildcards
Expand Down Expand Up @@ -198,6 +218,12 @@ enforce their own compliance requirements. This proposal makes no compliance pro
At least one runtime in progress enforces argument constraints, an `allowAdditionalArgs` flag and
per-tool call limits in its own format. No implementation of this AEP exists.

A proof-of-concept Kubernetes runtime implements section 7.5.7 for interactive sessions, decided by
a component outside the sandbox. Shown on a test installation with `resources: ["git *", "ls *",
"echo *"]`: `echo` and `git --version` ran; `curl ...`, `echo a; id` and `echo $(id)` were refused
with a reason the model sees. It accepts `resources` only on the exact key `shell.execute` and
rejects expressions in them.

## Open questions

1. Should `deny` patterns stay, or move to `Policy` conditions only?
Expand Down
26 changes: 26 additions & 0 deletions aep/0005-prompt-kind.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,27 @@ Rendering rules:
supplies the variables. `promptRef.version` stays an exact version; `digest` is verified like
`ref.digest` (spec 5.4.2, 9.1).

### Prompts as tasks of interactive executions (runtime feedback G75)

A `Prompt` with `role: user` MAY also serve as a reusable task of an interactive execution
(AEP-0026), for example a security review or a test-writing request that people start from a
library instead of typing it. Additional optional `spec` fields:

| `spec` field | Type | Req. | Description |
| ------------ | ---- | ---- | ----------- |
| `title` | string | no | Short name shown to people. |
| `agents` | list | no | Names of `Agent` manifests the prompt fits. Absent: any agent. |
| `suggestedAutonomy` | string | no | `readOnly`, `ask` or `auto` (AEP-0026), shown as a suggestion. |

Rules:

- Such a prompt is plain user input: it runs with the permissions, budget and autonomy level of the
execution, can never extend them, and a suggested level above the agent's `maxAutonomy` or the
ceiling is rejected like any level the person selects (AEP-0026); the session keeps its level.
- Variables are filled by the person; for a free-text argument a prompt declares one `string`
variable (runtimes MAY map it to the argument convention of their engine).
- A server prompt of an MCP server (AEP-0007 rule 9) is not a `Prompt` manifest.

### Reproducibility record (section 10.7)

`agents[].prompt`: `name`, `version`, `digest` of the resolved `Prompt` manifest.
Expand Down Expand Up @@ -167,6 +188,11 @@ enforce their own compliance requirements. This proposal makes no compliance pro

No implementation of this AEP exists.

A proof-of-concept Kubernetes runtime has a namespaced prompt library object with title, prompt
text with one argument placeholder, the session templates it fits and a suggested mode; tenant
entries override platform entries of the same name, and sessions get them as commands of the
coding agent. It has no versions, digests or typed variables yet.

## Open questions

1. Should a `Prompt` support several messages (system plus few-shot examples)?
Expand Down
52 changes: 47 additions & 5 deletions aep/0007-mcp-connection-catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ A catalog has these fields:
| `matchServerInfo` | boolean | no | When `true`, a server whose `serverInfo` differs MUST NOT be used. Default `false`. |
| `protocolVersion` | string | no | MCP protocol revision the catalog was reviewed against (for example `2026-07-28`). |
| `tools` | map | yes | MCP tool `name` -> tool entry (below). |
| `resources` | list | no | Resource entries (below). |
| `resources` | list | no | Resource entries (below). Absent: no resource of the server is readable. |
| `prompts` | map | no | MCP prompt `name` -> prompt entry (below). Absent: no prompt of the server is offered. |
| `profiles` | map | no | Profile name (`^[a-z][a-z0-9-]{0,62}$`) -> list of tool names of this catalog. |

Tool entry:
Expand All @@ -140,6 +141,10 @@ Resource entry: exactly one of `uri` or `uriTemplate` (RFC 6570, as in MCP resou
plus `classification` (highest data class the content may have; the operation's data class is
raised to it when the resource is read) and an optional `name`.

Prompt entry: `definitionDigest` (as for tools, over `name`, `title`, `description` and
`arguments` of the `prompts/list` entry; REQUIRED under `security`) and an optional
`classification` (highest data class of the arguments).

Rules:

1. Every profile member MUST be a tool of the catalog. A profile named `read` MUST contain only
Expand Down Expand Up @@ -167,12 +172,35 @@ Rules:
`reason: dataPolicy`) when the data classification of the operation ranks higher than the tool's
`classification`.
7. Reading a resource (`resources/read`) is the action `<server>.resources.read` with the resource
URI as its resource scope (spec 7.5.2); its access class is always `read`. When a catalog lists
`resources`, a URI that matches no entry MUST be denied. A catalog tool named `resources.read`
is rejected (`catalog.reserved-name`).
URI as its resource scope (spec 7.5.2); its access class is always `read`. A URI that matches no
entry of `resources` MUST be denied; without `resources`, every read is denied. The runtime
MUST filter `resources/list` and `resources/templates/list` to catalogued entries and MUST deny
`resources/subscribe` and completions for anything else. A catalog tool named `resources.read`
or `prompts.get` is rejected (`catalog.reserved-name`): both are action identifiers of
protocol operations (rules 7 and 9), and a tool with the same name would share their grants.
8. A catalog is identified by its digest (AEP-0010 over the inline catalog object or the
`McpCatalog` manifest). The reproducibility record (spec 10.7) lists, per MCP server, the catalog
digest and the digests of the tool definitions that were exposed.
9. **Prompts.** Getting a server prompt (`prompts/get`) is the action `<server>.prompts.get` with
the prompt name as its resource scope. The runtime MUST filter `prompts/list` to catalogued
prompts and deny `prompts/get` for anything else. The content of a prompt is untrusted input
Comment thread
slauger marked this conversation as resolved.
Resolved
(spec 12): it is shown to the model or the person as user input, never as instructions with
more authority, and grants nothing. A server prompt and a `Prompt` manifest (AEP-0005) are
different things: the manifest is reviewed content of the workflow's owner, a server prompt is
content of the server's operator.
10. **Requests of the server.** The runtime MUST decline every sampling request (the server asks
the client to call a model) and every roots request (the server asks for paths of the client)
of a server; this version defines no way to allow them (open question 5). Elicitation follows
spec 5.8.2 (declined without `humanInput`). A runtime SHOULD answer these requests itself
rather than pass them to an engine inside the execution environment, which might answer them.
11. **Resolution.** When the runtime resolves a server from its own configuration (spec 5.5.1),
the order is: the manifest's declaration, then the runtime binding, then the runtime's catalog.
A declaration and the resolved server MUST NOT contradict each other (transport, URL, catalog
digest); a runtime MUST reject the manifest instead of substituting a different server. A
platform ceiling (AEP-0023 section 7.5.10) MAY restrict which servers are usable.
12. **Unattended executions.** For executions without a person, a tool source SHOULD list its tools
explicitly; under `security`, `<server>.*` grants only tools that are catalogued, so a tool the
server adds later is not exposed (rule 3).

### Changes to section 5.6.1

Expand Down Expand Up @@ -321,15 +349,29 @@ Runtimes in progress keep connection-level tool access classes (read or write) i
catalog and derive per-call approval and network placement from them; a manifest that is moved to
another runtime loses this information. No implementation of this AEP exists.

A proof-of-concept Kubernetes runtime has a cluster-wide catalog object per MCP server with allow
lists for tools, prompts and resource URIs (prompts and resources default to none), resolved by
name in the order declaration, binding, catalog, and limited by a tenant ceiling. An MCP gateway
outside the execution environment filters the list operations, refuses everything else, answers
sampling, roots and elicitation requests itself, adds the server's credential and audits every
call with arguments and result. Shown on a test installation with a static analysis server: two
of its tools are not in the catalog and are neither listed nor callable; one prompt and the rule
resources are allowed (runtime feedback G69 to G72). No definition digests yet.

## Open questions

1. Should built-in tools (`shell`) get catalog entries too?
2. Should `profiles` be renamed (for example `toolSets`) to avoid confusion with conformance
profiles? MCP has no term for tool sets.
3. MCP prompts: should a catalog list server prompts, and how do they relate to the `Prompt` kind
(AEP-0005)?
(AEP-0005)? Proposed answer (runtime feedback G72): yes, as allow list with default none (rule
9); a server prompt is untrusted content of the server's operator and is not a `Prompt`
manifest.
4. Should the definition digest include `icons` (display only) or members added by later MCP
revisions?
5. Sampling and roots: is there a use case that needs them? If so, an opt-in per server (for
example `sampling` with a model and a budget, counted as a model call under the model policy,
and `roots` with workspace paths). Until then, rule 10 declines both.

## Decision

Expand Down
30 changes: 30 additions & 0 deletions aep/0009-audit-payload-levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,29 @@ Rules:
4. Runtimes MAY enforce a lower maximum `contentRetention` or level by configuration and MUST then
reject manifests that request more.

### Origin of events (runtime feedback G76)

An agent's actions can be recorded in the execution environment (an engine or step runner, which
the agent can influence), in a user interface (which sees only what the engine reports) or in a
component outside the execution environment that holds the credentials (a model or tool gateway).

5. Every event carries `origin`: `runtime` (produced outside the execution environment) or
`executionEnvironment` (produced inside it, for example by an engine). Under the `security`
profile, events about model calls, tool calls and approvals or confirmations MUST have origin
`runtime`. Events from inside MAY be recorded in addition and joined by identifiers (tool call
id); a runtime SHOULD flag disagreements between both.
6. A tool result reaches a gateway only as the agent reports it when the tool runs inside the
execution environment (a shell command). A runtime MUST document which events it cannot verify.

### Content sent to tool sources and session history (runtime feedback G77, G85)

7. Tool arguments can carry large amounts of workflow data (a scanner receives source code). At
`content`, they are content under rule 1 with `contentRetention`; at `metadata`, the event
records size and digest of the arguments, so that it stays verifiable what was sent where.
8. The history of an interactive execution (AEP-0026: prompts, answers, confirmations, model
output) is content. It follows `contentRetention` of the agent; read access to it is limited to
identities that could control the session and to auditors the runtime documents.

## Examples

```yaml
Expand Down Expand Up @@ -143,6 +166,13 @@ enforce their own compliance requirements. This proposal makes no compliance pro

No implementation of this AEP exists.

A proof-of-concept Kubernetes runtime records conversations at its model gateway, append-only with
a hash chain per conversation, tool calls at its MCP gateway with arguments and result, and the
egress of the tenant proxy; events of the coding agent inside the sandbox are joined by tool call
id. Secret values are replaced by placeholders before the model and the audit log (the `redacted`
idea, shown on a test installation). It has no separate content storage, no salted digests and no
`contentRetention` yet.

## Open questions

1. Should `redacted` be defined more precisely (which values count as non-sensitive)?
Expand Down
Loading