diff --git a/CHANGELOG.md b/CHANGELOG.md index 6075e69..7a6889d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ API versions (`v1alpha1`, ...) are versioned separately, see [GOVERNANCE.md](GOV ### Added +- 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. - 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. diff --git a/aep/0023-step-isolation.md b/aep/0023-step-isolation.md new file mode 100644 index 0000000..14156d5 --- /dev/null +++ b/aep/0023-step-isolation.md @@ -0,0 +1,279 @@ +# AEP-0023: Step isolation: network and credentials + +| | | +| --- | --- | +| **AEP** | 0023 | +| **Title** | Step isolation: network destinations, platform ceilings, credentials and approvals outside the execution environment | +| **Authors** | @agenticworkflowprotocol | +| **Shepherd** | to be assigned (not an author, [aep-process 5.1](../docs/aep-process.md#51-review-before-acceptance)) | +| **Type** | Specification | +| **Status** | Draft | +| **Reviewer roles needed** | runtime implementer (Kubernetes operator), runtime implementer (non-Kubernetes), security reviewer, platform operator | +| **Reviewers** | none yet | +| **Target API version** | `v1alpha3` | +| **Profiles affected** | `core`, `security` | +| **Created** | 2026-11-22 | +| **Discussion** | issue to be opened | +| **Supersedes** | - | +| **Superseded-by** | - | + +## Summary + +`permissions.network` says what a workflow needs, but not how destinations are written, how the +rule relates to limits the platform sets, or what happens when a runtime cannot enforce it. Where +credentials and approvals live is not covered at all. This AEP states what a reviewer of the +manifest must be able to rely on, and nothing about how a runtime achieves it: + +- destinations are structured (`allowTo`: `host` or `cidr`, optional `ports`); +- a runtime enforces the network rules or rejects the manifest; +- internal destinations are denied under `security` unless the manifest allows them; +- anything above a platform ceiling is rejected, never adjusted; +- credentials and approvals stay outside the execution environment; +- an agent can require a minimum isolation class. + +How to enforce this safely (address checks, proxies, gateways) is informative guidance at the end. +It answers runtime feedback G10, G47, G49, G50, G51, G61, G64, G67, G68 and G69. + +## Motivation + +- **Two places restrict egress (G47).** A platform restricts network access (network policies, an + egress proxy, a firewall); the manifest says what the workflow needs. The specification does not + relate the two, so an author cannot tell whether a reviewed manifest will run. +- **Enforcement is not required (G10, G51).** A runtime that cannot restrict command steps by host + name can silently ignore the rule. +- **No syntax (G49).** Wildcards, ports, addresses and ranges are undefined; a port appended to an + IPv6 address is ambiguous. +- **Internal destinations (G50).** An allowed host can resolve to an internal address, for example + the metadata service of a cloud. A proof of concept had exactly this hole. +- **Credentials and approvals inside the step (G61, G64, G69).** A runtime may hand a model or tool + server credential to the step, where any command can read it. A proof of concept also showed + that a coding agent's own permission system can be answered from inside: a command read the + agent's local server password and confirmed its own requests. +- **Isolation is invisible (G67).** An agent that runs code from an untrusted repository needs more + than a container; the manifest cannot say so. +- **Ceilings (G68).** Whether a platform limit rejects a manifest or silently lowers a value is + undefined; silent changes make the run differ from what was reviewed. + +## Goals and non-goals + +- Goals: rules a reviewer can rely on; enforce or reject; no silent adjustment. +- Non-goals: any mechanism (proxy, mesh, gateway, sandbox technology); inbound traffic; secret + stores; what data a step may send to a tool server (G77). + +## Specification + +### Changes to section 7.5.1 (fields) + +| Field | Type | Description | +| ----- | ---- | ----------- | +| `network.egress` | string | `allow` or `deny`. Default `allow`; under the `security` profile, when a `permissions` object is present, the default is `deny`. | +| `network.allowTo` | list | Destinations reachable when `egress` is `deny` (section 7.5.8). Replaces `allowHosts`. | + +### New section 7.5.8 (network destinations) + +An entry of `allowTo` is an object with exactly one of `host` and `cidr`: + +| Field | Type | Description | +| ----- | ---- | ----------- | +| `host` | string | A host name (`api.example.com`) or a subdomain wildcard (`*.example.com`: at least one label before `example.com`). No port, no address. | +| `cidr` | string | An IPv4 or IPv6 range (`10.20.0.0/16`, `2001:db8::/32`); a single address has a full prefix (`/32`, `/128`). | +| `ports` | list | Optional. Entries with `port` (1 to 65535), optional `endPort` (a range) and `protocol` (`TCP` default, `UDP`). Absent: every port. | + +`host` entries match the requested name, `cidr` entries the address connected to. The fields follow +the egress rules of Kubernetes network policies, so that a `cidr` entry translates directly into an +`ipBlock`. Validators MUST reject string entries, a bare `*`, a `*` outside the first label, and an +entry with both or neither of `host` and `cidr`. + +### New section 7.5.9 (enforcement) + +- A runtime MUST enforce the network rules for every step type it runs, with a mechanism of its + choice. If it cannot enforce a rule for a step type, it MUST reject the manifest before any step + runs. It MUST NOT run a step with weaker restrictions. +- **Internal destinations (security profile).** Connections to loopback, private, link-local and + shared address space (RFC 1918, RFC 4193, RFC 6598, RFC 3927 and their IPv6 counterparts) are + denied unless a `cidr` entry of the manifest contains the address and the platform ceiling allows + it. A `host` entry never allows an internal address. The check applies to the address actually + connected to. +- The conformance statement says per step type how network rules are enforced. + +### New section 7.5.10 (platform ceilings) + +A platform MAY set ceilings (for example per tenant) on permissions, models, tool servers, network +destinations, autonomy (AEP-0026), isolation and budgets. A ceiling never changes a manifest: + +- If the manifest or a request asks for more than a ceiling allows, the runtime MUST reject it + before anything runs, with reason `ceilingExceeded` and the field. +- If a ceiling sets a budget limit, the manifest MUST declare that limit, at most the ceiling. +- A stronger isolation class than required is no deviation. + +Change to spec 5.7: replace "Runtimes MAY enforce stricter limits than the manifest declares (for +example tenant quotas)" with "A runtime that enforces a stricter limit than the manifest declares +MUST reject the manifest or execution (section 7.5.10)." + +### Credentials and approvals outside the execution environment (sections 5.5.1, 7.6, 7.9) + +Under the `security` profile: + +- Model credentials and tool server credentials (for example `auth` of an MCP server) MUST NOT be + visible to a step: not in its environment, files or arguments. `auth` of an MCP server MAY be + satisfied by the runtime instead of a manifest secret. +- Approvals (spec 7.6) and confirmations of single actions (AEP-0026) MUST be decided outside the + execution environment, from an authenticated identity, over a channel the execution environment + cannot reach. Nothing that carries or proves a decision may be readable or writable inside. +- What leaves the execution environment MUST be enforced outside it: model calls, tool server + calls, network connections, pushes, approvals and confirmations. For actions that stay inside + (local commands, file changes), the boundary is the isolation class and what the execution + environment can reach; a permission system inside the step (for example a coding agent's own) + MAY check in addition and is not enforcement. + +### Changes to section 5.4 (agents): isolation class + +| Field | Type | Description | +| ----- | ---- | ----------- | +| `isolation` | string | Minimum isolation of the agent's steps: `process`, `container`, `sandbox` (a kernel boundary in user space or an equivalent) or `vm` (a hardware-virtualised boundary). | + +A runtime MUST run the agent with at least this class or reject the manifest before any step runs. +Which mechanism provides a class is platform configuration and listed in the conformance statement. + +### Change to the profile table (spec 11) + +`security`: add network enforcement or rejection, internal destinations, credentials and approvals +outside the execution environment, isolation class enforced or rejected. + +## Examples + +```yaml +apiVersion: awp.agenticworkflowprotocol.org/v1alpha3 +kind: Workflow +metadata: + name: ticket-triage +spec: + version: 0.1.0 + owner: + team: support + classification: internal + permissions: + network: + egress: deny + allowTo: + - host: api.example.com + ports: + - port: 443 + - cidr: 10.20.0.0/16 # internal ticket system: needs a cidr entry + ports: + - port: 8443 + agents: + - id: triage + isolation: sandbox + model: + provider: example-provider + name: example-model + workflow: + - id: run + agent: triage + task: Triage new tickets. +``` + +The agent reaches `api.example.com` on port 443 and the ticket system if the platform ceiling allows +`10.20.0.0/16`. If `api.example.com` resolves to an internal address, the connection is denied. A +runtime that offers only containers rejects the agent. + +## Schema changes + +- `permissions.network.allowTo`: objects with `host` or `cidr` and `ports`; `allowHosts` removed + (`awp-check.mjs migrate` converts names and ranges). +- `agents[].isolation`: enum `process`, `container`, `sandbox`, `vm`. +- Semantic rules for invalid hosts, ranges and port ranges. + +## Conformance impact + +- `core`: `allowTo`, enforce or reject, ceilings reject. +- `security`: `egress: deny` default, internal destinations, credentials and approvals outside, + isolation class. +- Valid: `7.5.8-allow-to.yaml`. Invalid: string entry, bare wildcard, host with port, host and cidr. + +## Compatibility and migration + +- `allowHosts` becomes `allowTo` (incompatible, allowed in an alpha version); the migration tool + converts it. +- Under `security`, manifests with `permissions` but without `network` change from "egress allowed" + to "egress denied". +- Under a budget ceiling, a manifest without that limit or with a higher one is rejected. + +## Security considerations + +The AEP keeps reviewed network rules from being weakened silently, keeps internal networks closed +unless author and operator both open them, and keeps credentials and decisions out of reach of +prompt injection. It does not protect what lives inside the execution environment: a compromised +step can still damage its own workspace, which is why the isolation class exists. + +## Privacy considerations + +None beyond spec 7.2. Destinations in audit events may reveal which services a workflow uses. + +## Compliance note + +AWP provides machine-readable governance primitives that can help organizations implement and +enforce their own compliance requirements. This proposal makes no compliance promise. + +## Alternatives + +- **Leave network to the platform.** Rejected: the reviewed manifest would say nothing about what a + workflow reaches. +- **Adjust instead of reject at ceilings.** Rejected: the run would differ from the reviewed manifest. +- **Rely on the engine's own permission system.** Rejected: it runs inside and was bypassed in a + proof of concept. + +Prior art (decision D21): [agent-sandbox](https://agent-sandbox.sigs.k8s.io/) (Kubernetes SIG Apps) +runs isolated, stateful agent workloads with the isolation backend chosen by `RuntimeClass`; it is +one platform-side way to provide an isolation class. + +## Implementer guidance (informative) + +Hardening that a conforming runtime will need, without being part of the rules above: + +- **Address checks.** Check the address actually connected to, also after redirects and DNS + changes. Normalise IPv6 addresses that embed IPv4 (`::ffff:0:0/96`) before checking, and treat + translation ranges (NAT64 `64:ff9b::/96`, 6to4 `2002::/16`) as internal. +- **Network.** A per-workload egress proxy with an allow list derived from `allowTo`, plus a network + policy that lets the workload reach only that proxy, enforces `host` entries; `cidr` entries map to + `ipBlock` with `ports`. +- **Credentials.** A gateway outside the step holds model and tool server credentials and + authenticates the step with a short-lived credential bound to one execution or attempt; the same + gateway can enforce tool permissions and budgets. +- **Approvals.** A separate component with its own process namespace receives each tool call before + it runs and asks the person through the runtime's user interface. Running the decision under the + same user ID as the step's commands is not enough. + +## Implementation status + +A proof-of-concept Kubernetes runtime keeps model keys out of step pods (short-lived credential per +attempt), reaches MCP servers only through a gateway with a session or step ticket, checks resolved +addresses in its tool proxy, runs an egress proxy per tenant that denies internal destinations, and +decides tool calls of interactive sessions in a separate container. On a test installation the +self-approval attack succeeded while the coding agent decided and failed afterwards. It differs from +this AEP: cost limits above a tenant ceiling are capped, its allow lists have host names without +ports, and no isolation class above `container` is deployed. + +## Open questions + +1. How are ceilings made visible to authors before they apply a manifest? +2. Should a `host` entry be able to allow internal addresses when marked explicitly (for example + `internal: true`), for internal services addressed by name? +3. Are four isolation classes the right granularity, and should `sandbox` be defined by a property? +4. Should approval authority be its own AEP, since it also applies to approval steps without any + sandbox? +5. Should separation of duties (spec 7.8) state explicitly that it is checked against the + authenticated identity of a decision, never against an identity the step asserts? + +## Decision + +Not decided. Number and scope assigned by the maintainer on 2026-11-22. + +## References + +- Runtime feedback G10, G47, G49, G50, G51, G61, G64, G67, G68, G69 + ([runtime-feedback.md](../docs/runtime-feedback.md)). +- Spec `v1alpha3` sections 5.4, 5.5.1, 5.7, 7.5, 7.6, 7.9, 11. +- Kubernetes `NetworkPolicy`; RFC 1918, RFC 3927, RFC 4193, RFC 6598. +- agent-sandbox, Kubernetes SIG Apps. diff --git a/docs/runtime-feedback.md b/docs/runtime-feedback.md index 80f2700..6f7ea77 100644 --- a/docs/runtime-feedback.md +++ b/docs/runtime-feedback.md @@ -80,7 +80,7 @@ portable runtimes, **should** needs a rule, **minor** is editorial or informativ | --- | --- | --- | --- | --- | | G07 | must | No execution object and no status shape; `kubectl get workflows` cannot show validity. | A run kind; standard conditions in `metav1.Condition` shape with printer columns. | AEP drafted: [WorkflowRun and status](../aep/0019-workflow-run-and-status.md), spec 3.11 and 10.8 | | G09 | should | Unknown `spec` fields pass `kubectl apply --validate=strict` (the CRDs keep unknown fields); only `status` shows the error, and GitOps tools report "synced". | Ship the validator as an admission webhook image or a ValidatingAdmissionPolicy for common rules. | open; the `Valid` condition of G07 makes the error visible in `kubectl get` | -| G10 | should | Host-based network permissions cannot be enforced with NetworkPolicy. | Informative note: egress proxy or FQDN policies of the network plugin, otherwise a declared limitation. | AEP drafted: AEP-0023 | +| G10 | should | Host-based network permissions cannot be enforced with NetworkPolicy. | Informative note: egress proxy or FQDN policies of the network plugin, otherwise a declared limitation. | AEP drafted: [AEP-0023](../aep/0023-step-isolation.md) | | G26 | should | `metadata.namespace` and `secrets[].source: kubernetes` tie a manifest to one runtime. | Namespace is deployment data; `source` names an abstract store that the runtime resolves. | open | | K | should | No mapping of AWP concepts to Kubernetes primitives; every Kubernetes runtime invents its own. | A mapping table in spec 3.10, see below. | open | @@ -143,7 +143,7 @@ the collector only works because a command step now parses structured sources de | G38 | minor | `maxDuration` on an agent is ambiguous when the agent serves several steps; the runtime rejects it. | Only workflow and step level, or cumulative step time. | open | | G39 | should | Runtime neutrality has only been tested on Kubernetes. The `WorkflowRun` draft defines conditions as `metav1.Condition` and names an admission webhook as the source of the actor. Related to G26. | Define conditions as plain JSON (`type`, `status`, `reason`, `message`, `lastTransitionTime`) with `metav1.Condition` as the Kubernetes mapping; keep "actor from an authenticated source" normative and the webhook as a non-normative example; mark Kubernetes-only text as informative. A run of the same workflow without a cluster is planned. | open | | G40 | should | Command step `image`: what a runtime without containers does with it (ignoring it runs the command in an unreviewed environment), and whether digests are needed. Digests made Helm charts hard to maintain, and digests of single platforms break multi-architecture use. | A runtime that cannot run the image rejects the workflow; tags are allowed outside the security profile and resolved to the image index digest at start, pinned for the execution and recorded. | applied in the AEP-0020 draft (spec 5.6.2, 9.4, 10.1, 10.7) | -| G47 | should | `permissions.network` and deployment limits: a namespace network policy also restricts egress, and the spec says neither who enforces `allowHosts` nor what happens when the deployment allows less. The default `egress: allow` also conflicts with deny-by-default deployments. | The manifest states what the workflow needs, the deployment sets a ceiling, the intersection applies (like a pod security context under a cluster security policy). The runtime MUST enforce, MAY restrict further and MUST reject before execution if the ceiling is narrower or it cannot enforce for a step type. `egress: deny` as the default under the security profile. | AEP drafted: AEP-0023 | +| G47 | should | `permissions.network` and deployment limits: a namespace network policy also restricts egress, and the spec says neither who enforces `allowHosts` nor what happens when the deployment allows less. The default `egress: allow` also conflicts with deny-by-default deployments. | The manifest states what the workflow needs, the deployment sets a ceiling, the intersection applies (like a pod security context under a cluster security policy). The runtime MUST enforce, MAY restrict further and MUST reject before execution if the ceiling is narrower or it cannot enforce for a step type. `egress: deny` as the default under the security profile. | AEP drafted: [AEP-0023](../aep/0023-step-isolation.md) | ## 8. Event triggers @@ -172,9 +172,9 @@ change would fit. | ID | Sev. | Gap | Proposal from the runtime | Home | Status | | --- | --- | --- | --- | --- | --- | | G48 | must | Event runs created by an external router (an event router creating run objects) fit neither role of spec 10.8: client-created runs are manual, runtime-created runs record the trigger only in status, and the run spec has no trigger. | A trusted-ingress role: an authenticated identity the runtime accepts may create runs with trigger type `event` and an event payload; the runtime checks the trigger against the manifest, records the ingress identity and rejects event fields from other creators. | AEP-0019 open question 1 | open; the runtime now plans to create event runs itself from a generated trigger object, which needs no new role; the role stays relevant for external routers | -| G49 | should | `permissions.network.allowHosts` has no syntax: subdomain wildcards, ports, IP literals and CIDRs are undefined. | Define host matching (exact, `*.domain`), optional ports, and whether addresses or CIDRs are allowed. | AEP-0023 | AEP drafted; revised after review on 2026-11-23: `allowHosts` becomes `allowTo` with objects (`host` or `cidr`, `except`, `ports`) as in network policies, because a port appended to an IPv6 address is ambiguous | -| G50 | must | An allowed host can resolve to loopback, private, link-local (cloud metadata) or CGNAT addresses (SSRF, DNS rebinding); the proof of concept had this hole. | Under the security profile, deny such destinations after resolution unless listed explicitly as addresses. | AEP-0023 | AEP drafted; the proof of concept now checks the resolved address at connection time (covers rebinding and redirects by construction), without an explicit rebinding test. Second enforcement point: the egress proxy of every tenant and of a tool server deny private, loopback, link-local and CGNAT destinations after resolution, and the network policy of the proxy excludes them as well | -| G51 | should | No guidance on how `permissions.network` is enforced for command steps. | Informative: a per-workload egress proxy with an allowlist derived from `allowHosts`, plus a network policy that allows only that proxy, is conforming. A runtime that cannot enforce a network rule rejects the workflow. | AEP-0023, with G10 | AEP drafted | +| G49 | should | `permissions.network.allowHosts` has no syntax: subdomain wildcards, ports, IP literals and CIDRs are undefined. | Define host matching (exact, `*.domain`), optional ports, and whether addresses or CIDRs are allowed. | [AEP-0023](../aep/0023-step-isolation.md) | AEP drafted; revised after review on 2026-11-23: `allowHosts` becomes `allowTo` with objects (`host` or `cidr`, `except`, `ports`) as in network policies, because a port appended to an IPv6 address is ambiguous | +| G50 | must | An allowed host can resolve to loopback, private, link-local (cloud metadata) or CGNAT addresses (SSRF, DNS rebinding); the proof of concept had this hole. | Under the security profile, deny such destinations after resolution unless listed explicitly as addresses. | [AEP-0023](../aep/0023-step-isolation.md) | AEP drafted; the proof of concept now checks the resolved address at connection time (covers rebinding and redirects by construction), without an explicit rebinding test. Second enforcement point: the egress proxy of every tenant and of a tool server deny private, loopback, link-local and CGNAT destinations after resolution, and the network policy of the proxy excludes them as well | +| G51 | should | No guidance on how `permissions.network` is enforced for command steps. | Informative: a per-workload egress proxy with an allowlist derived from `allowHosts`, plus a network policy that allows only that proxy, is conforming. A runtime that cannot enforce a network rule rejects the workflow. | [AEP-0023](../aep/0023-step-isolation.md), with G10 | AEP drafted | | G52 | should | AEP-0021 B6 covers bindings but not runtime trigger objects (routing, expression filters, rate limits). | Trigger objects attach with `targetRefs` and `sectionName` (trigger index), may only narrow the manifest trigger, are generated from or validated against `spec.triggers`, and report `Accepted`. | AEP-0021 (extend B6) | open | | G53 | should | Two workflows of one owner share state (a daily run writes, a chat run reads and writes). | State as a named resource referenced by several workflows with an access mode, rules for concurrent writers, and the strictest classification for every reader. | [AEP-0025](../aep/0025-state.md), with G03 | AEP drafted; scenario derived, no conflict observed | | G54 | minor | Meaning of `triggers[].source`: the CloudEvents producer (URI) or an adapter name (AEP-0021 B4). | State which one. | [AEP-0024](../aep/0024-event-triggers.md); AEP-0021 B4 corrected | AEP drafted | @@ -184,7 +184,7 @@ change would fit. | G58 | should | State written by one execution is read as data by the next, so a message or web page can become a persistent instruction (memory poisoning, seen in the chat workflow). | Origin marking (G11) also for state; state is untrusted input by default. | [AEP-0025](../aep/0025-state.md); spec 12 now lists state as untrusted input | AEP drafted | | G59 | should | AEP-0008 treats `contextTokens` and `maxOutputTokens` as informative; a model server rejected every request because the runtime asked for more output tokens than the model allows. | Catalog limits are binding: the runtime caps requested output tokens at `maxOutputTokens` and rejects a workflow whose settings cannot fit. A price of 0 (local models) counts as a known price (G35). | AEP-0008 (its target `v1alpha3` predates D20 and now means after the current draft), with G34 | open | | G60 | minor | Agent steps need a model that supports tool calls; a small local model called tools without arguments, and the failure showed only at run time. | Optional capability flags in the catalog model entry (`toolUse`, `structuredOutput`); a runtime rejects an agent with tools on a model without tool support. | AEP-0008 | open; a coding agent engine (section 10) also needs context size, output limit and input types (image, document) from the catalog, otherwise it does not compact the context or rejects input | -| G61 | should | The spec does not say where model credentials live; a runtime may hand the provider key to the step, where any command or injected instruction can read it. | Under the security profile, model credentials MUST NOT be visible in the step environment; the runtime calls the provider itself or through a proxy that authenticates the step with a short-lived, execution-bound credential. | AEP-0023; not AEP-0008, whose non-goals exclude credentials | AEP drafted; feasibility shown (key only at the runtime, short-lived credential per attempt), latency and cost of the proxy not measured | +| G61 | should | The spec does not say where model credentials live; a runtime may hand the provider key to the step, where any command or injected instruction can read it. | Under the security profile, model credentials MUST NOT be visible in the step environment; the runtime calls the provider itself or through a proxy that authenticates the step with a short-lived, execution-bound credential. | [AEP-0023](../aep/0023-step-isolation.md); not AEP-0008, whose non-goals exclude credentials | AEP drafted; feasibility shown (key only at the runtime, short-lived credential per attempt), latency and cost of the proxy not measured | **Conflict in the draft (G44).** Spec 5.2 gives every `event` start the actor type `system`, while G44 asks to record a person attested by the event source. Both cannot hold; 10.8 avoids @@ -219,7 +219,7 @@ failed only after the decision moved to a separate container. | --- | --- | --- | --- | --- | --- | | G62 | must | Interactive execution. Spec 6 runs a standalone agent as a workflow with one step. A session has no task and no outputs: a person sends prompts for hours, the session pauses when idle, resumes, and ends when the person stops it. Its lifecycle, budget scope and audit events (created, idle, resumed, waiting for a person, finished) are undefined. | An execution form `Session` next to `WorkflowRun`, with lifecycle, budget scope and events. | new AEP: AEP-0026 | shown; the runtime treats a whole session as one execution for permissions, budget and audit | | G63 | must | Permissions are only `allow` or `deny`. In a session a person confirms single tool calls and switches between read-only, confirm-each-call and autonomous during the session. AWP says neither who may switch nor whether an author can forbid autonomy, and confirmations are neither approvals nor audited. | An effect `ask` for interactive execution. An autonomy ceiling in the manifest that the platform can only lower. Audit events for confirmed and refused calls and for mode changes. | AEP-0026 | partly shown: mode switching and audited confirmations ran; `confirm` per action and the author ceiling (`maxAutonomy`) are not built | -| G64 | must | Approval authority inside the execution environment. The engine and its commands share a user ID: a command read the engine's server password and could answer its own permission requests. A process in the sandbox sent a prompt with the autonomous mode and answered every question itself. | Under the `security` profile, confirmations and approvals are decided outside the execution environment, by an authenticated person, over a channel the environment cannot reach. Nothing that carries an approval (passwords, tokens, signed grants) is readable inside. | AEP-0023 | shown: the attack succeeded while the engine decided, and failed after the decision moved to a separate container with signed grants; the counter-test through the console asked once and ran after "allow once" | +| G64 | must | Approval authority inside the execution environment. The engine and its commands share a user ID: a command read the engine's server password and could answer its own permission requests. A process in the sandbox sent a prompt with the autonomous mode and answered every question itself. | Under the `security` profile, confirmations and approvals are decided outside the execution environment, by an authenticated person, over a channel the environment cannot reach. Nothing that carries an approval (passwords, tokens, signed grants) is readable inside. | [AEP-0023](../aep/0023-step-isolation.md) | shown: the attack succeeded while the engine decided, and failed after the decision moved to a separate container with signed grants; the counter-test through the console asked once and ran after "allow once" | | G65 | must | Engine of an agent. A coding agent brings its own tool loop, file editing and shell use. No field says which engine runs an agent, what it receives and produces, how permissions map to it, or whether its subagents inherit permissions and budget. The runtime uses an extension field. | `agents[].engine` (`type`, `runtimeProfile`, `repositories`, `push`). Allow or deny only when unattended. A refused call fails the step. Subagents inherit permissions and budget. Unknown engines are rejected. | new AEP: AEP-0027; until then `extensionRef` ([AEP-0021](../aep/0021-extension-model.md) B3) | shown: a workflow ran its review step with the engine, started by hand and by an event | | G66 | should | Engine steps produce only a summary and a diff. A step that declares outputs such as `critical` and `high` is rejected, and its repositories are fixed, so an event cannot pass one. | The engine fills declared outputs through the completion tool of AEP-0018 with the schema of AEP-0003. `repositories` is expression-enabled with `inputs.*` and `event.*`. | AEP-0027 | shown (the rejection) | | G67 | should | Agents that run untrusted code need stronger isolation than a container. The manifest cannot require it: the runtime class sits in the binding, invisible to reviewers. | A minimum `agents[].isolation` (`container`, `sandbox`, `vm`) that a runtime meets or rejects. The mechanism is platform configuration. | AEP-0023 | mapping implemented; no class above `container` deployed | @@ -283,7 +283,7 @@ attaches with `targetRefs` or `parametersRef` (AEP-0021 B5, B6). (G42 to G46, G54, G56). G41 is AEP-0004, G48 and G57 go into AEP-0019 (open question 1), G52 into AEP-0021. 9. Decided 2026-11-22: network permissions and credentials get one AEP, - AEP-0023 (G10, G47, G49 to G51, G61). Internal destinations + [AEP-0023](../aep/0023-step-isolation.md) (G10, G47, G49 to G51, G61). Internal destinations are denied by default under the security profile, not banned: the manifest and the platform ceiling can allow them. State gets [AEP-0025](../aep/0025-state.md) (G03, G53, G58). 10. G62 to G87 (section 10): confirm the two new AEP numbers, AEP-0026 (interactive execution) diff --git a/spec/README.md b/spec/README.md index 1a42cbd..6a42f8b 100644 --- a/spec/README.md +++ b/spec/README.md @@ -44,6 +44,7 @@ and a Final Comment Period, and may still be moved to a later version or rejecte | [0020](../aep/0020-execution-pinning.md) | Pinning an execution to its manifests | Draft | proposed for `v1alpha3` | | [0021](../aep/0021-extension-model.md) | Extension model aligned with the Kubernetes Gateway API (concept) | Draft | proposed for `v1alpha3` | | [0022](../aep/0022-step-iteration.md) | Step iteration (`forEach`) | Accepted (lead decision D19) | in the `v1alpha2` draft | +| [0023](../aep/0023-step-isolation.md) | Step isolation: network permissions, platform ceilings, credentials and approvals outside the execution environment | Draft | proposed for `v1alpha3` | | [0024](../aep/0024-event-triggers.md) | Event triggers with CloudEvents | Draft | proposed for `v1alpha3` | | [0025](../aep/0025-state.md) | State across executions | Draft | proposed for `v1alpha3` |