diff --git a/draft-nennemann-wimse-ect-00.html b/draft-nennemann-wimse-ect-00.html index 2161056..c1d91ac 100644 --- a/draft-nennemann-wimse-ect-00.html +++ b/draft-nennemann-wimse-ect-00.html @@ -7,19 +7,13 @@ Execution Context Tokens for Distributed Agentic Workflows @@ -1265,19 +1259,13 @@ li > p:last-of-type:only-child {

Execution Context Tokens for Distributed Agentic Workflows

Abstract

-

This document defines Execution Context Tokens (ECTs), an extension -to the Workload Identity in Multi System Environments (WIMSE) -architecture for distributed agentic workflows. ECTs provide -signed, structured records of task execution order across -agent-to-agent communication. By extending WIMSE Workload Identity -Tokens with execution context claims in JSON Web Token (JWT) -format, this specification enables systems to maintain structured -audit trails of agent execution. ECTs use a directed acyclic -graph (DAG) structure to represent task dependencies and integrate -with WIMSE Workload Identity Tokens (WIT) using the same signing -model and cryptographic primitives. A new HTTP header field, -Execution-Context, is defined for transporting ECTs alongside -existing WIMSE headers.

+

This document defines Execution Context Tokens (ECTs), a JWT-based +extension to the WIMSE architecture that records task execution +across distributed agentic workflows. Each ECT is a signed record +of a single task, linked to predecessor tasks through a directed +acyclic graph (DAG). ECTs reuse the WIMSE signing model and are +transported in a new Execution-Context HTTP header field alongside +existing WIMSE identity headers.

@@ -1328,216 +1316,179 @@ existing WIMSE headers.

@@ -1548,101 +1499,47 @@ existing WIMSE headers.

1. Introduction

-
-
-

-1.1. Motivation -

-

The Workload Identity in Multi System Environments (WIMSE) -framework [I-D.ietf-wimse-arch] provides robust workload -authentication through Workload Identity Tokens (WIT) and Workload -Proof Tokens (WPT). The WIMSE service-to-service protocol -[I-D.ietf-wimse-s2s-protocol] defines how workloads authenticate -each other across call chains using the Workload-Identity and -Workload-Proof-Token HTTP headers.

-

However, workload identity alone does not address execution -accountability. Knowing who performed an action does not record -what was done or in what order.

-

Regulated environments increasingly deploy autonomous agents that -coordinate across organizational boundaries. Domains such as -healthcare, finance, and logistics require structured, auditable -records of automated decision-making and execution.

-

This document defines an extension to the WIMSE architecture that -addresses the gap between workload identity and execution -accountability. WIMSE authenticates agents; this extension records -what they did and in what order.

-

As identified in [I-D.ni-wimse-ai-agent-identity], call context -in agentic workflows needs to be visible and preserved. ECTs -provide a mechanism to address this requirement with cryptographic -assurances.

-
-
-
-
-

-1.2. Problem Statement -

-

Three core gaps exist in current approaches to regulated agentic -systems:

-
    -
  1. -

    WIMSE authenticates agents but does not record what they -actually did. A WIT proves "Agent A is authorized" but not -"Agent A executed Task X, producing Output Z."

    -
  2. -
  3. -

    No standard mechanism exists to cryptographically order and -link task execution across a multi-agent workflow.

    -
  4. -
  5. -

    No mechanism exists to reconstruct the complete execution -history of a distributed workflow for audit purposes.

    -
  6. -
-

Existing observability tools such as distributed tracing -[OPENTELEMETRY] provide visibility for debugging and monitoring -but do not provide cryptographic assurances. Tracing data is not -cryptographically signed, not tamper-evident, and not designed for -regulatory audit scenarios.

-
-
+

The WIMSE framework [I-D.ietf-wimse-arch] and its service-to- +service protocol [I-D.ietf-wimse-s2s-protocol] authenticate +workloads across call chains but do not record what those +workloads actually did. This document defines Execution Context +Tokens (ECTs), a JWT-based extension that fills the gap between +workload identity and execution accountability. Each ECT is a +signed record of a single task, linked to predecessor tasks +through a directed acyclic graph (DAG).

-
+

-1.3. Scope and Applicability +1.1. Scope and Applicability

-

This document defines:

+

This document defines:

    -
  • -

    The Execution Context Token (ECT) format (Section 4)

    +
  • +

    The Execution Context Token (ECT) format (Section 3)

  • -
  • -

    DAG structure for task dependency ordering (Section 6)

    +
  • +

    DAG structure for task dependency ordering (Section 5)

  • -
  • -

    Integration with the WIMSE identity framework -(Section 3)

    +
  • +

    An HTTP header for ECT transport (Section 4)

  • -
  • -

    An HTTP header for ECT transport (Section 5)

    -
  • -
  • -

    Audit ledger interface requirements (Section 8)

    +
  • +

    Audit ledger interface requirements (Section 7)

-

The following are out of scope and are handled by WIMSE:

+

The following are out of scope and are handled by WIMSE:

    -
  • -

    Workload authentication and identity provisioning

    +
  • +

    Workload authentication and identity provisioning

  • -
  • -

    Key distribution and management

    +
  • +

    Key distribution and management

  • -
  • -

    Trust domain establishment and management

    +
  • +

    Trust domain establishment and management

  • -
  • -

    Credential lifecycle management

    +
  • +

    Credential lifecycle management

@@ -1712,172 +1609,32 @@ trust domain.

-
-
-

-3. WIMSE Architecture Integration -

-
-
-

-3.1. WIMSE Foundation -

-

The WIMSE architecture [I-D.ietf-wimse-arch] defines:

-
    -
  • -

    Workload Identity Tokens (WIT) that prove a workload's identity -within a trust domain ("I am Agent X in trust domain Y")

    -
  • -
  • -

    Workload Proof Tokens (WPT) that prove possession of the private -key associated with a WIT ("I control the key for Agent X")

    -
  • -
  • -

    Multi-hop authentication via the service-to-service protocol -[I-D.ietf-wimse-s2s-protocol]

    -
  • -
-

The following execution accountability needs are complementary to -the WIMSE scope and are not addressed by workload identity alone:

-
    -
  • -

    Recording what agents actually do with their authenticated -identity

    -
  • -
  • -

    Maintaining structured execution records

    -
  • -
  • -

    Linking actions to their predecessors with cryptographic assurance

    -
  • -
-
-
-
-
-

-3.2. Extension Model -

-

ECTs extend WIMSE by adding an execution accountability layer -between the identity layer and the application layer:

-
-
-
-
-+--------------------------------------------------+
-|  WIMSE Layer (Identity)                          |
-|    WIT: "I am Agent X (spiffe://td/agent/x)"    |
-|    WPT: "I prove I control the key for Agent X"  |
-+--------------------------------------------------+
-                       |
-                       v
-+--------------------------------------------------+
-|  ECT Layer (Execution Accountability) [This Spec]|
-|    ECT: "Task executed, dependencies met,        |
-|          inputs/outputs hashed"                   |
-+--------------------------------------------------+
-                       |
-                       v
-+--------------------------------------------------+
-|  Optional: Audit Ledger (Immutable Record)       |
-|    "ECTs MAY be appended to an audit ledger"     |
-+--------------------------------------------------+
-
-
-
Figure 1: -WIMSE Extension Architecture Layers -
-
-

This extension reuses the WIMSE signing model, extends JWT claims -using standard JWT extensibility [RFC7519], and maintains WIMSE -concepts including trust domains and workload identifiers.

-
-
-
-
-

-3.3. Integration Points -

-

An ECT integrates with the WIMSE identity framework through the -following mechanisms:

-
    -
  • -

    The ECT JOSE header "kid" parameter MUST reference the public -key identifier from the agent's WIT.

    -
  • -
  • -

    In WIMSE deployments, the ECT "iss" claim SHOULD use the WIMSE -workload identifier format (a SPIFFE ID [SPIFFE]).

    -
  • -
  • -

    The ECT MUST be signed with the same private key associated -with the agent's WIT.

    -
  • -
  • -

    The ECT signing algorithm (JOSE header "alg" parameter) MUST -match the algorithm used in the corresponding WIT.

    -
  • -
-

When an agent makes an HTTP request to another agent, the -Execution-Context header is carried alongside WIMSE identity -headers:

-
-
-
-
-HTTP Request from Agent A to Agent B:
-  Workload-Identity:    <WIT for Agent A>
-  Execution-Context:    <ECT recording what A did>
-
-
-
Figure 2: -HTTP Header Stacking -
-
-

When a Workload Proof Token (WPT) is available per -[I-D.ietf-wimse-s2s-protocol], agents SHOULD include it -alongside the WIT and ECT. ECT verification does not depend -on the presence of a WPT; the ECT is independently verifiable -via the WIT public key.

-

The receiving agent (Agent B) verifies in order:

-
    -
  1. -

    WIT (WIMSE layer): Verifies Agent A's identity within the -trust domain. WPT verification, if present, per -[I-D.ietf-wimse-s2s-protocol].

    -
  2. -
  3. -

    ECT (this extension): Records what Agent A did and what -precedent tasks exist.

    -
  4. -
  5. -

    Ledger (if deployed): Appends the verified ECT to the audit -ledger.

    -
  6. -
-
-
-
-
-
+

-4. Execution Context Token Format +3. Execution Context Token Format

-

An Execution Context Token is a JSON Web Token (JWT) [RFC7519] +

An Execution Context Token is a JSON Web Token (JWT) [RFC7519] signed as a JSON Web Signature (JWS) [RFC7515]. ECTs MUST use JWS Compact Serialization (the base64url-encoded header.payload.signature format) so that they can be carried in -a single HTTP header value.

+a single HTTP header value.

+

ECTs reuse the WIMSE signing model. The ECT MUST be signed with +the same private key associated with the agent's WIT. The JOSE +header "kid" parameter MUST reference the public key identifier +from the agent's WIT, and the "alg" parameter MUST match the +algorithm used in the corresponding WIT. In WIMSE deployments, +the ECT "iss" claim SHOULD use the WIMSE workload identifier +format (a SPIFFE ID [SPIFFE]).

-
+

-4.1. JOSE Header +3.1. JOSE Header

-

The ECT JOSE header MUST contain the following parameters:

+

The ECT JOSE header MUST contain the following parameters:

-
-
+
+
 {
   "alg": "ES256",
@@ -1886,245 +1643,189 @@ a single HTTP header value.

}
-
Figure 3: +
Figure 1: ECT JOSE Header Example
-
-
alg:
-
-

REQUIRED. The digital signature algorithm used to sign the ECT. +

+
alg:
+
+

REQUIRED. The digital signature algorithm used to sign the ECT. MUST match the algorithm in the corresponding WIT. Implementations MUST support ES256 [RFC7518]. The "alg" value MUST NOT be "none". Symmetric algorithms (e.g., HS256, HS384, HS512) MUST NOT be used, as ECTs require asymmetric -signatures for non-repudiation.

+signatures for non-repudiation.

-
typ:
-
-

REQUIRED. MUST be set to "wimse-exec+jwt" to distinguish ECTs +

typ:
+
+

REQUIRED. MUST be set to "wimse-exec+jwt" to distinguish ECTs from other JWT types, consistent with the WIMSE convention for -type parameter values.

+type parameter values.

-
kid:
-
-

REQUIRED. The key identifier referencing the public key from +

kid:
+
+

REQUIRED. The key identifier referencing the public key from the agent's WIT [RFC7517]. Used by verifiers to look up the -correct public key for signature verification.

+correct public key for signature verification.

-
+

-4.2. JWT Claims +3.2. JWT Claims

-

The ECT payload contains both WIMSE-compatible standard JWT claims -and execution context claims defined by this specification.

-
+

-4.2.1. Standard JWT Claims +3.2.1. Standard JWT Claims

-

The following standard JWT claims [RFC7519] MUST be present in -every ECT:

-
-
iss:
-
-

REQUIRED. StringOrURI. A URI identifying the issuer of the +

An ECT MUST contain the following standard JWT claims [RFC7519]:

+
+
iss:
+
+

REQUIRED. StringOrURI. A URI identifying the issuer of the ECT. In WIMSE deployments, this SHOULD be the workload's SPIFFE ID in the format spiffe://<trust-domain>/<path>, matching the "sub" claim of the agent's WIT. Non-WIMSE deployments MAY use other URI schemes (e.g., HTTPS URLs or -URN:UUID identifiers).

+URN:UUID identifiers).

-
aud:
-
-

REQUIRED. StringOrURI or array of StringOrURI. The intended -recipient(s) of the ECT. Because ECTs serve as both inter-agent -messages and audit records, the "aud" claim SHOULD contain the -identifiers of all entities that will verify the ECT. In -practice this means:

-
    -
  • -

    Point-to-point delivery: when an ECT is sent from one -agent to a single next agent, "aud" contains that agent's -workload identity. The receiving agent verifies the ECT and -forwards it to the ledger on behalf of the issuer.

    -
  • -
  • -

    Direct-to-ledger submission: when an ECT is submitted -directly to the audit ledger (e.g., after a join or at -workflow completion), "aud" contains the ledger's identity.

    -
  • -
  • -

    Multi-audience: when an ECT must be verified by both the -next agent and the ledger independently, "aud" MUST be an -array containing both identifiers (e.g., -["spiffe://example.com/agent/next", -"spiffe://example.com/system/ledger"]). Each verifier checks -that its own identity appears in the array.

    -
  • -
-

In multi-parent (join) scenarios where a task depends on ECTs -from multiple parent agents, the joining agent creates a new ECT -with the parent task IDs in "par". The "aud" of this new ECT -is set according to the rules above based on where the ECT will -be delivered — it is independent of the "aud" values in the -parent ECTs.

+
aud:
+
+

REQUIRED. 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 must 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".

-
iat:
-
-

REQUIRED. NumericDate. The time at which the ECT was issued. -The ECT records a completed action, so the "iat" value reflects -when the record was created, not when task execution began.

+
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" -to limit the replay window while allowing for reasonable clock -skew and processing time.

+
exp:
+
+

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

-
-
-

The standard JWT "nbf" (Not Before) claim is not used in ECTs -because ECTs record completed actions and are valid immediately -upon issuance.

-
-
jti:
-
-

REQUIRED. String. A globally unique identifier for both the -ECT and the task it records, in UUID format [RFC9562]. Since -each ECT represents exactly one task, "jti" serves as both the -token identifier (for replay detection) and the task identifier -(for DAG parent references in "par"). Receivers MUST reject -ECTs whose "jti" has already been seen within the expiration -window. When "wid" is present, uniqueness is scoped to the -workflow; when "wid" is absent, uniqueness MUST be enforced -globally across the ECT store.

+
+
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 (for replay detection) and +the task identifier (for DAG parent references in "par"). +Receivers MUST reject ECTs whose "jti" has already been seen +within the expiration window. When "wid" is present, +uniqueness is scoped to the workflow; when "wid" is absent, +uniqueness MUST be enforced globally across the ECT store.

-
+

-4.2.2. Execution Context +3.2.2. Execution Context

-

The following claims are defined by this specification:

-
-
wid:
-
-

OPTIONAL. String. A workflow identifier that groups related +

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].

+[RFC9562].

-
exec_act:
-
-

REQUIRED. String. The action or task type identifier describing +

exec_act:
+
+

REQUIRED. String. The action or task type identifier describing what the agent performed (e.g., "process_payment", -"validate_safety", "calculate_dosage"). Note: this claim is -intentionally named "exec_act" rather than "act" to avoid -collision with the "act" (Actor) claim registered by -[RFC8693].

+"validate_safety"). This claim name avoids collision with the +"act" (Actor) claim registered by [RFC8693].

-
par:
-
-

REQUIRED. Array of strings. Parent task identifiers +

par:
+
+

REQUIRED. Array of strings. Parent 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. Parent ECTs may have passed their own -"exp" time; ECT expiration applies to the verification window -of the ECT itself, not to its validity as a parent reference -in the ECT store. Note: "par" is not a registered JWT claim -and does not conflict with OAuth Pushed Authorization Requests -(RFC 9126), which defines an endpoint, not a token claim.

+multiple root tasks.

-
+

-4.2.3. Data Integrity +3.2.3. Data Integrity

-

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 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. This follows the same fixed-algorithm pattern -used by the DPoP "ath" claim [RFC9449] and the WIMSE WPT -"tth" claim [I-D.ietf-wimse-s2s-protocol]: SHA-256 is the -mandatory algorithm with no algorithm prefix in the value.

+of the input. SHA-256 is the mandatory algorithm with no +algorithm prefix in the value, consistent with [RFC9449] and +[I-D.ietf-wimse-s2s-protocol].

-
out_hash:
-
-

OPTIONAL. String. The base64url encoding (without padding) of +

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".

+"inp_hash".

-
+

-4.2.4. Extensions +3.2.4. Extensions

-
-
ext:
-
-

OPTIONAL. Object. A general-purpose extension object for -domain-specific claims not defined by this specification. The -short name "ext" follows the JWT convention of concise claim -names and is chosen over alternatives like "extensions" for -compactness. Implementations that do not understand extension -claims MUST ignore them.

+
+
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 "ext" object SHOULD NOT exceed +4096 bytes and SHOULD NOT exceed a nesting depth of 5 levels.

-

To avoid key collisions between different domains, extension -key names SHOULD use reverse domain notation (e.g., -"com.example.custom_field") to avoid collisions between -independently developed extensions. To prevent abuse and -excessive token size, the serialized JSON representation of -the "ext" object SHOULD NOT exceed 4096 bytes, and the JSON -nesting depth within the "ext" object SHOULD NOT exceed 5 -levels. Implementations SHOULD reject ECTs whose "ext" claim -exceeds these limits.

-

Extension keys for domain-specific use cases MAY be defined in -future documents.

-
+

-4.3. Complete ECT Example +3.3. Complete ECT Example

-

The following is a complete ECT payload example:

+

The following is a complete ECT payload example:

-
-
+
+
 {
   "iss": "spiffe://example.com/agent/clinical",
@@ -2146,7 +1847,7 @@ future documents.

}
-
Figure 4: +
Figure 2: Complete ECT Payload Example
@@ -2155,26 +1856,28 @@ future documents.

-
+

-5. HTTP Header Transport +4. HTTP Header Transport

-
+

-5.1. Execution-Context Header Field +4.1. Execution-Context Header Field

-

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

-

The header field value is the ECT in JWS Compact Serialization +

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

+

The header field value is the ECT in JWS Compact Serialization format [RFC7515]. The value consists of three Base64url-encoded -parts separated by period (".") characters.

-

An agent sending a request to another agent includes the +parts separated by period (".") characters.

+

An agent sending a request to another agent includes the Execution-Context header alongside the WIMSE Workload-Identity -header:

+header. When a Workload Proof Token (WPT) is available per +[I-D.ietf-wimse-s2s-protocol], agents SHOULD include it +alongside the WIT and ECT.

-
-
+
+
 GET /api/safety-check HTTP/1.1
 Host: safety-agent.example.com
@@ -2182,67 +1885,51 @@ Workload-Identity: eyJhbGci...WIT...
 Execution-Context: eyJhbGci...ECT...
 
-
Figure 5: +
Figure 3: HTTP Request with ECT Header
-

When multiple parent tasks contribute context to a single request, +

When multiple parent tasks contribute context to a single request, multiple Execution-Context header field lines MAY be included, each -carrying a separate ECT in JWS Compact Serialization format.

-

When a receiver processes multiple Execution-Context headers, it +carrying a separate ECT in JWS Compact Serialization format.

+

When a receiver processes multiple Execution-Context headers, it MUST individually verify each ECT per the procedure in -Section 7. If any single ECT fails verification, the +Section 6. If any single ECT fails verification, the receiver MUST reject the entire request. The set of verified parent task IDs across all received ECTs represents the complete set of parent dependencies available for the receiving agent's -subsequent ECT.

+subsequent ECT.

-
+

-6. DAG Validation +5. DAG Validation

-
-
-

-6.1. Overview -

-

ECTs form a Directed Acyclic Graph (DAG) where each task -references its parent tasks via the "par" claim. This structure -provides a cryptographically signed record of execution ordering, -enabling auditors to reconstruct the complete workflow and verify -that required predecessor tasks were recorded before dependent -tasks.

-

DAG validation is performed against the ECT store — either an -audit ledger or the set of parent ECTs received inline.

-
-
-
-
-

-6.2. Validation Rules -

-

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 +

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

    +

    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 applicable scope (the workflow identified by "wid", or the entire ECT store if "wid" is absent). If an ECT with the same -"jti" already exists, the ECT MUST be rejected.

      +"jti" already exists, the ECT MUST be rejected.

    2. -
    3. -

      Parent Existence: Every task identifier listed in the "par" +

    4. +

      Parent Existence: Every task identifier listed in the "par" 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.

      +found, the ECT MUST be rejected.

    5. -
    6. -

      Temporal Ordering: The "iat" value of every parent task MUST NOT be greater than the "iat" value of the current task plus a +

    7. +

      Temporal Ordering: The "iat" value of every parent task MUST NOT be greater 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 @@ -2250,715 +1937,557 @@ 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.

      +ECT MUST be rejected.

    8. -
    9. -

      Acyclicity: Following the chain of parent references MUST NOT +

    10. +

      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.

      +the ECT MUST be rejected.

    11. -
    12. -

      Trust Domain Consistency: Parent tasks SHOULD belong to the +

    13. +

      Trust Domain Consistency: Parent tasks SHOULD belong to the same trust domain or to a trust domain with which a federation -relationship has been established.

      +relationship has been established.

    14. -
    -

    To prevent denial-of-service via extremely deep or wide DAGs, +

+

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.

-
-
-
-
-

-6.3. Handling Unavailable Parent ECTs -

-

In distributed deployments, a parent ECT referenced in the "par" -array may not yet be available in the local ECT store at the time -of validation — for example, due to replication lag in a -distributed ledger or out-of-order message delivery.

-

Implementations MUST distinguish between two cases:

-
    -
  1. -

    Parent not found and definitively absent: The parent "jti" -does not exist in any accessible ECT store. The ECT MUST be -rejected.

    -
  2. -
  3. -

    Parent not yet available: The parent "jti" is not present -locally but may arrive due to known replication delays. -Implementations MAY defer validation for a bounded period -(RECOMMENDED: no more than 60 seconds).

    -
  4. -
-

Deferred ECTs MUST NOT be treated as verified until all parent -references are resolved. If any parent reference remains -unresolved after the deferral period or after the ECT's own "exp" -time (whichever comes first), the ECT MUST be rejected.

-
-
+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.

-
+

-7. Signature and Token Verification +6. Signature and Token Verification

-
+

-7.1. Verification Procedure +6.1. Verification Procedure

-

When an agent receives an 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].

    +

    When an agent receives an 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. -
    3. -

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

      +
    4. +

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

    5. -
    6. -

      Verify that the "alg" header parameter appears in the +

    7. +

      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.

      +MAY be included per deployment policy.

    8. -
    9. -

      Verify the "kid" header parameter references a known, valid -public key from a WIT within the trust domain.

      +
    10. +

      Verify the "kid" header parameter references a known, valid +public key from a WIT within the trust domain.

    11. -
    12. -

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

      +
    13. +

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

    14. -
    15. -

      Verify that the signing key identified by "kid" has not been +

    16. +

      Verify that the signing key identified by "kid" has not been revoked within the trust domain. Implementations MUST check the key's revocation status using the trust domain's key lifecycle mechanism (e.g., certificate revocation list, OCSP, -or SPIFFE trust bundle updates).

      +or SPIFFE trust bundle updates).

    17. -
    18. -

      Verify the "alg" header parameter matches the algorithm in the -corresponding WIT.

      +
    19. +

      Verify the "alg" header parameter matches the algorithm in the +corresponding WIT.

    20. -
    21. -

      Verify the "iss" claim matches the "sub" claim of the WIT -associated with the "kid" public key.

      +
    22. +

      Verify the "iss" claim matches the "sub" claim of the WIT +associated with the "kid" public key.

    23. -
    24. -

      Verify the "aud" claim contains the verifier's own workload +

    25. +

      Verify the "aud" claim contains the verifier's own workload 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".

      +identity MUST appear in "aud".

    26. -
    27. -

      Verify the "exp" claim indicates the ECT has not expired.

      +
    28. +

      Verify the "exp" claim indicates the ECT has not expired.

    29. -
    30. -

      Verify the "iat" claim is not unreasonably far in the past +

    31. +

      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).

      +verifier's current time, to account for clock skew).

    32. -
    33. -

      Verify all required claims ("jti", "exec_act", "par") are -present and well-formed.

      +
    34. +

      Verify all required claims ("jti", "exec_act", "par") are +present and well-formed.

    35. -
    36. -

      Perform DAG validation per Section 6.

      +
    37. +

      Perform DAG validation per Section 5.

    38. -
    39. -

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

      +
    40. +

      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 +

    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.

    -

    When ECT verification fails during HTTP request processing, the +ECT store, to prevent information disclosure.

    +

    When ECT verification fails during HTTP request processing, the receiving agent SHOULD respond with HTTP 403 (Forbidden) if the WIT is valid but the ECT is invalid, and HTTP 401 (Unauthorized) if the ECT signature verification fails. 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.

    +fails.

-
+

-8. Audit Ledger Interface +7. Audit Ledger Interface

-

ECTs MAY be recorded in an immutable audit ledger for compliance +

ECTs MAY be recorded in an immutable audit ledger for compliance verification and post-hoc analysis. A ledger is RECOMMENDED for regulated environments but is not required for point-to-point operation. 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.

-

When an audit ledger is deployed, the implementation MUST provide:

-
    -
  1. -

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

    +any storage mechanism that provides the required properties.

    +

    When an audit ledger is deployed, the implementation MUST provide:

    +
      +
    1. +

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

    2. -
    3. -

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

      +
    4. +

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

    5. -
    6. -

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

      +
    7. +

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

    8. -
    9. -

      Integrity verification: The ledger SHOULD provide a mechanism +

    10. +

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

      +hash chains or Merkle trees).

    -

    The ledger SHOULD be maintained by an entity independent of the -workflow agents to reduce the risk of collusion.

    +

    The ledger SHOULD be maintained by an entity independent of the +workflow agents to reduce the risk of collusion.

-
+

-9. Security Considerations +8. Security Considerations

-

This section addresses security considerations following the -guidance in [RFC3552].

-
+

-9.1. Threat Model +8.1. Threat Model

-

The following threat actors are considered:

-
    -
  • -

    Malicious agent (insider threat): An agent within the trust -domain that intentionally creates false ECT claims.

    -
  • -
  • -

    Compromised agent (external attacker): An agent whose private -key has been obtained by an external attacker.

    -
  • -
  • -

    Ledger tamperer: An entity attempting to modify or delete ledger -entries after they have been recorded.

    -
  • -
  • -

    Time manipulator: An entity attempting to manipulate timestamps -to alter perceived execution ordering.

    -
  • -
+

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, and (4) a time manipulator altering timestamps to affect +perceived ordering.

-
+

-9.2. Self-Assertion Limitation +8.2. Self-Assertion Limitation

-

ECTs are self-asserted by the executing agent. The agent claims +

ECTs are self-asserted by the executing agent. The agent claims what it did, and this claim is signed with its private key. 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:

+(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 claimed execution actually occurred as described

  • -
  • -

    The input/output hashes correspond to the actual data processed

    +
  • +

    The input/output hashes correspond to the actual data processed

  • -
  • -

    The agent faithfully performed the stated action

    +
  • +

    The agent faithfully performed the stated action

-

The trustworthiness of ECT claims depends on the trustworthiness +

The trustworthiness of ECT claims depends on the trustworthiness of the signing agent and the integrity of the broader deployment -environment.

-
-
-
-
-

-9.3. Organizational Prerequisites -

-

ECTs operate within a broader trust framework. The guarantees -provided by ECTs are only meaningful when the following -organizational controls are in place:

-
    -
  • -

    Key management governance: Controls over who provisions agent -keys and how keys are protected.

    -
  • -
  • -

    Ledger integrity governance: The ledger is maintained by an -entity independent of the workflow agents.

    -
  • -
  • -

    Agent deployment governance: Agents are deployed and maintained -in a manner that preserves their integrity.

    -
  • -
+environment. ECTs provide a technical mechanism for execution +recording; they do not by themselves satisfy any specific +regulatory compliance requirement.

-
+

-9.4. Signature Verification +8.3. Signature Verification

-

ECTs MUST be signed with the agent's private key using JWS +

ECTs MUST be signed with the agent's private key using JWS [RFC7515]. The signature algorithm MUST match the algorithm specified in the agent's WIT. Receivers MUST verify the ECT signature against the WIT public key before processing any claims. Receivers MUST verify that the signing key has not been revoked within the trust domain (see step 6 in -Section 7).

-

If signature verification fails or if the signing key has been +Section 6).

+

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 MUST use established JWS libraries and MUST NOT -implement custom signature verification.

+be logged.

+

Implementations MUST use established JWS libraries and MUST NOT +implement custom signature verification.

-
+

-9.5. Replay Attack Prevention +8.4. Replay Attack Prevention

-

ECTs include short expiration times (RECOMMENDED: 5-15 minutes) to -limit the window for replay attacks. The "aud" claim restricts -replay to unintended recipients: an ECT intended for Agent B -will be rejected by Agent C. The "iat" claim enables receivers to -reject ECTs that are too old, even if not yet expired.

-

The DAG structure provides additional replay protection: an ECT -referencing parent tasks that already have a recorded child task -with the same action can be flagged as a potential replay.

-

Implementations MUST maintain a cache of recently-seen "jti" -values to detect replayed ECTs within the expiration window. -An ECT with a duplicate "jti" value MUST be rejected.

-

Additionally, each ECT is cryptographically bound to the issuing -agent via the JOSE "kid" parameter, which references the agent's -WIT public key. Verifiers MUST confirm that the "kid" resolves -to the "iss" agent's key (step 8 in Section 7), preventing -one agent from replaying another agent's ECT as its own.

+

ECTs include short expiration times (RECOMMENDED: 5-15 minutes) +and audience restriction via "aud" to limit replay attacks. +Implementations MUST maintain a cache of recently-seen "jti" +values and MUST reject ECTs with duplicate "jti" values. Each +ECT is cryptographically bound to the issuing agent via "kid"; +verifiers MUST confirm that "kid" resolves to the "iss" agent's +key (step 8 in Section 6).

-
+

-9.6. Man-in-the-Middle Protection +8.5. Man-in-the-Middle Protection

-

ECTs do not replace transport-layer security. ECTs MUST be -transmitted over TLS or mTLS connections. When used with the WIMSE -service-to-service protocol [I-D.ietf-wimse-s2s-protocol], -transport security is already established. HTTP Message Signatures -[RFC9421] provide an alternative channel binding mechanism.

-

The defense-in-depth model provides:

-
    -
  • -

    TLS/mTLS (transport layer): Prevents network-level tampering.

    -
  • -
  • -

    WIT/WPT (WIMSE identity layer): Proves agent identity and -request authorization.

    -
  • -
  • -

    ECT (execution accountability layer): Records what the agent did.

    -
  • -
+

ECTs MUST be transmitted over TLS or mTLS connections. When used +with [I-D.ietf-wimse-s2s-protocol], transport security is +already established.

-
+

-9.7. Key Compromise +8.6. Key Compromise

-

If an agent's private key is compromised, an attacker can forge -ECTs that appear to originate from that agent. To mitigate this -risk:

+

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 (hours to days, not months).

    +
  • +

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

  • -
  • -

    Private keys SHOULD be stored in Hardware Security Modules (HSMs) -or equivalent secure key storage.

    +
  • +

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

  • -
  • -

    Trust domains MUST support rapid key revocation.

    -
  • -
  • -

    Upon suspected compromise, the trust domain MUST revoke the -compromised key and issue a new WIT with a fresh key pair.

    +
  • +

    Trust domains MUST support rapid key revocation.

-

ECTs signed with a compromised key that were recorded in the -ledger before revocation remain valid historical records but SHOULD -be flagged in the ledger as "signed with subsequently revoked key" -for audit purposes.

-

ECT revocation does not propagate through the DAG. If a parent -ECT's signing key is later revoked, child ECTs that were verified -and recorded before that revocation remain valid — they captured -a legitimate execution record at the time of issuance. However, -auditors reviewing a workflow SHOULD flag any ECT in the DAG -whose signing key was subsequently revoked, so that the scope of -a potential compromise can be assessed. New ECTs MUST NOT be -created with a "par" reference to an ECT whose signing key is -known to be revoked at creation time.

+

ECTs recorded before key revocation remain valid historical +records but SHOULD be flagged for audit purposes. New ECTs +MUST NOT reference a parent ECT whose signing key is known to +be revoked at creation time.

-
-

-9.8. Collusion and False Claims +
+

+8.7. Collusion and DAG Integrity

-

A single malicious agent cannot forge parent task references -because DAG validation requires parent tasks to exist in the -ledger. However, multiple colluding agents could potentially -create a false execution history if they control the ledger.

-

Mitigations include:

+

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 "par" to hide influences on its +output; because ECTs are self-asserted +(Section 8.2), no mechanism can force complete +dependency declaration.

+

Mitigations include:

    -
  • -

    Independent ledger maintenance: The ledger SHOULD be maintained -by an entity independent of the workflow agents.

    +
  • +

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

  • -
  • -

    Cross-verification: Multiple independent ledger replicas can be -compared for consistency.

    +
  • +

    Multiple independent ledger replicas can be compared for +consistency.

  • -
  • -

    Out-of-band audit: External auditors periodically verify ledger -contents against expected workflow patterns.

    +
  • +

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

-
-

-
-
-

-9.9. DAG Integrity Attacks -

-

Because the DAG structure is the primary mechanism for establishing -execution ordering, attackers may attempt to manipulate it:

-
    -
  • -

    False parent references: A malicious agent creates an ECT that -references parent tasks from an unrelated workflow, inserting -itself into a legitimate execution history. DAG validation -(Section 6) mitigates this by requiring parent existence -in the ECT store, and the "wid" claim scopes parent references -to a single workflow when present.

    -
  • -
  • -

    Parent omission (pruning): An agent deliberately omits one or -more actual parent dependencies from the "par" array to hide -that certain tasks influenced its output. Because ECTs are -self-asserted (Section 9.2), no mechanism can -force an agent to declare all dependencies. External auditors -can detect omission by comparing the declared DAG against -expected workflow patterns.

    -
  • -
  • -

    Shadow DAGs: Multiple colluding agents fabricate an entire -execution history by creating a sequence of ECTs with mutual -parent references. Independent ledger maintenance and -cross-verification (see Section 9.8 above) -are the primary mitigations.

    -
  • -
-

Verifiers SHOULD validate that the declared "wid" of parent ECTs +

Verifiers SHOULD validate that the declared "wid" of parent ECTs matches the "wid" of the child ECT, rejecting cross-workflow parent references unless explicitly permitted by deployment -policy.

+policy.

-
+

-9.10. Privilege Escalation via ECTs +8.8. Privilege Escalation via ECTs

-

ECTs record execution history; they do not convey authorization. +

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 "par", as an authorization -grant. The "par" claim demonstrates that predecessor tasks were -recorded, not that the current agent is authorized to act on -their outputs. Authorization decisions MUST remain with the -identity and authorization layer (WIT, WPT, and deployment -policy). As noted in [I-D.ni-wimse-ai-agent-identity], -AI intermediaries introduce novel escalation vectors; ECTs -MUST NOT be used to circumvent authorization boundaries.

+grant. Authorization decisions MUST remain with the identity and +authorization layer (WIT, WPT, and deployment policy).

-
+

-9.11. Denial of Service +8.9. Denial of Service

-

ECT signature verification is computationally inexpensive -(approximately 1ms per ECT on modern hardware for ES256). DAG -validation complexity is O(V) where V is the number of ancestor -nodes reachable from the parent references; for typical shallow -DAGs this is efficient.

-

Implementations SHOULD apply rate limiting at the API layer to -prevent excessive ECT submissions. DAG validation SHOULD be -performed after signature verification to avoid wasting resources -on unsigned or incorrectly signed tokens.

+

Implementations SHOULD apply rate limiting to prevent excessive +ECT submissions. DAG validation SHOULD be performed after +signature verification to avoid wasting resources on unsigned +tokens.

-
+

-9.12. Timestamp Accuracy +8.10. Timestamp Accuracy

-

ECTs rely on timestamps ("iat", "exp") for temporal ordering. -Clock skew between agents can lead to incorrect ordering -judgments. Implementations SHOULD use synchronized time sources -(e.g., NTP) and SHOULD allow a configurable clock skew tolerance -(RECOMMENDED: 30 seconds).

-

Cross-organizational deployments where agents span multiple trust -domains with independent time sources MAY require a higher clock -skew tolerance. Deployments using trust domain federation SHOULD -document their configured clock skew tolerance value and SHOULD -ensure all participating trust domains agree on a common tolerance.

-

The temporal ordering check in DAG validation incorporates the -clock skew tolerance to account for minor clock differences -between agents.

+

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.

-
+

-9.13. ECT Size Constraints +8.11. ECT Size Constraints

-

ECTs with many parent tasks or large extension objects can -increase HTTP header size. Implementations SHOULD limit the "par" -array to a maximum of 256 entries. Workflows requiring more -parent references SHOULD introduce intermediate aggregation -tasks. The "ext" object SHOULD NOT exceed 4096 bytes when -serialized as JSON and SHOULD NOT exceed a nesting depth of -5 levels (see also Section 4.2.4).

+

Implementations SHOULD limit the "par" array to a maximum of +256 entries. See Section 3.2.4 for "ext" size limits.

-
+

-10. Privacy Considerations +9. Privacy Considerations

-
+

-10.1. Data Exposure in ECTs +9.1. Data Exposure in ECTs

-

ECTs necessarily reveal:

+

ECTs necessarily reveal:

    -
  • -

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

    +
  • +

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

  • -
  • -

    Action descriptions ("exec_act") for audit trail completeness

    +
  • +

    Action descriptions ("exec_act") for audit trail completeness

  • -
  • -

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

    +
  • +

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

-

ECTs are designed to NOT reveal:

+

ECTs are designed to NOT reveal:

    -
  • -

    Actual input or output data values (replaced with cryptographic -hashes via "inp_hash" and "out_hash")

    +
  • +

    Actual input or output data values (replaced with cryptographic +hashes via "inp_hash" and "out_hash")

  • -
  • -

    Internal computation details or intermediate steps

    +
  • +

    Internal computation details or intermediate steps

  • -
  • -

    Proprietary algorithms or intellectual property

    +
  • +

    Proprietary algorithms or intellectual property

  • -
  • -

    Personally identifiable information (PII)

    +
  • +

    Personally identifiable information (PII)

-
+

-10.2. Data Minimization +9.2. Data Minimization

-

Implementations SHOULD minimize the information included in ECTs. +

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 "ext" (Section 4.2.4) deserve particular +Extension keys in "ext" (Section 3.2.4) deserve particular attention: human-readable values risk exposing sensitive operational -details. See Section 4.2.4 for guidance on using -structured identifiers.

+details. See Section 3.2.4 for guidance on using +structured identifiers.

-
+

-10.3. Storage and Access Control +9.3. Storage and Access Control

-

ECTs stored in audit ledgers SHOULD be access-controlled so that +

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) +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.

+general access to the data values is not needed.

-
+

-11. IANA Considerations +10. IANA Considerations

-
+

-11.1. Media Type Registration +10.1. Media Type Registration

-

This document requests registration of the following media type -in the "Media Types" registry maintained by IANA:

-
-
Type name:
-
-

application

+

This document requests registration of the following media type +in the "Media Types" registry maintained by IANA:

+
+
Type name:
+
+

application

-
Subtype name:
-
-

wimse-exec+jwt

+
Subtype name:
+
+

wimse-exec+jwt

-
Required parameters:
-
-

none

+
Required parameters:
+
+

none

-
Optional parameters:
-
-

none

+
Optional parameters:
+
+

none

-
Encoding considerations:
-
-

8bit; an ECT is a JWT that is a JWS using the Compact +

Encoding considerations:
+
+

8bit; 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.

+separated by period characters.

-
Security considerations:
-
-

See the Security Considerations section of this document.

+
Security considerations:
+
+

See the Security Considerations section of this document.

-
Interoperability considerations:
-
-

none

+
Interoperability considerations:
+
+

none

-
Published specification:
-
-

This document

+
Published specification:
+
+

This document

-
Applications that use this media type:
-
-

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

+
Applications that use this media type:
+
+

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

-
Additional information:
-
-

Magic number(s): none +

Additional information:
+
+

Magic number(s): none File extension(s): none -Macintosh file type code(s): none

+Macintosh file type code(s): none

-
Person and email address to contact for further information:
-
-

Christian Nennemann, ietf@nennemann.de

+
Person and email address to contact for further information:
+
+

Christian Nennemann, ietf@nennemann.de

-
Intended usage:
-
-

COMMON

+
Intended usage:
+
+

COMMON

-
Restrictions on usage:
-
-

none

+
Restrictions on usage:
+
+

none

-
Author:
-
-

Christian Nennemann

+
Author:
+
+

Christian Nennemann

-
Change controller:
-
-

IETF

+
Change controller:
+
+

IETF

-
+

-11.2. HTTP Header Field Registration +10.2. HTTP Header Field Registration

-

This document requests registration of the following header field +

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

+maintained by IANA:

+
+
Field name:
+
+

Execution-Context

-
Status:
-
-

permanent

+
Status:
+
+

permanent

-
Specification document:
-
-

This document, Section 5

+
Specification document:
+
+

This document, Section 4

-
+

-11.3. JWT Claims Registration +10.3. JWT Claims Registration

-

This document requests registration of the following claims in -the "JSON Web Token Claims" registry maintained by IANA:

+

This document requests registration of the following claims in +the "JSON Web Token Claims" registry maintained by IANA:

@@ -2987,7 +2516,7 @@ the "JSON Web Token Claims" registry maintained by IANA:Action/Task Type @@ -2995,7 +2524,7 @@ the "JSON Web Token Claims" registry maintained by IANA:Parent Task Identifiers @@ -3003,7 +2532,7 @@ the "JSON Web Token Claims" registry maintained by IANA:Input Data Hash @@ -3011,7 +2540,7 @@ the "JSON Web Token Claims" registry maintained by IANA:Output Data Hash @@ -3019,7 +2548,7 @@ the "JSON Web Token Claims" registry maintained by IANA:Extension Object @@ -3030,14 +2559,14 @@ the "JSON Web Token Claims" registry maintained by IANA: -
+

-12. References +11. References

-
+

-12.1. Normative References +11.1. Normative References

[I-D.ietf-wimse-arch]
@@ -3084,9 +2613,9 @@ the "JSON Web Token Claims" registry maintained by IANA: -
+

-12.2. Informative References +11.2. Informative References

[I-D.ietf-oauth-transaction-tokens]
@@ -3097,10 +2626,6 @@ the "JSON Web Token Claims" registry maintained by IANA:Birkholz, H., Delignat-Lavaud, A., Fournet, C., Deshpande, Y., and S. Lasker, "An Architecture for Trustworthy and Transparent Digital Supply Chains", Work in Progress, Internet-Draft, draft-ietf-scitt-architecture-22, , <https://datatracker.ietf.org/doc/html/draft-ietf-scitt-architecture-22>.
-
[I-D.ni-wimse-ai-agent-identity]
-
-Yuan, N. and P. C. Liu, "WIMSE Applicability for AI Agents", Work in Progress, Internet-Draft, draft-ni-wimse-ai-agent-identity-01, , <https://datatracker.ietf.org/doc/html/draft-ni-wimse-ai-agent-identity-01>.
-
[I-D.oauth-transaction-tokens-for-agents]
Raut, A., "Transaction Tokens For Agents", Work in Progress, Internet-Draft, draft-oauth-transaction-tokens-for-agents-04, , <https://datatracker.ietf.org/doc/html/draft-oauth-transaction-tokens-for-agents-04>.
@@ -3109,18 +2634,10 @@ the "JSON Web Token Claims" registry maintained by IANA:Cloud Native Computing Foundation, "OpenTelemetry Specification", <https://opentelemetry.io/docs/specs/otel/>.
-
[RFC3552]
-
-Rescorla, E. and B. Korver, "Guidelines for Writing RFC Text on Security Considerations", BCP 72, RFC 3552, DOI 10.17487/RFC3552, , <https://www.rfc-editor.org/rfc/rfc3552>.
-
[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>.
-
[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>.
-
[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>.
@@ -3143,7 +2660,7 @@ the "JSON Web Token Claims" registry maintained by IANA:

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

+UUIDs per Section 3.2.2.

@@ -3155,7 +2672,7 @@ agents operate in separate trust domains with a federation relationship. The DAG records that independent assessments from both organizations were completed before trade execution.

-
+
 Trust Domain: bank.example
@@ -3182,13 +2699,13 @@ Trust Domain: bank.example
     exec_act: execute_trade
 
-
Figure 6: +
Figure 4: Cross-Organization Trading Workflow

The resulting DAG:

-
+
 task-001 (analyze_portfolio_risk)   task-002 (assess_credit_rating)
@@ -3203,7 +2720,7 @@ task-001 (analyze_portfolio_risk)   task-002 (assess_credit_rating)
            [bank.example]
 
-
Figure 7: +
Figure 5: Cross-Organization DAG
diff --git a/draft-nennemann-wimse-ect-00.md b/draft-nennemann-wimse-ect-00.md index f9c736e..b243f39 100644 --- a/draft-nennemann-wimse-ect-00.md +++ b/draft-nennemann-wimse-ect-00.md @@ -32,10 +32,7 @@ normative: I-D.ietf-wimse-s2s-protocol: informative: - RFC3552: RFC8693: - RFC9421: - I-D.ni-wimse-ai-agent-identity: SPIFFE: title: "Secure Production Identity Framework for Everyone (SPIFFE)" target: https://spiffe.io/docs/latest/spiffe-about/overview/ @@ -53,73 +50,26 @@ informative: --- abstract -This document defines Execution Context Tokens (ECTs), an extension -to the Workload Identity in Multi System Environments (WIMSE) -architecture for distributed agentic workflows. ECTs provide -signed, structured records of task execution order across -agent-to-agent communication. By extending WIMSE Workload Identity -Tokens with execution context claims in JSON Web Token (JWT) -format, this specification enables systems to maintain structured -audit trails of agent execution. ECTs use a directed acyclic -graph (DAG) structure to represent task dependencies and integrate -with WIMSE Workload Identity Tokens (WIT) using the same signing -model and cryptographic primitives. A new HTTP header field, -Execution-Context, is defined for transporting ECTs alongside -existing WIMSE headers. +This document defines Execution Context Tokens (ECTs), a JWT-based +extension to the WIMSE architecture that records task execution +across distributed agentic workflows. Each ECT is a signed record +of a single task, linked to predecessor tasks through a directed +acyclic graph (DAG). ECTs reuse the WIMSE signing model and are +transported in a new Execution-Context HTTP header field alongside +existing WIMSE identity headers. --- middle # Introduction -## Motivation - -The Workload Identity in Multi System Environments (WIMSE) -framework {{I-D.ietf-wimse-arch}} provides robust workload -authentication through Workload Identity Tokens (WIT) and Workload -Proof Tokens (WPT). The WIMSE service-to-service protocol -{{I-D.ietf-wimse-s2s-protocol}} defines how workloads authenticate -each other across call chains using the Workload-Identity and -Workload-Proof-Token HTTP headers. - -However, workload identity alone does not address execution -accountability. Knowing who performed an action does not record -what was done or in what order. - -Regulated environments increasingly deploy autonomous agents that -coordinate across organizational boundaries. Domains such as -healthcare, finance, and logistics require structured, auditable -records of automated decision-making and execution. - -This document defines an extension to the WIMSE architecture that -addresses the gap between workload identity and execution -accountability. WIMSE authenticates agents; this extension records -what they did and in what order. - -As identified in {{I-D.ni-wimse-ai-agent-identity}}, call context -in agentic workflows needs to be visible and preserved. ECTs -provide a mechanism to address this requirement with cryptographic -assurances. - -## Problem Statement - -Three core gaps exist in current approaches to regulated agentic -systems: - -1. WIMSE authenticates agents but does not record what they - actually did. A WIT proves "Agent A is authorized" but not - "Agent A executed Task X, producing Output Z." - -2. No standard mechanism exists to cryptographically order and - link task execution across a multi-agent workflow. - -3. No mechanism exists to reconstruct the complete execution - history of a distributed workflow for audit purposes. - -Existing observability tools such as distributed tracing -{{OPENTELEMETRY}} provide visibility for debugging and monitoring -but do not provide cryptographic assurances. Tracing data is not -cryptographically signed, not tamper-evident, and not designed for -regulatory audit scenarios. +The WIMSE framework {{I-D.ietf-wimse-arch}} and its service-to- +service protocol {{I-D.ietf-wimse-s2s-protocol}} authenticate +workloads across call chains but do not record what those +workloads actually did. This document defines Execution Context +Tokens (ECTs), a JWT-based extension that fills the gap between +workload identity and execution accountability. Each ECT is a +signed record of a single task, linked to predecessor tasks +through a directed acyclic graph (DAG). ## Scope and Applicability @@ -127,8 +77,6 @@ This document defines: - The Execution Context Token (ECT) format ({{ect-format}}) - DAG structure for task dependency ordering ({{dag-validation}}) -- Integration with the WIMSE identity framework - ({{wimse-integration}}) - An HTTP header for ECT transport ({{http-header}}) - Audit ledger interface requirements ({{ledger-interface}}) @@ -178,104 +126,6 @@ Trust Domain: shared identity issuer, corresponding to a SPIFFE {{SPIFFE}} trust domain. -# WIMSE Architecture Integration {#wimse-integration} - -## WIMSE Foundation - -The WIMSE architecture {{I-D.ietf-wimse-arch}} defines: - -- Workload Identity Tokens (WIT) that prove a workload's identity - within a trust domain ("I am Agent X in trust domain Y") -- Workload Proof Tokens (WPT) that prove possession of the private - key associated with a WIT ("I control the key for Agent X") -- Multi-hop authentication via the service-to-service protocol - {{I-D.ietf-wimse-s2s-protocol}} - -The following execution accountability needs are complementary to -the WIMSE scope and are not addressed by workload identity alone: - -- Recording what agents actually do with their authenticated - identity -- Maintaining structured execution records -- Linking actions to their predecessors with cryptographic assurance - -## Extension Model - -ECTs extend WIMSE by adding an execution accountability layer -between the identity layer and the application layer: - -~~~ ascii-art -+--------------------------------------------------+ -| WIMSE Layer (Identity) | -| WIT: "I am Agent X (spiffe://td/agent/x)" | -| WPT: "I prove I control the key for Agent X" | -+--------------------------------------------------+ - | - v -+--------------------------------------------------+ -| ECT Layer (Execution Accountability) [This Spec]| -| ECT: "Task executed, dependencies met, | -| inputs/outputs hashed" | -+--------------------------------------------------+ - | - v -+--------------------------------------------------+ -| Optional: Audit Ledger (Immutable Record) | -| "ECTs MAY be appended to an audit ledger" | -+--------------------------------------------------+ -~~~ -{: #fig-layers title="WIMSE Extension Architecture Layers"} - -This extension reuses the WIMSE signing model, extends JWT claims -using standard JWT extensibility {{RFC7519}}, and maintains WIMSE -concepts including trust domains and workload identifiers. - -## Integration Points {#integration-points} - -An ECT integrates with the WIMSE identity framework through the -following mechanisms: - -- The ECT JOSE header "kid" parameter MUST reference the public - key identifier from the agent's WIT. - -- In WIMSE deployments, the ECT "iss" claim SHOULD use the WIMSE - workload identifier format (a SPIFFE ID {{SPIFFE}}). - -- The ECT MUST be signed with the same private key associated - with the agent's WIT. - -- The ECT signing algorithm (JOSE header "alg" parameter) MUST - match the algorithm used in the corresponding WIT. - -When an agent makes an HTTP request to another agent, the -Execution-Context header is carried alongside WIMSE identity -headers: - -~~~ ascii-art -HTTP Request from Agent A to Agent B: - Workload-Identity: - Execution-Context: -~~~ -{: #fig-http-headers title="HTTP Header Stacking"} - -When a Workload Proof Token (WPT) is available per -{{I-D.ietf-wimse-s2s-protocol}}, agents SHOULD include it -alongside the WIT and ECT. ECT verification does not depend -on the presence of a WPT; the ECT is independently verifiable -via the WIT public key. - -The receiving agent (Agent B) verifies in order: - -1. WIT (WIMSE layer): Verifies Agent A's identity within the - trust domain. WPT verification, if present, per - {{I-D.ietf-wimse-s2s-protocol}}. - -2. ECT (this extension): Records what Agent A did and what - precedent tasks exist. - -3. Ledger (if deployed): Appends the verified ECT to the audit - ledger. - # Execution Context Token Format {#ect-format} An Execution Context Token is a JSON Web Token (JWT) {{RFC7519}} @@ -284,6 +134,14 @@ JWS Compact Serialization (the base64url-encoded `header.payload.signature` format) so that they can be carried in a single HTTP header value. +ECTs reuse the WIMSE signing model. The ECT MUST be signed with +the same private key associated with the agent's WIT. The JOSE +header "kid" parameter MUST reference the public key identifier +from the agent's WIT, and the "alg" parameter MUST match the +algorithm used in the corresponding WIT. In WIMSE deployments, +the ECT "iss" claim SHOULD use the WIMSE workload identifier +format (a SPIFFE ID {{SPIFFE}}). + ## JOSE Header {#jose-header} The ECT JOSE header MUST contain the following parameters: @@ -317,13 +175,9 @@ kid: ## JWT Claims {#jwt-claims} -The ECT payload contains both WIMSE-compatible standard JWT claims -and execution context claims defined by this specification. - ### Standard JWT Claims -The following standard JWT claims {{RFC7519}} MUST be present in -every ECT: +An ECT MUST contain the following standard JWT claims {{RFC7519}}: iss: : REQUIRED. StringOrURI. A URI identifying the issuer of the @@ -335,59 +189,29 @@ iss: aud: : REQUIRED. StringOrURI or array of StringOrURI. The intended - recipient(s) of the ECT. Because ECTs serve as both inter-agent - messages and audit records, the "aud" claim SHOULD contain the - identifiers of all entities that will verify the ECT. In - practice this means: - - * **Point-to-point delivery**: when an ECT is sent from one - agent to a single next agent, "aud" contains that agent's - workload identity. The receiving agent verifies the ECT and - forwards it to the ledger on behalf of the issuer. - - * **Direct-to-ledger submission**: when an ECT is submitted - directly to the audit ledger (e.g., after a join or at - workflow completion), "aud" contains the ledger's identity. - - * **Multi-audience**: when an ECT must be verified by both the - next agent and the ledger independently, "aud" MUST be an - array containing both identifiers (e.g., - \["spiffe://example.com/agent/next", - "spiffe://example.com/system/ledger"\]). Each verifier checks - that its own identity appears in the array. - - In multi-parent (join) scenarios where a task depends on ECTs - from multiple parent agents, the joining agent creates a new ECT - with the parent task IDs in "par". The "aud" of this new ECT - is set according to the rules above based on where the ECT will - be delivered — it is independent of the "aud" values in the - parent ECTs. + recipient(s) of the ECT. The "aud" claim SHOULD contain the + identifiers of all entities that will verify the ECT. When + an ECT must 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". iat: : REQUIRED. NumericDate. The time at which the ECT was issued. - The ECT records a completed action, so the "iat" value reflects - when the record was created, not when task execution began. exp: : REQUIRED. NumericDate. The expiration time of the ECT. - Implementations SHOULD set this to 5 to 15 minutes after "iat" - to limit the replay window while allowing for reasonable clock - skew and processing time. - -The standard JWT "nbf" (Not Before) claim is not used in ECTs -because ECTs record completed actions and are valid immediately -upon issuance. + Implementations SHOULD set this to 5 to 15 minutes after "iat". jti: -: REQUIRED. String. A globally unique identifier for both the - ECT and the task it records, in UUID format {{RFC9562}}. Since - each ECT represents exactly one task, "jti" serves as both the - token identifier (for replay detection) and the task identifier - (for DAG parent references in "par"). Receivers MUST reject - ECTs whose "jti" has already been seen within the expiration - window. When "wid" is present, uniqueness is scoped to the - workflow; when "wid" is absent, uniqueness MUST be enforced - globally across the ECT store. +: 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 (for replay detection) and + the task identifier (for DAG parent references in "par"). + Receivers MUST reject ECTs whose "jti" has already been seen + within the expiration window. When "wid" is present, + uniqueness is scoped to the workflow; when "wid" is absent, + uniqueness MUST be enforced globally across the ECT store. ### Execution Context {#exec-claims} @@ -401,22 +225,15 @@ wid: exec_act: : REQUIRED. String. The action or task type identifier describing what the agent performed (e.g., "process_payment", - "validate_safety", "calculate_dosage"). Note: this claim is - intentionally named "exec_act" rather than "act" to avoid - collision with the "act" (Actor) claim registered by - {{RFC8693}}. + "validate_safety"). This claim name avoids collision with the + "act" (Actor) claim registered by {{RFC8693}}. par: : REQUIRED. Array of strings. Parent 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. Parent ECTs may have passed their own - "exp" time; ECT expiration applies to the verification window - of the ECT itself, not to its validity as a parent reference - in the ECT store. Note: "par" is not a registered JWT claim - and does not conflict with OAuth Pushed Authorization Requests - (RFC 9126), which defines an endpoint, not a token claim. + multiple root tasks. ### Data Integrity {#data-integrity-claims} @@ -426,10 +243,9 @@ 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. This follows the same fixed-algorithm pattern - used by the DPoP "ath" claim {{RFC9449}} and the WIMSE WPT - "tth" claim {{I-D.ietf-wimse-s2s-protocol}}: SHA-256 is the - mandatory algorithm with no algorithm prefix in the value. + of the input. SHA-256 is the mandatory algorithm with no + algorithm prefix in the value, consistent with {{RFC9449}} and + {{I-D.ietf-wimse-s2s-protocol}}. out_hash: : OPTIONAL. String. The base64url encoding (without padding) of @@ -440,24 +256,12 @@ out_hash: ext: : OPTIONAL. Object. A general-purpose extension object for - domain-specific claims not defined by this specification. The - short name "ext" follows the JWT convention of concise claim - names and is chosen over alternatives like "extensions" for - compactness. Implementations that do not understand extension - claims MUST ignore them. - -To avoid key collisions between different domains, extension -key names SHOULD use reverse domain notation (e.g., -"com.example.custom_field") to avoid collisions between -independently developed extensions. To prevent abuse and -excessive token size, the serialized JSON representation of -the "ext" object SHOULD NOT exceed 4096 bytes, and the JSON -nesting depth within the "ext" object SHOULD NOT exceed 5 -levels. Implementations SHOULD reject ECTs whose "ext" claim -exceeds these limits. - -Extension keys for domain-specific use cases MAY be defined in -future documents. + 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 "ext" object SHOULD NOT exceed + 4096 bytes and SHOULD NOT exceed a nesting depth of 5 levels. ## Complete ECT Example @@ -498,7 +302,9 @@ parts separated by period (".") characters. An agent sending a request to another agent includes the Execution-Context header alongside the WIMSE Workload-Identity -header: +header. When a Workload Proof Token (WPT) is available per +{{I-D.ietf-wimse-s2s-protocol}}, agents SHOULD include it +alongside the WIT and ECT. ~~~ GET /api/safety-check HTTP/1.1 @@ -522,19 +328,10 @@ subsequent ECT. # DAG Validation {#dag-validation} -## Overview - ECTs form a Directed Acyclic Graph (DAG) where each task -references its parent tasks via the "par" claim. This structure -provides a cryptographically signed record of execution ordering, -enabling auditors to reconstruct the complete workflow and verify -that required predecessor tasks were recorded before dependent -tasks. - -DAG validation is performed against the ECT store — either an -audit ledger or the set of parent ECTs received inline. - -## Validation Rules +references its parent tasks via the "par" claim. DAG validation +is performed against the ECT store — either an audit ledger or +the set of parent ECTs received inline. When receiving and verifying an ECT, implementations MUST perform the following DAG validation steps: @@ -574,28 +371,10 @@ 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. -## Handling Unavailable Parent ECTs - -In distributed deployments, a parent ECT referenced in the "par" -array may not yet be available in the local ECT store at the time -of validation — for example, due to replication lag in a -distributed ledger or out-of-order message delivery. - -Implementations MUST distinguish between two cases: - -1. Parent not found and definitively absent: The parent "jti" - does not exist in any accessible ECT store. The ECT MUST be - rejected. - -2. Parent not yet available: The parent "jti" is not present - locally but may arrive due to known replication delays. - Implementations MAY defer validation for a bounded period - (RECOMMENDED: no more than 60 seconds). - -Deferred ECTs MUST NOT be treated as verified until all parent -references are resolved. If any parent reference remains -unresolved after the deferral period or after the ECT's own "exp" -time (whichever comes first), the ECT MUST 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. # Signature and Token Verification {#verification} @@ -701,21 +480,13 @@ workflow agents to reduce the risk of collusion. # Security Considerations -This section addresses security considerations following the -guidance in {{RFC3552}}. - ## Threat Model -The following threat actors are considered: - -- Malicious agent (insider threat): An agent within the trust - domain that intentionally creates false ECT claims. -- Compromised agent (external attacker): An agent whose private - key has been obtained by an external attacker. -- Ledger tamperer: An entity attempting to modify or delete ledger - entries after they have been recorded. -- Time manipulator: An entity attempting to manipulate timestamps - to alter perceived execution ordering. +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, and (4) a time manipulator altering timestamps to affect +perceived ordering. ## Self-Assertion Limitation {#self-assertion-limitation} @@ -732,20 +503,9 @@ ECTs do not independently verify that: The trustworthiness of ECT claims depends on the trustworthiness of the signing agent and the integrity of the broader deployment -environment. - -## Organizational Prerequisites - -ECTs operate within a broader trust framework. The guarantees -provided by ECTs are only meaningful when the following -organizational controls are in place: - -- Key management governance: Controls over who provisions agent - keys and how keys are protected. -- Ledger integrity governance: The ledger is maintained by an - entity independent of the workflow agents. -- Agent deployment governance: Agents are deployed and maintained - in a manner that preserves their integrity. +environment. ECTs provide a technical mechanism for execution +recording; they do not by themselves satisfy any specific +regulatory compliance requirement. ## Signature Verification @@ -766,109 +526,55 @@ implement custom signature verification. ## Replay Attack Prevention -ECTs include short expiration times (RECOMMENDED: 5-15 minutes) to -limit the window for replay attacks. The "aud" claim restricts -replay to unintended recipients: an ECT intended for Agent B -will be rejected by Agent C. The "iat" claim enables receivers to -reject ECTs that are too old, even if not yet expired. - -The DAG structure provides additional replay protection: an ECT -referencing parent tasks that already have a recorded child task -with the same action can be flagged as a potential replay. - +ECTs include short expiration times (RECOMMENDED: 5-15 minutes) +and audience restriction via "aud" to limit replay attacks. Implementations MUST maintain a cache of recently-seen "jti" -values to detect replayed ECTs within the expiration window. -An ECT with a duplicate "jti" value MUST be rejected. - -Additionally, each ECT is cryptographically bound to the issuing -agent via the JOSE "kid" parameter, which references the agent's -WIT public key. Verifiers MUST confirm that the "kid" resolves -to the "iss" agent's key (step 8 in {{verification}}), preventing -one agent from replaying another agent's ECT as its own. +values and MUST reject ECTs with duplicate "jti" values. Each +ECT is cryptographically bound to the issuing agent via "kid"; +verifiers MUST confirm that "kid" resolves to the "iss" agent's +key (step 8 in {{verification}}). ## Man-in-the-Middle Protection -ECTs do not replace transport-layer security. ECTs MUST be -transmitted over TLS or mTLS connections. When used with the WIMSE -service-to-service protocol {{I-D.ietf-wimse-s2s-protocol}}, -transport security is already established. HTTP Message Signatures -{{RFC9421}} provide an alternative channel binding mechanism. - -The defense-in-depth model provides: - -- TLS/mTLS (transport layer): Prevents network-level tampering. -- WIT/WPT (WIMSE identity layer): Proves agent identity and - request authorization. -- ECT (execution accountability layer): Records what the agent did. +ECTs MUST be transmitted over TLS or mTLS connections. When used +with {{I-D.ietf-wimse-s2s-protocol}}, transport security is +already established. ## Key Compromise If an agent's private key is compromised, an attacker can forge -ECTs that appear to originate from that agent. To mitigate this -risk: +ECTs that appear to originate from that agent. Mitigations: - Implementations SHOULD use short-lived keys and rotate them - frequently (hours to days, not months). -- Private keys SHOULD be stored in Hardware Security Modules (HSMs) - or equivalent secure key storage. + frequently. +- Private keys SHOULD be stored in hardware security modules or + equivalent secure key storage. - Trust domains MUST support rapid key revocation. -- Upon suspected compromise, the trust domain MUST revoke the - compromised key and issue a new WIT with a fresh key pair. -ECTs signed with a compromised key that were recorded in the -ledger before revocation remain valid historical records but SHOULD -be flagged in the ledger as "signed with subsequently revoked key" -for audit purposes. +ECTs recorded before key revocation remain valid historical +records but SHOULD be flagged for audit purposes. New ECTs +MUST NOT reference a parent ECT whose signing key is known to +be revoked at creation time. -ECT revocation does not propagate through the DAG. If a parent -ECT's signing key is later revoked, child ECTs that were verified -and recorded before that revocation remain valid — they captured -a legitimate execution record at the time of issuance. However, -auditors reviewing a workflow SHOULD flag any ECT in the DAG -whose signing key was subsequently revoked, so that the scope of -a potential compromise can be assessed. New ECTs MUST NOT be -created with a "par" reference to an ECT whose signing key is -known to be revoked at creation time. - -## Collusion and False Claims {#collusion-and-false-claims} +## Collusion and DAG Integrity {#collusion-and-false-claims} A single malicious agent cannot forge parent task references -because DAG validation requires parent tasks to exist in the -ledger. However, multiple colluding agents could potentially -create a false execution history if they control the ledger. +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 "par" to hide influences on its +output; because ECTs are self-asserted +({{self-assertion-limitation}}), no mechanism can force complete +dependency declaration. Mitigations include: -- Independent ledger maintenance: The ledger SHOULD be maintained - by an entity independent of the workflow agents. -- Cross-verification: Multiple independent ledger replicas can be - compared for consistency. -- Out-of-band audit: External auditors periodically verify ledger - contents against expected workflow patterns. - -## DAG Integrity Attacks - -Because the DAG structure is the primary mechanism for establishing -execution ordering, attackers may attempt to manipulate it: - -- False parent references: A malicious agent creates an ECT that - references parent tasks from an unrelated workflow, inserting - itself into a legitimate execution history. DAG validation - ({{dag-validation}}) mitigates this by requiring parent existence - in the ECT store, and the "wid" claim scopes parent references - to a single workflow when present. -- Parent omission (pruning): An agent deliberately omits one or - more actual parent dependencies from the "par" array to hide - that certain tasks influenced its output. Because ECTs are - self-asserted ({{self-assertion-limitation}}), no mechanism can - force an agent to declare all dependencies. External auditors - can detect omission by comparing the declared DAG against - expected workflow patterns. -- Shadow DAGs: Multiple colluding agents fabricate an entire - execution history by creating a sequence of ECTs with mutual - parent references. Independent ledger maintenance and - cross-verification (see {{collusion-and-false-claims}} above) - are the primary mitigations. +- 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 SHOULD validate that the declared "wid" of parent ECTs matches the "wid" of the child ECT, rejecting cross-workflow @@ -880,54 +586,27 @@ policy. 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 "par", as an authorization -grant. The "par" claim demonstrates that predecessor tasks were -recorded, not that the current agent is authorized to act on -their outputs. Authorization decisions MUST remain with the -identity and authorization layer (WIT, WPT, and deployment -policy). As noted in {{I-D.ni-wimse-ai-agent-identity}}, -AI intermediaries introduce novel escalation vectors; ECTs -MUST NOT be used to circumvent authorization boundaries. +grant. Authorization decisions MUST remain with the identity and +authorization layer (WIT, WPT, and deployment policy). ## Denial of Service -ECT signature verification is computationally inexpensive -(approximately 1ms per ECT on modern hardware for ES256). DAG -validation complexity is O(V) where V is the number of ancestor -nodes reachable from the parent references; for typical shallow -DAGs this is efficient. - -Implementations SHOULD apply rate limiting at the API layer to -prevent excessive ECT submissions. DAG validation SHOULD be -performed after signature verification to avoid wasting resources -on unsigned or incorrectly signed tokens. +Implementations SHOULD apply rate limiting to prevent excessive +ECT submissions. DAG validation SHOULD be performed after +signature verification to avoid wasting resources on unsigned +tokens. ## Timestamp Accuracy -ECTs rely on timestamps ("iat", "exp") for temporal ordering. -Clock skew between agents can lead to incorrect ordering -judgments. Implementations SHOULD use synchronized time sources -(e.g., NTP) and SHOULD allow a configurable clock skew tolerance -(RECOMMENDED: 30 seconds). - -Cross-organizational deployments where agents span multiple trust -domains with independent time sources MAY require a higher clock -skew tolerance. Deployments using trust domain federation SHOULD -document their configured clock skew tolerance value and SHOULD -ensure all participating trust domains agree on a common tolerance. - -The temporal ordering check in DAG validation incorporates the -clock skew tolerance to account for minor clock differences -between agents. +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. ## ECT Size Constraints -ECTs with many parent tasks or large extension objects can -increase HTTP header size. Implementations SHOULD limit the "par" -array to a maximum of 256 entries. Workflows requiring more -parent references SHOULD introduce intermediate aggregation -tasks. The "ext" object SHOULD NOT exceed 4096 bytes when -serialized as JSON and SHOULD NOT exceed a nesting depth of -5 levels (see also {{extension-claims}}). +Implementations SHOULD limit the "par" array to a maximum of +256 entries. See {{extension-claims}} for "ext" size limits. # Privacy Considerations diff --git a/draft-nennemann-wimse-ect-00.txt b/draft-nennemann-wimse-ect-00.txt index 9b7e1f7..33f2fe3 100644 --- a/draft-nennemann-wimse-ect-00.txt +++ b/draft-nennemann-wimse-ect-00.txt @@ -13,18 +13,13 @@ Expires: 29 August 2026 Abstract - This document defines Execution Context Tokens (ECTs), an extension - to the Workload Identity in Multi System Environments (WIMSE) - architecture for distributed agentic workflows. ECTs provide signed, - structured records of task execution order across agent-to-agent - communication. By extending WIMSE Workload Identity Tokens with - execution context claims in JSON Web Token (JWT) format, this - specification enables systems to maintain structured audit trails of - agent execution. ECTs use a directed acyclic graph (DAG) structure - to represent task dependencies and integrate with WIMSE Workload - Identity Tokens (WIT) using the same signing model and cryptographic - primitives. A new HTTP header field, Execution-Context, is defined - for transporting ECTs alongside existing WIMSE headers. + This document defines Execution Context Tokens (ECTs), a JWT-based + extension to the WIMSE architecture that records task execution + across distributed agentic workflows. Each ECT is a signed record of + a single task, linked to predecessor tasks through a directed acyclic + graph (DAG). ECTs reuse the WIMSE signing model and are transported + in a new Execution-Context HTTP header field alongside existing WIMSE + identity headers. Status of This Memo @@ -53,6 +48,11 @@ Copyright Notice + + + + + Nennemann Expires 29 August 2026 [Page 1] Internet-Draft WIMSE Execution Context February 2026 @@ -70,42 +70,42 @@ Internet-Draft WIMSE Execution Context February 2026 Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3 - 1.1. Motivation . . . . . . . . . . . . . . . . . . . . . . . 3 - 1.2. Problem Statement . . . . . . . . . . . . . . . . . . . . 4 - 1.3. Scope and Applicability . . . . . . . . . . . . . . . . . 4 - 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 5 - 3. WIMSE Architecture Integration . . . . . . . . . . . . . . . 5 - 3.1. WIMSE Foundation . . . . . . . . . . . . . . . . . . . . 5 - 3.2. Extension Model . . . . . . . . . . . . . . . . . . . . . 6 - 3.3. Integration Points . . . . . . . . . . . . . . . . . . . 7 - 4. Execution Context Token Format . . . . . . . . . . . . . . . 8 - 4.1. JOSE Header . . . . . . . . . . . . . . . . . . . . . . . 8 - 4.2. JWT Claims . . . . . . . . . . . . . . . . . . . . . . . 8 - 4.2.1. Standard JWT Claims . . . . . . . . . . . . . . . . . 8 - 4.2.2. Execution Context . . . . . . . . . . . . . . . . . . 10 - 4.2.3. Data Integrity . . . . . . . . . . . . . . . . . . . 10 - 4.2.4. Extensions . . . . . . . . . . . . . . . . . . . . . 11 - 4.3. Complete ECT Example . . . . . . . . . . . . . . . . . . 11 - 5. HTTP Header Transport . . . . . . . . . . . . . . . . . . . . 12 - 5.1. Execution-Context Header Field . . . . . . . . . . . . . 12 - 6. DAG Validation . . . . . . . . . . . . . . . . . . . . . . . 12 - 6.1. Overview . . . . . . . . . . . . . . . . . . . . . . . . 12 - 6.2. Validation Rules . . . . . . . . . . . . . . . . . . . . 13 - 6.3. Handling Unavailable Parent ECTs . . . . . . . . . . . . 13 - 7. Signature and Token Verification . . . . . . . . . . . . . . 14 - 7.1. Verification Procedure . . . . . . . . . . . . . . . . . 14 - 8. Audit Ledger Interface . . . . . . . . . . . . . . . . . . . 15 - 9. Security Considerations . . . . . . . . . . . . . . . . . . . 16 - 9.1. Threat Model . . . . . . . . . . . . . . . . . . . . . . 16 - 9.2. Self-Assertion Limitation . . . . . . . . . . . . . . . . 16 - 9.3. Organizational Prerequisites . . . . . . . . . . . . . . 17 - 9.4. Signature Verification . . . . . . . . . . . . . . . . . 17 - 9.5. Replay Attack Prevention . . . . . . . . . . . . . . . . 17 - 9.6. Man-in-the-Middle Protection . . . . . . . . . . . . . . 18 - 9.7. Key Compromise . . . . . . . . . . . . . . . . . . . . . 18 - 9.8. Collusion and False Claims . . . . . . . . . . . . . . . 19 - 9.9. DAG Integrity Attacks . . . . . . . . . . . . . . . . . . 19 - 9.10. Privilege Escalation via ECTs . . . . . . . . . . . . . . 20 + 1.1. Scope and Applicability . . . . . . . . . . . . . . . . . 3 + 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 4 + 3. Execution Context Token Format . . . . . . . . . . . . . . . 4 + 3.1. JOSE Header . . . . . . . . . . . . . . . . . . . . . . . 5 + 3.2. JWT Claims . . . . . . . . . . . . . . . . . . . . . . . 5 + 3.2.1. Standard JWT Claims . . . . . . . . . . . . . . . . . 5 + 3.2.2. Execution Context . . . . . . . . . . . . . . . . . . 6 + 3.2.3. Data Integrity . . . . . . . . . . . . . . . . . . . 6 + 3.2.4. Extensions . . . . . . . . . . . . . . . . . . . . . 7 + 3.3. Complete ECT Example . . . . . . . . . . . . . . . . . . 7 + 4. HTTP Header Transport . . . . . . . . . . . . . . . . . . . . 7 + 4.1. Execution-Context Header Field . . . . . . . . . . . . . 8 + 5. DAG Validation . . . . . . . . . . . . . . . . . . . . . . . 8 + 6. Signature and Token Verification . . . . . . . . . . . . . . 9 + 6.1. Verification Procedure . . . . . . . . . . . . . . . . . 9 + 7. Audit Ledger Interface . . . . . . . . . . . . . . . . . . . 11 + 8. Security Considerations . . . . . . . . . . . . . . . . . . . 11 + 8.1. Threat Model . . . . . . . . . . . . . . . . . . . . . . 12 + 8.2. Self-Assertion Limitation . . . . . . . . . . . . . . . . 12 + 8.3. Signature Verification . . . . . . . . . . . . . . . . . 12 + 8.4. Replay Attack Prevention . . . . . . . . . . . . . . . . 13 + 8.5. Man-in-the-Middle Protection . . . . . . . . . . . . . . 13 + 8.6. Key Compromise . . . . . . . . . . . . . . . . . . . . . 13 + 8.7. Collusion and DAG Integrity . . . . . . . . . . . . . . . 13 + 8.8. Privilege Escalation via ECTs . . . . . . . . . . . . . . 14 + 8.9. Denial of Service . . . . . . . . . . . . . . . . . . . . 14 + 8.10. Timestamp Accuracy . . . . . . . . . . . . . . . . . . . 14 + 8.11. ECT Size Constraints . . . . . . . . . . . . . . . . . . 14 + 9. Privacy Considerations . . . . . . . . . . . . . . . . . . . 14 + 9.1. Data Exposure in ECTs . . . . . . . . . . . . . . . . . . 14 + 9.2. Data Minimization . . . . . . . . . . . . . . . . . . . . 15 + 9.3. Storage and Access Control . . . . . . . . . . . . . . . 15 + 10. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 15 + 10.1. Media Type Registration . . . . . . . . . . . . . . . . 15 + 10.2. HTTP Header Field Registration . . . . . . . . . . . . . 16 + 10.3. JWT Claims Registration . . . . . . . . . . . . . . . . 16 @@ -114,52 +114,52 @@ Nennemann Expires 29 August 2026 [Page 2] Internet-Draft WIMSE Execution Context February 2026 - 9.11. Denial of Service . . . . . . . . . . . . . . . . . . . . 20 - 9.12. Timestamp Accuracy . . . . . . . . . . . . . . . . . . . 20 - 9.13. ECT Size Constraints . . . . . . . . . . . . . . . . . . 21 - 10. Privacy Considerations . . . . . . . . . . . . . . . . . . . 21 - 10.1. Data Exposure in ECTs . . . . . . . . . . . . . . . . . 21 - 10.2. Data Minimization . . . . . . . . . . . . . . . . . . . 22 - 10.3. Storage and Access Control . . . . . . . . . . . . . . . 22 - 11. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 22 - 11.1. Media Type Registration . . . . . . . . . . . . . . . . 22 - 11.2. HTTP Header Field Registration . . . . . . . . . . . . . 23 - 11.3. JWT Claims Registration . . . . . . . . . . . . . . . . 23 - 12. References . . . . . . . . . . . . . . . . . . . . . . . . . 24 - 12.1. Normative References . . . . . . . . . . . . . . . . . . 24 - 12.2. Informative References . . . . . . . . . . . . . . . . . 25 - Use Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 - Cross-Organization Financial Trading . . . . . . . . . . . . . 27 - Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . 28 - WIMSE Workload Identity . . . . . . . . . . . . . . . . . . . . 28 - OAuth 2.0 Token Exchange and the "act" Claim . . . . . . . . . 28 - Transaction Tokens . . . . . . . . . . . . . . . . . . . . . . 29 - Distributed Tracing (OpenTelemetry) . . . . . . . . . . . . . . 30 - W3C Provenance Data Model (PROV) . . . . . . . . . . . . . . . 30 - SCITT (Supply Chain Integrity, Transparency, and Trust) . . . . 30 - Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 30 - Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 30 + 11. References . . . . . . . . . . . . . . . . . . . . . . . . . 17 + 11.1. Normative References . . . . . . . . . . . . . . . . . . 17 + 11.2. Informative References . . . . . . . . . . . . . . . . . 18 + Use Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 + Cross-Organization Financial Trading . . . . . . . . . . . . . 19 + Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . 21 + WIMSE Workload Identity . . . . . . . . . . . . . . . . . . . . 21 + OAuth 2.0 Token Exchange and the "act" Claim . . . . . . . . . 21 + Transaction Tokens . . . . . . . . . . . . . . . . . . . . . . 21 + Distributed Tracing (OpenTelemetry) . . . . . . . . . . . . . . 22 + W3C Provenance Data Model (PROV) . . . . . . . . . . . . . . . 22 + SCITT (Supply Chain Integrity, Transparency, and Trust) . . . . 23 + Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 23 + Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 23 1. Introduction -1.1. Motivation + The WIMSE framework [I-D.ietf-wimse-arch] and its service-to- service + protocol [I-D.ietf-wimse-s2s-protocol] authenticate workloads across + call chains but do not record what those workloads actually did. + This document defines Execution Context Tokens (ECTs), a JWT-based + extension that fills the gap between workload identity and execution + accountability. Each ECT is a signed record of a single task, linked + to predecessor tasks through a directed acyclic graph (DAG). - The Workload Identity in Multi System Environments (WIMSE) framework - [I-D.ietf-wimse-arch] provides robust workload authentication through - Workload Identity Tokens (WIT) and Workload Proof Tokens (WPT). The - WIMSE service-to-service protocol [I-D.ietf-wimse-s2s-protocol] - defines how workloads authenticate each other across call chains - using the Workload-Identity and Workload-Proof-Token HTTP headers. +1.1. Scope and Applicability - However, workload identity alone does not address execution - accountability. Knowing who performed an action does not record what - was done or in what order. + This document defines: - Regulated environments increasingly deploy autonomous agents that - coordinate across organizational boundaries. Domains such as - healthcare, finance, and logistics require structured, auditable - records of automated decision-making and execution. + * The Execution Context Token (ECT) format (Section 3) + * DAG structure for task dependency ordering (Section 5) + + * An HTTP header for ECT transport (Section 4) + + * Audit ledger interface requirements (Section 7) + + The following are out of scope and are handled by WIMSE: + + * Workload authentication and identity provisioning + + * Key distribution and management + + * Trust domain establishment and management + + * Credential lifecycle management @@ -170,68 +170,6 @@ Nennemann Expires 29 August 2026 [Page 3] Internet-Draft WIMSE Execution Context February 2026 - This document defines an extension to the WIMSE architecture that - addresses the gap between workload identity and execution - accountability. WIMSE authenticates agents; this extension records - what they did and in what order. - - As identified in [I-D.ni-wimse-ai-agent-identity], call context in - agentic workflows needs to be visible and preserved. ECTs provide a - mechanism to address this requirement with cryptographic assurances. - -1.2. Problem Statement - - Three core gaps exist in current approaches to regulated agentic - systems: - - 1. WIMSE authenticates agents but does not record what they actually - did. A WIT proves "Agent A is authorized" but not "Agent A - executed Task X, producing Output Z." - - 2. No standard mechanism exists to cryptographically order and link - task execution across a multi-agent workflow. - - 3. No mechanism exists to reconstruct the complete execution history - of a distributed workflow for audit purposes. - - Existing observability tools such as distributed tracing - [OPENTELEMETRY] provide visibility for debugging and monitoring but - do not provide cryptographic assurances. Tracing data is not - cryptographically signed, not tamper-evident, and not designed for - regulatory audit scenarios. - -1.3. Scope and Applicability - - This document defines: - - * The Execution Context Token (ECT) format (Section 4) - - * DAG structure for task dependency ordering (Section 6) - - * Integration with the WIMSE identity framework (Section 3) - - * An HTTP header for ECT transport (Section 5) - - * Audit ledger interface requirements (Section 8) - - The following are out of scope and are handled by WIMSE: - - * Workload authentication and identity provisioning - - - - -Nennemann Expires 29 August 2026 [Page 4] - -Internet-Draft WIMSE Execution Context February 2026 - - - * Key distribution and management - - * Trust domain establishment and management - - * Credential lifecycle management - 2. Conventions and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", @@ -267,141 +205,36 @@ Internet-Draft WIMSE Execution Context February 2026 boundary with a shared identity issuer, corresponding to a SPIFFE [SPIFFE] trust domain. -3. WIMSE Architecture Integration - -3.1. WIMSE Foundation - - The WIMSE architecture [I-D.ietf-wimse-arch] defines: - - - - - -Nennemann Expires 29 August 2026 [Page 5] - -Internet-Draft WIMSE Execution Context February 2026 - - - * Workload Identity Tokens (WIT) that prove a workload's identity - within a trust domain ("I am Agent X in trust domain Y") - - * Workload Proof Tokens (WPT) that prove possession of the private - key associated with a WIT ("I control the key for Agent X") - - * Multi-hop authentication via the service-to-service protocol - [I-D.ietf-wimse-s2s-protocol] - - The following execution accountability needs are complementary to the - WIMSE scope and are not addressed by workload identity alone: - - * Recording what agents actually do with their authenticated - identity - - * Maintaining structured execution records - - * Linking actions to their predecessors with cryptographic assurance - -3.2. Extension Model - - ECTs extend WIMSE by adding an execution accountability layer between - the identity layer and the application layer: - - +--------------------------------------------------+ - | WIMSE Layer (Identity) | - | WIT: "I am Agent X (spiffe://td/agent/x)" | - | WPT: "I prove I control the key for Agent X" | - +--------------------------------------------------+ - | - v - +--------------------------------------------------+ - | ECT Layer (Execution Accountability) [This Spec]| - | ECT: "Task executed, dependencies met, | - | inputs/outputs hashed" | - +--------------------------------------------------+ - | - v - +--------------------------------------------------+ - | Optional: Audit Ledger (Immutable Record) | - | "ECTs MAY be appended to an audit ledger" | - +--------------------------------------------------+ - - Figure 1: WIMSE Extension Architecture Layers - - This extension reuses the WIMSE signing model, extends JWT claims - using standard JWT extensibility [RFC7519], and maintains WIMSE - concepts including trust domains and workload identifiers. - - - -Nennemann Expires 29 August 2026 [Page 6] - -Internet-Draft WIMSE Execution Context February 2026 - - -3.3. Integration Points - - An ECT integrates with the WIMSE identity framework through the - following mechanisms: - - * The ECT JOSE header "kid" parameter MUST reference the public key - identifier from the agent's WIT. - - * In WIMSE deployments, the ECT "iss" claim SHOULD use the WIMSE - workload identifier format (a SPIFFE ID [SPIFFE]). - - * The ECT MUST be signed with the same private key associated with - the agent's WIT. - - * The ECT signing algorithm (JOSE header "alg" parameter) MUST match - the algorithm used in the corresponding WIT. - - When an agent makes an HTTP request to another agent, the Execution- - Context header is carried alongside WIMSE identity headers: - - HTTP Request from Agent A to Agent B: - Workload-Identity: - Execution-Context: - - Figure 2: HTTP Header Stacking - - When a Workload Proof Token (WPT) is available per - [I-D.ietf-wimse-s2s-protocol], agents SHOULD include it alongside the - WIT and ECT. ECT verification does not depend on the presence of a - WPT; the ECT is independently verifiable via the WIT public key. - - The receiving agent (Agent B) verifies in order: - - 1. WIT (WIMSE layer): Verifies Agent A's identity within the trust - domain. WPT verification, if present, per - [I-D.ietf-wimse-s2s-protocol]. - - 2. ECT (this extension): Records what Agent A did and what precedent - tasks exist. - - 3. Ledger (if deployed): Appends the verified ECT to the audit - ledger. - - - - - - - - - -Nennemann Expires 29 August 2026 [Page 7] - -Internet-Draft WIMSE Execution Context February 2026 - - -4. Execution Context Token Format +3. Execution Context Token Format An Execution Context Token is a JSON Web Token (JWT) [RFC7519] signed as a JSON Web Signature (JWS) [RFC7515]. ECTs MUST use JWS Compact Serialization (the base64url-encoded header.payload.signature format) so that they can be carried in a single HTTP header value. -4.1. JOSE Header + + + + + + + + + +Nennemann Expires 29 August 2026 [Page 4] + +Internet-Draft WIMSE Execution Context February 2026 + + + ECTs reuse the WIMSE signing model. The ECT MUST be signed with the + same private key associated with the agent's WIT. The JOSE header + "kid" parameter MUST reference the public key identifier from the + agent's WIT, and the "alg" parameter MUST match the algorithm used in + the corresponding WIT. In WIMSE deployments, the ECT "iss" claim + SHOULD use the WIMSE workload identifier format (a SPIFFE ID + [SPIFFE]). + +3.1. JOSE Header The ECT JOSE header MUST contain the following parameters: @@ -411,7 +244,7 @@ Internet-Draft WIMSE Execution Context February 2026 "kid": "agent-a-key-id-123" } - Figure 3: ECT JOSE Header Example + Figure 1: ECT JOSE Header Example alg: REQUIRED. The digital signature algorithm used to sign the ECT. MUST match the algorithm in the corresponding WIT. @@ -428,94 +261,48 @@ Internet-Draft WIMSE Execution Context February 2026 the agent's WIT [RFC7517]. Used by verifiers to look up the correct public key for signature verification. -4.2. JWT Claims +3.2. JWT Claims - The ECT payload contains both WIMSE-compatible standard JWT claims - and execution context claims defined by this specification. +3.2.1. Standard JWT Claims -4.2.1. Standard JWT Claims - - The following standard JWT claims [RFC7519] MUST be present in every - ECT: + An ECT MUST contain the following standard JWT claims [RFC7519]: iss: REQUIRED. StringOrURI. A URI identifying the issuer of the - - - - - - -Nennemann Expires 29 August 2026 [Page 8] - -Internet-Draft WIMSE Execution Context February 2026 - - ECT. In WIMSE deployments, this SHOULD be the workload's SPIFFE ID in the format spiffe:///, matching the "sub" claim of the agent's WIT. Non-WIMSE deployments MAY use other URI schemes (e.g., HTTPS URLs or URN:UUID identifiers). aud: REQUIRED. StringOrURI or array of StringOrURI. The intended - recipient(s) of the ECT. Because ECTs serve as both inter-agent - messages and audit records, the "aud" claim SHOULD contain the - identifiers of all entities that will verify the ECT. In practice - this means: - - * *Point-to-point delivery*: when an ECT is sent from one agent - to a single next agent, "aud" contains that agent's workload - identity. The receiving agent verifies the ECT and forwards it - to the ledger on behalf of the issuer. - - * *Direct-to-ledger submission*: when an ECT is submitted - directly to the audit ledger (e.g., after a join or at workflow - completion), "aud" contains the ledger's identity. - - * *Multi-audience*: when an ECT must be verified by both the next - agent and the ledger independently, "aud" MUST be an array - containing both identifiers (e.g., - ["spiffe://example.com/agent/next", - "spiffe://example.com/system/ledger"]). Each verifier checks - that its own identity appears in the array. - - In multi-parent (join) scenarios where a task depends on ECTs from - multiple parent agents, the joining agent creates a new ECT with - the parent task IDs in "par". The "aud" of this new ECT is set - according to the rules above based on where the ECT will be - delivered — it is independent of the "aud" values in the parent - ECTs. - - iat: REQUIRED. NumericDate. The time at which the ECT was issued. - The ECT records a completed action, so the "iat" value reflects - when the record was created, not when task execution began. - - exp: REQUIRED. NumericDate. The expiration time of the ECT. - Implementations SHOULD set this to 5 to 15 minutes after "iat" to - limit the replay window while allowing for reasonable clock skew - and processing time. - - The standard JWT "nbf" (Not Before) claim is not used in ECTs because - ECTs record completed actions and are valid immediately upon - issuance. - - jti: REQUIRED. String. A globally unique identifier for both the -Nennemann Expires 29 August 2026 [Page 9] +Nennemann Expires 29 August 2026 [Page 5] Internet-Draft WIMSE Execution Context February 2026 - ECT and the task it records, in UUID format [RFC9562]. Since each - ECT represents exactly one task, "jti" serves as both the token - identifier (for replay detection) and the task identifier (for DAG - parent references in "par"). Receivers MUST reject ECTs whose - "jti" has already been seen within the expiration window. When - "wid" is present, uniqueness is scoped to the workflow; when "wid" - is absent, uniqueness MUST be enforced globally across the ECT - store. + recipient(s) of the ECT. The "aud" claim SHOULD contain the + identifiers of all entities that will verify the ECT. When an ECT + must 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". -4.2.2. Execution Context + 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 (for replay detection) and the task + identifier (for DAG parent references in "par"). Receivers MUST + reject ECTs whose "jti" has already been seen within the + expiration window. When "wid" is present, uniqueness is scoped to + the workflow; when "wid" is absent, uniqueness MUST be enforced + globally across the ECT store. + +3.2.2. Execution Context The following claims are defined by this specification: @@ -525,68 +312,52 @@ Internet-Draft WIMSE Execution Context February 2026 exec_act: REQUIRED. String. The action or task type identifier describing what the agent performed (e.g., "process_payment", - "validate_safety", "calculate_dosage"). Note: this claim is - intentionally named "exec_act" rather than "act" to avoid - collision with the "act" (Actor) claim registered by [RFC8693]. + "validate_safety"). This claim name avoids collision with the + "act" (Actor) claim registered by [RFC8693]. par: REQUIRED. Array of strings. Parent 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. Parent ECTs may have passed their own "exp" time; ECT - expiration applies to the verification window of the ECT itself, - not to its validity as a parent reference in the ECT store. Note: - "par" is not a registered JWT claim and does not conflict with - OAuth Pushed Authorization Requests (RFC 9126), which defines an - endpoint, not a token claim. + root tasks. -4.2.3. Data Integrity +3.2.3. Data Integrity 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. This follows the same fixed-algorithm - pattern used by the DPoP "ath" claim [RFC9449] and the WIMSE WPT - "tth" claim [I-D.ietf-wimse-s2s-protocol]: SHA-256 is the - mandatory algorithm with no algorithm prefix in the value. - - out_hash: OPTIONAL. String. The base64url encoding (without -Nennemann Expires 29 August 2026 [Page 10] + + +Nennemann Expires 29 August 2026 [Page 6] Internet-Draft WIMSE Execution Context February 2026 + 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 [RFC9449] and + [I-D.ietf-wimse-s2s-protocol]. + + 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". -4.2.4. Extensions +3.2.4. Extensions ext: OPTIONAL. Object. A general-purpose extension object for - domain-specific claims not defined by this specification. The - short name "ext" follows the JWT convention of concise claim names - and is chosen over alternatives like "extensions" for compactness. + domain-specific claims not defined by this specification. Implementations that do not understand extension claims MUST - ignore them. + ignore them. Extension key names SHOULD use reverse domain + notation (e.g., "com.example.custom_field") to avoid collisions. + The serialized "ext" object SHOULD NOT exceed 4096 bytes and + SHOULD NOT exceed a nesting depth of 5 levels. - To avoid key collisions between different domains, extension key - names SHOULD use reverse domain notation (e.g., - "com.example.custom_field") to avoid collisions between independently - developed extensions. To prevent abuse and excessive token size, the - serialized JSON representation of the "ext" object SHOULD NOT exceed - 4096 bytes, and the JSON nesting depth within the "ext" object SHOULD - NOT exceed 5 levels. Implementations SHOULD reject ECTs whose "ext" - claim exceeds these limits. - - Extension keys for domain-specific use cases MAY be defined in future - documents. - -4.3. Complete ECT Example +3.3. Complete ECT Example The following is a complete ECT payload example: @@ -609,18 +380,21 @@ Internet-Draft WIMSE Execution Context February 2026 } } - Figure 4: Complete ECT Payload Example + Figure 2: Complete ECT Payload Example + +4. HTTP Header Transport -Nennemann Expires 29 August 2026 [Page 11] + + + +Nennemann Expires 29 August 2026 [Page 7] Internet-Draft WIMSE Execution Context February 2026 -5. HTTP Header Transport - -5.1. Execution-Context Header Field +4.1. Execution-Context Header Field This specification defines the Execution-Context HTTP header field [RFC9110] for transporting ECTs between agents. @@ -630,51 +404,35 @@ Internet-Draft WIMSE Execution Context February 2026 separated by period (".") characters. An agent sending a request to another agent includes the Execution- - Context header alongside the WIMSE Workload-Identity header: + Context header alongside the WIMSE Workload-Identity header. When a + Workload Proof Token (WPT) is available per + [I-D.ietf-wimse-s2s-protocol], agents SHOULD include it alongside the + WIT and ECT. GET /api/safety-check HTTP/1.1 Host: safety-agent.example.com Workload-Identity: eyJhbGci...WIT... Execution-Context: eyJhbGci...ECT... - Figure 5: HTTP Request with ECT Header + Figure 3: HTTP Request with ECT Header When multiple parent tasks contribute context to a single request, multiple Execution-Context header field lines MAY be included, each carrying a separate ECT in JWS Compact Serialization format. When a receiver processes multiple Execution-Context headers, it MUST - individually verify each ECT per the procedure in Section 7. If any + individually verify each ECT per the procedure in Section 6. If any single ECT fails verification, the receiver MUST reject the entire request. The set of verified parent task IDs across all received ECTs represents the complete set of parent dependencies available for the receiving agent's subsequent ECT. -6. DAG Validation - -6.1. Overview +5. DAG Validation ECTs form a Directed Acyclic Graph (DAG) where each task references - its parent tasks via the "par" claim. This structure provides a - cryptographically signed record of execution ordering, enabling - auditors to reconstruct the complete workflow and verify that - required predecessor tasks were recorded before dependent tasks. - - DAG validation is performed against the ECT store — either an audit - ledger or the set of parent ECTs received inline. - - - - - - - -Nennemann Expires 29 August 2026 [Page 12] - -Internet-Draft WIMSE Execution Context February 2026 - - -6.2. Validation Rules + its parent tasks via the "par" claim. DAG validation is performed + against the ECT store — either an audit ledger or the set of parent + ECTs received inline. When receiving and verifying an ECT, implementations MUST perform the following DAG validation steps: @@ -684,6 +442,14 @@ Internet-Draft WIMSE Execution Context February 2026 ECT store if "wid" is absent). If an ECT with the same "jti" already exists, the ECT MUST be rejected. + + + +Nennemann Expires 29 August 2026 [Page 8] + +Internet-Draft WIMSE Execution Context February 2026 + + 2. Parent Existence: Every task identifier listed in the "par" array MUST correspond to a task that is available in the ECT store (either previously recorded in the ledger or received inline as a @@ -714,38 +480,14 @@ Internet-Draft WIMSE Execution Context February 2026 (RECOMMENDED: 10000 nodes). If the limit is reached before cycle detection completes, the ECT SHOULD be rejected. -6.3. Handling Unavailable Parent ECTs + 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. - In distributed deployments, a parent ECT referenced in the "par" - array may not yet be available in the local ECT store at the time of - validation — for example, due to replication lag in a distributed - ledger or out-of-order message delivery. +6. Signature and Token Verification - Implementations MUST distinguish between two cases: - - - -Nennemann Expires 29 August 2026 [Page 13] - -Internet-Draft WIMSE Execution Context February 2026 - - - 1. Parent not found and definitively absent: The parent "jti" does - not exist in any accessible ECT store. The ECT MUST be rejected. - - 2. Parent not yet available: The parent "jti" is not present locally - but may arrive due to known replication delays. Implementations - MAY defer validation for a bounded period (RECOMMENDED: no more - than 60 seconds). - - Deferred ECTs MUST NOT be treated as verified until all parent - references are resolved. If any parent reference remains unresolved - after the deferral period or after the ECT's own "exp" time - (whichever comes first), the ECT MUST be rejected. - -7. Signature and Token Verification - -7.1. Verification Procedure +6.1. Verification Procedure When an agent receives an ECT, it MUST perform the following verification steps in order: @@ -755,6 +497,15 @@ Internet-Draft WIMSE Execution Context February 2026 2. Verify that the "typ" header parameter is "wimse-exec+jwt". + + + + +Nennemann Expires 29 August 2026 [Page 9] + +Internet-Draft WIMSE Execution Context February 2026 + + 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 @@ -777,15 +528,6 @@ Internet-Draft WIMSE Execution Context February 2026 7. Verify the "alg" header parameter matches the algorithm in the corresponding WIT. - - - - -Nennemann Expires 29 August 2026 [Page 14] - -Internet-Draft WIMSE Execution Context February 2026 - - 8. Verify the "iss" claim matches the "sub" claim of the WIT associated with the "kid" public key. @@ -807,11 +549,19 @@ Internet-Draft WIMSE Execution Context February 2026 12. Verify all required claims ("jti", "exec_act", "par") are present and well-formed. - 13. Perform DAG validation per Section 6. + 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. + + + +Nennemann Expires 29 August 2026 [Page 10] + +Internet-Draft WIMSE Execution Context February 2026 + + 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 @@ -825,7 +575,7 @@ Internet-Draft WIMSE Execution Context February 2026 step failed. The receiving agent MUST NOT process the requested action when ECT verification fails. -8. Audit Ledger Interface +7. Audit Ledger Interface ECTs MAY be recorded in an immutable audit ledger for compliance verification and post-hoc analysis. A ledger is RECOMMENDED for @@ -835,13 +585,6 @@ Internet-Draft WIMSE Execution Context February 2026 cryptographic commitment schemes, distributed ledgers, or any storage mechanism that provides the required properties. - - -Nennemann Expires 29 August 2026 [Page 15] - -Internet-Draft WIMSE Execution Context February 2026 - - When an audit ledger is deployed, the implementation MUST provide: 1. Append-only semantics: Once an ECT is recorded, it MUST NOT be @@ -860,28 +603,29 @@ Internet-Draft WIMSE Execution Context February 2026 The ledger SHOULD be maintained by an entity independent of the workflow agents to reduce the risk of collusion. -9. Security Considerations +8. Security Considerations - This section addresses security considerations following the guidance - in [RFC3552]. -9.1. Threat Model - The following threat actors are considered: - * Malicious agent (insider threat): An agent within the trust domain - that intentionally creates false ECT claims. - * Compromised agent (external attacker): An agent whose private key - has been obtained by an external attacker. - * Ledger tamperer: An entity attempting to modify or delete ledger - entries after they have been recorded. - * Time manipulator: An entity attempting to manipulate timestamps to - alter perceived execution ordering. -9.2. Self-Assertion Limitation + +Nennemann Expires 29 August 2026 [Page 11] + +Internet-Draft WIMSE Execution Context February 2026 + + +8.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, and (4) a + time manipulator altering timestamps to affect perceived ordering. + +8.2. 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. A compromised @@ -890,14 +634,6 @@ Internet-Draft WIMSE Execution Context February 2026 ECTs do not independently verify that: - - - -Nennemann Expires 29 August 2026 [Page 16] - -Internet-Draft WIMSE Execution Context February 2026 - - * The claimed execution actually occurred as described * The input/output hashes correspond to the actual data processed @@ -906,31 +642,18 @@ Internet-Draft WIMSE Execution Context February 2026 The trustworthiness of ECT claims depends on the trustworthiness of the signing agent and the integrity of the broader deployment - environment. + environment. ECTs provide a technical mechanism for execution + recording; they do not by themselves satisfy any specific regulatory + compliance requirement. -9.3. Organizational Prerequisites - - ECTs operate within a broader trust framework. The guarantees - provided by ECTs are only meaningful when the following - organizational controls are in place: - - * Key management governance: Controls over who provisions agent keys - and how keys are protected. - - * Ledger integrity governance: The ledger is maintained by an entity - independent of the workflow agents. - - * Agent deployment governance: Agents are deployed and maintained in - a manner that preserves their integrity. - -9.4. Signature Verification +8.3. Signature Verification ECTs MUST be signed with the agent's private key using JWS [RFC7515]. The signature algorithm MUST match the algorithm specified in the agent's WIT. Receivers MUST verify the ECT signature against the WIT public key before processing any claims. Receivers MUST verify that the signing key has not been revoked within the trust domain (see - step 6 in Section 7). + step 6 in Section 6). If signature verification fails or if the signing key has been revoked, the ECT MUST be rejected entirely and the failure MUST be @@ -939,210 +662,113 @@ Internet-Draft WIMSE Execution Context February 2026 Implementations MUST use established JWS libraries and MUST NOT implement custom signature verification. -9.5. Replay Attack Prevention - - ECTs include short expiration times (RECOMMENDED: 5-15 minutes) to - limit the window for replay attacks. The "aud" claim restricts - replay to unintended recipients: an ECT intended for Agent B will be - rejected by Agent C. The "iat" claim enables receivers to reject - ECTs that are too old, even if not yet expired. -Nennemann Expires 29 August 2026 [Page 17] + + + + +Nennemann Expires 29 August 2026 [Page 12] Internet-Draft WIMSE Execution Context February 2026 - The DAG structure provides additional replay protection: an ECT - referencing parent tasks that already have a recorded child task with - the same action can be flagged as a potential replay. +8.4. Replay Attack Prevention + ECTs include short expiration times (RECOMMENDED: 5-15 minutes) and + audience restriction via "aud" to limit replay attacks. Implementations MUST maintain a cache of recently-seen "jti" values - to detect replayed ECTs within the expiration window. An ECT with a - duplicate "jti" value MUST be rejected. + and MUST reject ECTs with duplicate "jti" values. Each ECT is + cryptographically bound to the issuing agent via "kid"; verifiers + MUST confirm that "kid" resolves to the "iss" agent's key (step 8 in + Section 6). - Additionally, each ECT is cryptographically bound to the issuing - agent via the JOSE "kid" parameter, which references the agent's WIT - public key. Verifiers MUST confirm that the "kid" resolves to the - "iss" agent's key (step 8 in Section 7), preventing one agent from - replaying another agent's ECT as its own. +8.5. Man-in-the-Middle Protection -9.6. Man-in-the-Middle Protection + ECTs MUST be transmitted over TLS or mTLS connections. When used + with [I-D.ietf-wimse-s2s-protocol], transport security is already + established. - ECTs do not replace transport-layer security. ECTs MUST be - transmitted over TLS or mTLS connections. When used with the WIMSE - service-to-service protocol [I-D.ietf-wimse-s2s-protocol], transport - security is already established. HTTP Message Signatures [RFC9421] - provide an alternative channel binding mechanism. - - The defense-in-depth model provides: - - * TLS/mTLS (transport layer): Prevents network-level tampering. - - * WIT/WPT (WIMSE identity layer): Proves agent identity and request - authorization. - - * ECT (execution accountability layer): Records what the agent did. - -9.7. Key Compromise +8.6. Key Compromise If an agent's private key is compromised, an attacker can forge ECTs - that appear to originate from that agent. To mitigate this risk: + that appear to originate from that agent. Mitigations: * Implementations SHOULD use short-lived keys and rotate them - frequently (hours to days, not months). + frequently. - * Private keys SHOULD be stored in Hardware Security Modules (HSMs) - or equivalent secure key storage. + * Private keys SHOULD be stored in hardware security modules or + equivalent secure key storage. * Trust domains MUST support rapid key revocation. - * Upon suspected compromise, the trust domain MUST revoke the - compromised key and issue a new WIT with a fresh key pair. + ECTs recorded before key revocation remain valid historical records + but SHOULD be flagged for audit purposes. New ECTs MUST NOT + reference a parent ECT whose signing key is known to be revoked at + creation time. - - - - -Nennemann Expires 29 August 2026 [Page 18] - -Internet-Draft WIMSE Execution Context February 2026 - - - ECTs signed with a compromised key that were recorded in the ledger - before revocation remain valid historical records but SHOULD be - flagged in the ledger as "signed with subsequently revoked key" for - audit purposes. - - ECT revocation does not propagate through the DAG. If a parent ECT's - signing key is later revoked, child ECTs that were verified and - recorded before that revocation remain valid — they captured a - legitimate execution record at the time of issuance. However, - auditors reviewing a workflow SHOULD flag any ECT in the DAG whose - signing key was subsequently revoked, so that the scope of a - potential compromise can be assessed. New ECTs MUST NOT be created - with a "par" reference to an ECT whose signing key is known to be - revoked at creation time. - -9.8. Collusion and False Claims +8.7. Collusion and DAG Integrity A single malicious agent cannot forge parent task references because - DAG validation requires parent tasks to exist in the ledger. - However, multiple colluding agents could potentially create a false - execution history if they control the ledger. + 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 "par" to hide influences on its output; because + ECTs are self-asserted (Section 8.2), no mechanism can force complete + dependency declaration. Mitigations include: - * Independent ledger maintenance: The ledger SHOULD be maintained by - an entity independent of the workflow agents. - - * Cross-verification: Multiple independent ledger replicas can be - compared for consistency. - - * Out-of-band audit: External auditors periodically verify ledger - contents against expected workflow patterns. - -9.9. DAG Integrity Attacks - - Because the DAG structure is the primary mechanism for establishing - execution ordering, attackers may attempt to manipulate it: - - * False parent references: A malicious agent creates an ECT that - references parent tasks from an unrelated workflow, inserting - itself into a legitimate execution history. DAG validation - (Section 6) mitigates this by requiring parent existence in the - ECT store, and the "wid" claim scopes parent references to a - single workflow when present. - - * Parent omission (pruning): An agent deliberately omits one or more - actual parent dependencies from the "par" array to hide that - certain tasks influenced its output. Because ECTs are self- + * The ledger SHOULD be maintained by an entity independent of the + workflow agents. -Nennemann Expires 29 August 2026 [Page 19] +Nennemann Expires 29 August 2026 [Page 13] Internet-Draft WIMSE Execution Context February 2026 - asserted (Section 9.2), no mechanism can force an agent to declare - all dependencies. External auditors can detect omission by - comparing the declared DAG against expected workflow patterns. + * Multiple independent ledger replicas can be compared for + consistency. - * Shadow DAGs: Multiple colluding agents fabricate an entire - execution history by creating a sequence of ECTs with mutual - parent references. Independent ledger maintenance and cross- - verification (see Section 9.8 above) are the primary mitigations. + * External auditors can compare the declared DAG against expected + workflow patterns. Verifiers SHOULD validate that the declared "wid" of parent ECTs matches the "wid" of the child ECT, rejecting cross-workflow parent references unless explicitly permitted by deployment policy. -9.10. Privilege Escalation via ECTs +8.8. 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 "par", as an authorization grant. The - "par" claim demonstrates that predecessor tasks were recorded, not - that the current agent is authorized to act on their outputs. + set of parent references in "par", as an authorization grant. Authorization decisions MUST remain with the identity and - authorization layer (WIT, WPT, and deployment policy). As noted in - [I-D.ni-wimse-ai-agent-identity], AI intermediaries introduce novel - escalation vectors; ECTs MUST NOT be used to circumvent authorization - boundaries. + authorization layer (WIT, WPT, and deployment policy). -9.11. Denial of Service +8.9. Denial of Service - ECT signature verification is computationally inexpensive - (approximately 1ms per ECT on modern hardware for ES256). DAG - validation complexity is O(V) where V is the number of ancestor nodes - reachable from the parent references; for typical shallow DAGs this - is efficient. + Implementations SHOULD apply rate limiting to prevent excessive ECT + submissions. DAG validation SHOULD be performed after signature + verification to avoid wasting resources on unsigned tokens. - Implementations SHOULD apply rate limiting at the API layer to - prevent excessive ECT submissions. DAG validation SHOULD be - performed after signature verification to avoid wasting resources on - unsigned or incorrectly signed tokens. +8.10. Timestamp Accuracy -9.12. Timestamp Accuracy - - ECTs rely on timestamps ("iat", "exp") for temporal ordering. Clock - skew between agents can lead to incorrect ordering judgments. Implementations SHOULD use synchronized time sources (e.g., NTP) and SHOULD allow a configurable clock skew tolerance (RECOMMENDED: 30 - seconds). + seconds). Cross-organizational deployments MAY require a higher + tolerance and SHOULD document the configured value. +8.11. ECT Size Constraints + Implementations SHOULD limit the "par" array to a maximum of 256 + entries. See Section 3.2.4 for "ext" size limits. +9. Privacy Considerations - -Nennemann Expires 29 August 2026 [Page 20] - -Internet-Draft WIMSE Execution Context February 2026 - - - Cross-organizational deployments where agents span multiple trust - domains with independent time sources MAY require a higher clock skew - tolerance. Deployments using trust domain federation SHOULD document - their configured clock skew tolerance value and SHOULD ensure all - participating trust domains agree on a common tolerance. - - The temporal ordering check in DAG validation incorporates the clock - skew tolerance to account for minor clock differences between agents. - -9.13. ECT Size Constraints - - ECTs with many parent tasks or large extension objects can increase - HTTP header size. Implementations SHOULD limit the "par" array to a - maximum of 256 entries. Workflows requiring more parent references - SHOULD introduce intermediate aggregation tasks. The "ext" object - SHOULD NOT exceed 4096 bytes when serialized as JSON and SHOULD NOT - exceed a nesting depth of 5 levels (see also Section 4.2.4). - -10. Privacy Considerations - -10.1. Data Exposure in ECTs +9.1. Data Exposure in ECTs ECTs necessarily reveal: @@ -1152,6 +778,14 @@ Internet-Draft WIMSE Execution Context February 2026 * Timestamps ("iat", "exp") for temporal ordering + + + +Nennemann Expires 29 August 2026 [Page 14] + +Internet-Draft WIMSE Execution Context February 2026 + + ECTs are designed to NOT reveal: * Actual input or output data values (replaced with cryptographic @@ -1163,31 +797,16 @@ Internet-Draft WIMSE Execution Context February 2026 * Personally identifiable information (PII) - - - - - - - - - - -Nennemann Expires 29 August 2026 [Page 21] - -Internet-Draft WIMSE Execution Context February 2026 - - -10.2. Data Minimization +9.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 "ext" (Section 4.2.4) deserve particular attention: + Extension keys in "ext" (Section 3.2.4) deserve particular attention: human-readable values risk exposing sensitive operational details. - See Section 4.2.4 for guidance on using structured identifiers. + See Section 3.2.4 for guidance on using structured identifiers. -10.3. Storage and Access Control +9.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 @@ -1200,9 +819,9 @@ Internet-Draft WIMSE Execution Context February 2026 controls, since auditors may need to verify hash correctness but general access to the data values is not needed. -11. IANA Considerations +10. IANA Considerations -11.1. Media Type Registration +10.1. Media Type Registration This document requests registration of the following media type in the "Media Types" registry maintained by IANA: @@ -1215,6 +834,14 @@ Internet-Draft WIMSE Execution Context February 2026 Optional parameters: none + + + +Nennemann Expires 29 August 2026 [Page 15] + +Internet-Draft WIMSE Execution Context February 2026 + + Encoding considerations: 8bit; 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. @@ -1226,14 +853,6 @@ Internet-Draft WIMSE Execution Context February 2026 Published specification: This document - - - -Nennemann Expires 29 August 2026 [Page 22] - -Internet-Draft WIMSE Execution Context February 2026 - - Applications that use this media type: Applications that implement agentic workflows requiring execution context tracing and audit trails. @@ -1252,7 +871,7 @@ Internet-Draft WIMSE Execution Context February 2026 Change controller: IETF -11.2. HTTP Header Field Registration +10.2. HTTP Header Field Registration This document requests registration of the following header field in the "Hypertext Transfer Protocol (HTTP) Field Name Registry" @@ -1262,9 +881,9 @@ Internet-Draft WIMSE Execution Context February 2026 Status: permanent - Specification document: This document, Section 5 + Specification document: This document, Section 4 -11.3. JWT Claims Registration +10.3. JWT Claims Registration This document requests registration of the following claims in the "JSON Web Token Claims" registry maintained by IANA: @@ -1274,18 +893,7 @@ Internet-Draft WIMSE Execution Context February 2026 - - - - - - - - - - - -Nennemann Expires 29 August 2026 [Page 23] +Nennemann Expires 29 August 2026 [Page 16] Internet-Draft WIMSE Execution Context February 2026 @@ -1294,29 +902,29 @@ Internet-Draft WIMSE Execution Context February 2026 | Claim Name | Claim Description | Change Controller | Reference | +============+=====================+===================+===========+ | wid | Workflow Identifier | IETF | Section | - | | | | 4.2.2 | + | | | | 3.2.2 | +------------+---------------------+-------------------+-----------+ | exec_act | Action/Task Type | IETF | Section | - | | | | 4.2.2 | + | | | | 3.2.2 | +------------+---------------------+-------------------+-----------+ | par | Parent Task | IETF | Section | - | | Identifiers | | 4.2.2 | + | | Identifiers | | 3.2.2 | +------------+---------------------+-------------------+-----------+ | inp_hash | Input Data Hash | IETF | Section | - | | | | 4.2.3 | + | | | | 3.2.3 | +------------+---------------------+-------------------+-----------+ | out_hash | Output Data Hash | IETF | Section | - | | | | 4.2.3 | + | | | | 3.2.3 | +------------+---------------------+-------------------+-----------+ | ext | Extension Object | IETF | Section | - | | | | 4.2.4 | + | | | | 3.2.4 | +------------+---------------------+-------------------+-----------+ Table 1: JWT Claims Registrations -12. References +11. References -12.1. Normative References +11.1. Normative References [I-D.ietf-wimse-arch] Salowey, J. A., Rosomakho, Y., and H. Tschofenig, @@ -1341,7 +949,7 @@ Internet-Draft WIMSE Execution Context February 2026 -Nennemann Expires 29 August 2026 [Page 24] +Nennemann Expires 29 August 2026 [Page 17] Internet-Draft WIMSE Execution Context February 2026 @@ -1375,7 +983,7 @@ Internet-Draft WIMSE Execution Context February 2026 IDentifiers (UUIDs)", RFC 9562, DOI 10.17487/RFC9562, May 2024, . -12.2. Informative References +11.2. Informative References [I-D.ietf-oauth-transaction-tokens] Tulshibagwale, A., Fletcher, G., and P. Kasselman, @@ -1397,18 +1005,11 @@ Internet-Draft WIMSE Execution Context February 2026 -Nennemann Expires 29 August 2026 [Page 25] +Nennemann Expires 29 August 2026 [Page 18] Internet-Draft WIMSE Execution Context February 2026 - [I-D.ni-wimse-ai-agent-identity] - Yuan, N. and P. C. Liu, "WIMSE Applicability for AI - Agents", Work in Progress, Internet-Draft, draft-ni-wimse- - ai-agent-identity-01, 20 October 2025, - . - [I-D.oauth-transaction-tokens-for-agents] Raut, A., "Transaction Tokens For Agents", Work in Progress, Internet-Draft, draft-oauth-transaction-tokens- @@ -1421,20 +1022,11 @@ Internet-Draft WIMSE Execution Context February 2026 Specification", . - [RFC3552] Rescorla, E. and B. Korver, "Guidelines for Writing RFC - Text on Security Considerations", BCP 72, RFC 3552, - DOI 10.17487/RFC3552, July 2003, - . - [RFC8693] Jones, M., Nadalin, A., Campbell, B., Ed., Bradley, J., and C. Mortimore, "OAuth 2.0 Token Exchange", RFC 8693, DOI 10.17487/RFC8693, January 2020, . - [RFC9421] Backman, A., Ed., Richer, J., Ed., and M. Sporny, "HTTP - Message Signatures", RFC 9421, DOI 10.17487/RFC9421, - February 2024, . - [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, @@ -1449,18 +1041,9 @@ Use Cases This section describes a representative use case demonstrating how ECTs provide structured execution records. - - - - -Nennemann Expires 29 August 2026 [Page 26] - -Internet-Draft WIMSE Execution Context February 2026 - - Note: task identifiers in this section are abbreviated for readability. In production, all "jti" values are required to be - UUIDs per Section 4.2.2. + UUIDs per Section 3.2.2. Cross-Organization Financial Trading @@ -1470,6 +1053,19 @@ Cross-Organization Financial Trading records that independent assessments from both organizations were completed before trade execution. + + + + + + + + +Nennemann Expires 29 August 2026 [Page 19] + +Internet-Draft WIMSE Execution Context February 2026 + + Trust Domain: bank.example Agent A1 (Portfolio Risk): jti: task-001 par: [] @@ -1493,27 +1089,10 @@ Cross-Organization Financial Trading iss: spiffe://bank.example/agent/execution exec_act: execute_trade - Figure 6: Cross-Organization Trading Workflow + Figure 4: Cross-Organization Trading Workflow The resulting DAG: - - - - - - - - - - - - -Nennemann Expires 29 August 2026 [Page 27] - -Internet-Draft WIMSE Execution Context February 2026 - - task-001 (analyze_portfolio_risk) task-002 (assess_credit_rating) [bank.example] [ratings.example] \ / @@ -1525,13 +1104,24 @@ Internet-Draft WIMSE Execution Context February 2026 task-004 (execute_trade) [bank.example] - Figure 7: Cross-Organization DAG + Figure 5: 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. + + + + + + +Nennemann Expires 29 August 2026 [Page 20] + +Internet-Draft WIMSE Execution Context February 2026 + + Related Work WIMSE Workload Identity @@ -1560,16 +1150,6 @@ OAuth 2.0 Token Exchange and the "act" Claim concepts are orthogonal: "act" records "who authorized whom," ECTs record "what was done, in what order." - - - - - -Nennemann Expires 29 August 2026 [Page 28] - -Internet-Draft WIMSE Execution Context February 2026 - - Transaction Tokens OAuth Transaction Tokens [I-D.ietf-oauth-transaction-tokens] @@ -1589,6 +1169,15 @@ Transaction Tokens from the Transaction Token Service appear in "req_wl"; workloads that forward the token unchanged are not recorded. + + + + +Nennemann Expires 29 August 2026 [Page 21] + +Internet-Draft WIMSE Execution Context February 2026 + + * It carries no task-level granularity, no parent references, and no execution content. @@ -1611,21 +1200,6 @@ Transaction Tokens Txn-Token; a similar binding mechanism for ECTs is a potential future extension. - - - - - - - - - - -Nennemann Expires 29 August 2026 [Page 29] - -Internet-Draft WIMSE Execution Context February 2026 - - Distributed Tracing (OpenTelemetry) OpenTelemetry [OPENTELEMETRY] and similar distributed tracing systems @@ -1652,6 +1226,14 @@ W3C Provenance Data Model (PROV) audit data could be exported to PROV format for interoperability with provenance-aware systems. + + + +Nennemann Expires 29 August 2026 [Page 22] + +Internet-Draft WIMSE Execution Context February 2026 + + SCITT (Supply Chain Integrity, Transparency, and Trust) The SCITT architecture [I-D.ietf-scitt-architecture] defines a @@ -1677,4 +1259,30 @@ Author's Address -Nennemann Expires 29 August 2026 [Page 30] + + + + + + + + + + + + + + + + + + + + + + + + + + +Nennemann Expires 29 August 2026 [Page 23] diff --git a/draft-nennemann-wimse-ect-00.xml b/draft-nennemann-wimse-ect-00.xml index 367f565..531f067 100644 --- a/draft-nennemann-wimse-ect-00.xml +++ b/draft-nennemann-wimse-ect-00.xml @@ -32,21 +32,15 @@ - + -This document defines Execution Context Tokens (ECTs), an extension -to the Workload Identity in Multi System Environments (WIMSE) -architecture for distributed agentic workflows. ECTs provide -signed, structured records of task execution order across -agent-to-agent communication. By extending WIMSE Workload Identity -Tokens with execution context claims in JSON Web Token (JWT) -format, this specification enables systems to maintain structured -audit trails of agent execution. ECTs use a directed acyclic -graph (DAG) structure to represent task dependencies and integrate -with WIMSE Workload Identity Tokens (WIT) using the same signing -model and cryptographic primitives. A new HTTP header field, -Execution-Context, is defined for transporting ECTs alongside -existing WIMSE headers. +This document defines Execution Context Tokens (ECTs), a JWT-based +extension to the WIMSE architecture that records task execution +across distributed agentic workflows. Each ECT is a signed record +of a single task, linked to predecessor tasks through a directed +acyclic graph (DAG). ECTs reuse the WIMSE signing model and are +transported in a new Execution-Context HTTP header field alongside +existing WIMSE identity headers. @@ -59,62 +53,19 @@ existing WIMSE headers. - +
Introduction -
Motivation +The WIMSE framework and its service-to- +service protocol authenticate +workloads across call chains but do not record what those +workloads actually did. This document defines Execution Context +Tokens (ECTs), a JWT-based extension that fills the gap between +workload identity and execution accountability. Each ECT is a +signed record of a single task, linked to predecessor tasks +through a directed acyclic graph (DAG). -The Workload Identity in Multi System Environments (WIMSE) -framework provides robust workload -authentication through Workload Identity Tokens (WIT) and Workload -Proof Tokens (WPT). The WIMSE service-to-service protocol - defines how workloads authenticate -each other across call chains using the Workload-Identity and -Workload-Proof-Token HTTP headers. - -However, workload identity alone does not address execution -accountability. Knowing who performed an action does not record -what was done or in what order. - -Regulated environments increasingly deploy autonomous agents that -coordinate across organizational boundaries. Domains such as -healthcare, finance, and logistics require structured, auditable -records of automated decision-making and execution. - -This document defines an extension to the WIMSE architecture that -addresses the gap between workload identity and execution -accountability. WIMSE authenticates agents; this extension records -what they did and in what order. - -As identified in , call context -in agentic workflows needs to be visible and preserved. ECTs -provide a mechanism to address this requirement with cryptographic -assurances. - -
-
Problem Statement - -Three core gaps exist in current approaches to regulated agentic -systems: - - - WIMSE authenticates agents but does not record what they -actually did. A WIT proves "Agent A is authorized" but not -"Agent A executed Task X, producing Output Z." - No standard mechanism exists to cryptographically order and -link task execution across a multi-agent workflow. - No mechanism exists to reconstruct the complete execution -history of a distributed workflow for audit purposes. - - -Existing observability tools such as distributed tracing - provide visibility for debugging and monitoring -but do not provide cryptographic assurances. Tracing data is not -cryptographically signed, not tamper-evident, and not designed for -regulatory audit scenarios. - -
Scope and Applicability This document defines: @@ -122,8 +73,6 @@ regulatory audit scenarios. The Execution Context Token (ECT) format () DAG structure for task dependency ordering () - Integration with the WIMSE identity framework -() An HTTP header for ECT transport () Audit ledger interface requirements () @@ -195,109 +144,6 @@ trust domain.

-
-
WIMSE Architecture Integration - -
WIMSE Foundation - -The WIMSE architecture defines: - - - Workload Identity Tokens (WIT) that prove a workload's identity -within a trust domain ("I am Agent X in trust domain Y") - Workload Proof Tokens (WPT) that prove possession of the private -key associated with a WIT ("I control the key for Agent X") - Multi-hop authentication via the service-to-service protocol - - - -The following execution accountability needs are complementary to -the WIMSE scope and are not addressed by workload identity alone: - - - Recording what agents actually do with their authenticated -identity - Maintaining structured execution records - Linking actions to their predecessors with cryptographic assurance - - -
-
Extension Model - -ECTs extend WIMSE by adding an execution accountability layer -between the identity layer and the application layer: - -
- -This extension reuses the WIMSE signing model, extends JWT claims -using standard JWT extensibility , and maintains WIMSE -concepts including trust domains and workload identifiers. - -
-
Integration Points - -An ECT integrates with the WIMSE identity framework through the -following mechanisms: - - - The ECT JOSE header "kid" parameter MUST reference the public -key identifier from the agent's WIT. - In WIMSE deployments, the ECT "iss" claim SHOULD use the WIMSE -workload identifier format (a SPIFFE ID ). - The ECT MUST be signed with the same private key associated -with the agent's WIT. - The ECT signing algorithm (JOSE header "alg" parameter) MUST -match the algorithm used in the corresponding WIT. - - -When an agent makes an HTTP request to another agent, the -Execution-Context header is carried alongside WIMSE identity -headers: - -
- Execution-Context: -]]>
- -When a Workload Proof Token (WPT) is available per -, agents SHOULD include it -alongside the WIT and ECT. ECT verification does not depend -on the presence of a WPT; the ECT is independently verifiable -via the WIT public key. - -The receiving agent (Agent B) verifies in order: - - - WIT (WIMSE layer): Verifies Agent A's identity within the -trust domain. WPT verification, if present, per -. - ECT (this extension): Records what Agent A did and what -precedent tasks exist. - Ledger (if deployed): Appends the verified ECT to the audit -ledger. - - -
Execution Context Token Format @@ -307,6 +153,14 @@ JWS Compact Serialization (the base64url-encoded header.payload.signature format) so that they can be carried in a single HTTP header value. +ECTs reuse the WIMSE signing model. The ECT MUST be signed with +the same private key associated with the agent's WIT. The JOSE +header "kid" parameter MUST reference the public key identifier +from the agent's WIT, and the "alg" parameter MUST match the +algorithm used in the corresponding WIT. In WIMSE deployments, +the ECT "iss" claim SHOULD use the WIMSE workload identifier +format (a SPIFFE ID ). +
JOSE Header The ECT JOSE header MUST contain the following parameters: @@ -346,13 +200,9 @@ correct public key for signature verification.
JWT Claims -The ECT payload contains both WIMSE-compatible standard JWT claims -and execution context claims defined by this specification. -
Standard JWT Claims -The following standard JWT claims MUST be present in -every ECT: +An ECT MUST contain the following standard JWT claims :
iss:
@@ -367,66 +217,32 @@ URN:UUID identifiers).
aud:
REQUIRED. StringOrURI or array of StringOrURI. The intended -recipient(s) of the ECT. Because ECTs serve as both inter-agent -messages and audit records, the "aud" claim SHOULD contain the -identifiers of all entities that will verify the ECT. In -practice this means: - - - - Point-to-point delivery: when an ECT is sent from one -agent to a single next agent, "aud" contains that agent's -workload identity. The receiving agent verifies the ECT and -forwards it to the ledger on behalf of the issuer. - Direct-to-ledger submission: when an ECT is submitted -directly to the audit ledger (e.g., after a join or at -workflow completion), "aud" contains the ledger's identity. - Multi-audience: when an ECT must be verified by both the -next agent and the ledger independently, "aud" MUST be an -array containing both identifiers (e.g., -["spiffe://example.com/agent/next", -"spiffe://example.com/system/ledger"]). Each verifier checks -that its own identity appears in the array. - - - In multi-parent (join) scenarios where a task depends on ECTs -from multiple parent agents, the joining agent creates a new ECT -with the parent task IDs in "par". The "aud" of this new ECT -is set according to the rules above based on where the ECT will -be delivered — it is independent of the "aud" values in the -parent ECTs. +recipient(s) of the ECT. The "aud" claim SHOULD contain the +identifiers of all entities that will verify the ECT. When +an ECT must 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".
iat:
- REQUIRED. NumericDate. The time at which the ECT was issued. -The ECT records a completed action, so the "iat" value reflects -when the record was created, not when task execution began. + 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" -to limit the replay window while allowing for reasonable clock -skew and processing time. +Implementations SHOULD set this to 5 to 15 minutes after "iat".
-
- -The standard JWT "nbf" (Not Before) claim is not used in ECTs -because ECTs record completed actions and are valid immediately -upon issuance. - -
jti:
- REQUIRED. String. A globally unique identifier for both the -ECT and the task it records, in UUID format . Since -each ECT represents exactly one task, "jti" serves as both the -token identifier (for replay detection) and the task identifier -(for DAG parent references in "par"). Receivers MUST reject -ECTs whose "jti" has already been seen within the expiration -window. When "wid" is present, uniqueness is scoped to the -workflow; when "wid" is absent, uniqueness MUST be enforced -globally across the ECT store. + REQUIRED. String. A unique identifier for both the ECT and +the task it records, in UUID format . The "jti" +serves as both the token identifier (for replay detection) and +the task identifier (for DAG parent references in "par"). +Receivers MUST reject ECTs whose "jti" has already been seen +within the expiration window. When "wid" is present, +uniqueness is scoped to the workflow; when "wid" is absent, +uniqueness MUST be enforced globally across the ECT store.
@@ -446,10 +262,8 @@ ECTs into a single workflow. When present, MUST be a UUID
REQUIRED. String. The action or task type identifier describing what the agent performed (e.g., "process_payment", -"validate_safety", "calculate_dosage"). Note: this claim is -intentionally named "exec_act" rather than "act" to avoid -collision with the "act" (Actor) claim registered by -. +"validate_safety"). This claim name avoids collision with the +"act" (Actor) claim registered by .
par:
@@ -457,12 +271,7 @@ collision with the "act" (Actor) claim registered by 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. Parent ECTs may have passed their own -"exp" time; ECT expiration applies to the verification window -of the ECT itself, not to its validity as a parent reference -in the ECT store. Note: "par" is not a registered JWT claim -and does not conflict with OAuth Pushed Authorization Requests -(RFC 9126), which defines an endpoint, not a token claim. +multiple root tasks.
@@ -477,10 +286,9 @@ inputs and outputs without revealing the data itself:
OPTIONAL. String. The base64url encoding (without padding) of the SHA-256 hash of the input data, computed over the raw octets -of the input. This follows the same fixed-algorithm pattern -used by the DPoP "ath" claim and the WIMSE WPT -"tth" claim : SHA-256 is the -mandatory algorithm with no algorithm prefix in the value. +of the input. SHA-256 is the mandatory algorithm with no +algorithm prefix in the value, consistent with and +.
out_hash:
@@ -497,27 +305,15 @@ the SHA-256 hash of the output data, using the same format as
ext:
OPTIONAL. Object. A general-purpose extension object for -domain-specific claims not defined by this specification. The -short name "ext" follows the JWT convention of concise claim -names and is chosen over alternatives like "extensions" for -compactness. Implementations that do not understand extension -claims MUST ignore them. +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 "ext" object SHOULD NOT exceed +4096 bytes and SHOULD NOT exceed a nesting depth of 5 levels.
-To avoid key collisions between different domains, extension -key names SHOULD use reverse domain notation (e.g., -"com.example.custom_field") to avoid collisions between -independently developed extensions. To prevent abuse and -excessive token size, the serialized JSON representation of -the "ext" object SHOULD NOT exceed 4096 bytes, and the JSON -nesting depth within the "ext" object SHOULD NOT exceed 5 -levels. Implementations SHOULD reject ECTs whose "ext" claim -exceeds these limits. - -Extension keys for domain-specific use cases MAY be defined in -future documents. -
Complete ECT Example @@ -560,7 +356,9 @@ parts separated by period (".") characters. An agent sending a request to another agent includes the Execution-Context header alongside the WIMSE Workload-Identity -header: +header. When a Workload Proof Token (WPT) is available per +, agents SHOULD include it +alongside the WIT and ECT.
DAG Validation -
Overview - ECTs form a Directed Acyclic Graph (DAG) where each task -references its parent tasks via the "par" claim. This structure -provides a cryptographically signed record of execution ordering, -enabling auditors to reconstruct the complete workflow and verify -that required predecessor tasks were recorded before dependent -tasks. - -DAG validation is performed against the ECT store — either an -audit ledger or the set of parent ECTs received inline. - -
-
Validation Rules +references its parent tasks via the "par" claim. DAG validation +is performed against the ECT store — either an audit ledger or +the set of parent ECTs received inline. When receiving and verifying an ECT, implementations MUST perform the following DAG validation steps: @@ -636,32 +424,11 @@ 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. -
-
Handling Unavailable Parent ECTs +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. -In distributed deployments, a parent ECT referenced in the "par" -array may not yet be available in the local ECT store at the time -of validation — for example, due to replication lag in a -distributed ledger or out-of-order message delivery. - -Implementations MUST distinguish between two cases: - - - Parent not found and definitively absent: The parent "jti" -does not exist in any accessible ECT store. The ECT MUST be -rejected. - Parent not yet available: The parent "jti" is not present -locally but may arrive due to known replication delays. -Implementations MAY defer validation for a bounded period -(RECOMMENDED: no more than 60 seconds). - - -Deferred ECTs MUST NOT be treated as verified until all parent -references are resolved. If any parent reference remains -unresolved after the deferral period or after the ECT's own "exp" -time (whichever comes first), the ECT MUST be rejected. - -
Signature and Token Verification @@ -758,23 +525,13 @@ workflow agents to reduce the risk of collusion.
Security Considerations -This section addresses security considerations following the -guidance in . -
Threat Model -The following threat actors are considered: - - - Malicious agent (insider threat): An agent within the trust -domain that intentionally creates false ECT claims. - Compromised agent (external attacker): An agent whose private -key has been obtained by an external attacker. - Ledger tamperer: An entity attempting to modify or delete ledger -entries after they have been recorded. - Time manipulator: An entity attempting to manipulate timestamps -to alter perceived execution ordering. - +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, and (4) a time manipulator altering timestamps to affect +perceived ordering.
Self-Assertion Limitation @@ -794,23 +551,9 @@ compromised or malicious agent could create ECTs with false claims The trustworthiness of ECT claims depends on the trustworthiness of the signing agent and the integrity of the broader deployment -environment. - -
-
Organizational Prerequisites - -ECTs operate within a broader trust framework. The guarantees -provided by ECTs are only meaningful when the following -organizational controls are in place: - - - Key management governance: Controls over who provisions agent -keys and how keys are protected. - Ledger integrity governance: The ledger is maintained by an -entity independent of the workflow agents. - Agent deployment governance: Agents are deployed and maintained -in a manner that preserves their integrity. - +environment. ECTs provide a technical mechanism for execution +recording; they do not by themselves satisfy any specific +regulatory compliance requirement.
Signature Verification @@ -833,120 +576,61 @@ implement custom signature verification.
Replay Attack Prevention -ECTs include short expiration times (RECOMMENDED: 5-15 minutes) to -limit the window for replay attacks. The "aud" claim restricts -replay to unintended recipients: an ECT intended for Agent B -will be rejected by Agent C. The "iat" claim enables receivers to -reject ECTs that are too old, even if not yet expired. - -The DAG structure provides additional replay protection: an ECT -referencing parent tasks that already have a recorded child task -with the same action can be flagged as a potential replay. - -Implementations MUST maintain a cache of recently-seen "jti" -values to detect replayed ECTs within the expiration window. -An ECT with a duplicate "jti" value MUST be rejected. - -Additionally, each ECT is cryptographically bound to the issuing -agent via the JOSE "kid" parameter, which references the agent's -WIT public key. Verifiers MUST confirm that the "kid" resolves -to the "iss" agent's key (step 8 in ), preventing -one agent from replaying another agent's ECT as its own. +ECTs include short expiration times (RECOMMENDED: 5-15 minutes) +and audience restriction via "aud" to limit replay attacks. +Implementations MUST maintain a cache of recently-seen "jti" +values and MUST reject ECTs with duplicate "jti" values. Each +ECT is cryptographically bound to the issuing agent via "kid"; +verifiers MUST confirm that "kid" resolves to the "iss" agent's +key (step 8 in ).
Man-in-the-Middle Protection -ECTs do not replace transport-layer security. ECTs MUST be -transmitted over TLS or mTLS connections. When used with the WIMSE -service-to-service protocol , -transport security is already established. HTTP Message Signatures - provide an alternative channel binding mechanism. - -The defense-in-depth model provides: - - - TLS/mTLS (transport layer): Prevents network-level tampering. - WIT/WPT (WIMSE identity layer): Proves agent identity and -request authorization. - ECT (execution accountability layer): Records what the agent did. - +ECTs MUST be transmitted over TLS or mTLS connections. When used +with , transport security is +already established.
Key Compromise If an agent's private key is compromised, an attacker can forge -ECTs that appear to originate from that agent. To mitigate this -risk: +ECTs that appear to originate from that agent. Mitigations: Implementations SHOULD use short-lived keys and rotate them -frequently (hours to days, not months). - Private keys SHOULD be stored in Hardware Security Modules (HSMs) -or equivalent secure key storage. +frequently. + Private keys SHOULD be stored in hardware security modules or +equivalent secure key storage. Trust domains MUST support rapid key revocation. - Upon suspected compromise, the trust domain MUST revoke the -compromised key and issue a new WIT with a fresh key pair. -ECTs signed with a compromised key that were recorded in the -ledger before revocation remain valid historical records but SHOULD -be flagged in the ledger as "signed with subsequently revoked key" -for audit purposes. - -ECT revocation does not propagate through the DAG. If a parent -ECT's signing key is later revoked, child ECTs that were verified -and recorded before that revocation remain valid — they captured -a legitimate execution record at the time of issuance. However, -auditors reviewing a workflow SHOULD flag any ECT in the DAG -whose signing key was subsequently revoked, so that the scope of -a potential compromise can be assessed. New ECTs MUST NOT be -created with a "par" reference to an ECT whose signing key is -known to be revoked at creation time. +ECTs recorded before key revocation remain valid historical +records but SHOULD be flagged for audit purposes. New ECTs +MUST NOT reference a parent ECT whose signing key is known to +be revoked at creation time.
-
Collusion and False Claims +
Collusion and DAG Integrity A single malicious agent cannot forge parent task references -because DAG validation requires parent tasks to exist in the -ledger. However, multiple colluding agents could potentially -create a false execution history if they control the ledger. +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 "par" to hide influences on its +output; because ECTs are self-asserted +(), no mechanism can force complete +dependency declaration. Mitigations include: - Independent ledger maintenance: The ledger SHOULD be maintained -by an entity independent of the workflow agents. - Cross-verification: Multiple independent ledger replicas can be -compared for consistency. - Out-of-band audit: External auditors periodically verify ledger -contents against expected workflow patterns. - - -
-
DAG Integrity Attacks - -Because the DAG structure is the primary mechanism for establishing -execution ordering, attackers may attempt to manipulate it: - - - False parent references: A malicious agent creates an ECT that -references parent tasks from an unrelated workflow, inserting -itself into a legitimate execution history. DAG validation -() mitigates this by requiring parent existence -in the ECT store, and the "wid" claim scopes parent references -to a single workflow when present. - Parent omission (pruning): An agent deliberately omits one or -more actual parent dependencies from the "par" array to hide -that certain tasks influenced its output. Because ECTs are -self-asserted (), no mechanism can -force an agent to declare all dependencies. External auditors -can detect omission by comparing the declared DAG against -expected workflow patterns. - Shadow DAGs: Multiple colluding agents fabricate an entire -execution history by creating a sequence of ECTs with mutual -parent references. Independent ledger maintenance and -cross-verification (see above) -are the primary mitigations. + 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 SHOULD validate that the declared "wid" of parent ECTs @@ -960,57 +644,30 @@ policy. 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 "par", as an authorization -grant. The "par" claim demonstrates that predecessor tasks were -recorded, not that the current agent is authorized to act on -their outputs. Authorization decisions MUST remain with the -identity and authorization layer (WIT, WPT, and deployment -policy). As noted in , -AI intermediaries introduce novel escalation vectors; ECTs -MUST NOT be used to circumvent authorization boundaries. +grant. Authorization decisions MUST remain with the identity and +authorization layer (WIT, WPT, and deployment policy).
Denial of Service -ECT signature verification is computationally inexpensive -(approximately 1ms per ECT on modern hardware for ES256). DAG -validation complexity is O(V) where V is the number of ancestor -nodes reachable from the parent references; for typical shallow -DAGs this is efficient. - -Implementations SHOULD apply rate limiting at the API layer to -prevent excessive ECT submissions. DAG validation SHOULD be -performed after signature verification to avoid wasting resources -on unsigned or incorrectly signed tokens. +Implementations SHOULD apply rate limiting to prevent excessive +ECT submissions. DAG validation SHOULD be performed after +signature verification to avoid wasting resources on unsigned +tokens.
Timestamp Accuracy -ECTs rely on timestamps ("iat", "exp") for temporal ordering. -Clock skew between agents can lead to incorrect ordering -judgments. Implementations SHOULD use synchronized time sources -(e.g., NTP) and SHOULD allow a configurable clock skew tolerance -(RECOMMENDED: 30 seconds). - -Cross-organizational deployments where agents span multiple trust -domains with independent time sources MAY require a higher clock -skew tolerance. Deployments using trust domain federation SHOULD -document their configured clock skew tolerance value and SHOULD -ensure all participating trust domains agree on a common tolerance. - -The temporal ordering check in DAG validation incorporates the -clock skew tolerance to account for minor clock differences -between agents. +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.
ECT Size Constraints -ECTs with many parent tasks or large extension objects can -increase HTTP header size. Implementations SHOULD limit the "par" -array to a maximum of 256 entries. Workflows requiring more -parent references SHOULD introduce intermediate aggregation -tasks. The "ext" object SHOULD NOT exceed 4096 bytes when -serialized as JSON and SHOULD NOT exceed a nesting depth of -5 levels (see also ). +Implementations SHOULD limit the "par" array to a maximum of +256 entries. See for "ext" size limits.
@@ -1407,20 +1064,6 @@ been incorporated into this document. This document obsoletes RFC - - - Guidelines for Writing RFC Text on Security Considerations - - - - - All RFCs are required to have a Security Considerations section. Historically, such sections have been relatively weak. This document provides guidelines to RFC authors on how to write a good Security Considerations section. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements. - - - - - - OAuth 2.0 Token Exchange @@ -1437,42 +1080,6 @@ been incorporated into this document. This document obsoletes RFC - - - HTTP Message Signatures - - - - - - This document describes a mechanism for creating, encoding, and verifying digital signatures or message authentication codes over components of an HTTP message. This mechanism supports use cases where the full HTTP message may not be known to the signer and where the message may be transformed (e.g., by intermediaries) before reaching the verifier. This document also describes a means for requesting that a signature be applied to a subsequent HTTP message in an ongoing HTTP exchange. - - - - - - - - - WIMSE Applicability for AI Agents - - Huawei - - - Huawei - - - - This document discusses WIMSE applicability to Agentic AI, so as to - establish independent identities and credential management mechanisms - for AI agents. - - - - - - - @@ -1611,7 +1218,7 @@ been incorporated into this document. This document obsoletes RFC - +
Use Cases @@ -1805,371 +1412,277 @@ tracing is built.
@@ -2979,7 +2508,7 @@ the "JSON Web Token Claims" registry maintained by IANA:Workflow Identifier
IETF - Section 4.2.2 + Section 3.2.2
IETF - Section 4.2.2 + Section 3.2.2
IETF - Section 4.2.2 + Section 3.2.2
IETF - Section 4.2.3 + Section 3.2.3
IETF - Section 4.2.3 + Section 3.2.3
IETF - Section 4.2.4 + Section 3.2.4