| Internet-Draft | AAE | September 2026 |
| Kroehl | Expires 10 March 2027 | [Page] |
- Workgroup:
- Independent Submission
- Internet-Draft:
- draft-kroehl-agentic-trust-aae-02
- Published:
- Intended Status:
- Informational
- Expires:
Agent Authorization Envelope (AAE): A Machine-Evaluable Authorization Structure for Autonomous AI Agents
Abstract
Autonomous AI agents now operate at production scale across financial, commercial, and infrastructure domains — executing transactions, invoking APIs, and taking consequential actions without direct human oversight at each step. Existing authorization mechanisms (OAuth 2.0, API keys, ACLs) were designed for human-initiated requests and do not capture the machine-evaluable semantics required for autonomous agent authorization: what the agent is mandated to do, what constraints bound its actions, and for how long the authorization is valid.¶
This document specifies the Agent Authorization Envelope (AAE), a structured authorization container for autonomous AI agents. AAE defines three mandatory blocks — MANDATE, CONSTRAINTS, and VALIDITY — that together constitute a machine-evaluable, cryptographically verifiable authorization assertion. AAE is designed to be protocol-agnostic, binding to W3C Decentralized Identifiers (DIDs) for agent identity and W3C Verifiable Credentials (VCs) for issuance and signature, and is independent of any specific AI framework, transport protocol, or blockchain.¶
Status of This Memo
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 10 March 2027.¶
Copyright Notice
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.¶
1. Introduction
The deployment of autonomous AI agents at scale creates an authorization gap that existing Internet protocols do not address. When a human user initiates a request, the authorization question is well-understood: who is the user, what are they permitted to do, and has their session expired? Protocols such as OAuth 2.0 [RFC6749] answer these questions for human-delegated access.¶
When an autonomous agent initiates a request — potentially on behalf of another agent, under a delegated mandate, with specific constraints on permissible actions — the question requires a different answer. The agent may be acting under a mandate issued hours earlier; its actions may be bounded by value caps, action allowlists, or domain restrictions; and the authorization may expire on a schedule that the receiving system must be able to verify without contacting the issuing party.¶
No current IETF standard addresses this combination of requirements for autonomous agents. OAuth 2.0 scopes are issuer-defined strings without machine-evaluable semantics for agent mandates. SPIFFE/SVID addresses workload identity but not authorization semantics. JWT claims are flexible but unstructured for agent-specific use cases.¶
This document specifies the Agent Authorization Envelope (AAE) to fill this gap. AAE is derived from a production deployment operational since March 2026 [ARXIV-AAE] and is aligned with regulatory requirements from Singapore IMDA [IMDA-MGF], NIST [NIST-CAISI], and the EU AI Act (Regulation 2024/1689).¶
1.1. Regulatory Convergence
Independent regulatory work has converged on the same authorization structure that AAE implements. Two requirements from the Singapore IMDA Model AI Governance Framework for Agentic AI, Version 1.5 [IMDA-MGF], published 20 May 2026, are directly relevant.¶
First, on agent identity (§2.1.2, "Agent identity — Identification"), the framework states:¶
-
An agent should have its own unique, cryptographically verifiable identity, such that it can identify itself to the organisation, its human user, or other agents.¶
The framework further recommends that agent identities be catalogued and centrally managed, issued from and tracked by a centralised system — the operational model that a DID-based trust registry implements.¶
Second, on authorization scope (§2.1.2, "Authorisation"), the framework recommends that authorisations be scoped, time- or session-bound, non-transferable, and follow the principle of least privilege by default with explicit escalation paths; that they be bounded by the authorising human's permissions; and that delegations of authority be clearly recorded.¶
This maps directly to the three AAE blocks: MANDATE defines the scope and action allowlist, CONSTRAINTS implement least-privilege and value bounds, VALIDITY enforces time-bound non-transferable authorization, and the delegation chain structure records authority provenance (Section 3).¶
A case study in the same framework (§2.3, "Terminal 3 case study") describes an independent implementation of the same pattern: a "Verifiable Credential of Intent" issued by a human principal to an agent before each cycle, defining accessible records, applicable constraints, and a declared ceiling amount. This is a real-world deployment of pre-transaction scoped authorization that is structurally equivalent to AAE.¶
1.2. Terminology
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
Agent: An autonomous software entity that takes actions on behalf of a principal, potentially without per-action human approval.¶
Principal: The human or organization that deploys and is ultimately accountable for an agent's actions.¶
Issuer: The entity that issues the AAE, typically a trust registry or the principal directly.¶
Relying Party: The system or service that receives a request from an agent and evaluates the AAE to determine whether to process it.¶
AAE: Agent Authorization Envelope — the structured authorization container defined in this document.¶
3. Delegation Chains
An agent may act under a mandate delegated from another agent. An AAE
issued directly by a principal, and not itself delegated, is a root
AAE: it has no delegation member, and its effective delegation depth
is 0. A root AAE that authorizes onward delegation MUST include a
delegation_policy object in its MANDATE block with a non-negative
integer max_depth member; this value is the parent's effective
maximum depth for the first delegation link.¶
"mandate": {
"actions": ["read", "book"],
"delegation_policy": { "max_depth": 2 }
}
¶
A delegated AAE carries a delegation object in its MANDATE block:¶
"mandate": {
"actions": ["read"],
"delegation": {
"delegator_did": "did:example:parent-agent",
"delegator_aae_id": "urn:uuid:parent-aae-123",
"delegator_aae_uri": "https://aae.example/p/parent-aae-123",
"delegator_aae_hash": "sha-256:5b7e2c...",
"depth": 1,
"max_depth": 2
}
}
¶
delegator_did: REQUIRED in delegation context. The DID of the
delegating agent.¶
delegator_aae_id: REQUIRED in delegation context. The id of the
parent AAE.¶
delegator_aae_uri: REQUIRED in delegation context, unless the parent
AAE is embedded in the request by the transport binding. A URI from
which the relying party can retrieve the parent AAE.¶
delegator_aae_hash: OPTIONAL. A hash of the parent secured AAE. If
present, the value MUST have the form sha-256:<base64url-encoded-digest>.
The digest input MUST be the exact ASCII octet sequence of the parent
AAE JWS compact serialization as retrieved, without additional
whitespace, decoding, re-encoding, or JSON canonicalization. SHA-256 is
as defined in [RFC6234]. If the computed digest does not match the
value in delegator_aae_hash, the relying party MUST reject the
delegated AAE.¶
depth: REQUIRED in delegation context. Integer. The delegation depth
of this AAE. It MUST equal the parent AAE's effective delegation depth
plus 1. The effective delegation depth of a root AAE is 0; the
effective delegation depth of a delegated AAE is its delegation.depth.¶
max_depth: REQUIRED in delegation context. Integer. The maximum
delegation depth permitted for this branch of the chain. It MUST be
less than or equal to the parent AAE's effective maximum depth — the
parent's delegation.max_depth if the parent is a delegated AAE, or
the root AAE's mandate.delegation_policy.max_depth if the parent is a
root AAE. A relying party MUST reject a delegated AAE whose depth
exceeds its max_depth, and MUST reject any delegation whose parent is
a root AAE that has no delegation_policy.¶
A relying party MUST be able to retrieve the parent AAE in order to
verify a delegation chain. The parent AAE's credentialSubject.id MUST
equal the delegated AAE's delegation.delegator_did. Which DID is
permitted to sign a delegated AAE — the signing-authority rule — is
specified in the Verification Algorithm (Section 5).¶
Delegated AAEs MUST NOT grant actions not present in the parent AAE. Delegated AAEs MUST be strictly subordinate to their parent AAE. For the purposes of this document, "equal to or more restrictive" is defined per element as follows:¶
-
Actions: The delegated
mandate.actionsMUST be a subset of the parentmandate.actions. If the delegated MANDATE contains thedelegateaction, the parent MANDATE MUST also contain it.¶ -
Numeric upper-bound constraints (for example,
max_transaction_value): The delegatedvalueMUST be less than or equal to the parentvalue.¶ -
Rate-limit constraints (
rate_limit): A delegatedrate_limitconstraint is equal to or more restrictive than the parent only if the relying party can prove that no execution pattern permitted by the delegated rate limit would violate the parent rate limit. In the absence of a profile defining such comparison semantics, the delegatedrate_limitMUST use the samewindowvalue as the parent constraint, and the delegatedvalueMUST be less than or equal to the parentvalue; if the windows differ and no such profile applies, the delegated AAE MUST be rejected.¶ -
Allowlist constraints (for example,
allowed_domains): The delegatedvalueMUST be a subset of the parentvalue.¶ -
Validity: The delegated
validity.not_beforeMUST be greater than or equal to the parentvalidity.not_before, and the delegatedvalidity.not_afterMUST be less than or equal to the parentvalidity.not_after.¶ -
Delegation depth: The delegated
delegation.depthMUST equal the parent AAE's effective delegation depth plus 1; the delegateddelegation.max_depthMUST be less than or equal to the parent AAE's effective maximum depth; anddelegation.depthMUST NOT exceeddelegation.max_depth.¶
Every constraint present in the parent AAE that is marked
required: true, or for which the required member is absent and is
therefore treated as required: true (Section 2.3), MUST also be
present in the delegated AAE and MUST either be marked required: true
or omit the required member. A delegated AAE MUST NOT omit, downgrade,
or change to required: false any parent constraint that is required by
this rule. A delegated AAE MAY introduce additional constraints,
provided they do not contradict the parent constraints. For
currency-valued constraints (for example, max_transaction_value), the
delegated constraint MUST use the same currency as the parent
constraint, unless the relying party has an explicitly configured and
auditable currency-conversion policy; if the currencies differ and no
such policy exists, the delegated AAE MUST be rejected.¶
If a relying party cannot determine whether a delegated element is equal to or more restrictive than the corresponding parent element, the delegated AAE MUST be rejected.¶
A delegation chain as described here is presented by the agent and evaluated by the party it approaches. [PEDIGREE] describes delegation identity from the supplier side of the same relationship — how a delegating system mints and narrows the authority it hands on. It is cited here for the reader's orientation only. This document defines no dependency on it, derives no requirement from it, and its own verification algorithm is unchanged by it.¶
4. Action Vocabulary Schemas
Interoperability across relying parties requires shared action vocabularies. This document defines a minimal common vocabulary:¶
| Action | Semantics |
|---|---|
read
|
Retrieve information without side effects |
write
|
Create or modify state |
delete
|
Remove state |
pay
|
Initiate a payment or financial transfer |
invoke
|
Call an external API or service |
delegate
|
Issue a delegated AAE to a sub-agent |
Vertical-specific vocabularies (travel, finance, healthcare) SHOULD be published as extensions to this base vocabulary, as stable and versioned schemas at publicly accessible URIs. This document does not create an IANA registry for action vocabularies.¶
5. Verification Algorithm
A relying party receiving an agent request with an attached AAE MUST perform the following checks in order:¶
-
Signature verification: Parse the JWS in compact serialization and read the protected header. The signing DID is the DID portion of the
kidparameter. Resolve the signing DID, dereference the referenced verification method, and confirm that (a) the verification method is present in that DID document, (b) it is authorized for theassertionMethodproof purpose, (c) it contains or resolves to a JWK withkty: "OKP"andcrv: "Ed25519", and (d) the JWS signature validates under that key. Reject the AAE if the signing DID cannot be resolved, the verification method is absent or not authorized forassertionMethod, the key is not Ed25519, thealgis not "EdDSA", or the signature is invalid.¶The relying party MUST then verify signing authority. For a non-delegated AAE (no
mandate.delegationmember), the signing DID MUST be identical to the Verifiable Credentialissuer. For a delegated AAE, the signing DID MUST satisfy one of the following: (a) it is identical tomandate.delegation.delegator_did, and the Verifiable Credentialissueris also identical to that DID; or (b) it is explicitly authorized bymandate.delegation.delegator_didto issue delegated AAEs on that delegator's behalf, where the authorization is represented by a verification method or service entry in the delegator's DID document. If signing authority cannot be established under the applicable rule — or, for case (b), the relying party does not understand the authorization mechanism — the AAE MUST be rejected.¶ -
Payload and schema validation: Parse the JWS payload as UTF-8-encoded JSON. The payload MUST be a W3C Verifiable Credential containing
id,issuer,credentialSubject.id, andcredentialSubject.aae. Theaaeobject MUST containmandate,constraints, andvalidity. The protected-headerctyparameter MUST equal "aae+json". Reject the AAE if any required member is absent, has the wrong JSON type, or otherwise violates the structural requirements of this document.¶ -
Temporal validity: Confirm current time is within
not_beforeandnot_after. Reject if outside bounds. Beyond these two members, Section 2.4 requires that a relying party MUST NOT accept the AAE before the later ofvalidFromandvalidity.not_beforewhere the Verifiable Credential carries avalidFrommember. That requirement is normative in Section 2.4 and is neither restated nor altered here; it is recalled because an implementer working from this algorithm alone would otherwise have no reason to look for it.¶ -
Subject binding: The relying party MUST establish that the agent presenting the AAE controls
credentialSubject.idbefore accepting it.¶The relying party MUST generate a fresh, unpredictable nonce of at least 128 bits and send it to the agent together with an audience identifier that names this relying party and the
aae_idof the envelope under verification. The nonce MUST carry a proof of its own origin that the relying party can check without consulting stored state — a keyed authenticator over the nonce and its expiry is sufficient — so that condition (c) below does not require a lookup merely to establish provenance.¶The agent MUST return a JWS in compact serialization whose payload is the UTF-8 encoding of a JSON object with exactly these four members:¶
{ "nonce": "<relying-party nonce>", "aud": "<relying-party audience identifier>", "iat": "<RFC 3339 UTC timestamp>", "aae_id": "<Verifiable Credential id>" }¶A payload carrying any further member, or missing one of these, MUST be rejected. The protected header MUST contain
"alg": "EdDSA"and akidDID URL whose DID portion equalscredentialSubject.id.¶The relying party MUST reject the AAE unless all of the following hold:¶
(a) the challenge-response signature is valid under a key controlled by
credentialSubject.id; (b) the referenced verification method is authorized under theauthenticationrelationship in the resolved DID document —assertionMethoddoes not satisfy this, because the two relationships answer different questions; (c) the nonce was generated by this relying party and has not been used before; (d)audidentifies this relying party; (e)aae_idequals the Verifiable Credentialid; and (f)iatlies within the relying party's accepted clock-skew window.¶Condition (c) has two halves that are satisfied differently. Provenance follows from the authenticator on the nonce and needs no state. Single use does need state: the relying party MUST record each accepted nonce and MUST reject a second presentation of it. A relying party SHOULD store only a digest of the nonce rather than the nonce itself; the check is an equality test, and the stored value never has to be read back.¶
Nonce format and lifetime. The nonce is opaque to the agent, which returns it unchanged. Its structure is fixed here so that condition (c) is checkable without a lookup and so that a third party can distinguish a malformed challenge from a rejected one:¶
nonce = <random> "." <expiry> "." <authenticator> <random> at least 128 bits of unpredictable data, lowercase hexadecimal <expiry> the absolute expiry, as seconds since the Unix epoch, in decimal <authenticator> HMAC-SHA-256 over the ASCII string <random> "." <expiry> "." <aud> "." <aae_id> under a key held by the relying party, encoded base64url without padding¶HMAC is as specified in [RFC2104] and base64url as in [RFC4648]. Three properties follow from what is inside the authenticated input, and each is required. The expiry is authenticated, so the party presenting a nonce cannot extend it; a relying party MUST verify the authenticator, in constant time, before reading the expiry as a bound, and MUST reject a nonce whose expiry has passed. The audience is authenticated, so a nonce minted naming one relying party MUST NOT verify at another. The envelope is authenticated, so a nonce minted for one
aae_idMUST NOT verify for another, and a challenge answered for a cheap envelope cannot be replayed against an expensive one.¶The key MUST be domain-separated from every other authenticator the relying party issues, so that a token minted in one flow never verifies in another.¶
The lifetime is local policy and this document fixes no value; it MUST be finite, and it MUST be the value carried in the token rather than one applied at verification time. A relying party MUST reject a challenge response whose nonce does not match the form above, whose authenticator does not verify, or whose expiry has passed — in that order, since the later tests read fields the authenticator has not yet vouched for.¶
Single use and the used-nonce store. The store is keyed by a digest of the nonce and holds nothing else that a verifier reads back. Three rules make it a replay barrier rather than a cache. The record MUST be created as part of accepting the response, in a way that a second concurrent presentation of the same nonce cannot also succeed; an insert that fails because the key already exists is the rejection, and a read-then-write is not sufficient, because two presentations can both read absence. The record MUST be retained at least until the nonce's own expiry, since evicting earlier reopens replay for the remainder of the lifetime; retention beyond expiry is not required, because an expired nonce is already rejected by the origin check. And where the store cannot be reached, the relying party MUST fail closed and reject the response: single use is the one condition that cannot be established from the token alone, so an unavailable store means the condition is unestablished, not satisfied.¶
iat, the nonce lifetime, and clock skew.iatis an RFC 3339 [RFC3339] timestamp carrying a UTC offset, not a JWT NumericDate; a relying party MUST reject aniatthat is not such a string or that carries no offset. Condition (f) is a two-sided window, and the two sides are not the same quantity.iatMUST NOT be later than the relying party's clock plus its accepted skew — this side is clock skew alone, since a response cannot legitimately be signed in the future.iatMUST NOT be earlier than the relying party's clock minus the nonce lifetime and the skew — this side is the lifetime the nonce already carries, so a response claiming to predate the earliest moment its challenge could have been minted is refused regardless of what the nonce says. The nonce expiry andiatbound the exchange from opposite directions and neither replaces the other: the expiry bounds how long the relying party will still accept the nonce,iatbounds when the agent claims to have signed, and a relying party MUST check both.¶JOSE profile for the challenge response. The response is an externally supplied JWS, and "exactly four members" is a statement about a token only once the parser is pinned down. This profile pins it down.¶
-
The response MUST be a compact JWS with three parts. A relying party MUST bound its size before it decodes, parses, or verifies anything.¶
-
algMUST be "EdDSA" and the curve MUST be Ed25519 [RFC8032]. A relying party MUST verify against an explicit allowlist of algorithms and MUST NOT take the algorithm to use from the header of the token it is checking.¶ -
The payload MUST be base64url-encoded. A relying party MUST reject
"b64": false[RFC7797] and MUST reject a detached payload.¶ -
A relying party MUST reject a protected header carrying
crit. This profile defines no critical extension, so any value ofcritnames something the relying party does not implement, and [RFC7515] requires rejection in exactly that case.¶ -
Duplicate member names MUST be rejected rather than resolved, in the protected header and in the payload alike. Without that rule, "exactly four members" describes a parser and not a token: a last-wins parser reads a payload naming
noncetwice as four members and accepts what a first-wins parser rejects. The header carries the same risk in a sharper form — a header namingkidtwice, oralgtwice, leaves the verification method and the algorithm decided by the parser rather than by the token — so a relying party MUST apply the rule before it reads any header member and before it fetches any key.¶ -
The payload MUST be a JSON object with exactly the four members named above.¶
-
A relying party MUST reject a challenge response whose header carries the content type of an AAE envelope, so that an envelope cannot be presented as its own proof of possession.¶
DID URL comparison and resolution failure.
kidMUST be a DID URL: a DID, a "#", and a non-empty fragment naming a verification method. A relying party MUST reject akidwith no fragment, with an empty fragment, or with an empty DID part. The DID portion ofkidMUST equalcredentialSubject.idcompared as an exact octet sequence; a relying party MUST NOT normalize, percent-decode, case-fold, or resolve either side before comparing. It MUST reject a non-ASCIIkid— look-alike characters would otherwise let two distinct DIDs compare as one to a reader while differing to the verifier — and MUST reject akidcontaining "/", "\", or "..", which have no meaning in this position and reach path handling in a resolver that treats the value as a locator. Where the DID cannot be resolved, where the resolved document names no verification method matchingkid, or where the DID method is one the relying party does not implement, the relying party MUST reject: a resolution failure is never a reason to skip condition (b). Where resolution would require an outbound request, see Section 5.2.¶This challenge-response exchange is the proof of possession defined by this document. A relying party that performs it needs no separate transport-level or protocol-level possession input to establish that the presenting agent controls
credentialSubject.id.¶ -
-
Single-use check: If
validity.single_useis true, the relying party MUST perform an atomic check-and-record operation keyed by the Verifiable Credentialid. Anidthat has already been recorded MUST be rejected. Where the relying party is deployed across multiple nodes, this state MUST be shared across all nodes; concurrent presentations of the sameidMUST NOT both succeed.¶ -
Action check: Confirm the requested action is present in
mandate.actions. Reject if absent.¶ -
Constraint evaluation: For each constraint in the CONSTRAINTS block, the relying party MUST enforce every constraint it recognizes. If a recognized constraint marked
required: true(or withrequiredabsent) cannot be evaluated, the relying party MUST reject the AAE. If a recognized constraint markedrequired: falsecannot be evaluated, the relying party MAY ignore that constraint. If a constraint is unrecognized, the relying party MUST reject the AAE unless that constraint is explicitly markedrequired: false. The relying party MUST reject the AAE if any enforced constraint is violated.¶ -
Revocation check (if applicable): If
validity.revocation_checkis present, the relying party MUST query the endpoint over HTTPS and evaluate the result as specified forrevocation_checkin Section 2.4, including the limited fail-open exception defined there.¶ -
Delegation chain (if applicable): Where the AAE under verification is delegated, the relying party MUST verify the whole chain of ancestors, not only the envelope presented to it.¶
Wire format for the chain. Ancestors travel in a member
ancestor_jws, an array of compact JWS strings. The array is not ordered: a relying party MUST index the supplied ancestors by the Verifiable Credentialideach one carries, and MUST walk the chain by followingmandate.delegation.delegator_aae_idfrom the presented AAE outward. Requiring an order would add a second thing that can be wrong without adding anything a verifier needs, since the pointer already says which parent belongs to which child. A relying party MUST bound the supplied material before verifying any of it, and MUST support at least 16 inline ancestors.¶Each link is then checked against the parent actually supplied.
mandate.delegation.delegator_aae_idnames the parent; if no supplied ancestor carries thatid, the verdict is DENY — unless the delegation names onlydelegator_aae_uri, which is deferred (Section 5.2).mandate.delegation.delegator_aae_hashMUST match that parent: the digest is taken over the exact ASCII octet sequence of the inline JWS as supplied, with no canonicalization, no domain tag, encoded base64url [RFC4648] — the construction of Section 3. "As retrieved" here means as received in the request: there is no fetch, so the octets the caller handed over are the octets that are hashed, and a mismatch is DENY. The parent'scredentialSubject.idMUST equal the child'smandate.delegation.delegator_did. The sameidMUST NOT be supplied twice: two ancestors claiming one identity make the chain ambiguous, and the relying party MUST reject rather than pick one.¶A relying party conforming to this revision MUST NOT fetch an ancestor over the network; retrieval by
delegator_aae_uriis addressed in Section 5.2. Steps 1 and 2 MUST be performed over every ancestor. Steps 4 and 5 MUST NOT be: subject binding and single-use consumption concern the envelope actually presented, and an ancestor is not being presented.¶Across every delegation step, the child MUST be no broader than its parent: every action in the child's
mandate.actionsMUST also appear in the parent's; a numeric limit MUST NOT exceed the parent's, and only limits denominated in the same currency are comparable, so a differing currency MUST be rejected rather than converted; arate_limitMUST NOT exceed the parent's and is comparable only where the window is identical; an allowlist MUST be a subset of the parent's; the validity window MUST nest, withnot_beforeno earlier than the parent's andnot_afterno later; every constraint the parent marksrequired: trueMUST be present in the child and MUST NOT be relaxed torequired: false; and where a constraint type is unrecognized and parent and child differ in it, the relying party MUST reject the chain rather than assume the difference is narrowing.¶Grant attenuation. Where either AAE in a delegation step carries
grants(Section 2.2.1), the narrowing rules apply to the grants as well. Checking onlymandate.actionswould leave the finer member unconstrained, and a child could then permit under conditions its parent forbids while still naming only actions the parent allows.¶Every grant in the child MUST be covered by a grant in the parent: one whose
action_bindingis equal, and whose constraints the child's constraints imply. A child grant that no parent grant covers is an extension of authority, and the relying party MUST reject the chain.¶The three dispositions order as
allow<=hold<=forbid, from most permissive to least. A child MUST NOT move a disposition down this order:allowmay becomeholdorforbidandholdmay becomeforbid, whileholdorforbidbecomingallowMUST be rejected. The order is what makes "no broader than its parent" decidable for a member that is not a number.¶For the three constraint types of Section 2.5, a child constraint implies its parent's when, for
exact, the child'svalueequals the parent's — anexactconstraint admits exactly one value, so a differing one is neither narrower nor broader but simply another constraint, and the relying party MUST reject it; forenum, the child'svaluesare a subset of the parent's; and forrange, the child's interval lies inside the parent's, withlono lower than the parent'sloandhino higher than the parent'shi. A constraint present in the parent and absent from the child removes a bound and MUST be rejected, whatever itsrequiredflag says.¶The relying party MUST maintain the set of AAE
idvalues already visited on the current path and MUST reject the chain if anyidappears more than once. It MUST apply a recursion limit equal to the smaller of 8 and the smallestmax_depthobserved anywhere in the chain. The effective expiry of the presented AAE is the minimumnot_afterover the whole chain.¶The
delegator_aae_hashconstruction above is the one of Section 3, and deliberately not the one Section 2.2.2 defines foraction_binding. A value produced by one MUST NOT be compared against a value produced by the other; Section 2.2.2 states why the two differ.¶For the signing authority of a delegated AAE, the relying party MUST accept case (a) of step 1 — the signing DID is identical to
mandate.delegation.delegator_didand to the Verifiable Credential issuer. Case (b), where the delegator's DID document authorizes another DID to issue on its behalf, MUST be rejected by a relying party that does not understand the authorization mechanism, which is what this revision requires; see Section 5.2.¶
Steps 1–7 are REQUIRED. Steps 8–9 are conditional on presence of the relevant fields.¶
5.1. Verification Dependencies
The checks above are evaluated by the relying party against the presented AAE and its ancestors. This document defines no step in which the relying party contacts the organization that originated the authorization in order to obtain an authorization decision: the AAE carries the authorization and the relying party evaluates it.¶
The algorithm does depend on data the relying party may have to retrieve:¶
-
the DID documents needed to resolve the signing DID in step 1 and, where step 4 is performed,
credentialSubject.id;¶ -
each ancestor AAE of a delegation chain in step 9, obtained from
delegation.delegator_aae_uriunless the transport binding conveys the ancestor inline as described in Section 3;¶ -
the endpoint named in
validity.revocation_check, queried over HTTPS, where that member is present (step 8).¶
These are retrieval dependencies, not authorization callbacks. This
document does not constrain how a relying party obtains them, and Section 3
already contemplates an ancestor conveyed inline rather than fetched.
Verification therefore requires no synchronous call to the originating
organization, but characterising it as offline without qualification is
inaccurate for any AAE that carries a delegation chain or a
revocation_check member.¶
5.2. Deferred Verification Capabilities
Four capabilities named elsewhere in this document are not available in this revision, and all four wait on the same thing: a relying party can only make them safe once it can perform outbound requests through a proxy that constrains where those requests may go. Until such a proxy exists, a conforming implementation refuses rather than pretends.¶
-
Ancestor retrieval by
delegator_aae_uri. Step 9 verifies ancestors supplied inline. A relying party MUST NOT dereferencedelegator_aae_uriin this revision.¶ -
DID methods requiring outbound resolution. This affects the subject in step 4 and the delegator in step 9 alike: where the DID cannot be resolved locally, the relying party rejects rather than fetches.¶
-
Revocation checking (step 8). A relying party that cannot perform the lookup rejects an AAE carrying
revocation_checkfail-closed, rather than reporting a check it did not perform. What rests on this limitation is the discovery half of Section 7.5 — establishing that a parent has been revoked. The consequence half of that section is not deferred: a relying party that already knows of the revocation MUST treat the descendants as invalid, and no egress path is needed to obey a rule about what it already holds.¶ -
Case (b) delegated signing authority. Establishing that a delegator's DID document authorizes another DID requires resolving that document, which is the second item above.¶
The condition for a future revision is an egress path that constrains outbound requests and is available to the relying party. All four become specifiable together, because one capability unlocks all of them. Section 9 lists the relying-party revocation lookup under the same condition; it is this list's third item seen from the roadmap side.¶
6. Verdicts and Ratification
6.1. Verdict Vocabulary
Evaluating a transaction against a mandate yields exactly one of three verdicts.¶
-
PERMIT — a grant bound the action, all of that grant's constraints held, and its disposition is
allow. PERMIT is reachable in no other way.¶ -
PENDING — a grant bound the action, all of its constraints held, and its disposition is
hold. PENDING states that the mandate defers this action to a decision that has not been made. It MUST NOT be produced for an action no grant addresses.¶ -
DENY — every other outcome. A missing or structurally invalid mandate, a missing transaction, an action that cannot be canonicalized, an unaddressed action, a matched
forbidgrant, an unknown constraint type, an unparseable value, and a matched grant whose constraints do not hold all produce DENY.¶
DENY is the default. A relying party that cannot evaluate MUST deny; absence of a mandate is never a route to PERMIT.¶
6.2. Verdict Records and Chaining
A verdict record consists of the core of Section 2.5.3 and its digest. A record is immutable. A relying party MUST NOT edit a record after it is produced.¶
Verdict records MAY be chained. A record's prev_core_digest carries
the core digest of the record it follows, or null at the start of a
chain. The caller holds the chain; this document does not require a
chain to be published, stored, or anchored to any ledger.¶
A ratification record is the exception. Its prev_core_digest MUST be
present and MUST equal the core digest of the record it ratifies. A
ratification is a statement about one specific prior record, and a
chaining field pointing anywhere else would describe a different history
than the one the ratification asserts. A verifier MUST reject a
ratification record whose prev_core_digest is absent or does not equal
the digest it claims to ratify.¶
6.3. Ratification
A verdict may need a status it did not have when it was produced — an action held under PENDING that the mandating party later authorizes, or a denial that party subsequently confirms. This document corrects such history by appending, never by editing.¶
A ratification is a second signed record referencing a prior verdict
record by its core digest. It carries a decision, which is either
APPROVED or DISAPPROVED, and it reports a status, which is either
RATIFIED or REJECTED. The decision is what the ratifying party
asserts; the status is what the verifier established about that
assertion. A decision takes effect for the prior record only when the
status is RATIFIED. When the status is REJECTED, the prior record keeps
the verdict it had, and the ratification records why the assertion did
not hold.¶
What the decision is about. APPROVED and DISAPPROVED are
statements about the action, not about the verdict record.
APPROVED says the authority authorizes the action the prior record
describes; DISAPPROVED says it does not. Reading them the other way —
as an endorsement or a rejection of the verdict — would make APPROVED
mean "the denial was right" in one row of the matrix below and "the
action may proceed" in another, and a party signing a statement would
not know which it had signed. One reading, fixed here: the decision is
about the action.¶
The four combinations of a ratifiable prior verdict and a decision
therefore resolve as follows, in every case only where status is
RATIFIED:¶
| Prior verdict | Decision | The action is | The prior record |
|---|---|---|---|
| PENDING | APPROVED | authorized | unchanged; it still reads PENDING |
| PENDING | DISAPPROVED | not authorized; the hold ends in a refusal | unchanged; it still reads PENDING |
| DENY | APPROVED | authorized despite the denial — an override by the mandating party | unchanged; it still reads DENY |
| DENY | DISAPPROVED | not authorized; the denial is confirmed | unchanged; it still reads DENY |
Where status is REJECTED, none of the four rows takes effect: the
assertion did not hold, and the action's authorization is whatever the
prior verdict already made it.¶
Two consequences of the table are normative. A relying party MUST NOT
edit or re-issue the prior record in any row — the effective
authorization is read from the pair (prior verdict, decision) carried in
the ratification, and no fourth verdict value is produced. And the third
row, DENY with APPROVED, is an authorization the mandate itself did not
give: a relying party MUST NOT treat the resulting record as a PERMIT of
Section 6.1, MUST record that the authorization derives from a
ratification rather than from a grant, and MUST bound it to the one
transaction the prior record's transaction_digest names. A
ratification authorizes one transaction, never a class of them.¶
The signed statement binds three things together:¶
{
"ratify_version": "3.0",
"ratifies": "sha256:<64 lowercase hex characters>",
"decision": "APPROVED",
"authority": "<DID>"
}
¶
It is signed over the domain tag aae:enforce-ratify-statement:v1
followed by a 0x00 octet and the [RFC8785] canonicalization of that
object. Binding all three means an APPROVED signature cannot be moved to
another record, cannot be reread as DISAPPROVED, and cannot be
attributed to a different authority.¶
ratify_version is inside the signed bytes, so it is not decoration: a
party that builds the statement with a different value produces a
different signature over the same decision.¶
A ratification record carries its own core, with its own structure. It
is not a verdict core with different values: it has no verdict, no
action_digest and no grant_index, and it carries members a verdict
core does not. Stating it by reference to Section 2.5.3 would leave a
third-party verifier guessing which of those members survive, so it is
written out here.¶
{
"ratify_version": "<string>",
"ratifies": "sha256:<64 lowercase hex characters>",
"prior_verdict": "DENY | PENDING",
"decision": "APPROVED | DISAPPROVED",
"status": "RATIFIED | REJECTED",
"authority": "<DID string or null>",
"mandate_digest": "sha256:<64 lowercase hex characters>",
"trace": [],
"prev_core_digest": "sha256:<64 lowercase hex characters>"
}
¶
ratifies is the core digest of the record being ratified, and
prior_verdict is that record's verdict — only DENY and PENDING are
ratifiable, so no other value appears here. status is what the
verifier established and decision is what the authority asserted; a
decision takes effect for the prior record only where status is
RATIFIED. authority is null exactly where status is REJECTED and
no authority was established. mandate_digest is copied from the prior
record's core, which is what binds the ratification to the same mandate
the verdict was reached under. prev_core_digest equals ratifies, as
Section 6.2 requires; it is carried explicitly so that the chaining
member has the same name and meaning in both record types. trace
entries are the structured five members of Section 2.5.2; as in
Section 2.5.3, the human-readable reason — on the record and on each
entry — is diagnostic and is not digested.¶
The digest is computed as everywhere else in this document, under its own tag:¶
core_digest = "sha256:" || LOWERHEX( SHA-256( TAG || JCS(core) ) )
TAG = the 26 octets "aae:enforce-ratify-core:v1" followed by a
single 0x00 octet
¶
The separate tag keeps a ratification core from ever colliding with a verdict core: the two structures could otherwise be confused by a verifier that only compared digests. A later record that chains onto a ratification points at this digest.¶
Like a verdict record, a ratification record is deterministic. Its
inputs are exactly three: the prior verdict record, the decision, and
the authority proof of Section 6.4. The mandate is the fourth thing a
recomputation needs — without it the authority cannot be derived and the
mandate digest cannot be bound — and it is not a fourth input, because
it travels as a member of the authority proof. Stating it that way
matters: a third party holding a prior record, a decision and a proof
holds the mandate too, and recomputes the record without contacting the
verifier or fetching anything. A proof without its mandate member is
not a proof, and Section 6.4 gives it no other route in.¶
7. Security Considerations
7.1. Replay Attacks
AAEs with broad temporal validity windows are susceptible to replay
attacks. Implementations SHOULD use short not_after windows (minutes
to hours for high-value actions) and SHOULD implement nonce-based
replay protection at the transport layer.¶
The verdict of Section 2.5.3 is a function of the mandate and the transaction and of nothing else. It carries no server time, no counter, and no record of what has been presented before. That is deliberate — it is what makes a verdict recomputable by a third party who was not present when it was reached — and it is also a limit that has to be read as one.¶
A PERMIT is not a single-use authorization. The same mandate and the
same transaction produce the same PERMIT every time they are evaluated,
at this relying party and at any other. Section 2.5 provides no replay
protection, no cumulative budget across presentations, and no rate
limit. An agent holding a mandate whose range constraint bounds a
transfer at 1000 can obtain a PERMIT for a transfer of 1000, and then
obtain it again: the constraint bounds each transfer, never their sum. A
relying party that reads a PERMIT as "this action has not yet been
authorized" reads something the verdict does not say.¶
Where replay protection matters, it MUST come from the protocol around the verdict rather than from the verdict. A relying party acting on a PERMIT MUST establish freshness and consumption by its own means — a nonce it minted for this presentation, an identifier it records as spent before acting, or an idempotency key on the action it is about to perform. A relying party that does none of these MUST NOT rely on the verdict for either property.¶
Step 4 of Section 5 provides exactly this for the envelope: a challenge bound to a nonce this relying party minted, and a used-nonce store that refuses the second presentation. Nothing equivalent exists at the enforcement layer in this revision. Section 9 names the condition under which it could — state carried across presentations, together with a resolution of what such state does to the recompute guarantee of Section 2.5.3, since a verdict that depends on a counter is no longer a function of the mandate and the transaction alone. Until that is resolved, the absence is a property of this document and not an omission from it.¶
7.2. Constraint Bypass
Relying parties that silently ignore unrecognized constraints create
a security gap. Relying parties MUST treat unrecognized constraints
with required: true as grounds for rejection.¶
7.3. Key Compromise
If an issuer's signing key is compromised, all AAEs signed by that key are potentially invalid. Issuers MUST have an operational key-rotation procedure and SHOULD publish revocation endpoints. Issuers SHOULD retain verification material for retired signing keys for at least as long as AAEs signed by those keys can remain valid, unless a key was retired because of compromise. Issuers SHOULD provide a mechanism for real-time revocation signaling to relying parties; continuous access evaluation profiles defined by other standards bodies are one such mechanism.¶
7.4. Delegation Amplification
Delegation chains that do not enforce constraint monotonicity allow sub-agents to acquire permissions exceeding those of their parent. Implementations MUST enforce that delegated AAEs are strictly subordinate to their parent AAEs in actions, constraints, and validity.¶
7.5. Delegation Revocation
The previous revision carried two SHOULD statements here. They do not stand on the same ground, and this revision separates them.¶
Issuer. If a parent AAE or a delegator agent is compromised, the issuer MUST revoke the parent, and MUST treat all downstream delegated AAEs as revoked. The revocation MUST propagate along the delegation chain to every descendant reachable from the revoked node.¶
Revocation of the parent MUST NOT be withheld because the cascade could not be completed. Of the two ways this can fail, a compromised parent still reported as valid is the worse one, and withholding its revocation is the only way this rule could fail open. An issuer that cannot propagate to every descendant MUST therefore report two things at once: the parent as revoked, and the cascade as incomplete. A descendant of a revoked parent whose own status could not be set is unknown, and a relying party MUST treat unknown as invalid here — the same outcome as an explicit revocation, reached without claiming a status the issuer never established.¶
The rule places no depth limit on the cascade, because depth is a property of a deployment and not of this format. An implementation that bounds its propagation has an incomplete cascade in the sense above and reports it as such; it does not report a complete one.¶
Relying party. Two statements, and only one of them waits on a capability this revision defers.¶
A relying party that has determined that a parent AAE in a delegation chain is revoked MUST treat every descendant AAE in that chain as invalid. This is unconditional, and it costs nothing to satisfy: the sentence applies only once the revocation is already known — from a status list the relying party already holds, from material presented alongside the envelope, or from a check it performed earlier. No lookup follows from it. A SHOULD here would permit a relying party to accept a descendant of a parent it already knows to be revoked, which is not a limitation of any deployment but a decision to disregard what it knows.¶
What stays deferred is the discovery of revocation, not the
consequence of it. A relying party SHOULD NOT dereference a revocation
endpoint at evaluation time in this revision: doing so safely requires
an egress path that constrains outbound requests, and until one exists,
a conforming implementation rejects an AAE carrying revocation_check
fail-closed rather than reporting a check it did not perform
(Section 5.2). Section 9 names the condition under which the discovery
half becomes normative too.¶
7.6. Clock Skew and Time Synchronization
AAE validity depends on relying-party evaluation of not_before,
not_after, and challenge-response timestamps. Relying parties SHOULD
use authenticated time synchronization and SHOULD define a maximum
accepted clock-skew window. For high-value actions, relying parties
SHOULD keep the accepted skew to the minimum operationally feasible
value. Excessive clock-skew windows can allow premature use of an AAE
or its continued use after expiration.¶
7.7. On-Chain Anchoring
When AAEs are anchored to a public ledger for tamper-evident audit trails, implementations MUST ensure that no personally identifiable information (PII) is written on-chain. AAE content SHOULD be hashed before anchoring; the hash, timestamp, and issuer DID are sufficient for audit purposes.¶
Where a verdict record is anchored for audit, committing to a sensitive argument value rather than writing it in the clear would let an auditor confirm that an agent stayed inside a bound without the value itself becoming public. Any such commitment has to bind to anchored reality rather than to caller-supplied input, since a commitment over a claim is not a commitment over anything checkable. This document defines no such mechanism; see Section 9.¶
7.8. Predicate Trace Disclosure
Section 2.5.2 requires every verdict to carry a predicate trace, and
every entry of that trace carries value — what the transaction held at
the constrained field — and bound — what the constraint required. A
conforming verdict therefore discloses the transaction values that were
tested and the limits they were tested against, in the clear, to
everyone who holds the record. A recipient address compared under
exact, an amount compared under range, a jurisdiction compared under
enum: all three appear verbatim in the trace, and the trace is inside
the digested core of Section 2.5.3.¶
This is not incidental and it is not minimized. The trace is what makes a verdict checkable predicate by predicate rather than merely signed, and a trace with the values removed would not support the recompute guarantee: a second implementation could no longer derive the same core, only accept the first one's word for it. The property that makes the verdict verifiable is the same property that makes it disclosing, and this revision does not offer both.¶
Three consequences are normative. A relying party MUST treat a verdict record as carrying transaction content, with the same care it applies to the transaction itself. A relying party MUST NOT forward, publish, transmit to a third party, or anchor a verdict record whose trace carries values it is obliged to protect, unless the recipient is already entitled to those values; Section 7.7 requires that no personally identifiable information be written on-chain when a record is anchored for audit, the trace is precisely the member of a verdict record that can carry it, and an anchoring pipeline that hashes the record without inspecting the trace has satisfied Section 7.7 only by accident. And where a relying party retains verdict records, it MUST apply to them the retention limit it applies to the transactions they describe: a record kept after the transaction has been deleted keeps the deleted values.¶
An issuer has one mitigation available inside this revision, and it is a blunt one: not to constrain a sensitive value in a grant at all, and to bound it outside the enforced path instead. That trades away the enforcement the grant would have provided, which is why it is a mitigation and not a solution.¶
Section 9 names selective hash commitments as the intended remedy — a commitment to a value rather than the value itself, so that an auditor can confirm an agent stayed inside a bound without the bound or the value becoming public. Section 7.7 describes what such a mechanism would have to bind to. Neither defines one, and until one exists, the disclosure above is the behaviour a conforming implementation exhibits.¶
7.9. Resource Exhaustion and Input Limits
The minimum capabilities of Sections 2.2.1 and 2.5.1 — 256 grants, 64 constraints per grant, 512 enum members, 32 type-field names, paths of 8 segments — are floors a conforming verifier has to reach, not sizes it has to accept without limit (Section 2.2.1). Read together with the comparison rules they describe a worst case, and the worst case is caller-supplied: a mandate at every floor, evaluated against one transaction where every matched grant fails on its last constraint, reaches 256 x 64 x 512 = 8 388 608 string comparisons, over values the caller chose the length of. The predicate trace grows with it, entry by entry, and the trace is digested.¶
The comparison rules themselves are not where to economize. The
constant-time exact comparison and the non-short-circuiting enum
comparison exist so that timing does not reveal how close a value came
or where in an enumeration it matched, and an implementation that
abandons either to save work has traded a denial-of-service surface for
a side channel. Both remain MUST without qualification.¶
The input is where to economize. A relying party MAY set hard limits of its own, applied before evaluation begins, on the length of any string in the mandate or in the transaction; on the total serialized size of the mandate and of the transaction; on the depth and the member count of the transaction object; and on the number of entries a predicate trace may reach. Such limits are local policy and this document fixes no value for any of them, for the same reason it states capabilities as floors: an issuer needs to know what any conforming verifier will accept, and a verifier needs to remain free to protect itself above that.¶
Where an input exceeds a limit, the relying party MUST reject fail-closed. Rejection here is the DENY verdict of Section 6.1, decided before evaluation rather than during it. A relying party MUST NOT truncate the input, MUST NOT evaluate a prefix of it, and MUST NOT return PERMIT on a mandate it evaluated only in part — a partial evaluation that stops at a limit has not established that the remaining grants were absent, only that it did not read them.¶
Two points follow specifically for the trace. A value or a bound
read from a caller-supplied transaction enters the trace and therefore
the digested core, so a limit on input string length is also the only
limit on how large a verdict record can grow. And a relying party that
refuses an oversized input MUST report the refusal as a DENY with its
reason recorded rather than as a transport error, so that the caller can
distinguish a refusal to evaluate from a failure to reach the verifier —
the two call for different responses, and conflating them makes an
overload look like an outage.¶
8. Privacy Considerations
AAEs contain the agent's DID and may contain the principal's DID. Relying parties SHOULD NOT log full AAE payloads unless required for regulatory audit purposes. Where audit logs are required, implementations SHOULD apply data minimization: log the AAE identifier, action taken, timestamp, and outcome — not the full MANDATE or CONSTRAINTS payload.¶
Even when only hashes of AAEs are anchored on a public ledger, timestamps, issuer DIDs, subject DIDs, and repeated hash-publication patterns can leak metadata and enable linkability across an agent's activity. Implementations SHOULD assess linkability risk before anchoring AAEs on a public ledger and SHOULD avoid publishing stable identifiers on-chain unless required.¶
9. Future Work
This document specifies what a conforming implementation can be held to today. Four further items are known and scoped, and each is left out of the normative text for one reason: no deployed implementation supports it yet. Each is named here with the condition under which it becomes normative in a revision of this document, and each is discussed where its subject is treated. Until its condition holds, an item in this section places no requirement on an implementation, and no implementation should claim conformance with it.¶
-
Relying-party revocation lookup (Section 7.5). Only the discovery half is left open. The consequence half is normative in this revision: a relying party that already knows a parent to be revoked MUST treat its descendants as invalid. What waits is the lookup that would establish the revocation in the first place, which becomes normative once the outbound request path is constrained by an egress proxy and relying-party revocation lookup is a deployed capability. Section 5.2 lists this alongside the three other capabilities waiting on the same egress path; they become specifiable together.¶
-
Principal identity across identifier spaces (Section 2.2). Becomes normative once a mechanism exists that derives the correspondence between two principal identifiers — a rule by which a relying party establishes that two identifiers name the same principal without a deployment-local table — rather than being handed it as deployment-local data.¶
-
Freshness and condition liveness (Section 2.4). Becomes normative once state carried across presentations is deployed and its relationship to the recompute guarantee of Section 2.5.3 is resolved. A verdict that depends on a counter is no longer recomputable from mandate and transaction alone, so the two cannot simply be placed side by side.¶
-
Selective hash commitments (Section 7.7). Becomes normative once a reader of the anchoring ledger is wired, so that a commitment can bind to what the chain actually holds.¶
10. Test Vectors
What the vectors cover. Every normative requirement in
Sections 2.2.1, 2.2.2, 2.2.3, 2.5, 6.1, 6.2, 6.3 and 6.4 has a test
vector. Those sections are the enforcement path: grants and the type
form, action_binding, grant evaluation, the constraint language and
its trace, the verdict vocabulary, verdict chaining, and ratification
with its guards.¶
What they do not cover, stated so the claim is not read wider than it is. The vectors do not exercise step 4 of Section 5 (subject binding), step 9 of Section 5 (delegation chains), or Section 7.5 (revocation). Those steps run over a JWS, a resolved DID document and, in the case of revocation, state the vectors cannot carry; a static input-plus-expected-digest file is the wrong instrument for them, and no file in this set claims otherwise. Conformance with this document as a whole is therefore not established by this set alone. Conformance with the sections listed above is.¶
Where they are. The vectors are published at
https://github.com/MoltyCel/aae-conformance-vectors under
vectors/enforce/. The normative reference is immutable and is the
pair, not the repository:¶
set version: 1.4.0 tag: v1.4.0 commit: 531f880155ea1ce993a7ca74137b12c255d5b2ee¶
A repository moves; a commit id does not. An implementer citing
conformance with this section MUST name the commit, because a later set
version can change an expected digest without changing a single
requirement of this document — version 1.4.0 differs from 1.3.0 in
exactly that way, and in no other. The tag v1.3.0 remains and
identifies the set as it stood before reason left the digested core.¶
There are 26 vectors, and they are paired rather than merely present: a
requirement is covered by the case that satisfies it and by the cases
that violate it. Ten cover the type form and action_binding — the
positive case, an instance value carried inside the action, a missing
type field, four non-object actions, a grant without type_fields,
type_fields without verb, and a repeated name. Eight cover the
constraint language, with exact, enum and range each in a holding
and a failing form, plus an unrecognized type and a path with an empty
segment. Three cover the verdict vocabulary: an explicit hold reaching
PENDING, an unaddressed action that must not, and a forbidding grant
outranking an allowing one. Five cover ratification and its guards.¶
Each vector states its expected verdict and the core digest a conforming implementation has to reproduce from the input alone. The digest is the conformance target rather than the verdict: an implementation that returns the right verdict from a different core has guessed the outcome, not recomputed the decision. Because the domain tag is part of every digest, each vector also states the tags it was built under and the kernel version that wrote them; a verifier can then tell a tag mismatch from a logic mismatch when a digest fails to reproduce.¶
Two properties make the set falsifiable rather than self-confirming. All 26 expected values were reproduced by a second implementation written separately from the one that generated them, agreeing on every verdict and on every core digest byte for byte. And each vector is evaluated twice — once as published, once with every object's keys in reverse order — which a canonicalizing implementation answers with the same digest and an implementation serialising in insertion order does not.¶
Conformance with the sections this set covers is therefore something a third party recomputes, not something an implementer asserts. For the sections it does not cover, this document offers no such instrument, and an implementer claiming conformance with them says so on its own authority.¶
11. IANA Considerations
11.1. Media Type Registration
IANA is requested to register the following media type in the "Media Types" registry, following the procedures of [RFC6838] and the structured syntax suffix rules of [RFC6839]:¶
- Type name:
-
application¶
- Subtype name:
-
aae+json¶
- Required parameters:
-
N/A¶
- Optional parameters:
-
N/A¶
- Encoding considerations:
- Security considerations:
-
See Section 7 of this document.¶
- Interoperability considerations:
-
This media type uses the "+json" structured syntax suffix [RFC6839]. Processors that do not understand application/aae+json MAY process it as application/json.¶
- Published specification:
-
This document.¶
- Applications that use this media type:
-
Autonomous AI agent frameworks, authorization servers, policy engines, and relying parties that issue or evaluate Agent Authorization Envelopes.¶
- Fragment identifier considerations:
-
As specified for the "+json" structured syntax suffix in [RFC6839].¶
- Additional information:
-
Deprecated alias names for this type: N/A. Magic number(s): N/A. File extension(s): .aae.json. Macintosh file type code(s): N/A.¶
- Person & email address to contact for further information:
-
Lars Kersten Kroehl lars@moltrust.ch¶
- Intended usage:
-
COMMON¶
- Restrictions on usage:
-
N/A¶
- Author:
-
Lars Kersten Kroehl¶
- Change controller:
-
Lars Kersten Kroehl, CryptoKRI GmbH¶
This registration applies to the unsecured JSON AAE payload. A secured AAE in JWS compact serialization is not a JSON document and is transported using the application/jose media type defined in [RFC7515]; this document does not register a separate media type for the secured form.¶
11.2. No Further IANA Actions
This document requests no other IANA actions.¶
This revision introduces several closed vocabularies and several domain
tags, and none of them is offered for registration. The disposition
values of Section 2.2.1, the constraint types of Section 2.5.1, the
verdict vocabulary of Section 6.1, the decision and status values of
Section 6.3, and the domain tags used by the digests of Sections 2.2.2,
2.5.3 and 6.3 are closed sets defined by this document. A value outside
one of these sets is not an extension; it is an input a conforming
verifier rejects. Extension therefore happens by a new revision of this
document, not by an addition to a registry.¶
The reason is stated in Section 2.5.1 and is a security property rather than an editorial preference: what a verifier cannot evaluate, it does not permit. A registry would make these sets open at exactly the point where that section requires them to be closed, and two verifiers reading different registry snapshots could then reach different verdicts on the same input — which Section 2.5.3 forbids.¶
12. References
12.1. Normative References
- [W3C-DID]
- W3C, "Decentralized Identifiers (DIDs) v1.0", , <https://www.w3.org/TR/did-core/>.
- [W3C-VC]
- W3C, "Verifiable Credentials Data Model v2.0", , <https://www.w3.org/TR/vc-data-model-2.0/>.
- [RFC2119]
- Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
- [RFC8174]
- Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
- [RFC7515]
- Jones, M., Bradley, J., and N. Sakimura, "JSON Web Signature (JWS)", RFC 7515, DOI 10.17487/RFC7515, , <https://www.rfc-editor.org/info/rfc7515>.
- [RFC8037]
- Liusvaara, I., "CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures in JSON Object Signing and Encryption (JOSE)", RFC 8037, DOI 10.17487/RFC8037, , <https://www.rfc-editor.org/info/rfc8037>.
- [RFC8032]
- Josefsson, S. and I. Liusvaara, "Edwards-Curve Digital Signature Algorithm (EdDSA)", RFC 8032, DOI 10.17487/RFC8032, , <https://www.rfc-editor.org/info/rfc8032>.
- [RFC7517]
- Jones, M., "JSON Web Key (JWK)", RFC 7517, DOI 10.17487/RFC7517, , <https://www.rfc-editor.org/info/rfc7517>.
- [RFC3986]
- Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, , <https://www.rfc-editor.org/info/rfc3986>.
- [RFC8785]
- Rundgren, A., Jordan, B., and S. Erdtman, "JSON Canonicalization Scheme (JCS)", RFC 8785, DOI 10.17487/RFC8785, , <https://www.rfc-editor.org/info/rfc8785>.
- [RFC6234]
- Eastlake 3rd, D. and T. Hansen, "US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)", RFC 6234, DOI 10.17487/RFC6234, , <https://www.rfc-editor.org/info/rfc6234>.
- [RFC4648]
- Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, , <https://www.rfc-editor.org/info/rfc4648>.
- [RFC3339]
- Klyne, G. and C. Newman, "Date and Time on the Internet: Timestamps", RFC 3339, DOI 10.17487/RFC3339, , <https://www.rfc-editor.org/info/rfc3339>.
- [RFC6570]
- Gregorio, J., Fielding, R., Hadley, M., Nottingham, M., and D. Orchard, "URI Template", RFC 6570, DOI 10.17487/RFC6570, , <https://www.rfc-editor.org/info/rfc6570>.
- [RFC2104]
- Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed-Hashing for Message Authentication", RFC 2104, DOI 10.17487/RFC2104, , <https://www.rfc-editor.org/info/rfc2104>.
- [RFC7797]
- Jones, M., "JSON Web Signature (JWS) Unencoded Payload Option", RFC 7797, DOI 10.17487/RFC7797, , <https://www.rfc-editor.org/info/rfc7797>.
- [RFC6838]
- Freed, N., Klensin, J., and T. Hansen, "Media Type Specifications and Registration Procedures", BCP 13, RFC 6838, DOI 10.17487/RFC6838, , <https://www.rfc-editor.org/info/rfc6838>.
- [RFC6839]
- Hansen, T. and A. Melnikov, "Additional Media Type Structured Syntax Suffixes", RFC 6839, DOI 10.17487/RFC6839, , <https://www.rfc-editor.org/info/rfc6839>.
- [RFC8259]
- Bray, T., Ed., "The JavaScript Object Notation (JSON) Data Interchange Format", STD 90, RFC 8259, DOI 10.17487/RFC8259, , <https://www.rfc-editor.org/info/rfc8259>.
12.2. Informative References
- [RFC6749]
- Hardt, D., Ed., "The OAuth 2.0 Authorization Framework", RFC 6749, DOI 10.17487/RFC6749, , <https://www.rfc-editor.org/info/rfc6749>.
- [RFC9635]
- Richer, J., Ed. and F. Imbault, "Grant Negotiation and Authorization Protocol (GNAP)", RFC 9635, DOI 10.17487/RFC9635, , <https://www.rfc-editor.org/info/rfc9635>.
- [RFC9562]
- Davis, K., Peabody, B., and P. Leach, "Universally Unique IDentifiers (UUIDs)", RFC 9562, DOI 10.17487/RFC9562, , <https://www.rfc-editor.org/info/rfc9562>.
- [SPIFFE]
- "SPIFFE: Secure Production Identity Framework for Everyone", n.d., <https://spiffe.io/>.
- [ARXIV-AAE]
- Kroehl, L. K., "From Specification to Deployment: Empirical Evidence from a W3C VC + DID Trust Infrastructure for Autonomous Agents", , <https://arxiv.org/abs/2605.06738>.
- [IMDA-MGF]
- Singapore IMDA, "Model AI Governance Framework for Agentic AI, Version 1.5", , <https://www.imda.gov.sg/-/media/imda/files/about/emerging-tech-and-research/artificial-intelligence/mgf-for-agentic-ai.pdf>.
- [NIST-CAISI]
- NIST, "NIST AI 100-1: Artificial Intelligence Risk Management Framework", .
- [PEDIGREE]
- Rampalli, K., "PEDIGREE: Verifiable Delegation Identity for Agentic AI Systems", Work in Progress, Internet-Draft, draft-rampalli-pedigree-00, , <https://datatracker.ietf.org/doc/draft-rampalli-pedigree-00/>.
Appendix A. Example: Travel Booking Agent
A travel booking agent operating under an 8-hour mandate with a $500 transaction cap. The example shows the JWS protected header and the JWS payload (the unsecured Verifiable Credential); on the wire these are BASE64URL-encoded and concatenated with the signature as a JWS in compact serialization (Section 2.1).¶
JWS protected header:¶
{
"alg": "EdDSA",
"cty": "aae+json",
"kid": "did:moltrust:registry#key-1"
}
¶
JWS payload:¶
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://moltrust.ch/contexts/aae/v1"
],
"type": ["VerifiableCredential", "AgentAuthorizationEnvelope"],
"id": "urn:uuid:9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"issuer": "did:moltrust:registry",
"validFrom": "2026-05-20T08:00:00Z",
"credentialSubject": {
"id": "did:example:travel-agent-001",
"aae": {
"mandate": {
"actions": ["read", "book", "pay"],
"purpose": "Business travel booking",
"scope": "travel-vertical",
"principal_did": "did:example:enterprise-corp"
},
"constraints": {
"max_transaction_value": {
"value": 500, "currency": "USD", "required": true
},
"allowed_domains": {
"value": ["flights.example.com", "hotels.example.com"],
"required": true
}
},
"validity": {
"not_before": "2026-05-20T08:00:00Z",
"not_after": "2026-05-20T16:00:00Z",
"single_use": false
}
}
}
}
¶
Appendix B. Relationship to Existing Standards
AAE is designed as a complement to, not a replacement for, existing authorization standards:¶
-
OAuth 2.0 / GNAP ([RFC6749], [RFC9635]): Handle human-delegated access tokens. AAE handles machine-to-machine agent authorization with richer semantics.¶
-
SPIFFE/SVID ([SPIFFE]): Handles workload identity in service meshes. AAE handles authorization semantics layered above identity.¶
-
W3C Verifiable Credentials: AAE is issued as a VC, leveraging the existing VC ecosystem for issuance, verification, and revocation.¶
-
W3C DIDs: AAE subjects and issuers are identified by DIDs, enabling decentralized, portable agent identity.¶
Appendix C. Acknowledgements
The AAE specification is derived from the MolTrust production deployment documented in [ARXIV-AAE]. The author thanks Harald Rössler (DSNCON GmbH) for infrastructure and security review.¶
Appendix D. Changes Since -01
This revision is substantive. It adds an enforcement layer that -01 did not have, states two verification steps that -01 described without saying how a verifier satisfies them, and says plainly which capabilities are not yet available. An AAE that conforms to -01 still conforms to this revision: every member added here is OPTIONAL, and the wire format and verification algorithm of -01 are unchanged for an envelope that does not use them.¶
New material:¶
-
Section 2.2.1 (Grants), 2.2.2 (Action Binding) and 2.2.3 (Grant Evaluation): an OPTIONAL
grantsarray that states the conditions under which one action is authorized at the moment it is attempted, and the tagged digest that binds a grant to an action type.¶ -
Section 2.5 (Enforcement Constraint Language), with its closed type set, its predicate trace, and the recompute determinism the trace serves. This is separate from the CONSTRAINTS block of Section 2.3, which is unchanged.¶
-
Section 5.2 (Deferred Verification Capabilities): four capabilities that wait on one egress path, named together rather than scattered.¶
-
Section 6 (Verdicts and Ratification): the PERMIT / DENY / PENDING vocabulary, verdict records and their chaining, and ratification with its authority rule — the authority derives from the mandate, never from the proof.¶
-
Section 7.8 (Predicate Trace Disclosure) and Section 7.9 (Resource Exhaustion and Input Limits).¶
-
Section 9 (Future Work) and Section 10 (Test Vectors).¶
Changed material:¶
-
Section 5, step 4 (Subject Binding): the nonce format and its lifetime, the used-nonce store and its retention rule, the two-sided
iatwindow, a JOSE profile for the challenge response, and the DID URL comparison rule. The six conditions of -01 are unchanged.¶ -
Section 5, step 9 (Delegation Chain): the wire format for inline ancestors, the attenuation rules for grants, and the recursion limit.¶
-
Section 7.1 (Replay Attacks): a paragraph stating that a PERMIT under Section 2.5 is not a single-use authorization, and that freshness and consumption have to come from the protocol around the verdict.¶
-
Section 7.5 (Delegation Revocation): both SHOULD statements of -01 §6.5 are separated by normative rank. The issuer statement rises to MUST and gains the incomplete-cascade rule; the relying-party statement rises to MUST for the case where the revocation is already known, while the lookup that would establish it stays deferred.¶
-
Section 11 (IANA Considerations): an explicit statement that this document requests no registry for its vocabularies or domain tags, and why.¶
-
Four normative references added: [RFC8785], [RFC4648], [RFC2104] and [RFC7797], each carrying a MUST introduced by this revision.¶
Renumbering: Security Considerations moves from 6 to 7, Privacy Considerations from 7 to 8, IANA Considerations from 8 to 11, and References from 9 to 12.¶