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

Filter by extension

Filter by extension

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

### Changed

- Amendments from interactive sessions: AEP-0007 server prompts and resources as allow lists with default none (answers its open question 3), `prompts.get` reserved, sampling and roots declined; AEP-0002 resource scope of `shell.execute` and mapping of commands to well-known actions through `actionGroups`; AEP-0005 prompts as session tasks; AEP-0009 `origin` of audit events; AEP-0013 budgets during streaming (runtime feedback G71, G72, G74 to G76, G78).
- AEP-0021 B4: `triggers[].source` is no domain-prefixed value space; it is the CloudEvents `source` of the event producer (runtime feedback G54). B6: bindings may also target an `Agent`.
- 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).
Expand All @@ -32,6 +33,7 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV

### Added

- AEP-0026 (interactive execution: kind `AgentSession`, `sessions` opt-in with `maxAutonomy`, three autonomy levels) and AEP-0027 (agent engine: `agents[].engine`, repository configuration off by default) as Draft concepts with open questions; numbers to be confirmed. From runtime feedback G62, G63, G65, G73, G81, G82.
- AEP-0023 (step isolation) as Draft for `v1alpha3`: structured network destinations (`allowTo` with `host` or `cidr` and `ports`, replacing `allowHosts`), enforce or reject, internal destinations only through a `cidr` entry under `security`, platform ceilings that reject and never adjust (with a change to spec 5.7), credentials and approvals outside the execution environment, a minimum isolation class; hardening as informative implementer guidance. From runtime feedback G10, G47, G49 to G51, G61, G64, G67 to G69.
- `docs/runtime-feedback.md`: gaps G41 to G87 (event triggers, the concept review, models, interactive sessions and a coding agent engine), with the AEP each belongs to, the evidence from the runtime, and a rule for what goes into AWP (section 10).
- AEP-0024 (event triggers with CloudEvents) and AEP-0025 (state across executions) as Draft for `v1alpha3`, from runtime feedback G03, G42 to G46, G53, G54, G56 and G58.
Expand Down
41 changes: 41 additions & 0 deletions aep/0002-tool-argument-constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,41 @@ 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. **Mapping commands to well-known actions.** An entry of `actionGroups` (spec 5.5.4) MAY be an
object `{action, resources}` instead of an action identifier. The group then contains the action
only for calls whose resource matches one of the patterns, and the runtime checks every simple
command of a line against such entries too, so rules on the well-known action apply:

```yaml
actionGroups:
git.push:
- action: shell.execute
resources: ["git push*"]
```

Without such a mapping, `git push` in a shell is only `shell.execute`, and rules on `git.push`
do not apply to it. Aliases and scripts (`make release`) are not recognised; network rules are
the boundary for them.
7. 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 +233,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
14 changes: 14 additions & 0 deletions aep/0005-prompt-kind.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ 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 be offered as a reusable task of an interactive execution
(AEP-0026), for example a security review that people start from a library instead of typing it.
Such a prompt is plain user input: it runs with the permissions, budget and autonomy level of the
session and can never extend them. A server prompt of an MCP server (AEP-0007 rule 9) is not a
`Prompt` manifest. Open: fields for a library (title, which agents a prompt fits, a suggested
autonomy level).

### Reproducibility record (section 10.7)

`agents[].prompt`: `name`, `version`, `digest` of the resolved `Prompt` manifest.
Expand Down Expand Up @@ -167,6 +176,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
49 changes: 44 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,30 @@ 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
(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. **Unattended executions.** For executions without a person, a tool source SHOULD list its tools
explicitly; `<server>.*` grants only catalogued tools, so a tool the server adds later is not
exposed (rule 3).

### Changes to section 5.6.1

Expand Down Expand Up @@ -321,15 +344,31 @@ 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.
6. Resolution of servers from runtime configuration (G70): order declaration, binding, catalog, and
no substitution of a server that contradicts the declaration?

## Decision

Expand Down
23 changes: 23 additions & 0 deletions aep/0009-audit-payload-levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ 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 what leaves the execution environment (model calls, calls to tool
servers, approvals and confirmations) MUST have origin `runtime`. The outcome of an action that
runs inside (a shell command) can only be reported from inside and keeps origin
`executionEnvironment`; a runtime documents which events it cannot verify.

Open: whether tool arguments sent to tool sources (G77) and the history of interactive executions
(G85) need their own rules beyond `contentRetention`.

## Examples

```yaml
Expand Down Expand Up @@ -143,6 +159,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
11 changes: 11 additions & 0 deletions aep/0013-runtime-clarifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Add after "The runtime MUST check limits before each model invocation and each a
provider nor from a configured price, the runtime MUST NOT start the invocation (fail closed)
and MUST fail the execution with `reason: budgetExceeded`, `limit: maxCostUsd` and
`costKnown: false`. Counting unknown cost as zero is not allowed.
- **Streaming (runtime feedback G78).** When a provider reports usage only at the end of a
streamed invocation, the runtime MAY estimate usage while the stream runs and MAY end the stream
when the estimate reaches the remaining budget. It MUST then charge the best known usage (the
provider's figures if they arrive, otherwise the estimate) and MUST report that the figure is an
estimate. Budgets are hard limits that the last allowed invocation may exceed by what it consumed
before the runtime could stop it; the conformance statement says how usage is estimated.

### 2. Value rendering (section 3.9)

Expand Down Expand Up @@ -216,6 +222,11 @@ must equal the bound connection). It differs in item 2 (missing values render as
item 4 (own event format, no `workflow.*` events), and counts unknown cost as zero. No
implementation of this AEP exists.

For streamed invocations, a proof-of-concept runtime estimates output tokens from the streamed text
(about four bytes per token) at its model gateway, ends the stream with an error event when the
estimate reaches the budget, and charges what it knows; a session can end slightly above
`maxCostUsd`. The overshoot is not measured.

## Open questions

1. Item 1: should a runtime be allowed to reserve budget before an invocation instead of checking
Expand Down
Loading