Internet-Draft WIMSE Execution Context December 2026
Nennemann Expires 6 June 2027 [Page]
Workgroup:
WIMSE
Internet-Draft:
draft-nennemann-wimse-ect-01
Published:
Intended Status:
Standards Track
Expires:
Author:
C. Nennemann
Independent Researcher

Execution Context Tokens for Distributed Agentic Workflows

Abstract

This document defines Execution Context Tokens (ECTs), a JWT-based mechanism for recording task execution across distributed agentic workflows. Each ECT captures a single task, linked to predecessor tasks through a directed acyclic graph (DAG). ECTs are transported in a new Execution-Context HTTP header field. While designed for use with the WIMSE architecture, ECTs are identity-framework agnostic and can operate with any asymmetric key infrastructure including WIMSE WIT/WPT, X.509 certificates, OAuth-based credentials, or plain JWK Sets.

An ECT is a record of a task; it does not authorize anything. It is issued after the task has been performed or, for an action on an external system, also before the action as a record of the attempt. ECTs are intended to serve as verifiable evidence of execution, for example in auditable or regulated deployments of AI-assisted workflows. ECTs support three assurance levels: Level 1 (unsigned JSON), Level 2 (JOSE asymmetric signing), and Level 3 (JOSE signing with an audit ledger), allowing deployments to choose the appropriate trade-off between simplicity and the strength of the evidence.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 6 June 2027.

▲

Table of Contents

1. Introduction

Frameworks such as WIMSE [I-D.ietf-wimse-arch] authenticate workloads across call chains but do not record what those workloads actually did. This document defines Execution Context Tokens (ECTs), a JWT-based mechanism that fills the gap between workload identity and execution accountability. Each ECT captures a single task, linked to predecessor tasks through a directed acyclic graph (DAG). ECTs are designed for use with the WIMSE signing model but can operate with any identity framework that provides asymmetric key pairs with verifiable binding to agent identity.

An ECT is a record, not an authorization: it states which agent performed which task, on which inputs and outputs (by hash), and after which predecessor tasks. It is normally produced after the task has been performed. For a task that acts on an external system, an ECT can also be produced before the action, as a record that the action is about to be attempted, and afterwards as a record that the action was not carried out or that its result is not known (Section 6). The intended use is as evidence of execution in auditable or regulated deployments, for example where AI-assisted steps in a workflow have to be reconstructed and attributed after the fact. ECTs do not establish that the recorded execution was authorized or correct (see Section 9.10 and Section 9.4).

1.1. Scope and Applicability

This document defines:

The following are out of scope and are handled by the deployment's identity framework (e.g., WIMSE, X.509 PKI, OAuth):

  • Workload authentication and identity provisioning

  • Key distribution and management

  • Trust domain establishment and management

  • Credential lifecycle management

Also out of scope are mechanisms that act before or instead of an action: deciding whether an action is permitted, ensuring that an action on an external system is performed at most once, and keeping concurrent tasks within a shared limit. Section 6 describes what ECTs record about such actions.

1.2. Assurance Levels and Applicability

ECTs support three assurance levels that govern how tokens are produced, transported, and verified. Each level builds on the payload structure defined in Section 3.1.

Level 1 (L1), Unsigned JSON:

ECTs are plain JSON objects with no cryptographic signature. Integrity depends on transport security (TLS). L1 is intended for internal deployments within a single trust domain where verifiable attribution of an ECT to its issuer is not required, such as development environments or internal microservice meshes.

Level 2 (L2), JOSE Asymmetric Signing:

ECTs are signed as JWS Compact Serialization tokens using asymmetric keys bound to the agent's identity credential. L2 provides tamper detection and verifiable attribution: any party that trusts the identity framework can verify that an ECT was signed with the key bound to the issuer's identity credential. This is the baseline assurance level for cross-organization and peer-to-peer deployments. L2 corresponds to the signing model of version -00 of this specification.

Level 3 (L3), JOSE Signing with Audit Ledger:

L3 extends L2 by requiring that every ECT be recorded in an audit ledger with cryptographic commitment (hash chain, Merkle tree, or equivalent). L3 is intended for regulated environments that require hash-committed audit trails with tamper-evident history.

Assurance level selection is orthogonal to human-in-the-loop (HITL) policy: any level may be combined with HITL requirements. Level selection guidance is provided in Section 3.6.

1.3. Relationship to Authorization Tokens and Transaction Tokens

ECTs are deliberately limited to what happened. Two neighboring kinds of token cover what is allowed to happen:

  • Authorization tokens, such as OAuth 2.0 access tokens [RFC6749], optionally carrying fine-grained authorization details [RFC9396] or delegation information such as the "act" claim [RFC8693], are issued before an action. They state what a client or agent is permitted to do and on whose behalf. An ECT is issued after the action and states what the agent did; an attempt record (Section 6.1) is issued before the action and states what the agent is about to do, without permitting it. The two are separate tokens with separate signers, lifetimes and verification rules: an authorization token is checked before the action is performed, an ECT is checked when execution evidence is consumed or audited. An ECT never acts as an authorization token, and an authorization token is not evidence that the action took place. A deployment that uses both can correlate an ECT with the authorization under which the task was performed. For an OAuth access token, the "ath" claim (Section 3.1.2) carries the hash of the token. Other kinds of authorization can be identified in "ect_ext" (Section 3.1.4).

  • OAuth Transaction Tokens [I-D.ietf-oauth-transaction-tokens] and their agent extensions [I-D.araut-oauth-transaction-tokens-for-agents] propagate authorization context (who the request is for, with which scope) along a call chain. They are issued by a Transaction Token Service and are consumed for authorization decisions. They do not record which tasks were performed, their inputs and outputs, or how tasks depend on each other. A request MAY carry a Transaction Token and an ECT at the same time; see Appendix "Transaction Tokens" for details.

In short: authorization tokens and Transaction Tokens are inputs to an authorization decision before or during a call; ECTs are records of the work and are not an input to that decision. Verifiers MUST NOT use an ECT as an authorization grant (Section 9.10).

2. Conventions and Definitions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

The following terms are used in this document:

Agent:

An autonomous workload that executes tasks within a workflow. In WIMSE deployments, this corresponds to a WIMSE workload [I-D.ietf-wimse-arch].

Task:

A discrete unit of agent work that consumes inputs and produces outputs.

Directed Acyclic Graph (DAG):

A graph structure representing task dependency ordering where edges are directed and no cycles exist.

Predecessor:

A task that another task depended on, named by its "jti" in the "pred" claim of the dependent task's ECT. This document also uses "parent" for a predecessor.

Execution Context Token (ECT):

A token defined by this specification that records task execution details. At Level 2 and Level 3, an ECT is a signed JSON Web Token [RFC7519]. At Level 1, an ECT is an unsigned JSON object with the same payload structure.

Identity Credential:

A credential that proves an agent's identity, such as a WIMSE Workload Identity Token (WIT), an X.509 certificate, an OAuth client credential, or a JWK with out-of-band binding. See Section 3.8.

Assurance Level:

One of three tiers (L1, L2, L3) governing how an ECT is produced, transported, and verified. See Section 1.2.

Audit Ledger:

An append-only, immutable log of all ECTs within a workflow or set of workflows, used for audit and verification.

Trust Domain:

An administrative boundary within which agents share a common identity authority. In WIMSE deployments, this corresponds to a trust domain of the WIMSE architecture [I-D.ietf-wimse-arch], for example a SPIFFE [SPIFFE] trust domain.

3. Execution Context Token Format

An Execution Context Token records a single task in a distributed workflow. The ECT payload structure is common across all assurance levels; only the envelope and verification requirements differ.

3.1. ECT Payload Structure

The ECT payload is a JSON object containing the claims defined in this section.

3.1.1. Standard Claims

The following standard JWT claims [RFC7519] are defined for ECTs:

iss:

OPTIONAL at L1; REQUIRED at L2 and L3. StringOrURI. A URI identifying the issuer of the ECT. The value MUST correspond to the agent's identity as asserted by its identity credential (see Section 3.8). In WIMSE deployments, this SHOULD be the workload identifier carried in the "sub" claim of the WIT (Section 3.8.1), for example a SPIFFE ID in the format spiffe://<trust-domain>/<path>. Other deployments MAY use HTTPS URLs, URN:UUID identifiers, or other URI schemes appropriate to the identity framework in use. L1 deployments are encouraged to include "iss" for consistency but it is not required. See Section 3.4.3 and Section 3.5.4 for the L2/L3 verification requirements.

aud:

RECOMMENDED. StringOrURI or array of StringOrURI. The intended recipient(s) of the ECT. The "aud" claim SHOULD contain the identifiers of all entities that will verify the ECT. When an ECT is to be verified by both the next agent and the audit ledger independently, "aud" MUST be an array containing both identifiers. Each verifier checks that its own identity appears in "aud". The "aud" claim is REQUIRED for L2 and L3 deployments (see Section 3.4.3 and Section 3.5.4).

iat:

REQUIRED. NumericDate. The time at which the ECT was issued.

exp:

REQUIRED. NumericDate. The expiration time of the ECT. Implementations SHOULD set this to 5 to 15 minutes after "iat".

jti:

REQUIRED. String. A unique identifier for both the ECT and the task it records, in UUID format [RFC9562]. The "jti" serves as both the token identifier and the task identifier (for predecessor references in "pred"). An issuer MUST NOT use the same "jti" for two different ECTs. Uniqueness holds across the ECT store (Section 5) and does not depend on "wid", because a "pred" entry names a task by its "jti" alone. A receiver that is presented with an ECT whose "jti" it already holds proceeds as described in step 1 of Section 5: an identical ECT is a repeated presentation, a different one is rejected.

3.1.2. Execution Context Claims

The following claims are defined by this specification:

wid:

OPTIONAL. String. A workflow identifier that groups related ECTs into a single workflow. When present, MUST be a UUID [RFC9562].

exec_act:

REQUIRED. String. The action or task type identifier describing what the agent performed (e.g., "process_payment", "validate_safety"). This claim name avoids collision with the "act" (Actor) claim registered by [RFC8693].

pred:

REQUIRED. Array of strings. Predecessor task identifiers representing DAG dependencies. Each element MUST be the "jti" value of a previously verified ECT. An empty array indicates a root task with no dependencies. A workflow MAY contain multiple root tasks. The "pred" claim is always required (rather than optional with absence meaning "root task") to simplify validation logic and eliminate ambiguity between a root task and a claim accidentally omitted.

exec_status:

OPTIONAL. String. States what the issuer knows about whether the task named by "exec_act" was carried out. The values are:

  • "performed": the task was carried out. This is the meaning of an ECT without "exec_status".

  • "intended": the issuer is about to carry out the task and has not done so yet (an attempt record, see Section 6.1).

  • "not_performed": the task was not carried out, for example because it was refused or failed before taking effect.

  • "unknown": the task may have been carried out, and the issuer has not obtained the result.

The claim describes whether the task was carried out, not whether its result was favorable: a validation run that finds defects was performed. Receivers MUST reject an ECT whose "exec_status" has any other value, and MUST reject an ECT that carries "out_hash" together with "exec_status" "intended" or "unknown".

ath:

OPTIONAL. String. The hash of the OAuth access token under which the task was carried out, with the value format defined for the "ath" claim in Section 4.2 of [RFC9449]: the base64url encoding (without padding) of the SHA-256 hash of the ASCII encoding of the access token's value. The claim lets a party that holds the access token, or its hash, relate the ECT to that authorization. It is a statement of the issuer like every other claim: it does not show that the authorization was valid or that it covered the task (Section 9.10).

3.1.3. Data Integrity Claims

The following claims provide integrity verification for task inputs and outputs without revealing the data itself:

inp_hash:

OPTIONAL. String. The base64url encoding (without padding) of the SHA-256 hash of the input data, computed over the raw octets of the input. SHA-256 is the mandatory algorithm with no algorithm prefix in the value, consistent with the "ath" claim of [RFC9449] and the "wth" and "tth" claims of [I-D.ietf-wimse-wpt].

out_hash:

OPTIONAL. String. The base64url encoding (without padding) of the SHA-256 hash of the output data, using the same format as "inp_hash".

A hash is useful only to a party that can reproduce the hashed octets. Deployments SHOULD document, for each kind of task, which octets "inp_hash" and "out_hash" cover. A task with several inputs, for example a data set and a model, can hash a manifest that lists the hash of each input. For JSON values, hashing a canonical serialization such as the JSON Canonicalization Scheme [RFC8785] avoids differences in whitespace and member order.

The hashes hide the data only if the data cannot be guessed. An input with few possible values, such as an amount, a decision or an identifier from a known range, can be recovered from its hash by trying the candidates, and equal inputs produce equal hashes in every ECT. When this matters, the hashed octets SHOULD include a random value of at least 128 bits that is stored with the data, so that a party with access to the data can still recompute the hash. See also Section 10.1.

3.1.4. Extension Claims

ect_ext:

OPTIONAL. Object. A general-purpose extension object for domain-specific claims not defined by this specification. Implementations that do not understand extension claims MUST ignore them. Extension key names SHOULD use reverse domain notation (e.g., "com.example.custom_field") to avoid collisions. The serialized "ect_ext" object MUST NOT exceed 4096 bytes and MUST NOT exceed a nesting depth of 5 levels. Receivers MUST reject ECTs whose "ect_ext" object exceeds these limits.

3.2. Complete ECT Payload Example

The following is a complete ECT payload example. This payload structure is the same at all assurance levels; only the transport envelope differs. For reproducibility, the "inp_hash" and "out_hash" values in this example are the SHA-256 hashes of the ASCII strings "test" and "foo", respectively.

{
  "iss": "spiffe://example.com/agent/clinical",
  "aud": "spiffe://example.com/agent/safety",
  "iat": 1772064150,
  "exp": 1772064750,
  "jti": "550e8400-e29b-41d4-a716-446655440001",

  "wid": "a0b1c2d3-e4f5-6789-abcd-ef0123456789",
  "exec_act": "recommend_treatment",
  "pred": [],

  "inp_hash": "n4bQgYhMfWWaL-qgxVrQFaO_TxsrC4Is0V1sFbDwCgg",
  "out_hash": "LCa0a2j_xo_5m0U8HTBBNBNCLXBkg7-g-YpeiGJm564",

  "ect_ext": {
    "com.example.trace_id": "abc123"
  }
}
Figure 1: Complete ECT Payload Example

3.3. Level 1: Unsigned JSON

At Level 1, an ECT is a plain JSON object carrying the payload defined in Section 3.1. No cryptographic signature is applied.

3.3.1. L1 Transport

Two transport mechanisms are defined for L1 ECTs:

HTTP Header Field:

The Execution-Context header field (Section 4) carries each ECT as the base64url-encoded JSON payload (without padding). An ECT in the field value is not raw JSON; the receiver MUST base64url-decode it before parsing.

HTTP Body:

When the ECT is the primary request payload, or when it is too large for a header field (see Section 9.13), the ECT MAY be carried in the HTTP request body with Content-Type application/json. In the body the JSON object is carried as it is, without base64url encoding.

L1 ECTs MUST be transmitted over TLS or mTLS connections. Transport security is the sole integrity mechanism at this level.

3.3.2. L1 Verification

When an agent receives an L1 ECT, it MUST perform the following verification steps:

  1. Parse the JSON object.

  2. Verify that all required claims ("jti", "iat", "exp", "exec_act", "pred") are present and that all claims defined in Section 3.1 that are present are well-formed.

  3. Verify the "exp" claim indicates the ECT has not expired, allowing for the clock skew tolerance of Section 9.12.

  4. Verify the "iat" claim is not unreasonably far in the past (RECOMMENDED maximum: 15 minutes) and is not unreasonably far in the future (RECOMMENDED: no more than 30 seconds ahead of the verifier's current time).

  5. Perform DAG validation per Section 5, including the handling of an already known "jti" in its step 1.

If any verification step fails, the ECT MUST be rejected and the failure MUST be logged.

3.3.3. L1 Security Properties and Applicability

L1 provides the following security properties:

  • Structural checks of the payload (required claims, claim formats)

  • Temporal ordering via "iat" and "exp" claims

  • DAG integrity via parent reference validation

  • Transport integrity via TLS

L1 does not provide:

  • Verifiable attribution (no signature binds the ECT to its issuer)

  • Tamper detection after delivery (the recipient cannot prove the ECT was not modified after receipt)

  • Issuer authentication at the ECT layer (identity depends entirely on the transport layer)

Note: At L1, without a deployed audit ledger, DAG parent existence validation (Section 5 step 2) is limited to parent ECTs received inline with the current request. Parents from prior requests that were not forwarded inline cannot be verified.

L1 MUST NOT be used across trust domain boundaries. Deployments using L1 SHOULD restrict it to internal environments where all agents are operated by the same organization and transport security is considered sufficient.

3.4. Level 2: JOSE Asymmetric Signing

At Level 2, an ECT is a JSON Web Token (JWT) [RFC7519] signed as a JSON Web Signature (JWS) [RFC7515]. L2 corresponds to the signing model of version -00 of this specification (see Section 3.7 for the claim names that changed).

ECTs MUST use JWS Compact Serialization (three base64url-encoded parts, the protected header, payload and signature, separated by period characters) so that they can be carried in an HTTP header field.

The ECT MUST be signed with a private key that is verifiably bound to the agent's identity credential (see Section 3.8). The JOSE header "kid" parameter MUST reference the public key identifier from the agent's identity credential, and the "alg" parameter MUST match the algorithm associated with that credential.

3.4.1. L2 JOSE Header

The ECT JOSE header MUST contain the following parameters:

{
  "alg": "ES256",
  "typ": "exec+jwt",
  "kid": "agent-a-key-id-123"
}
Figure 2: ECT JOSE Header Example
alg:

REQUIRED. The digital signature algorithm used to sign the ECT. MUST match the algorithm associated with the agent's identity credential. Implementations MUST support ES256 [RFC7518]. The "alg" value MUST NOT be "none". Symmetric algorithms (e.g., HS256, HS384, HS512) MUST NOT be used: a symmetric key is shared with the verifier, so a MAC computed with it does not attribute the ECT to its issuer. To support algorithm agility, a verifier accepts only the algorithms on its configured allowlist (step 3 of Section 3.4.3), and deployments SHOULD plan for migration to stronger algorithms as cryptographic requirements evolve. The algorithm is signaled in-band via the "alg" header parameter, enabling verifiers to support multiple algorithms during a transition period. Deployments SHOULD document their algorithm migration strategy and SHOULD NOT assume that ES256 will remain sufficient indefinitely.

typ:

REQUIRED. MUST be "exec+jwt" or "wimse-exec+jwt", which distinguishes ECTs from other JWT types. Issuers SHOULD use "exec+jwt"; "wimse-exec+jwt" is the value of version -00 of this specification and is kept for backward compatibility. Verifiers MUST accept both values. Issuers MUST NOT use the form with an "application/" prefix (Section 4.1.9 of [RFC7515]), so that a verifier can compare the value as an exact string.

kid:

REQUIRED. The key identifier referencing the public key from the agent's identity credential [RFC7517]. Used by verifiers to look up the correct public key for signature verification. In WIMSE deployments, this is the thumbprint of the workload key in the WIT (Section 3.8.1). In X.509 deployments, this MAY be the certificate thumbprint or subject key identifier.

3.4.2. L2 Transport

L2 ECTs are transported in the Execution-Context HTTP header field (Section 4) as JWS Compact Serialization: each ECT consists of three base64url-encoded parts separated by period (".") characters.

When the ECT is the primary request payload, or when it is too large for a header field (see Section 9.13), the ECT MAY instead be carried in the HTTP message body with Content-Type "application/exec+jwt" (Section 11.1).

L2 ECTs MUST be transmitted over TLS or mTLS connections.

3.4.3. L2 Verification

When an agent receives an L2 ECT, it MUST perform the following verification steps in order:

  1. Parse the JWS Compact Serialization to extract the JOSE header, payload, and signature components per [RFC7515].

  2. Verify that the "typ" header parameter is "exec+jwt" or "wimse-exec+jwt".

  3. Verify that the "alg" header parameter appears in the verifier's configured allowlist of accepted signing algorithms. The allowlist MUST NOT include "none" or any symmetric algorithm (e.g., HS256, HS384, HS512). Implementations MUST include ES256 in the allowlist; additional asymmetric algorithms MAY be included per deployment policy.

  4. Verify the "kid" header parameter references a known, valid public key from an identity credential of the verifier's own trust domain or of a trust domain with which a federation relationship has been established (see Section 3.8).

  5. Verify the "alg" header parameter matches the algorithm associated with the agent's identity credential.

  6. Verify that the signing key identified by "kid" has not been revoked in the trust domain of its identity credential. Implementations MUST check the key's revocation status using the identity framework's key lifecycle mechanism (e.g., certificate revocation list, OCSP, SPIFFE trust bundle updates, or JWK Set rotation). For X.509 credentials, the case in which the revocation source cannot be reached is covered in Section 9.14.2.

  7. Retrieve the public key identified by "kid" and verify the JWS signature per Section 5.2 of [RFC7515].

  8. Verify the "iss" claim is present and matches the agent identity asserted by the identity credential associated with the "kid" public key (see Section 3.8).

  9. Verify the "aud" claim is present and contains the verifier's own identity. When "aud" is an array, it is sufficient that the verifier's identity appears as one element; the presence of other audience values does not cause verification failure. When the verifier is the audit ledger, the ledger's own identity MUST appear in "aud".

  10. Verify the "exp" claim indicates the ECT has not expired, allowing for the clock skew tolerance of Section 9.12.

  11. Verify the "iat" claim is not unreasonably far in the past (implementation-specific threshold, RECOMMENDED maximum of 15 minutes) and is not unreasonably far in the future (RECOMMENDED: no more than 30 seconds ahead of the verifier's current time, to account for clock skew).

  12. Verify that the remaining required claims ("jti", "exec_act", "pred") are present and that all claims defined in Section 3.1 that are present are well-formed.

  13. Perform DAG validation per Section 5.

  14. If all checks pass and an audit ledger is deployed, the ECT SHOULD be appended to the ledger.

If any verification step fails, the ECT MUST be rejected and the failure MUST be logged for audit purposes. Error messages SHOULD NOT reveal whether specific parent task IDs exist in the ECT store, to prevent information disclosure.

3.4.4. L2 Security Properties and Applicability

L2 provides the following security properties:

  • Verifiable attribution (the signature binds the ECT to the key of the issuing agent's identity credential; it shows that the holder of that key signed, see Section 9.8)

  • Tamper detection (any modification invalidates the signature)

  • Issuer authentication (the "kid" links to the agent's identity credential)

  • Audience restriction (the "aud" claim limits valid verifiers)

  • All L1 properties (structural, temporal, DAG, transport integrity)

L2 is suitable for cross-organization deployments, peer-to-peer agent communication, and any deployment in which a party other than the issuer has to be able to verify who issued an ECT. L2 is the RECOMMENDED default for production deployments.

3.5. Level 3: JOSE Signing with Audit Ledger

Level 3 extends Level 2 by requiring that every ECT be recorded in an audit ledger that provides cryptographic commitment. L3 transport and JWS signing are identical to L2; the additional requirements apply to ledger recording and verification.

3.5.1. L3 Transport

L3 ECTs use the same JWS Compact Serialization transport as L2 (see Section 3.4.2).

3.5.2. L3 Audit Ledger Requirements

At Level 3, the audit ledger MUST satisfy the baseline requirements defined in Section 7 and the following additional requirements:

  1. Hash Chain: Each ledger entry MUST include a cryptographic hash of the previous entry, forming a hash chain. The hash algorithm MUST be SHA-256 or stronger.

  2. Cryptographic Commitment: The ledger MUST provide a mechanism for verifiable cryptographic commitment over its entries, such as Merkle tree proofs, hash chains with signed roots, or equivalent constructions. The commitment MUST allow a verifier to confirm that a specific ECT is included in the ledger at a specific position without trusting the ledger operator.

  3. Ledger Receipts: Upon successful append, the ledger MUST return a ledger receipt to the submitting agent. The ledger receipt MUST contain the ledger sequence number, the recording time, the hash of the appended ECT entry, and the cryptographic commitment proof (e.g., Merkle inclusion proof) at the time of recording.

  4. Recording Time: Each ledger entry MUST contain the time at which the ledger recorded the ECT, and the hash chain MUST cover it. Verification of recorded ECTs uses this time (Section 7.4).

  5. Availability: The ledger MUST be accessible for verification queries by authorized entities.

This document states requirements on the audit ledger. It does not define a protocol for submitting ECTs to a ledger, and it does not define formats for ledger receipts, commitment proofs or checkpoints. The agents and the ledger of an L3 deployment have to agree on these, for example by using a SCITT Transparency Service [RFC9943] and its receipts. ECTs are interoperable across deployments at L3 as they are at L2; ledgers of different deployments are not.

3.5.3. L3 Recording Semantics

An agent producing an L3 ECT MUST attempt to record the ECT in the audit ledger. Two recording modes are defined:

Synchronous Recording:

The agent submits the ECT to the ledger and waits for a ledger receipt before transmitting the ECT to the next agent. Synchronous recording provides the strongest guarantee: the ECT is committed to the ledger before any downstream processing occurs.

Asynchronous Recording:

The agent submits the ECT to the ledger and transmits the ECT to the next agent without waiting for a ledger receipt. The agent MUST subsequently verify that the ledger accepted the ECT and MUST retain the ledger receipt. If the ledger rejects the ECT, the agent MUST alert the workflow coordinator or log a critical error. If asynchronous ledger recording fails, the producing agent MUST NOT treat the ECT as recorded and SHOULD inform downstream agents that the ECT's L3 status is unconfirmed. This document does not define a mechanism for that notification. Downstream agents SHOULD treat such an ECT as L2-verified (not L3-verified) until ledger confirmation is independently obtainable.

Deployments SHOULD use synchronous recording unless latency constraints make it impractical. The recording mode SHOULD be documented in the deployment's security policy.

3.5.4. L3 Verification

L3 verification consists of L2 verification (Section 3.4.3) followed by ledger verification:

  1. Perform all L2 verification steps (steps 1 through 14 of Section 3.4.3). For an ECT that the ledger already holds, step 14 has no effect (step 1 of Section 5).

  2. Verify that the ECT has been recorded in the audit ledger by querying the ledger for the ECT's "jti". If the ECT is found, verify that the ledger receipt of the entry contains a valid sequence number, ECT hash, and cryptographic commitment proof. Note: the producing agent is responsible for recording the ECT per Section 3.5.3; the verifier checks that recording has occurred.

  3. If the ECT is not yet present in the ledger (e.g., due to asynchronous recording), the verifier MAY retry after a short delay. If the ledger does not contain the ECT within the configured timeout, the verifier MUST either reject the ECT or downgrade to L2 verification per deployment policy.

  4. If the ledger is unavailable, the verifier SHOULD retry with exponential backoff. If the ledger remains unavailable after a deployment-configured number of retries, the verifier MUST either reject the ECT or downgrade to L2 verification per deployment policy.

If the ECT is found in the ledger and the check in step 2 fails, the ECT MUST be rejected even if L2 verification succeeded. Steps 3 and 4 state what applies when the ECT is not found or the ledger cannot be reached.

Note: The "iss" and "aud" claims are REQUIRED and verified at both L2 and L3 (steps 8-9 of Section 3.4.3); at L1, "iss" is OPTIONAL and "aud" is RECOMMENDED.

3.5.5. L3 Security Properties and Applicability

L3 provides the following security properties beyond L2:

  • Tamper-evident history (the hash chain detects modification, insertion, or deletion of entries within the recorded sequence; removal of the most recent entries is covered in Section 9.15.3)

  • Cryptographic commitment (Merkle proofs or equivalent allow independent verification of ledger inclusion)

  • Evidence of recording (the ledger receipt shows that the ECT was committed at a specific time and position)

  • All L2 properties

L3 is intended for regulated environments requiring auditable, tamper-evident execution records, such as healthcare (FDA 21 CFR Part 11), financial services (MiFID II), and environments subject to the EU AI Act.

3.6. Level Selection

Deployments SHOULD select the assurance level based on the following criteria:

  • Use L1 when all agents operate within a single trust domain, verifiable attribution is not required, and transport security (TLS) is considered sufficient. Typical environments: development, testing, internal microservice meshes.

  • Use L2 when agents cross trust domain boundaries, when verifiable attribution is required, or when agents communicate peer-to-peer across organizations. L2 is the RECOMMENDED default for production deployments.

  • Use L3 when tamper-evident audit trails with cryptographic commitment are required, for example where the deployment has record-keeping obligations under frameworks such as FDA 21 CFR Part 11, MiFID II, or the EU AI Act. ECTs alone do not satisfy such obligations (Section 9.4).

A deployment MAY use different assurance levels for different workflows within the same infrastructure. When agents at different levels interact, the higher level's verification requirements apply to the receiving agent. Specifically, an ECT at a higher assurance level MAY reference parent ECTs at a lower assurance level in its "pred" claim. In this case, the receiving agent applies its own level's verification to the current ECT and the parent's level verification to each parent ECT. For example, an L2 agent receiving an L1 parent ECT verifies the L1 parent per Section 3.3.2 and its own L2 ECT per Section 3.4.3. Whether cross-level parent references are permitted is a deployment policy decision; deployments MAY reject ECTs whose parents are below a minimum assurance level (see Section 9.3 for what accepting them implies).

This specification does not define a level negotiation mechanism. Deployments configure the required assurance level out of band. A future extension could define in-band level signaling.

3.7. Backward Compatibility and Level Detection

A verifier determines the assurance level of a received ECT as follows:

  1. If an ECT taken from the Execution-Context field value (Section 4) contains exactly two period (".") characters separating three non-empty segments, attempt to parse it as JWS Compact Serialization. If the first segment base64url-decodes to a JSON object containing an "alg" field, the ECT is L2 or L3.

  2. Otherwise, base64url-decode the ECT (without padding) and attempt to parse the result as JSON. If successful, the ECT is L1.

  3. If neither parse succeeds, the ECT MUST be rejected.

A verifier rejects an ECT whose level is below the minimum it is configured with (Section 9.3).

For an ECT carried in a message body, the media type gives the format: "application/json" is an L1 ECT (Section 3.3.1), "application/exec+jwt" or "application/wimse-exec+jwt" is an L2 or L3 ECT (Section 3.4.2).

L2 and L3 use the same JWS format. Differentiation between L2 and L3 is a matter of deployment policy: L3 deployments require ledger recording (Section 3.5.3), while L2 deployments treat ledger recording as optional.

Version -00 of this specification used the claim names "par" and "ext"; they are now "pred" and "ect_ext". An implementation of -00 therefore needs to be updated to interoperate with this version. The -00 "typ" value "wimse-exec+jwt" remains accepted (see Section 3.4.1), and the -00 signing model is unchanged at L2.

3.8. Identity Binding

At L2 and L3, the ECT signing key MUST be verifiably bound to the agent's identity. This specification defines the abstract requirements for identity binding; concrete bindings are defined for specific identity frameworks.

An identity binding MUST satisfy the following requirements:

  1. Key Association: The "kid" value in the ECT JOSE header MUST resolve to a public key through the identity framework's key discovery mechanism.

  2. Issuer Correspondence: The "iss" claim in the ECT payload MUST correspond to the agent identity asserted by the identity credential containing the "kid" public key.

  3. Algorithm Consistency: The "alg" value in the ECT JOSE header MUST match the algorithm associated with the identity credential.

  4. Revocation Checking: The verifier MUST be able to determine whether the signing key has been revoked using the identity framework's revocation mechanism.

3.8.1. WIMSE Binding

When the deployment uses the WIMSE framework [I-D.ietf-wimse-arch]:

  • The ECT is signed with the workload key that the agent's Workload Identity Token (WIT) [I-D.ietf-wimse-workload-creds] carries in the "jwk" member of its "cnf" claim. The ECT "kid" MUST be the base64url encoding (without padding) of the JWK SHA-256 Thumbprint [RFC7638] of that key.

  • The ECT "alg" MUST match the "alg" member of that JWK.

  • The verifier takes the key from the WIT that accompanies the request (Section 4) or, for a recorded ECT, from the verification material retained with the ledger entry (Section 7), and validates the WIT as [I-D.ietf-wimse-workload-creds] requires. For a predecessor carried inline (Section 4.2), the verifier needs the WIT of the predecessor's issuer; this document does not define how that WIT is conveyed.

  • The ECT "iss" SHOULD be the workload's identifier (for example a SPIFFE ID [SPIFFE]), matching the "sub" claim of the WIT.

  • Revocation is checked via the SPIFFE trust bundle or the trust domain's key lifecycle mechanism.

  • ECTs are transported alongside the WIT and the Workload Proof Token (WPT) [I-D.ietf-wimse-wpt] in HTTP requests.

  • A WPT can bind itself to a co-present ECT: the WPT "oth" claim carries hashes of other tokens in the request, keyed by lower-cased header field name. A sender that wants this binding includes the key "execution-context" with the base64url-encoded SHA-256 hash of the Execution-Context header field value. Since "oth" does not support repeated header fields by default, this binding applies to requests that carry a single Execution-Context field line. Two properties of "oth" limit its use for ECTs. A recipient rejects a WPT whose "oth" contains an entry it does not understand, so a sender uses this binding only with recipients that are known to support it. And [I-D.ietf-wimse-wpt] defines "oth" for tokens that convey end-user identity or authorization context. An ECT conveys neither; listing it in "oth" binds it to the request and does not make it an input to an authorization decision (Section 9.10). Deployments that do not want to rely on "oth" for this purpose can cover the Execution-Context header field with an HTTP message signature instead (see below).

ECT defines its own Execution-Context HTTP header field (Section 4) and does not rely on WIMSE HTTP message signature machinery. Deployments that additionally apply WIMSE HTTP message signatures [I-D.ietf-wimse-http-signature] to protect requests should note that the audience of the signature is conveyed in the "wimse-aud" signature metadata parameter of HTTP Message Signatures [RFC9421]. That parameter is independent of the ECT payload's own "aud" claim and of the Execution-Context header field defined in this document.

3.8.2. X.509 Binding

When the deployment uses X.509 certificates:

  • The ECT "kid" MAY be the certificate thumbprint (x5t) or subject key identifier.

  • The ECT "iss" SHOULD be a URI derived from the certificate subject or subject alternative name.

  • Revocation is checked via CRL or OCSP.

3.8.3. JWK Set Binding

When the deployment uses plain JWK Sets [RFC7517] with out-of-band trust establishment:

  • The ECT "kid" MUST match the "kid" parameter in a JWK from the trusted JWK Set.

  • The ECT "iss" MUST match a value associated with the JWK through the deployment's configuration.

  • Revocation is handled by removing the key from the published JWK Set.

OAuth-based credentials are used through this binding: a client whose public keys are available as a JWK Set, for example one registered for the client with the authorization server, signs ECTs with one of these keys, and the deployment associates the keys with the "iss" value of that client.

4. HTTP Header Transport

4.1. Execution-Context Header Field

This specification defines the Execution-Context HTTP header field [RFC9110] for transporting ECTs between agents.

The format in which an ECT is carried in the field value depends on the assurance level:

  • At Level 1, the ECT is carried as the base64url-encoded JSON payload (without padding).

  • At Level 2 and Level 3, the ECT is carried in JWS Compact Serialization format [RFC7515], which consists of three base64url-encoded parts separated by period (".") characters.

The field value is a list of one or more ECTs, using the list syntax of Section 5.6.1 of [RFC9110], expressed in ABNF [RFC5234]:

Execution-Context = #ect-value
ect-value         = 1*( ALPHA / DIGIT / "-" / "_" / "." )
Figure 3: Execution-Context Field ABNF

Neither base64url-encoded JSON nor JWS Compact Serialization contains a comma, so a recipient splits the combined field value on commas (and optional whitespace) to obtain the individual ECTs.

The field is not defined as a Structured Field [RFC9651]. An ECT is longer than the 512 characters that parsers are required to support for a Token, and a Byte Sequence would encode the token a second time.

This document defines the Execution-Context header field for requests. Its use in responses is not defined.

An agent sending a request to another agent includes the Execution-Context header field alongside any header fields required by the deployment's identity framework. In WIMSE deployments, agents include the Workload-Identity-Token header field [I-D.ietf-wimse-workload-creds] and, when used, a Workload Proof Token [I-D.ietf-wimse-wpt].

POST /api/safety-check HTTP/1.1
Host: safety-agent.example.com
Workload-Identity-Token: eyJhbGci...WIT...
Authorization: WPT eyJhbGci...WPT...
Execution-Context: eyJhbGci...ECT...
Figure 4: HTTP Request with ECT Header (WIMSE)

The Workload Proof Token is sent in the Authorization header field with the WPT authentication scheme [I-D.ietf-wimse-wpt]. The Execution-Context header field is deliberately separate from it. An ECT is not a credential: it MUST NOT be sent in the Authorization header field, and a recipient MUST NOT treat it as authentication of the sender. A separate header field also lets ECTs accompany any authentication scheme, for example an OAuth access token presented at the edge of a trust domain.

Intermediaries and servers commonly log request header fields, so the value of an Execution-Context field can end up in logs outside the ECT store. This is one more reason to apply the guidance of Section 10.2 to every claim of an ECT.

When multiple parent tasks contribute context to a single request, the request MAY carry multiple ECTs, either in separate Execution-Context field lines or as a comma-separated list in one field line. This applies to all assurance levels.

When a receiver processes multiple ECTs in a request, it MUST individually verify each ECT per the applicable verification procedure (Section 3.3.2, Section 3.4.3, or Section 3.5.4), or per Section 4.2 for an ECT that is present only as a predecessor. If any single ECT fails verification, the receiver MUST reject the entire request. The set of verified task identifiers across all received ECTs is the set of predecessors available for the receiving agent's subsequent ECT. The order of the ECTs in the field value is not significant: a receiver verifies each ECT after the ECTs that it names in "pred".

4.2. Predecessor ECTs Carried Inline

In a deployment without an ECT store that all verifiers share, a request can carry ECTs that are not addressed to the receiver and are present only because an ECT addressed to the receiver lists them in "pred". Such an ECT was issued for an earlier receiver, so its "aud" usually does not name the current one, and it may have expired.

A receiver verifies an ECT of this kind per the procedure of its assurance level with the following differences:

  • The audience check (step 9 of Section 3.4.3) is not applied.

  • The expiry check and the maximum age of "iat" (steps 10 and 11 of Section 3.4.3, steps 3 and 4 of Section 3.3.2) are not applied. The "iat" MUST NOT be later than the "iat" of the ECT that lists it in "pred", within the tolerance of step 3 of Section 5.

  • Its own predecessors are checked per Section 5 only as far as they are available to the receiver.

All other steps apply, including signature verification, the binding of the key to "iss", and the revocation check.

An inline predecessor verified in this way shows that its issuer signed a record of that task. It does not show that the ECT was delivered to or accepted by its original audience, and the receiver sees only the part of the DAG that was forwarded. Deployments that need the complete ancestry of a task use an ECT store that the verifiers share, such as an audit ledger.

4.3. HTTP Error Handling

When ECT verification fails during HTTP request processing, the receiving agent SHOULD respond with HTTP 403 (Forbidden). This applies regardless of whether the failure is due to an invalid ECT payload, a signature verification failure, or a missing ECT when one is required by deployment policy. HTTP 401 (Unauthorized) SHOULD NOT be used for ECT failures, as 401 conventionally indicates that authentication credentials are missing or invalid and requires a WWW-Authenticate header field per [RFC9110]. The response body SHOULD include a generic error indicator without revealing which specific verification step failed. The receiving agent MUST NOT process the requested action when ECT verification fails.

5. DAG Validation

ECTs form a Directed Acyclic Graph (DAG) where each task references its parent tasks via the "pred" claim. DAG validation is performed against the ECT store: either an audit ledger or the set of parent ECTs received inline.

DAG validation applies regardless of assurance level.

When receiving and verifying an ECT, implementations MUST perform the following DAG validation steps:

  1. Task ID Uniqueness: The "jti" claim MUST be unique within the ECT store. If the store already contains an ECT with the same "jti", the verifier compares the two. If they are identical (at L2 and L3 the same JWS Compact Serialization, at L1 the same payload octets), the received ECT is a repeated presentation of a known ECT: the verifier MUST NOT record it a second time and treats it as the ECT it already holds; the remaining steps need not be repeated. If they differ, the received ECT MUST be rejected, and the verifier SHOULD log the event, because two different ECTs with one "jti" indicate a faulty or dishonest issuer.

  2. Parent Existence: Every task identifier listed in the "pred" array MUST correspond to a task that is available in the ECT store (either previously recorded in the ledger or received inline as a verified parent ECT). If any parent task is not found, the ECT MUST be rejected.

  3. Temporal Ordering: The "iat" value of every parent task MUST be less than the "iat" value of the current task plus a configurable clock skew tolerance (RECOMMENDED: 30 seconds). That is, for each parent: parent.iat < child.iat + clock_skew_tolerance. The tolerance accounts for clock skew between agents; it does not guarantee strict causal ordering from timestamps alone. Causal ordering is primarily enforced by the DAG structure (parent existence in the ECT store), not by timestamps. If any parent task violates this constraint, the ECT MUST be rejected.

  4. Acyclicity: Following the chain of parent references MUST NOT lead back to the current ECT's "jti". If a cycle is detected, the ECT MUST be rejected. Note: because the Parent Existence check (step 2) requires that all parents already exist in the ECT store, and an ECT cannot reference itself or a future ECT, cycles are prevented by construction. This explicit check serves as defense in depth against implementation errors or store corruption.

  5. Trust Domain Consistency: A verifier SHOULD reject an ECT that names a parent whose issuer is in a trust domain other than the verifier's own, unless a federation relationship with that trust domain has been established.

  6. Workflow Consistency: When the current ECT carries "wid", the "wid" of each parent ECT MUST equal it; a parent without "wid" does not match. An ECT that violates this MUST be rejected unless deployment policy explicitly permits cross-workflow parent references, for example from a task to the release of a component it used. When the current ECT carries no "wid", this step does not apply. See also Section 9.9 for the security rationale.

To prevent denial-of-service via extremely deep or wide DAGs, implementations SHOULD enforce a maximum ancestor traversal limit (RECOMMENDED: 10000 nodes). If the limit is reached before cycle detection completes, the ECT SHOULD be rejected.

In distributed deployments, a parent ECT may not yet be available locally due to replication lag. Implementations MAY defer validation to allow parent ECTs to arrive, but MUST NOT treat the ECT as verified until all parent references are resolved.

6. Tasks with External Effects

Many tasks act on a system that does not take part in the ECT exchange, for example a payment provider, an order system or a customer database. Such a system neither verifies nor issues ECTs, and the agent learns the result of its request only from the response. If the response does not arrive (a timeout, a dropped connection, or a failure of the agent between sending the request and recording the result), the agent does not know whether the action took effect. An ECT that is issued only after the task would then either be missing or state a result the agent has not observed.

This section describes how such tasks are recorded, using the "exec_status" claim (Section 3.1.2). It applies at all assurance levels; statements that depend on a complete ECT store hold only where an audit ledger is deployed.

6.1. Attempt and Outcome Records

A task with an external effect is recorded by more than one ECT. All of them carry the same "exec_act" value, which names the action, and differ in "exec_status":

Attempt record:

An ECT with "exec_status" "intended" that the agent issues after it has prepared the request and before it sends it. An attempt record does not state that the request was sent or that it took effect, and it is not an authorization for the request (Section 9.10). "inp_hash" SHOULD be present and cover the request as it will be sent.

Outcome record:

An ECT with "exec_status" "performed" or "not_performed" that is issued after the result of the request has been obtained from the external system, either from the response or from a later query. Its "pred" MUST contain the "jti" of the attempt record. An outcome record MUST carry "exec_status" explicitly. "out_hash" SHOULD be present and cover the response or the external system's record of the action.

Unknown-outcome record:

An ECT with "exec_status" "unknown", by which an agent states that the request may have been sent and that its result has not been obtained. Its "pred" MUST contain the "jti" of the attempt record.

An agent that performs a task with an external effect SHOULD issue an attempt record before it sends the request. At Level 3, the agent SHOULD record the attempt record synchronously (Section 3.5.3) and send the request only after it holds the ledger receipt. Without an attempt record, a failure between sending the request and issuing the ECT leaves an effect on the external system that no ECT refers to.

An outcome record MUST NOT be issued unless its issuer has obtained the result from the external system. A missing response is not a result: an agent that has not received a response MUST NOT record the action as performed and MUST NOT record it as not performed. It MAY issue an unknown-outcome record, which shows that the missing result was noticed.

An attempt record is open as long as the ECT store contains no outcome record for it, that is, no ECT with the same "exec_act", an explicit "exec_status" of "performed" or "not_performed", and the "jti" of the attempt record in "pred". Verifiers and auditors MUST treat the effect of an open attempt as undetermined. In particular, the absence of an outcome record is not evidence that the action did not take place. Finding open attempts in a ledger uses the lookup by predecessor (Section 7).

The outcome record does not have to be issued by the agent that issued the attempt record. A separate agent can query the external system's own records and issue the outcome record, so that an open attempt can be closed even if the original agent has failed. This can happen long after the attempt record has expired; the attempt record is then taken from the ECT store, where expiry does not remove it (Section 7.4).

An outcome record is self-asserted like any other ECT (Section 9.4). Since any agent can issue one, which issuers are accepted for the outcome records of a given action is a matter of deployment policy. An auditor can compare "out_hash" with the external system's own record only if the hashed octets can be reproduced from that record (Section 3.1.3).

6.2. Repeated Requests

While an attempt is open, sending the request again can cause the external system to perform the action a second time. Whether a repeated request is safe depends on the external system, for example on its support for an idempotency key such as the one defined in [I-D.ietf-httpapi-idempotency-key-header]. ECTs do not make a request safe to repeat.

When a request is sent again, the agent SHOULD issue a new attempt record whose "pred" contains the "jti" of the earlier attempt record, so that the repetition is visible in the DAG. An outcome record lists in "pred" every attempt record whose request it settles.

Where the external system accepts an idempotency key, the agent MAY use the "jti" of the first attempt record as the key and SHOULD reuse that key for every repetition of the request. The external system's record of the action then names the attempt record, and an auditor can match the two without relying on amounts or timestamps. In this case the "jti" is disclosed to the external system.

6.3. Shared Limits and Concurrent Tasks

The DAG records which tasks a task depended on. It does not order tasks that have no path between them, and validating an ECT does not reserve anything. Two branches of a workflow can each perform an action that stays within a limit when considered alone (a budget, a quota, a maximum refund amount) and exceed it together. Both ECTs are valid, and the DAG validation of one does not involve the other.

Keeping concurrent tasks within a shared limit requires one component that decides on each use of the limit in sequence. That component is part of the authorization layer and is outside the scope of this document (Section 1.3, Section 9.10). ECTs can record its decisions, so that the use of the limit can be reconstructed afterwards:

  • The component issues an ECT for each reservation it grants ("exec_status" "performed"), and MAY issue one for each reservation it refuses ("not_performed"). Such an ECT records the decision. It does not convey the reservation to the agent; that is done by the authorization mechanism in use, for example an access token with authorization details [RFC9396], whose hash the agent's ECTs can carry in "ath".

  • An attempt record for an action that uses the limit lists the "jti" of the reservation ECT in "pred".

  • When the component settles or releases a reservation, it issues an ECT that lists in "pred" the reservation ECT and the outcome record on which the decision is based.

A reservation whose attempt is open SHOULD NOT be released, because the action may have taken effect.

With these records and a complete ECT store, an auditor can find attempt records that name no reservation, reservations named by more than one attempt record, and reservations that were released without an outcome record. The "pred" claim does not make a reservation single-use: several ECTs can list the same predecessor, which is how fan-out is expressed. A deployment in which a reservation can be used only once has to enforce that in the component that decides on the limit. ECTs make a violation detectable; they do not prevent it.

At Level 3, the sequence numbers of the audit ledger give the order in which reservation ECTs were recorded. The "iat" claim does not establish that order, because it is set by each issuer (Section 9.12).

Amounts and limit identifiers are data of the deployment. They can be covered by "inp_hash" and "out_hash" or carried in "ect_ext", subject to Section 10.2. An amount is easy to guess, so the caution about hashes of guessable data in Section 3.1.3 applies.

7. Audit Ledger Interface

ECTs MAY be recorded in an immutable audit ledger for compliance verification and post-hoc analysis. A ledger is OPTIONAL for L1 and L2 deployments but is REQUIRED for L3 deployments. This specification does not mandate a specific storage technology. Implementations MAY use append-only logs, databases with cryptographic commitment schemes, distributed ledgers, or any storage mechanism that provides the required properties.

7.1. Baseline Ledger Requirements

When an audit ledger is deployed, the following requirements apply to it:

  1. Append-only semantics: Once an ECT is recorded, it MUST NOT be modified or deleted.

  2. Ordering: The ledger MUST maintain a total ordering of ECT entries via a monotonically increasing sequence number.

  3. Lookup by ECT ID: The ledger MUST support retrieval of ECT entries by "jti" value.

  4. Integrity verification: The ledger SHOULD provide a mechanism to verify that no entries have been tampered with (e.g., hash chains or Merkle trees).

  5. Lookup by predecessor: The ledger SHOULD support retrieval of the ECT entries that list a given "jti" in "pred". Finding open attempts and the uses of a reservation (Section 6) depends on this lookup.

  6. Recording time: The ledger SHOULD store with each entry the time at which it recorded the ECT. At Level 3 this is required (Section 3.5.2).

  7. Verification material: A ledger whose entries are to be verified after the identity credentials of the issuing agents have expired SHOULD retain, for each entry, the public key with which the signature of the ECT was verified and the identity credential that bound this key to the issuer (in the WIMSE binding, the WIT), or a reference by which both can be retrieved for as long as the entry is kept. This applies to ECTs at Level 2 and Level 3.

Identity credentials are short-lived, and a ledger can be read for years. Without the verification material, the signature of a recorded ECT can no longer be verified once the credential of its issuer has expired and its key is no longer published (Section 7.4). Retained material is evidence only as far as its origin can be checked: an auditor can verify a retained identity credential against the trust anchor of the trust domain as it was at the recording time, whereas a key that the ledger retains without a credential rests on trust in the ledger operator.

7.2. L3 Ledger Requirements

At Level 3, the audit ledger MUST satisfy the baseline requirements above and the additional requirements defined in Section 3.5.2: a hash chain over the entries, cryptographic commitment proofs, ledger receipts, a recording time in each entry, and availability for verification queries.

7.3. Ledger Independence

The audit ledger SHOULD be operated by an entity that is independent of the workflow agents. When the ledger operator and the workflow agents are controlled by the same organization, additional safeguards SHOULD be implemented, such as separation of duties between ledger administrators and agent operators, or independent ledger replicas maintained by third parties.

7.4. L3 Ledger Verification

Auditors verifying L3 ledger integrity SHOULD perform the following checks:

  1. Verify the hash chain: for each entry, recompute the hash of the previous entry and confirm it matches the recorded value.

  2. Verify the cryptographic commitment: validate Merkle inclusion proofs (or equivalent) for a sample or all entries.

  3. Verify the recorded ECTs: for each ECT in the ledger, in the order of the sequence numbers, perform the L2 verification procedure (Section 3.4.3) as it applied when the ECT was recorded. ECTs are short-lived and the auditor is not their audience, so the following differences apply:

    • The time checks (steps 10 and 11) are evaluated against the recording time of the ledger entry, not against the current time and not against "iat".

    • The key and its revocation status (steps 4 and 6) are those that were valid at the recording time. Where the ledger retains verification material (Section 7), the key is taken from it. An auditor that cannot establish the status at that time uses the current status.

    • The audience check (step 9) is made for the identity of the ledger, which appears in "aud" of an ECT that the ledger verified (step 9).

    • Steps 13 and 14 are not applied. DAG validation follows in step 4 below.

  4. Verify DAG consistency: perform DAG validation (Section 5) for each ECT against the entries with lower sequence numbers. Step 1 then means that no earlier entry has the same "jti", and step 2 that every parent was recorded before the ECT that names it.

8. Implementation Status

Note to the RFC Editor: please remove this section and the reference to [RFC7942] before publication.

This section records the status of known implementations of the protocol defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist.

According to [RFC7942], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit".

All implementations listed below were written by the author of this document. There is no independent implementation yet, so the interoperability results below show consistency between implementations by one author, not independent interoperability. Keys are resolved through an interface supplied by the caller or from a JWK Set (Section 3.8.3); the WIMSE binding and the X.509 binding are not implemented.

The Go, Python and Rust implementations, the shared test vectors and the interoperability tests are available in a public repository.

8.1. Go Reference Implementation

Organization:

Christian Nennemann (individual)

Description:

Library and demo for creating and verifying ECTs (ES256, "typ" "exec+jwt", legacy "wimse-exec+jwt" accepted), DAG validation, an in-memory ledger and an optional "jti" replay cache.

Level of maturity:

Prototype. 55 unit tests; passes the shared test vectors (Section 8.4).

Coverage:

Claim names of this version, including "exec_status" and "ath". L2 only; L1 (unsigned JSON) and the L3 ledger requirements (hash chain, commitment proofs, receipts) are not implemented.

Licensing:

BSD-3-Clause.

Contact:

ietf@nennemann.de

8.2. Python Reference Implementation

Organization:

Christian Nennemann (individual)

Description:

Library and demo with the same API surface as the Go implementation: creation, verification, DAG validation, in-memory ledger and replay cache.

Level of maturity:

Prototype. 77 unit tests; passes the shared test vectors.

Coverage:

Claim names of this version, including "exec_status" and "ath". L2 only; L1 and L3 are not implemented.

Licensing:

BSD-3-Clause.

Contact:

ietf@nennemann.de

8.3. Rust Implementation (wimse-ect crate)

Organization:

Christian Nennemann (individual)

Description:

Crate for issuing and verifying ECTs, DAG validation, and an append-only ledger with a hash chain, with a Python binding of the crate. It also implements the time checks of ledger verification (Section 7.4, step 3), which evaluate a recorded ECT against its recording time after it has expired. It is used in two prototypes by the same author.

Level of maturity:

Prototype. 16 unit tests, 58 tests of the Python binding, and 32 test vectors (9 valid, 23 invalid with expected error codes), including the private test keys needed to regenerate them.

Coverage:

Claim names of this version, including "exec_status" and "ath" ("typ" "exec+jwt", legacy "wimse-exec+jwt" accepted). L2 and a hash-chained ledger; L1 and the L3 commitment proofs and receipts are not implemented.

Licensing:

BSD-3-Clause.

Contact:

ietf@nennemann.de

8.4. Interoperability and Test Vectors

Consistency between the implementations was checked as follows:

  • The complete payload example in Figure 1 is accepted by the Python implementation: it is signed and verified again with an unchanged payload.

  • The 32 test vectors that accompany the Rust implementation use the claim names of this version. They include tokens with the legacy "typ" value, a -00 token carrying "par" instead of "pred", DAG cases that need prior tokens, a repeated presentation of a known ECT, and cases for "exec_status" and "ath" (valid attempt, unknown-outcome and not-performed records, an attempt record with "out_hash", an undefined status value, a malformed "ath"). The Go, Python and Rust implementations and the Python binding of the Rust implementation each return the expected result for all 32 cases.

  • In a cross-signing test, each of these four signs the same seven claim sets with the same key, and each verifies the tokens of every signer in eleven contexts (root, child and multi-parent tasks, "ect_ext", an array "aud", unknown parent, wrong audience, expiry, a repeated presentation, a different ECT with a known "jti", modified payload). All 176 results (four signers, four verifiers, eleven contexts) match the expected results.

  • In a ledger test, each of these four signs a chain of five ECTs recorded ten minutes apart (longer than the recommended maximum "iat" age), and each verifies every signer's ledger with every ECT, and every predecessor it depends on, checked at its own recording time, plus one case with a missing parent. All 96 results match the expected results.

  • The use case in Figure 12 was run through the Python implementation and, as a runnable example, through the Rust implementation. Its eight ECTs are signed and verified in order against a ledger; the attempt record is open until the outcome record is recorded; a repeated ECT is recognized and not recorded a second time; a different ECT with a known "jti" and an outcome record without its attempt record are rejected. Both runs tell attempt, outcome and unknown-outcome records apart by "exec_status". The implementations validate "exec_status" and offer the lookup by predecessor; finding open attempts is left to the caller, and the shared test vectors do not cover the DAG patterns of Section 6.

Planned work: L1 support, the L3 commitment proofs and receipts, retention of verification material in the ledgers (Section 7), test vectors for L1 and for the DAG patterns of Section 6, and an export of verified ECT chains to PROV-O (Appendix "Mapping to W3C PROV-O"). Independent implementations are invited.

9. Security Considerations

9.1. Threat Model

The threat model considers: (1) a malicious agent that creates false ECT claims, (2) an agent whose private key has been compromised, (3) a ledger tamperer attempting to modify recorded entries, (4) a time manipulator altering timestamps to affect perceived ordering, and (5) an intermediary that removes, adds or replaces ECTs in a request.

An ECT that was removed from a request is noticed only if the receiver requires an ECT by policy (Section 4.3), or if the Execution-Context header field is covered by a mechanism that binds it to the request (Section 3.8.1). Not in scope are attacks on the identity framework that issues the signing keys, and the correctness of the task itself (Section 9.4).

9.2. Level-Specific Security Properties

9.2.1. Level 1

L1 provides no cryptographic binding between the ECT and its issuer. A compromised or malicious intermediary with access to the transport channel can modify L1 ECTs without detection after delivery. L1 does not provide verifiable attribution: the issuer can deny having produced an ECT, and the receiver cannot prove otherwise.

L1 MUST NOT be used across trust domain boundaries. L1 is appropriate only when all agents are operated by the same organization, the transport channel is fully trusted (e.g., service mesh with mTLS), and the deployment does not require verifiable attribution or tamper evidence beyond transport security.

9.2.2. Level 2

The considerations on signature verification, replay, key compromise and collusion in the following sections apply to L2.

9.2.3. Level 3

L3 provides all L2 security properties plus tamper-evident history via the audit ledger's hash chain and cryptographic commitment. Modifications, insertions and deletions within the recorded sequence are detectable through hash chain verification. Removal of the most recent entries is not detectable from the chain alone (see Section 9.15.3).

L3 does not prevent a compromised ledger operator from refusing to record entries (censorship); an agent that holds no ledger receipt (Section 3.5.2) knows that its ECT was not recorded. Deployments concerned about ledger censorship SHOULD use multiple independent ledger replicas.

9.3. Assurance Level Downgrade Attacks

The assurance level of an ECT is determined by its format: unsigned JSON indicates L1, while a JWS Compact Serialization indicates L2 or L3. This format-based detection determines what was sent, not what was expected by the verifier.

A man-in-the-middle or compromised proxy could strip the JWS signature from an L2 or L3 ECT and re-encode the payload as an unsigned L1 JSON object. Because the resulting ECT is syntactically valid at L1, a verifier that accepts any assurance level would process it without detecting the downgrade.

Verifiers MUST be configured with a minimum acceptable assurance level and MUST reject ECTs whose detected level falls below that minimum. Format-based level detection alone is insufficient without a policy-enforced minimum level requirement.

The minimum applies to every ECT in a request, including an ECT that is present only as a predecessor (Section 4.2). A deployment that permits predecessors of a lower level (Section 3.6) configures the minimum for predecessors accordingly. Such a predecessor has only the properties of its level: where L1 predecessors are accepted, an intermediary can replace a signed predecessor by an unsigned ECT with the same "jti", unless the ECT store already holds the signed one (step 1 of Section 5).

9.4. Self-Assertion Limitation

ECTs are self-asserted by the executing agent. The agent claims what it did, and this claim is signed with its private key (at L2 and L3). A compromised or malicious agent could create ECTs with false claims (e.g., claiming an action was performed when it was not).

ECTs do not independently verify that:

  • The claimed execution actually occurred as described

  • The input/output hashes correspond to the actual data processed

  • The agent faithfully performed the stated action

The trustworthiness of ECT claims depends on the trustworthiness of the signing agent and the integrity of the broader deployment environment. ECTs provide a technical mechanism for execution recording; they do not by themselves satisfy any specific regulatory compliance requirement. What a check of an audit record can and cannot establish, independent of the record format, is discussed in [I-D.zhang-audit-record-limits].

At Level 1, the self-assertion limitation is compounded by the absence of any cryptographic binding; any entity with access to the transport channel can create ECTs claiming any identity and any action.

9.5. Signature Verification

For L2 and L3 deployments, ECTs MUST be signed with the agent's private key using JWS [RFC7515]. The signature algorithm MUST match the algorithm associated with the agent's identity credential (see Section 3.8). Receivers MUST verify the ECT signature against the corresponding public key before processing any claims. Receivers MUST verify that the signing key has not been revoked (see step 6 in Section 3.4.3).

If signature verification fails or if the signing key has been revoked, the ECT MUST be rejected entirely and the failure MUST be logged.

Implementations SHOULD use an established JWS library and not their own signature verification code. Implementations SHOULD follow the JWT security best practices defined in [RFC8725].

The prohibition of "alg": "none" (see Section 3.4.3) also serves as defense against level-confusion attacks: an L1 payload wrapped in a JWS with "alg" "none" is not accepted as an L1 ECT. With an empty signature part, as in an Unsecured JWS [RFC7515], it matches neither format in Section 3.7 and is rejected there; with any other signature part it is detected as L2 by format and rejected at the algorithm allowlist check.

9.6. Replay and Repeated Presentation

An ECT is a record and conveys no authority (Section 9.10). Presenting an ECT a second time therefore gives the presenter nothing that the first presentation did not give. The measures against misuse of a captured ECT are its binding to the issuer's key (step 8 in Section 3.4.3), the audience restriction via "aud", and a short lifetime (RECOMMENDED: 5 to 15 minutes) for ECTs in transit.

A verifier that is presented with an ECT whose "jti" it already holds does not record it again and rejects it if it differs from the one it holds (step 1 of Section 5). Implementations MUST apply this check against every ECT they hold, in the ECT store for as long as the ECT is stored and, where no store is deployed, in a cache that keeps each "jti" at least until the "exp" of its ECT plus the clock skew tolerance.

Replay of the request that carries an ECT is a different matter. Protection against it is provided by the mechanism that binds the ECT to the request, such as a Workload Proof Token [I-D.ietf-wimse-wpt] or an HTTP message signature [I-D.ietf-wimse-http-signature], and by the application. The handling of ECTs protects the record, not the action:

  • A request that is repeated with the same ECTs, for example after a lost response, is not rejected on account of the ECTs. Whether the receiver performs the requested action again is decided by the application, not by this specification.

  • The fact that a receiver holds an ECT does not show whether the action that was requested together with it was performed. A sender learns that from the ECT store, where an ECT of the receiver lists the sender's ECT in "pred", or from the application's own status interface.

Actions on systems that do not take part in the ECT exchange are covered in Section 6.

9.7. Man-in-the-Middle Protection

ECTs MUST be transmitted over TLS or mTLS connections. When used with WIMSE workload authentication ([I-D.ietf-wimse-workload-creds], [I-D.ietf-wimse-wpt]) or similar service mesh protocols, transport security is already established.

9.8. Key Compromise

If an agent's private key is compromised, an attacker can forge ECTs that appear to originate from that agent. Mitigations:

  • Implementations SHOULD use short-lived keys and rotate them frequently.

  • Private keys SHOULD be stored in hardware security modules or equivalent secure key storage.

  • The revocation check in step 6 of Section 3.4.3 is only as timely as the revocation mechanism of the identity framework. Deployments need a mechanism that takes effect within the lifetime of an ECT.

ECTs that an audit ledger recorded before the key was revoked remain valid historical records; the deployment SHOULD flag them for audit purposes. Whether an ECT predates the revocation is established by the recording time of the ledger, not by "iat", which the holder of a compromised key can set freely. An ECT that is not in a ledger and is signed with a key that was later revoked cannot be told apart from a forgery. New ECTs MUST NOT reference a parent ECT whose signing key is known to be revoked at creation time.

9.9. Collusion and DAG Integrity

A single malicious agent cannot forge parent task references because DAG validation requires parent tasks to exist in the ECT store. However, multiple colluding agents could create a false execution history. Additionally, a malicious agent may omit actual parent dependencies from "pred" to hide influences on its output; because ECTs are self-asserted (Section 9.4), no mechanism can force complete dependency declaration.

Mitigations include:

  • The ledger SHOULD be maintained by an entity independent of the workflow agents.

  • Multiple independent ledger replicas can be compared for consistency.

  • External auditors can compare the declared DAG against expected workflow patterns.

Verifiers reject cross-workflow parent references unless deployment policy explicitly permits them (step 6 of Section 5), so that an agent cannot attach its task to the history of an unrelated workflow unnoticed.

9.10. Privilege Escalation via ECTs

ECTs record execution history; they do not convey authorization. Verifiers MUST NOT interpret the presence of an ECT, or a particular set of parent references in "pred", as an authorization grant. Authorization decisions MUST remain with the deployment's identity and authorization layer.

9.11. Denial of Service

Implementations SHOULD apply rate limiting to prevent excessive ECT submissions. For L2 and L3, DAG validation follows signature verification (steps 7 and 13 of Section 3.4.3), so that no resources are spent on the DAG of unsigned or incorrectly signed tokens. L1 ECTs are cheaper to validate (no signature verification) but are correspondingly easier for an attacker to generate; L1 deployments SHOULD apply stricter rate limits to compensate.

9.12. Timestamp Accuracy

Implementations SHOULD use synchronized time sources (e.g., NTP) and SHOULD allow a configurable clock skew tolerance (RECOMMENDED: 30 seconds). Cross-organizational deployments MAY require a higher tolerance and SHOULD document the configured value.

The "iat" claim is set by the issuer. An issuer that manipulates its clock or the claim can shift the apparent time of a task within the limits that verification allows (steps 10 and 11 of Section 3.4.3, step 3 of Section 5). The order of tasks is therefore taken from the "pred" references and, at Level 3, from the sequence numbers and recording times of the audit ledger, not from "iat" alone.

9.13. ECT Size Constraints

Implementations SHOULD limit the "pred" array to a maximum of 256 entries. See Section 3.1.4 for "ect_ext" size limits. Receivers SHOULD limit the number of ECTs they process in one request and reject requests that exceed the limit.

When ECTs are transported in the Execution-Context header field, the total size of the field value is subject to practical limits imposed by HTTP servers and intermediaries. Many implementations enforce header size limits of 8 KB or 16 KB. Implementations SHOULD ensure that the total size of an ECT (including JWS overhead for L2/L3) does not exceed 8 KB when carried in the header field. ECTs that exceed HTTP header size limits SHOULD be transported in the HTTP request body instead (see Section 3.3.1 and Section 3.4.2). Deployments SHOULD monitor ECT sizes and alert when ECTs approach transport limits.

9.14. Identity Binding Security

9.14.1. JWK Set Binding

When identity is bound via JWK Set URI (see Section 3.8.3), there is a time-of-check/time-of-use gap between JWK Set refreshes. A key that has been removed from the JWK Set may still be accepted by a verifier whose cached copy has not yet been refreshed. Implementations SHOULD refresh JWK Sets at configurable intervals (RECOMMENDED: no longer than 5 minutes).

9.14.2. X.509 Binding

When identity is bound via X.509 certificates, revocation checking depends on OCSP responder or CRL distribution point availability. If the revocation source is unreachable, the verifier needs to decide whether to accept or reject the ECT. Implementations SHOULD hard-fail for L3 (reject the ECT if revocation status cannot be determined), as L3 workflows require the strongest assurance. Implementations MAY soft-fail for L2 with logging, accepting the ECT but recording the revocation check failure for subsequent audit review.

9.14.3. WIMSE Binding

When identity is bound via WIMSE trust bundles, the same time-of-check/time-of-use concern applies to trust bundle refreshes. Implementations SHOULD refresh trust bundles frequently to minimize the window during which a revoked or rotated identity remains accepted.

9.15. Audit Ledger Threats

9.15.1. Availability

If the audit ledger is unavailable in synchronous recording mode (see Section 3.5.3), all L3 workflows halt because agents cannot obtain ledger receipts. Deployments SHOULD implement ledger redundancy (e.g., multiple ledger replicas behind a load balancer) to prevent the ledger from becoming a single point of failure.

9.15.2. Split-View Attacks

A compromised ledger could present different views to different verifiers (equivocation), causing inconsistent audit state across the deployment. Deployments SHOULD use multiple independent ledger replicas and SHOULD periodically compare their state to detect divergence.

9.15.3. Truncation and Rollback

A hash chain shows that the entries it contains are unmodified and in order. It does not show that the chain is complete: a ledger operator can remove the most recent entries, or present an older state of the ledger, and the remaining chain still verifies. An inclusion proof shows that an entry is present, not that nothing was removed after it.

Detecting truncation requires a party other than the ledger to remember how far the ledger had grown. Agents SHOULD retain their ledger receipts. An auditor SHOULD keep the highest sequence number and entry hash it has verified and SHOULD check that each later state of the ledger contains that entry at that position. L3 deployments SHOULD have the ledger commit to its current head at regular intervals in a place it does not control, for example by a signed checkpoint that is handed to the auditors or recorded in an independent transparency service [RFC9943]. This document does not define a checkpoint format (Section 3.5.2).

9.15.4. Ledger Receipt Authenticity

Where a ledger signs its receipts or checkpoints and the signing key is compromised, an attacker can generate fake ledger receipts for entries that were never recorded. Ledger signing keys SHOULD be stored in hardware security modules (HSMs) and SHOULD be rotated regularly.

9.15.5. Asynchronous Recording Gap

In asynchronous recording mode (see Section 3.5.3), downstream agents act on ECTs before ledger confirmation is received. During this gap, an ECT that will ultimately fail ledger recording may already have influenced downstream workflow steps. Deployments using asynchronous recording SHOULD implement reconciliation procedures to detect and handle ECTs that fail ledger confirmation after downstream processing has begun.

An attempt record (Section 6.1) that is recorded asynchronously can be lost in this gap while its request has already reached the external system. This is the reason for the recommendation to record attempt records synchronously.

10. Privacy Considerations

10.1. Data Exposure in ECTs

ECTs necessarily reveal:

  • Agent identities ("iss", "aud") for accountability purposes

  • Action descriptions ("exec_act") for audit trail completeness

  • Timestamps ("iat", "exp") for temporal ordering

ECTs do not carry:

  • Input or output data values (ECTs carry only their hashes in "inp_hash" and "out_hash")

  • Internal computation details or intermediate steps

  • Proprietary algorithms or intellectual property

A hash does not hide data that can be guessed. If an input or output has few possible values, or is personal data from a known set such as an account or patient identifier, a party that sees the ECT can recover it by hashing the candidates. The measures in Section 3.1.3 apply; where they are not used, such hashes are to be treated as the data they stand for. The "ath" claim is the hash of a high-entropy token and does not have this weakness, but it lets a party that knows the token recognize the ECTs issued under it.

Privacy exposure is equivalent across all assurance levels: the ECT payload contains the same claims regardless of whether the ECT is unsigned (L1), signed (L2), or signed with ledger recording (L3). L3 ledger recording increases the durability of the privacy-relevant data but does not increase its scope.

10.2. Data Minimization

Implementations SHOULD minimize the information included in ECTs. The "exec_act" claim SHOULD use structured identifiers (e.g., "process_payment") rather than natural language descriptions. Extension keys in "ect_ext" (Section 3.1.4) deserve particular attention: human-readable values risk exposing sensitive operational details.

10.3. Storage and Access Control

ECTs stored in audit ledgers SHOULD be access-controlled so that only authorized auditors can read them. Implementations SHOULD consider encryption at rest for ledger storage. ECTs provide structural records of execution ordering; they are not intended for public disclosure.

Full input and output data (corresponding to the hashes in ECTs) SHOULD be stored separately from the ledger with additional access controls, since auditors may need to verify hash correctness but general access to the data values is not needed.

10.4. Workflow Topology Leakage

The DAG structure of ECTs reveals workflow topology: which agents interact, fan-out and fan-in patterns, sequential versus parallel execution, and organizational structure. At L3, this topology is permanently recorded in the audit ledger. Deployments SHOULD consider whether workflow topology constitutes sensitive information and apply appropriate access controls to ECT stores and ledgers.

10.5. Cross-Workflow Correlation

Stable agent identifiers in the "iss" claim enable cross-workflow activity correlation: an observer with access to ECTs from multiple workflows can track which agents participate in which workflows and how frequently. Deployments with privacy requirements MAY use per-workflow or rotating agent identifiers where feasible to limit cross-workflow correlation.

Equal inputs produce equal "inp_hash" values, and equal outputs equal "out_hash" values, in every workflow and every organization. An observer can therefore tell that two tasks processed the same data without knowing the data, unless the hashed octets include a random value (Section 3.1.3).

10.6. Disclosure Across Trust Domains

When a workflow crosses a trust domain boundary, the ECTs sent to the other domain disclose more than the task they record. The "pred" values, the "wid" claim, the contents of "ect_ext" and, for predecessors carried inline (Section 4.2), the "iss", "exec_act" and "iat" of earlier tasks can reveal the internal structure of the originating domain: which agents exist, how finely work is divided into tasks, where it fans out, and how long steps take.

A receiver needs the ECTs named in "pred" of the ECT addressed to it (step 2 of Section 5). It does not need their predecessors (Section 4.2). Sending only these ECTs limits what the other domain learns; the price is that the recipient cannot check the earlier ancestry. An agent that issues an ECT for a recipient in another trust domain SHOULD omit "ect_ext" members that are meaningful only within its own domain.

At L2 and L3 an ECT cannot be changed after it is signed, and an ECT recorded in a ledger stays readable to every party with access to that ledger. What an ECT discloses is therefore decided when it is issued. Deployments SHOULD decide by policy, for each recipient domain, which claims an ECT may carry, and not for each request.

This document does not define a way to hide the direct predecessors of a task from the recipient. Leaving entries out of "pred" makes the record incomplete (Section 9.9), and an ECT whose "wid" differs from that of its predecessors fails the workflow consistency check (step 6 of Section 5) unless deployment policy permits it. The Transaction Token profile for crossing trust domains takes a comparable position for authorization context: the Txn-Token does not leave its trust domain, and claims that record the internal call chain are not included in the grant that does [I-D.fletcher-transaction-token-chaining-profile].

11. IANA Considerations

11.1. Media Type Registrations

This document requests registration of the following media types in the "Media Types" registry maintained by IANA.

Both media types use the "+jwt" structured syntax suffix, which is registered in the "Structured Syntax Suffixes" registry [RFC6838] with reference to [RFC7519] and [RFC8417].

11.1.1. application/exec+jwt

Type name:

application

Subtype name:

exec+jwt

Required parameters:

none

Optional parameters:

none

Encoding considerations:

8bit; at Level 2 and Level 3, an ECT is a JWT that is a JWS using the Compact Serialization, which is a sequence of base64url-encoded values separated by period characters. At Level 1, this media type is not used; L1 ECTs use application/json.

Security considerations:

See the Security Considerations section of this document.

Interoperability considerations:

none

Published specification:

This document

Applications that use this media type:

Applications that implement agentic workflows requiring execution context tracing and audit trails.

Fragment identifier considerations:

none

Additional information:
  • Magic number(s): none

  • File extension(s): none

  • Macintosh file type code(s): none

Person and email address to contact for further information:

Christian Nennemann, ietf@nennemann.de

Intended usage:

COMMON

Restrictions on usage:

none

Author:

Christian Nennemann

Change controller:

IETF

11.1.2. application/wimse-exec+jwt

This document also registers "application/wimse-exec+jwt" as an alias for backward compatibility with version -00 of this specification. Senders SHOULD use "application/exec+jwt"; recipients accept both (Section 3.7).

Type name:

application

Subtype name:

wimse-exec+jwt

Required parameters:

none

Optional parameters:

none

Encoding considerations:

8bit; at Level 2 and Level 3, an ECT is a JWT that is a JWS using the Compact Serialization, which is a sequence of base64url-encoded values separated by period characters. At Level 1, this media type is not used; L1 ECTs use application/json.

Security considerations:

See the Security Considerations section of this document.

Interoperability considerations:

none

Published specification:

This document

Applications that use this media type:

Applications that implement agentic workflows requiring execution context tracing and audit trails.

Fragment identifier considerations:

none

Additional information:
  • Magic number(s): none

  • File extension(s): none

  • Macintosh file type code(s): none

Person and email address to contact for further information:

Christian Nennemann, ietf@nennemann.de

Intended usage:

LIMITED USE

Restrictions on usage:

Only for compatibility with implementations of version -00 of this specification.

Author:

Christian Nennemann

Change controller:

IETF

11.2. HTTP Header Field Registration

This document requests registration of the following header field in the "Hypertext Transfer Protocol (HTTP) Field Name Registry" maintained by IANA:

Field name:

Execution-Context

Status:

permanent

Specification document:

This document, Section 4

11.3. JWT Claims Registration

This document requests registration of the following claims in the "JSON Web Token Claims" registry maintained by IANA. The references are to sections of this document.

Table 1: JWT Claims Registrations
Claim Name Claim Description Change Controller Reference
wid Workflow Identifier IETF Section 3.1.2
exec_act Action/Task Type IETF Section 3.1.2
pred Predecessor Task Identifiers IETF Section 3.1.2
exec_status Execution Status IETF Section 3.1.2
inp_hash Input Data Hash IETF Section 3.1.3
out_hash Output Data Hash IETF Section 3.1.3
ect_ext Extension Object IETF Section 3.1.4

The "ath" claim is already registered (Section 4.2 of [RFC9449]). This document uses it with the same value format and requests no change to its registration.

12. References

12.1. Normative References

[I-D.ietf-wimse-workload-creds]
Campbell, B., Salowey, J. A., Schwenkschuster, A., Sheffer, Y., and Y. Rosomakho, "WIMSE Workload Credentials", Work in Progress, Internet-Draft, draft-ietf-wimse-workload-creds-03, , <https://datatracker.ietf.org/doc/html/draft-ietf-wimse-workload-creds-03>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC5234]
Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax Specifications: ABNF", STD 68, RFC 5234, DOI 10.17487/RFC5234, , <https://www.rfc-editor.org/rfc/rfc5234>.
[RFC7515]
Jones, M., Bradley, J., and N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, DOI 10.17487/RFC7515, , <https://www.rfc-editor.org/rfc/rfc7515>.
[RFC7517]
Jones, M., "JSON Web Key (JWK)", RFC 7517, DOI 10.17487/RFC7517, , <https://www.rfc-editor.org/rfc/rfc7517>.
[RFC7518]
Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, DOI 10.17487/RFC7518, , <https://www.rfc-editor.org/rfc/rfc7518>.
[RFC7519]
Jones, M., Bradley, J., and N. Sakimura, "JSON Web Token (JWT)", RFC 7519, DOI 10.17487/RFC7519, , <https://www.rfc-editor.org/rfc/rfc7519>.
[RFC7638]
Jones, M. and N. Sakimura, "JSON Web Key (JWK) Thumbprint", RFC 7638, DOI 10.17487/RFC7638, , <https://www.rfc-editor.org/rfc/rfc7638>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC8725]
Sheffer, Y., Hardt, D., and M. Jones, "JSON Web Token Best Current Practices", BCP 225, RFC 8725, DOI 10.17487/RFC8725, , <https://www.rfc-editor.org/rfc/rfc8725>.
[RFC9110]
Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Semantics", STD 97, RFC 9110, DOI 10.17487/RFC9110, , <https://www.rfc-editor.org/rfc/rfc9110>.
[RFC9449]
Fett, D., Campbell, B., Bradley, J., Lodderstedt, T., Jones, M., and D. Waite, "OAuth 2.0 Demonstrating Proof of Possession (DPoP)", RFC 9449, DOI 10.17487/RFC9449, , <https://www.rfc-editor.org/rfc/rfc9449>.
[RFC9562]
Davis, K., Peabody, B., and P. Leach, "Universally Unique IDentifiers (UUIDs)", RFC 9562, DOI 10.17487/RFC9562, , <https://www.rfc-editor.org/rfc/rfc9562>.

12.2. Informative References

[AgentRFC]
Zheng, S. and Q. Zhang, "AgentRFC: Security Design Principles and Conformance Testing for Agent Protocols", arXiv 2603.23801, , <https://arxiv.org/abs/2603.23801>.
[I-D.araut-oauth-transaction-tokens-for-agents]
Raut, A., "Transaction Tokens For Agents", Work in Progress, Internet-Draft, draft-araut-oauth-transaction-tokens-for-agents-03, , <https://datatracker.ietf.org/doc/html/draft-araut-oauth-transaction-tokens-for-agents-03>.
[I-D.carleton-workload-authz-grant]
Carleton, P., Steele, N., Parecki, A., Schwenkschuster, A., and B. Campbell, "Workload Authorization Grant", Work in Progress, Internet-Draft, draft-carleton-workload-authz-grant-02, , <https://datatracker.ietf.org/doc/html/draft-carleton-workload-authz-grant-02>.
[I-D.emirdag-scitt-ai-agent-execution]
Emirdag, P. and D. Feichtinger, "AI Agent Execution Profile of SCITT", Work in Progress, Internet-Draft, draft-emirdag-scitt-ai-agent-execution-01, , <https://datatracker.ietf.org/doc/html/draft-emirdag-scitt-ai-agent-execution-01>.
[I-D.fletcher-transaction-token-chaining-profile]
Fletcher, G., Kasselman, P., and S. O'Dell, "Transaction Token Authorization Grant Profile for OAuth Identity and Authorization Chaining", Work in Progress, Internet-Draft, draft-fletcher-transaction-token-chaining-profile-02, , <https://datatracker.ietf.org/doc/html/draft-fletcher-transaction-token-chaining-profile-02>.
[I-D.gilda-audit-agent-audit-record]
Gilda, S., "An Audit Record Format for AI Agent Authorization Decisions", Work in Progress, Internet-Draft, draft-gilda-audit-agent-audit-record-04, , <https://datatracker.ietf.org/doc/html/draft-gilda-audit-agent-audit-record-04>.
[I-D.ietf-httpapi-idempotency-key-header]
Jena, J., Dalal, S., and D. Tishkin, "The Idempotency-Key HTTP Header Field", Work in Progress, Internet-Draft, draft-ietf-httpapi-idempotency-key-header-09, , <https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-idempotency-key-header-09>.
[I-D.ietf-oauth-identity-assertion-authz-grant]
Parecki, A., McGuinness, K., and B. Campbell, "Identity Assertion JWT Authorization Grant", Work in Progress, Internet-Draft, draft-ietf-oauth-identity-assertion-authz-grant-06, , <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-identity-assertion-authz-grant-06>.
[I-D.ietf-oauth-transaction-tokens]
Tulshibagwale, A., Fletcher, G., and P. Kasselman, "Transaction Tokens", Work in Progress, Internet-Draft, draft-ietf-oauth-transaction-tokens-11, , <https://datatracker.ietf.org/doc/html/draft-ietf-oauth-transaction-tokens-11>.
[I-D.ietf-wimse-aims]
Kasselman, P., Lombardo, J., Rosomakho, Y., Campbell, B., Steele, N., and A. Parecki, "AI Identity Management System", Work in Progress, Internet-Draft, draft-ietf-wimse-aims-01, , <https://datatracker.ietf.org/doc/html/draft-ietf-wimse-aims-01>.
[I-D.ietf-wimse-arch]
Salowey, J. A., Rosomakho, Y., and H. Tschofenig, "Workload Identity in a Multi System Environment (WIMSE) Architecture", Work in Progress, Internet-Draft, draft-ietf-wimse-arch-09, , <https://datatracker.ietf.org/doc/html/draft-ietf-wimse-arch-09>.
[I-D.ietf-wimse-http-signature]
Salowey, J. A. and Y. Sheffer, "WIMSE Workload-to-Workload Authentication with HTTP Signatures", Work in Progress, Internet-Draft, draft-ietf-wimse-http-signature-09, , <https://datatracker.ietf.org/doc/html/draft-ietf-wimse-http-signature-09>.
[I-D.ietf-wimse-wpt]
Campbell, B. and A. Schwenkschuster, "WIMSE Workload Proof Token", Work in Progress, Internet-Draft, draft-ietf-wimse-wpt-02, , <https://datatracker.ietf.org/doc/html/draft-ietf-wimse-wpt-02>.
[I-D.king-dawn-requirements]
King, D. and A. Farrel, "Requirements for the Discovery of Agents With Names (DAWN)", Work in Progress, Internet-Draft, draft-king-dawn-requirements-02, , <https://datatracker.ietf.org/doc/html/draft-king-dawn-requirements-02>.
[I-D.kuehlewind-audit-architecture]
Kühlewind, M. and H. Birkholz, "An Architecture for Auditing Agent Delegation and Interactions", Work in Progress, Internet-Draft, draft-kuehlewind-audit-architecture-01, , <https://datatracker.ietf.org/doc/html/draft-kuehlewind-audit-architecture-01>.
[I-D.mcguinness-oauth-actor-profile]
McGuinness, K., "OAuth Actor Profile for Delegation", Work in Progress, Internet-Draft, draft-mcguinness-oauth-actor-profile-02, , <https://datatracker.ietf.org/doc/html/draft-mcguinness-oauth-actor-profile-02>.
[I-D.munoz-wimse-authorization-evidence]
Munoz, C., "Signed Authorization-Evidence Records for AI Agent Actions Using WIMSE Workload Identity", Work in Progress, Internet-Draft, draft-munoz-wimse-authorization-evidence-02, , <https://datatracker.ietf.org/doc/html/draft-munoz-wimse-authorization-evidence-02>.
[I-D.sahu-agent-action-receipts]
sahu, N., "Signed, Hash-Chained Action Receipts for AI Agents", Work in Progress, Internet-Draft, draft-sahu-agent-action-receipts-01, , <https://datatracker.ietf.org/doc/html/draft-sahu-agent-action-receipts-01>.
[I-D.zambo-aer1-wimse-mapping]
Zambo, B., "AER-1 Receipts as Audit Records for WIMSE AIMS", Work in Progress, Internet-Draft, draft-zambo-aer1-wimse-mapping-03, , <https://datatracker.ietf.org/doc/html/draft-zambo-aer1-wimse-mapping-03>.
[I-D.zhang-audit-record-limits]
Zhang, K., "What an Agent Audit Record Can and Cannot Establish", Work in Progress, Internet-Draft, draft-zhang-audit-record-limits-00, , <https://datatracker.ietf.org/doc/html/draft-zhang-audit-record-limits-00>.
[MIGT]
Kurtz, A. and K. Krawiecka, "Who Governs the Machine? A Machine Identity Governance Taxonomy (MIGT) for AI Systems Operating Across Enterprise and Geopolitical Boundaries", arXiv 2604.06148, , <https://arxiv.org/abs/2604.06148>.
[NIST-NCCoE-AI-Agents]
National Institute of Standards and Technology (NIST) National Cybersecurity Center of Excellence (NCCoE), "Accelerating the Adoption of Software and Artificial Intelligence Agent Identity and Authorization", NCCoE Concept Paper, , <https://www.nccoe.nist.gov/projects/software-and-ai-agent-identity-and-authorization>.
[OPENTELEMETRY]
Cloud Native Computing Foundation, "OpenTelemetry Specification", <https://opentelemetry.io/docs/specs/otel/>.
[PROV-DM]
Moreau, L. and P. Missier, "PROV-DM: The PROV Data Model", W3C REC-prov-dm-20130430, , <https://www.w3.org/TR/2013/REC-prov-dm-20130430/>.
[PROV-O]
Lebo, T., Sahoo, S., and D. McGuinness, "PROV-O: The PROV Ontology", W3C REC-prov-o-20130430, , <https://www.w3.org/TR/2013/REC-prov-o-20130430/>.
[RFC6749]
Hardt, D., Ed., "The OAuth 2.0 Authorization Framework", RFC 6749, DOI 10.17487/RFC6749, , <https://www.rfc-editor.org/rfc/rfc6749>.
[RFC6838]
Freed, N., Klensin, J., and T. Hansen, "Media Type Specifications and Registration Procedures", BCP 13, RFC 6838, DOI 10.17487/RFC6838, , <https://www.rfc-editor.org/rfc/rfc6838>.
[RFC6920]
Farrell, S., Kutscher, D., Dannewitz, C., Ohlman, B., Keranen, A., and P. Hallam-Baker, "Naming Things with Hashes", RFC 6920, DOI 10.17487/RFC6920, , <https://www.rfc-editor.org/rfc/rfc6920>.
[RFC7942]
Sheffer, Y. and A. Farrel, "Improving Awareness of Running Code: The Implementation Status Section", BCP 205, RFC 7942, DOI 10.17487/RFC7942, , <https://www.rfc-editor.org/rfc/rfc7942>.
[RFC8417]
Hunt, P., Ed., Jones, M., Denniss, W., and M. Ansari, "Security Event Token (SET)", RFC 8417, DOI 10.17487/RFC8417, , <https://www.rfc-editor.org/rfc/rfc8417>.
[RFC8693]
Jones, M., Nadalin, A., Campbell, B., Ed., Bradley, J., and C. Mortimore, "OAuth 2.0 Token Exchange", RFC 8693, DOI 10.17487/RFC8693, , <https://www.rfc-editor.org/rfc/rfc8693>.
[RFC8785]
Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, DOI 10.17487/RFC8785, , <https://www.rfc-editor.org/rfc/rfc8785>.
[RFC9334]
Birkholz, H., Thaler, D., Richardson, M., Smith, N., and W. Pan, "Remote ATtestation procedureS (RATS) Architecture", RFC 9334, DOI 10.17487/RFC9334, , <https://www.rfc-editor.org/rfc/rfc9334>.
[RFC9396]
Lodderstedt, T., Richer, J., and B. Campbell, "OAuth 2.0 Rich Authorization Requests", RFC 9396, DOI 10.17487/RFC9396, , <https://www.rfc-editor.org/rfc/rfc9396>.
[RFC9421]
Backman, A., Ed., Richer, J., Ed., and M. Sporny, "HTTP Message Signatures", RFC 9421, DOI 10.17487/RFC9421, , <https://www.rfc-editor.org/rfc/rfc9421>.
[RFC9651]
Nottingham, M. and P. Kamp, "Structured Field Values for HTTP", RFC 9651, DOI 10.17487/RFC9651, , <https://www.rfc-editor.org/rfc/rfc9651>.
[RFC9943]
Birkholz, H., Delignat-Lavaud, A., Fournet, C., Deshpande, Y., and S. Lasker, "An Architecture for Trustworthy and Transparent Digital Supply Chains", RFC 9943, DOI 10.17487/RFC9943, , <https://www.rfc-editor.org/rfc/rfc9943>.
[SPIFFE]
"SPIFFE Concepts", <https://spiffe.io/docs/latest/spiffe-about/spiffe-concepts/>.

Use Cases

This section describes representative use cases demonstrating how ECTs provide structured execution records at different assurance levels.

Note: task identifiers in this section are abbreviated for readability. In production, all "jti" values are required to be UUIDs per Section 3.1.1.

Cross-Organization Financial Trading (L3)

In a cross-organization trading workflow, an investment bank's agents coordinate with an external credit rating agency. The agents operate in separate trust domains with a federation relationship. The DAG records that independent assessments from both organizations were completed before trade execution.

This workflow uses Level 3 (JOSE signing with audit ledger) because regulatory requirements (e.g., MiFID II) mandate tamper-evident, auditable execution records.

Trust Domain: bank.example
  Agent A1 (Portfolio Risk):
    jti: task-001    pred:[]
    iss: spiffe://bank.example/agent/risk
    exec_act: analyze_portfolio_risk

Trust Domain: ratings.example (external)
  Agent B1 (Credit Rating):
    jti: task-002    pred:[]
    iss: spiffe://ratings.example/agent/credit
    exec_act: assess_credit_rating

Trust Domain: bank.example
  Agent A2 (Compliance):
    jti: task-003    pred:[task-001, task-002]
    iss: spiffe://bank.example/agent/compliance
    exec_act: verify_trade_compliance

  Agent A3 (Execution):
    jti: task-004    pred:[task-003]
    iss: spiffe://bank.example/agent/execution
    exec_act: execute_trade
Figure 5: Cross-Organization Trading Workflow (L3)

The resulting DAG:

task-001 (analyze_portfolio_risk)   task-002 (assess_credit_rating)
  [bank.example]                      [ratings.example]
          \                              /
           v                            v
         task-003 (verify_trade_compliance)
           [bank.example]
                    |
                    v
         task-004 (execute_trade)
           [bank.example]
Figure 6: Cross-Organization DAG

Task 003 has two parents from different trust domains, demonstrating cross-organizational fan-in. The compliance agent verifies both parent ECTs, one signed by a local key and one by a federated key from the rating agency's trust domain.

Multi-Vendor SaaS Integration (L2)

In a document processing pipeline, a customer's orchestration agent coordinates with third-party vendor agents across organizational boundaries. The customer uploads documents that pass through an OCR vendor for text extraction, then fan out to a translation vendor for multi-language output, before results converge back at the customer's storage agent.

This workflow uses Level 2 (JOSE signing without audit ledger) because the cross-organization boundary requires verifiable attribution (each vendor's record of its step has to be attributable to that vendor) but no regulatory audit ledger is mandated.

Trust Domain: customer.example
  Agent C1 (Orchestrator):
    jti: task-201    pred:[]
    iss: spiffe://customer.example/agent/orchestrator
    exec_act: initiate_document_pipeline

Trust Domain: ocr-vendor.example (external)
  Agent V1 (OCR Extractor):
    jti: task-202    pred:[task-201]
    iss: spiffe://ocr-vendor.example/agent/ocr
    exec_act: extract_text

Trust Domain: translate-vendor.example (external)
  Agent V2a (Translator EN to DE):
    jti: task-203    pred:[task-202]
    iss: spiffe://translate-vendor.example/agent/translate
    exec_act: translate_de

  Agent V2b (Translator EN to FR):
    jti: task-204    pred:[task-202]
    iss: spiffe://translate-vendor.example/agent/translate
    exec_act: translate_fr

Trust Domain: customer.example
  Agent C2 (Storage):
    jti: task-205    pred:[task-203, task-204]
    iss: spiffe://customer.example/agent/storage
    exec_act: store_results
Figure 7: Multi-Vendor SaaS Document Pipeline (L2)

The resulting DAG:

task-201 (initiate_document_pipeline)
  [customer.example]
           |
           v
task-202 (extract_text)
  [ocr-vendor.example]
        /            \
       v              v
task-203             task-204
(translate_de)       (translate_fr)
[translate-vendor]   [translate-vendor]
        \              /
         v            v
task-205 (store_results)
  [customer.example]
Figure 8: Multi-Vendor SaaS DAG

Task 202 fans out to two parallel translation tasks (203 and 204) at the translation vendor, demonstrating cross-vendor fan-out. Task 205 performs fan-in, requiring both translations to complete before storing the combined results. Each vendor's ECT is signed with that vendor's private key, so that each record can be attributed to its vendor without an external audit ledger.

Internal Microservice Mesh (L1)

In an internal AI platform, multiple microservices coordinate to process requests. All agents operate within a single trust domain behind a service mesh with mTLS. Verifiable attribution is not required; the ECTs are used for observability and debugging.

This workflow uses Level 1 (unsigned JSON) because all agents are internal, the transport is fully trusted, and the overhead of cryptographic signing is not justified.

Trust Domain: internal.example
  Agent S1 (Preprocessor):
    jti: task-101    pred:[]
    exec_act: preprocess_input

  Agent S2 (Model Inference):
    jti: task-102    pred:[task-101]
    exec_act: run_inference

  Agent S3 (Postprocessor):
    jti: task-103    pred:[task-102]
    exec_act: format_output
Figure 9: Internal Microservice Workflow (L1)

Dev-SDLC (mixed L1-L3)

A software development lifecycle provides an example of mixed assurance levels within a single continuous-delivery workflow in which some steps are performed by AI-assisted agents. A commit event triggers an internal build agent, which produces a versioned artifact. Its ECT is signed (L2) because it is consumed by agents in other trust domains. Three parallel agents then process the artifact: an LLM-based code-review agent operated by an external vendor (L2), an SBOM and vulnerability scanner operated by a separate external vendor (L2), and an internal test runner (L1). Their ECTs fan in to a staging deployment agent (L2). Once staging tests pass, a human approver decides on the promotion. The approval decision is recorded as an ECT of its own (L3). Separately, and before the promotion, the approver's decision can be expressed as an authorization for the production deployment agent, for example an OAuth access token with fine-grained authorization details [RFC9396] (see Section 1.3); that authorization is checked before the promotion and is not part of the ECT DAG. The production deployment agent (L3) then performs the promotion and records its ECT on the audit ledger. A rollback agent (L3) references the promotion ECT in "pred", so that the rollback is chained to the promotion it reverses.

This workflow uses three assurance levels because each phase carries different accountability requirements. The internal test step (L1) does not cross a trust boundary and its ECT is only consumed internally. Steps whose ECTs are consumed across vendor boundaries (L2) need signed ECTs so that each record can be attributed to the party that issued it. The approval, the production promotion and any rollback (L3) need tamper-evident audit-ledger entries to satisfy change-management obligations (e.g., SOC 2 or ISO 27001 change records).

Trust Domain: internal.example
  Agent D1 (Build, L2):
    jti: task-301    pred:[]
    iss: spiffe://internal.example/agent/build
    exec_act: build_artifact

  Agent D5 (Test Runner, L1):
    jti: task-303    pred:[task-301]
    iss: spiffe://internal.example/agent/test
    exec_act: run_tests

Trust Domain: llm-vendor.example (external)
  Agent D2 (LLM Code Review, L2):
    jti: task-302    pred:[task-301]
    iss: spiffe://llm-vendor.example/agent/review
    exec_act: llm_code_review

Trust Domain: scan-vendor.example (external)
  Agent D3 (SBOM/Vuln Scanner, L2):
    jti: task-304    pred:[task-301]
    iss: spiffe://scan-vendor.example/agent/scanner
    exec_act: scan_sbom_vulnerabilities

Trust Domain: internal.example
  Agent D4 (Staging Deploy, L2):
    jti: task-305    pred:[task-302, task-303, task-304]
    iss: spiffe://internal.example/agent/staging
    exec_act: deploy_staging

  Approval Service D6 (records the human decision, L3):
    jti: task-306    pred:[task-305]
    iss: spiffe://internal.example/agent/approval
    exec_act: approve_production_promotion

  Agent D7 (Production Deploy, L3):
    jti: task-307    pred:[task-306]
    iss: spiffe://internal.example/agent/prod-deploy
    exec_act: promote_to_production

  Agent D8 (Rollback, L3):
    jti: task-308    pred:[task-307]
    iss: spiffe://internal.example/agent/rollback
    exec_act: rollback_production
Figure 10: Dev-SDLC Workflow (mixed L1-L3)

The resulting DAG:

             task-301 (build_artifact)
             [internal.example, L2]
            /          |           \
           v           v            v
    task-302        task-303       task-304
    (llm_code_      (run_tests)    (scan_sbom_
     review)        [internal,     vulnerabilities)
    [llm-vendor,     L1]           [scan-vendor, L2]
     L2]               |            /
           \           |           /
            v          v          v
             task-305 (deploy_staging)
             [internal.example, L2]
                       |
                       v
             task-306 (approve_production_promotion)
             [internal.example, L3]
                       |
                       v
             task-307 (promote_to_production)
             [internal.example, L3]
                       |
                       v
             task-308 (rollback_production)
             [internal.example, L3]
Figure 11: Dev-SDLC DAG

Three properties distinguish this use case. First, ECTs from external AI-assisted agents (task-302 from llm-vendor.example, task-304 from scan-vendor.example) are consumed as "pred" references by the internal staging deploy agent (task-305), so the internal agent has to verify externally signed ECTs before proceeding. Second, the approval is recorded as an ECT (task-306) that precedes the promotion ECT (task-307) in the DAG. The ledger therefore shows that the approval was recorded before the promotion was recorded. Whether the promotion was authorized is decided by the authorization token, not by the ECT. Third, the rollback ECT (task-308) chains to the promotion ECT (task-307), so the audit ledger captures the promote-then-rollback sequence as one traceable chain.

Refunds through an External Payment Provider (L3)

A support organization lets AI agents issue refunds through a payment provider. The provider does not take part in the ECT exchange. One support case covers two orders, which two refund agents handle at the same time. Both draw on one refund limit for the case, managed by a limit service of the organization. The response to one refund request is lost.

This workflow uses Level 3 because an attempt record has to be in the audit ledger before the request leaves the organization, and because open attempts can be found reliably only in a complete ECT store (Section 6).

Trust Domain: shop.example
  Agent R1 (Triage):
    jti: task-401    pred:[]
    iss: spiffe://shop.example/agent/triage
    exec_act: classify_refund_case

  Limit Service R2 (reservation for Agent R3, granted):
    jti: task-402    pred:[task-401]
    iss: spiffe://shop.example/service/refund-limit
    exec_act: reserve_refund_limit
    exec_status: performed

  Limit Service R2 (reservation for Agent R4, refused):
    jti: task-403    pred:[task-401]
    iss: spiffe://shop.example/service/refund-limit
    exec_act: reserve_refund_limit
    exec_status: not_performed

  Agent R3 (Refund, first order; before sending the request):
    jti: task-404    pred:[task-402]
    iss: spiffe://shop.example/agent/refund-a
    exec_act: issue_refund
    exec_status: intended

  Agent R3 (no response from the provider):
    jti: task-405    pred:[task-404]
    iss: spiffe://shop.example/agent/refund-a
    exec_act: issue_refund
    exec_status: unknown

  Agent R4 (Refund, second order):
    jti: task-406    pred:[task-403]
    iss: spiffe://shop.example/agent/refund-b
    exec_act: escalate_to_human

  Agent R5 (Reconciliation, from the provider's records):
    jti: task-407    pred:[task-404, task-405]
    iss: spiffe://shop.example/agent/reconcile
    exec_act: issue_refund
    exec_status: performed

  Limit Service R2:
    jti: task-408    pred:[task-402, task-407]
    iss: spiffe://shop.example/service/refund-limit
    exec_act: settle_refund_limit
Figure 12: Refund Workflow with a Lost Response (L3)

The resulting DAG:

            task-401 (classify_refund_case)
              /                      \
             v                        v
task-402 (reserve_refund_   task-403 (reserve_refund_
 limit, performed)           limit, not_performed)
    |         \                       |
    v          \                      v
task-404        \            task-406 (escalate_to_human)
(issue_refund,   \
 intended)        \
    |      \       \
    v       \       \
task-405     |       |
(issue_      |       |
 refund,     |       |
 unknown)    |       |
    \        |       |
     v       v       |
task-407             |
(issue_refund,       |
 performed)          |
          \          |
           v         v
task-408 (settle_refund_limit)
Figure 13: Refund DAG

Four properties distinguish this use case. First, the attempt record (task-404) is recorded in the audit ledger before the refund request is sent. When the response is lost, the ledger contains an open attempt, not a gap. Second, Agent R3 does not guess. It issues an unknown-outcome record (task-405), and from then until task-407 an auditor sees an attempt whose effect is undetermined. Third, the reconciliation agent queries the provider's own records. Because R3 used the "jti" of task-404 as the idempotency key of the refund request, the provider's refund record names that attempt. The outcome record (task-407) closes the attempt, and its "out_hash" covers the provider's record. Fourth, the limit service decides on the two reservations in sequence, and the ledger sequence numbers show that task-402 was recorded before task-403. The second reservation was refused because the first one was held. It stayed held while the outcome of task-404 was unknown, and was settled (task-408) only on the basis of the outcome record.

The ECTs do not enforce the limit and do not prevent a second refund. The limit service and the provider's idempotency handling do that. The ECTs record what each of them decided and what is known about the result.

Model Update and Validation Evidence in an Analysis Pipeline (L3)

A laboratory runs an analysis pipeline in which a machine learning model classifies measurement data. The model is retrained from time to time. Before a new version is used for routine analyses it has to be validated, and a responsible person has to approve the release on the basis of the validation report. The report is generated by the pipeline itself. Later, an auditor asks two questions: on which evidence was this version released, and which analyses were made with which version?

The update workflow uses Level 3, because the release decision and the evidence behind it have to be reconstructed years later. For the same reason the ledger retains the verification material of each entry (Section 7). Routine analyses are recorded in the same ledger.

Trust Domain: lab.example

Workflow U (model update):
  Agent M1 (Training):
    jti: task-501    pred:[]
    iss: spiffe://lab.example/agent/training
    exec_act: train_model

  Agent M2 (Validation Run):
    jti: task-502    pred:[task-501]
    iss: spiffe://lab.example/agent/validation
    exec_act: run_validation

  Agent M3 (Report Generation):
    jti: task-503    pred:[task-502]
    iss: spiffe://lab.example/agent/reporting
    exec_act: generate_validation_report

  Approval Service M4 (records the human decision):
    jti: task-504    pred:[task-503]
    iss: spiffe://lab.example/service/approval
    exec_act: approve_model_release

  Agent M5 (Release):
    jti: task-505    pred:[task-504]
    iss: spiffe://lab.example/agent/release
    exec_act: release_model

Workflow A (one routine analysis, after the release):
  Agent A1 (Classification):
    jti: task-511    pred:[task-505]
    iss: spiffe://lab.example/agent/classify
    exec_act: classify_sample

  Agent A2 (Result Report):
    jti: task-512    pred:[task-511]
    iss: spiffe://lab.example/agent/reporting
    exec_act: generate_result_report
Figure 14: Model Update and Routine Analysis (L3)

The hash claims carry the connection between the steps and the artifacts. The "out_hash" of task-501 is the hash of the model artifact. The "inp_hash" of task-502 covers a manifest that lists the hash of that artifact and the hash of the validation data set, and its "out_hash" covers the validation results. The "out_hash" of task-503 is the hash of the validation report as it is filed. The "inp_hash" of task-504 is that same hash, which shows which report was presented for the decision, and its "out_hash" covers the approval record as the approval system stores it, including the electronic signature of the person. The "inp_hash" of task-511 covers a manifest with the hash of the sample data and the hash of the model artifact.

Four properties distinguish this use case. First, the evidence carries its origin. A reader who holds the validation report can compare its hash with task-503 and follow "pred" to the validation run, the data set and the model version it belongs to. A report that was edited after generation, or that belongs to another model version, does not match. Second, the release (task-505) names the approval (task-504), and the approval names the report (task-503). A release without a validation report is therefore visible in the ledger. Whether the approval was given by an authorized person is decided by the authorization layer, not by the ECT (Section 1.3). Third, each routine analysis names the release of the model version it used. This is a reference from one workflow to another, which the deployment policy permits for release ECTs (step 6 of Section 5). If a model version is later found to be faulty, the lookup by predecessor (Section 7) returns the analyses that were made with it. Fourth, a validation run that finds defects is still a performed task: its result is in its output, and no release follows. If the run itself fails, it is recorded with "exec_status" "not_performed".

Sample data can contain identifiers that are easy to guess. The manifest of task-511 therefore includes a random value that is stored with the sample record (Section 3.1.3).

The same structure applies when a pipeline produces evidence for a change other than a model update, for example a comparison run after a software component of the pipeline was replaced: the task that generates the evidence document records the document's hash, and its predecessors lead to the runs and inputs the document is based on.

Mapping to W3C PROV-O

This appendix is informative. It describes how a set of verified ECTs can be exported to the PROV Ontology (PROV-O) [PROV-O], the OWL encoding of the PROV Data Model [PROV-DM], so that ECT audit data can be processed by provenance-aware tools. The export is a derived view; the signed ECTs remain the evidence.

Table 2: ECT to PROV-O Mapping
ECT element PROV-O term Notes
ECT (the task it records) prov:Activity IRI derived from "jti", e.g. urn:uuid:<jti>
"exec_act" no direct equivalent deployment-specific property with a literal value, e.g. ex:action; rdf:type takes a class, not a string
"iss" prov:Agent (prov:SoftwareAgent), linked with prov:wasAssociatedWith in the WIMSE binding, "iss" equals the WIT "sub"
"inp_hash" prov:Entity, linked from the Activity with prov:used Entity IRI is a Named Information URI [RFC6920]: ni:///sha-256;<inp_hash>
"out_hash" prov:Entity, linked with prov:wasGeneratedBy (inverse prov:generated) ni:///sha-256;<out_hash>
"pred" prov:wasInformedBy one statement per predecessor "jti"
"iat" prov:generatedAtTime of the record upper bound for the end of the Activity
"wid" no direct equivalent deployment-specific property, e.g. dcterms:isPartOf
"aud", "exp", "ath", "ect_ext" not mapped transport, freshness and deployment data

The mapping applies to ECTs that record a performed task ("exec_status" absent or "performed"). An ECT with another status does not describe a completed activity and is not exported as a prov:Activity by this mapping.

The Named Information URI fits the hash claims directly, since both use the unpadded base64url encoding of a SHA-256 hash. An Entity identified this way stands for "the data with this hash"; the export does not need access to the data itself.

The statements derived from one ECT are best placed in a prov:Bundle whose IRI identifies the source ECT, for example ni:///sha-256; followed by the hash of the JWS Compact Serialization, with prov:wasAttributedTo pointing to the issuing agent. This keeps the link from each exported statement to the signed token, so a consumer can go back to the ECT and verify it.

The following Turtle fragment shows the export of the payload in Figure 1, together with a successor task whose ECT lists that payload's "jti" in "pred". The "ex:" prefix stands for a deployment-chosen namespace.

@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix ex:   <https://example.com/ect#> .

<urn:uuid:550e8400-e29b-41d4-a716-446655440001>
    a prov:Activity ;
    ex:action "recommend_treatment" ;
    prov:wasAssociatedWith <spiffe://example.com/agent/clinical> ;
    prov:used
      <ni:///sha-256;n4bQgYhMfWWaL-qgxVrQFaO_TxsrC4Is0V1sFbDwCgg> ;
    ex:workflow <urn:uuid:a0b1c2d3-e4f5-6789-abcd-ef0123456789> .

<ni:///sha-256;LCa0a2j_xo_5m0U8HTBBNBNCLXBkg7-g-YpeiGJm564>
    a prov:Entity ;
    prov:wasGeneratedBy
      <urn:uuid:550e8400-e29b-41d4-a716-446655440001> .

<spiffe://example.com/agent/clinical> a prov:SoftwareAgent .

# Successor task whose ECT has
# "pred": ["550e8400-e29b-41d4-a716-446655440001"]
<urn:uuid:550e8400-e29b-41d4-a716-446655440002>
    a prov:Activity ;
    prov:wasInformedBy
      <urn:uuid:550e8400-e29b-41d4-a716-446655440001> .
Figure 15: PROV-O Export of the Example ECT (Turtle)

An exporter is expected to export only ECTs that passed verification at the deployment's minimum assurance level, and to record that level with each Bundle. The export inherits the limits described in Section 9.4: a PROV statement derived from an ECT says what the issuing agent claimed, not what was independently observed. The privacy considerations in Section 10 apply to the exported graph as they apply to the ECTs.

Document History

Note to the RFC Editor: please remove this section before publication.

Changes from -00 to -01

Version -00 was submitted on 2026-02-25 and expired. This version includes all changes made since then.

  • Positioned ECTs as records of execution, intended as evidence for auditable or regulated AI-assisted execution; added Section 1.3 separating ECTs from authorization tokens (issued before an action, such as OAuth access tokens) and from Transaction Tokens.

  • Added three assurance levels: L1 (unsigned JSON), L2 (JWS, the -00 model) and L3 (JWS with an audit ledger providing a hash chain, commitment proofs and receipts), with level detection, level selection guidance and downgrade-attack considerations.

  • Made ECTs identity-framework agnostic with abstract identity binding requirements and WIMSE, X.509 and JWK Set bindings. In the WIMSE binding, "kid" is the JWK Thumbprint of the workload key in the WIT.

  • Renamed claims: "par" to "pred" and "ext" to "ect_ext"; made the "ect_ext" size and depth limits mandatory.

  • Changed the preferred "typ" to "exec+jwt" ("wimse-exec+jwt" is still accepted) and registered "application/exec+jwt" with "application/wimse-exec+jwt" as an alias.

  • Defined the Execution-Context field value as a list with ABNF, allowed L2/L3 ECTs in the message body, and added HTTP error handling guidance (403).

  • Updated WIMSE references after the split of the service-to-service protocol: WIT [I-D.ietf-wimse-workload-creds], WPT [I-D.ietf-wimse-wpt]; described binding a WPT to an ECT with the "oth" claim.

  • Added privacy considerations on workflow topology leakage, cross-workflow correlation and disclosure across trust domains (Section 10.6).

  • Stated that an ECT is not a credential and is not sent in the Authorization header field, which carries the WPT (Section 4).

  • Added use cases for L2, L1 and mixed-level deployments, and an L3 use case on the validation evidence for a model update.

  • Added Section 6 on tasks that act on external systems: attempt, outcome and unknown-outcome records, repeated requests, and limits shared by concurrent tasks, with a use case. Added the claims "exec_status" (whether the task was carried out) and "ath" (hash of the access token under which it was carried out). Stated that replay detection concerns ECTs, not the actions they accompany (Section 9.6), and that an identical ECT presented again is a repeated presentation, not an error.

  • L2 verification checks the algorithm against the identity credential before the signature is verified (steps 5 to 7). An L1 ECT in a message body is the JSON object itself.

  • Added a ledger requirement to retain the keys and identity credentials needed to verify recorded ECTs after the credentials have expired (Section 7).

  • Added an Implementation Status section (Section 8) and an informative mapping to PROV-O (Appendix "Mapping to W3C PROV-O").

  • Expanded and updated Related Work (SCITT is now [RFC9943]; SCITT AI agent execution profile, DAWN, RATS, agent protocol analyses; AIMS, the OAuth Actor Profile, JWT authorization grants across trust domains, see Appendix "JWT Authorization Grants Across Trust Domains", and the architecture for auditing agent delegation and interactions, see Appendix "Auditing of Agent Delegation and Interactions").

Acknowledgments

The author thanks the WIMSE working group for their foundational work on workload identity in multi-system environments. The WIMSE concepts of Workload Identity Tokens and Workload Proof Tokens provided the original motivation for execution context tracing and remain a primary identity binding for ECTs.

Author's Address

Christian Nennemann
Independent Researcher