<?xml version="1.0" encoding="UTF-8"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     docName="draft-tonyai-a2a-trust-04"
     category="info"
     ipr="trust200902"
     submissionType="IETF"
     version="3">

  <front>
    <title abbrev="A2A Trust">Agent-to-Agent Trust, Identity, and Verifiable Provenance</title>
    <seriesInfo name="Internet-Draft" value="draft-tonyai-a2a-trust-04"/>

    <author fullname="Tony Trujillo (tonyai)" initials="T." surname="Trujillo">
      <organization>Individual Submission</organization>
      <address>
        <email>founder@phalanxaisec.com</email>
      </address>
    </author>

    <date month="November" day="27" year="2026"/>

    <area>Security</area>

    <abstract>
      <t>This document defines a trust model for agent-to-agent (A2A)
      interactions in multi-agent AI systems.  It specifies how agents
      obtain verifiable identities via CA-signed templates, how spawn
      chains are cryptographically established and validated, how dynamic
      policies are governed under a dual-signature model, and how
      cross-organizational agent interactions are explicitly authorized.
      The model applies existing PKI primitives (X.509, CRL, CSR) and
      established identity patterns (OAuth 2.0, On-Behalf-Of) to the
      problem of agent provenance.  It complements the workload identity
      and OAuth delegation work in progress, supplying what that work
      leaves to the deployment: who signs an agent's bounds, how agents
      that create other agents are bounded, and per-call proof that the
      agent presenting a token is the one it names.  It addresses
      non-human identity only.  This document does not address agent-to-resource access
      control, human-in-the-loop orchestration, agent behavior, or the
      identity of the person an agent acts for, as those concerns belong
      to the resource enforcement layer, the orchestration layer, and the
      delegation layer respectively.</t>
    </abstract>
  </front>

  <middle>

    <section anchor="introduction" numbered="true" toc="default">
      <name>Introduction</name>
      <t>Work in progress in the IETF names the agent acting in a token
      and authenticates it as a workload (<xref target="related-work"/>).
      It leaves to each deployment who signs what an agent may do, how an
      agent that creates other agents is bounded, and how each hop proves
      that the agent presenting a token is the one it names.  When Agent A spawns
      Agent B, and Agent B calls a resource, no current standard defines
      how the resource verifies that Agent B was legitimately spawned,
      that its scope has not been escalated, or that its origin template
      is trusted.</t>

      <t>This document proposes a trust model based on:</t>

      <ul>
        <li>Agent templates as first-class, CA-signed identity artifacts.</li>
        <li>Verifiable spawn chains where each agent's provenance is
        cryptographically traceable to a registered template.</li>
        <li>Two-lane governance separating static identity (cert-based)
        from dynamic policy (policy-engine gated).</li>
        <li>Fail-closed enforcement at every verification step.</li>
      </ul>

      <t>The model reuses proven PKI primitives and applies them to a new
      surface -- agent identity -- rather than inventing new
      cryptographic mechanisms.</t>

      <t><xref target="related-work"/> maps this document to that work, and
      <xref target="implementation-status"/> lists its implementations,
      one of them of this revision.</t>
    </section>

    <section anchor="conventions" numbered="true" toc="default">
      <name>Conventions Used in This Document</name>
      <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
      "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>",
      "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>",
      "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>",
      "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and
      "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
      described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/>
      when, and only when, they appear in all capitals, as shown here.</t>
    </section>

    <section anchor="document-encoding" numbered="true" toc="default">
      <name>Document Encoding</name>
      <t>Every document defined by this specification -- the Agent Template
      extension of <xref target="static-field-encoding"/>, the Agent Spawn
      extension of <xref target="spawn-provenance"/>, the dynamic policy
      document of <xref target="policy-document-structure"/>, the
      cross-organizational grant of <xref target="grant-structure"/>, and the
      audit log entry of <xref target="audit-requirements"/> -- is a
      JSON object serialized using the JSON Canonicalization Scheme (JCS)
      <xref target="RFC8785"/>.</t>

      <t>Field names in the tables of this document are display names, written
      for a reader.  The corresponding wire names are lowercase, use underscore
      as the word separator, and are given in <xref target="wire-name-map"/>.  A
      relying party <bcp14>MUST</bcp14> compare wire names exactly and
      <bcp14>MUST NOT</bcp14> apply case folding, Unicode normalization, or any
      other transformation before comparison.</t>

      <t>The same rule governs every string value this document compares for
      equality: an agent identifier, an Owner, an OrgID, a Grantor or Grantee,
      a scope, a nonce, an outcome.  Two values are equal when their octets are
      identical, and a relying party <bcp14>MUST NOT</bcp14> apply case
      folding, Unicode normalization, trimming, or any other transformation to
      either before comparing them.  Where a later section restates this for
      one value, it does so for emphasis, not because the rule differs
      there.</t>

      <t>A JSON object carried under this specification <bcp14>MUST NOT</bcp14>
      contain a duplicate member name, which <xref target="RFC8785"/>,
      Section 3.1, also requires of any input to JCS.  A relying party <bcp14>MUST</bcp14> detect
      a duplicate and refuse the document.  This is a requirement on the
      parser, not only on the document: JSON syntax permits duplicates, and a
      parser that silently keeps the first or the last occurrence does not
      satisfy it.  Two such parsers disagree about what was signed while both report success,
      which is the failure this rule exists to prevent.</t>

      <t>Every timestamp carried under this specification is an
      <xref target="RFC3339"/> date-time in UTC using the Z designator.  A
      relying party <bcp14>MUST</bcp14> refuse a timestamp carrying a numeric
      offset, a lowercase designator, or no designator: a time is compared
      byte-for-byte in a signed body, and one instant with two spellings is
      two instants to a signature.  Fractional seconds <bcp14>MAY</bcp14> be
      present.</t>

      <t>The JSON objects this document defines are flat.  Their members are
      strings, integers, or arrays of strings, as the tables specify, and
      nothing else.  A relying party <bcp14>MUST</bcp14> refuse an object
      carrying a nested object, an array of anything other than strings, a
      null, a boolean, or a non-integer number, before any further
      processing.  A parser that will accept only the shapes this document
      defines has no depth to exhaust and no type to confuse.</t>

      <t>Every integer carried under this specification <bcp14>MUST</bcp14>
      be between 0 and 9007199254740991 (2^53 - 1) inclusive, and a relying
      party <bcp14>MUST</bcp14> refuse a document carrying one outside that
      range.  <xref target="RFC8259"/>, Section 6, notes that integers beyond
      it are not interoperable, and JCS <xref target="RFC8785"/> serializes
      every number as an IEEE 754 double, which cannot represent them
      exactly: two implementations would canonicalize the same value
      differently, and a valid signature would fail to verify.  A
      monotonically increasing Version is the field most likely to reach the
      limit, and the one where failing to verify would be hardest to
      diagnose.</t>

      <section anchor="signature-envelope" numbered="true" toc="default">
        <name>Signature Envelope</name>
        <t>A signed document is carried inside an envelope: a JSON object whose
        members are the signed document itself and the values that attest to
        it.  The envelope members are named as follows.  These names are
        <bcp14>REQUIRED</bcp14>; a relying party <bcp14>MUST</bcp14> refuse an
        envelope carrying any member not listed here.</t>

        <table anchor="signature-members">
          <name>Envelope Members</name>
          <thead>
            <tr><th>Member</th><th>Type</th><th>Content</th></tr>
          </thead>
          <tbody>
            <tr><td>body</td><td>object</td><td>The signed document: a template, a policy, or a grant</td></tr>
            <tr><td>owner_sig</td><td>string</td><td>Signature by the template Owner</td></tr>
            <tr><td>pa_sig</td><td>string</td><td>Signature by the Policy Authority</td></tr>
            <tr><td>content_hash</td><td>string</td><td>SHA-256 digest of the signed octets, lowercase hexadecimal.  REQUIRED in the envelope of a dynamic policy document; MUST be absent from the envelope of a template or a grant (<xref target="signature-coverage"/>)</td></tr>
          </tbody>
        </table>

        <t>Every signature, and the content hash, is computed over the same
        octet string: the JCS serialization of body, and nothing else.  The
        other envelope members are outside body and therefore never inside a
        preimage.  A signature cannot cover itself, and an implementation that
        signs the whole envelope produces a value no verifier can reproduce.
        The rule that a document carrying an undefined field
        <bcp14>MUST</bcp14> be refused applies to body; the envelope members
        are not fields of the document they attest to.  A relying party
        <bcp14>MUST</bcp14> verify both signatures over the body octets
        before acting on any member of body.</t>

        <t>Each signature member <bcp14>MUST</bcp14> be a string containing the
        base64 encoding <xref target="RFC4648"/> of the raw signature value,
        without line breaks and without PEM framing, except an Owner signature
        in the WebAuthn form of <xref target="webauthn-owner"/>, whose content
        that section gives.  A relying party
        <bcp14>MUST</bcp14> refuse an envelope whose owner_sig and pa_sig verify
        under the same public key: the subjectPublicKeyInfo of the Owner
        certificate and of the Policy Authority certificate
        <bcp14>MUST</bcp14> differ.  Two roles satisfied by one key is one
        role.  The comparison is of keys, not of signature octets: a
        randomized signature scheme produces different octets from one key
        on every signing, so equal signatures would never be observed even
        when a single key holds both roles.</t>

        <t>The signature algorithm is determined by the type of the signer's
        public key, as carried in the signer's certificate, and is not
        signalled in the envelope.  The one exception is an Owner certificate
        carrying the WebAuthn Owner key purpose, whose key signs only in the
        form of <xref target="webauthn-owner"/>.  A signer <bcp14>MUST</bcp14> use, and a
        relying party <bcp14>MUST</bcp14> verify with, exactly the algorithm
        this table assigns; any other combination <bcp14>MUST</bcp14> be
        refused.</t>
        <table anchor="signature-algorithms">
          <name>Signature Algorithm by Key Type</name>
          <thead>
            <tr><th>Signer key</th><th>Algorithm</th><th>Signature value</th></tr>
          </thead>
          <tbody>
            <tr><td>RSA, 3072 bits or more</td><td>RSASSA-PSS with SHA-256, MGF1 with SHA-256, salt length 32 octets</td><td>The PSS signature octets</td></tr>
            <tr><td>EC, curve P-256</td><td>ECDSA with SHA-256</td><td>r and s, each 32 octets, concatenated: 64 octets</td></tr>
            <tr><td>EC, curve P-384</td><td>ECDSA with SHA-384</td><td>r and s, each 48 octets, concatenated: 96 octets</td></tr>
            <tr><td>Ed25519</td><td>Ed25519 (PureEdDSA) <xref target="RFC8032"/></td><td>The 64-octet EdDSA signature</td></tr>
          </tbody>
        </table>
        <t>Fixing the digest to the key type is what allows the envelope to
        carry no algorithm identifier: a verifier learns everything it needs
        from the certificate it has already validated, and an attacker
        cannot negotiate a weaker algorithm because there is nothing to
        negotiate.  ECDSA values are the fixed-width concatenation rather
        than DER, so that a signature has exactly one encoding.
        RSASSA-PSS is specified rather than RSASSA-PKCS1-v1_5 because PSS
        carries a security proof and is the scheme new profiles adopt; a
        relying party <bcp14>MUST</bcp14> refuse a PKCS1-v1_5 signature even
        when it verifies.  PSS is randomized: the same key and body produce
        a different signature on each signing, so a test vector verifies a
        signature rather than comparing its octets.</t>
        <t>A relying party <bcp14>MUST</bcp14> support the ECDSA P-256 and
        Ed25519 rows of this table, and <bcp14>MAY</bcp14> support the
        RSASSA-PSS and ECDSA P-384 rows.  A relying party <bcp14>MUST</bcp14>
        refuse a signature whose signer key falls in a row it does not
        support.  A signer <bcp14>SHOULD</bcp14> use a P-256 or Ed25519 key,
        so that its signatures verify at every conforming relying party.</t>
      </section>

      <section anchor="wire-names" numbered="true" toc="default">
        <name>Wire Names</name>
        <t>The following table gives the wire name for every display name used in
        this document.  Where a display name appears in more than one document it
        has the same wire name in each.</t>
        <table anchor="wire-name-map">
          <name>Display Name to Wire Name</name>
          <thead>
            <tr><th>Display name</th><th>Wire name</th><th>Defined in</th></tr>
          </thead>
          <tbody>
            <tr><td>Subject</td><td>subject</td><td>Sections <xref target="static-fields" format="counter"/>, <xref target="policy-document-structure" format="counter"/></td></tr>
            <tr><td>Owner</td><td>owner</td><td>Sections <xref target="static-fields" format="counter"/>, <xref target="policy-document-structure" format="counter"/></td></tr>
            <tr><td>OrgID</td><td>org_id</td><td>Sections <xref target="static-fields" format="counter"/>, <xref target="policy-document-structure" format="counter"/></td></tr>
            <tr><td>PermittedOperations</td><td>permitted_operations</td><td>Section <xref target="static-fields" format="counter"/></td></tr>
            <tr><td>AllowedScopes</td><td>allowed_scopes</td><td>Sections <xref target="static-fields" format="counter"/>, <xref target="grant-structure" format="counter"/></td></tr>
            <tr><td>CanSpawn</td><td>can_spawn</td><td>Section <xref target="static-fields" format="counter"/></td></tr>
            <tr><td>MaxChildren</td><td>max_children</td><td>Section <xref target="static-fields" format="counter"/></td></tr>
            <tr><td>PolicyRef</td><td>policy_ref</td><td>Section <xref target="static-fields" format="counter"/></td></tr>
            <tr><td>TTL</td><td>ttl_seconds</td><td>Sections <xref target="static-fields" format="counter"/>, <xref target="grant-structure" format="counter"/></td></tr>
            <tr><td>Scopes</td><td>scopes</td><td>Section <xref target="policy-document-structure" format="counter"/></td></tr>
            <tr><td>SpawnTargets</td><td>spawn_targets</td><td>Section <xref target="policy-document-structure" format="counter"/></td></tr>
            <tr><td>Version</td><td>version</td><td>Section <xref target="policy-document-structure" format="counter"/></td></tr>
            <tr><td>IssuedAt</td><td>issued_at</td><td>Sections <xref target="policy-document-structure" format="counter"/>, <xref target="grant-structure" format="counter"/></td></tr>
            <tr><td>NotAfter</td><td>not_after</td><td>Section <xref target="policy-document-structure" format="counter"/></td></tr>
            <tr><td>AllowedHours</td><td>allowed_hours</td><td>Sections <xref target="static-fields" format="counter"/>, <xref target="time-windows" format="counter"/></td></tr>
            <tr><td>AllowedHoursZone</td><td>allowed_hours_zone</td><td>Sections <xref target="static-fields" format="counter"/>, <xref target="time-windows" format="counter"/></td></tr>
            <tr><td>Hours</td><td>hours</td><td>Sections <xref target="policy-document-structure" format="counter"/>, <xref target="time-windows" format="counter"/></td></tr>
            <tr><td>HoursZone</td><td>hours_zone</td><td>Sections <xref target="policy-document-structure" format="counter"/>, <xref target="time-windows" format="counter"/></td></tr>
            <tr><td>Grantor</td><td>grantor</td><td>Section <xref target="grant-structure" format="counter"/></td></tr>
            <tr><td>Grantee</td><td>grantee</td><td>Section <xref target="grant-structure" format="counter"/></td></tr>
            <tr><td>Template</td><td>template</td><td>Section <xref target="grant-structure" format="counter"/></td></tr>
            <tr><td>MaxSpawns</td><td>max_spawns</td><td>Section <xref target="grant-structure" format="counter"/></td></tr>
            <tr><td>GrantID</td><td>grant_id</td><td>Sections <xref target="grant-structure" format="counter"/>, <xref target="spawn-provenance" format="counter"/></td></tr>
            <tr><td>ParentAgentID</td><td>parent_agent_id</td><td>Section <xref target="spawn-provenance" format="counter"/></td></tr>
            <tr><td>SpawnedAt</td><td>spawned_at</td><td>Section <xref target="spawn-provenance" format="counter"/></td></tr>
            <tr><td>SpawnNonce</td><td>spawn_nonce</td><td>Section <xref target="spawn-provenance" format="counter"/></td></tr>
          </tbody>
        </table>
      </section>
    </section>

    <section anchor="terminology" numbered="true" toc="default">
      <name>Terminology</name>
      <dl>
        <dt>Agent:</dt>
        <dd>An ephemeral, autonomous process that performs tasks on
        behalf of a user or another agent.  An agent is a workload in the
        sense of <xref target="I-D.ietf-wimse-aims"/>, Section 4.  This
        document identifies the
        agent, never the person it acts for: the Owner, OrgID and Grantor
        name organizations and responsible parties, not the user.  Which
        person an agent acts for is out of scope and is carried by the
        delegation layer, for example on-behalf-of token exchange
        (<xref target="token-exchange" format="default"/>), whose subject
        and actor claims name the person and the acting party.</dd>

        <dt>Delegation Token:</dt>
        <dd>A token that lets an agent act for a person, issued by a
        delegation layer outside this document (for example by an exchange
        such as <xref target="RFC8693"/>).  This document does not define
        how one is issued; <xref target="delegated-requests"
        format="default"/> defines when a relying party accepts one.</dd>

        <dt>Agent Template:</dt>
        <dd>A CA-signed artifact defining exactly one agent's identity,
        allowed scopes, spawn rules, and policy reference.  A template is
        not a class from which many agents are made: its Subject is the
        identifier of the one agent it defines, and spawning from a template
        instantiates that agent.  A deployment wanting many similar agents
        registers many templates.</dd>

        <dt>Relying Party:</dt>
        <dd>Any party that validates an agent's certificate, chain, policy,
        or grant in order to decide whether to act on it -- a resource, a
        Registry evaluating a spawn request, or another agent.</dd>

        <dt>Owner:</dt>
        <dd>The party responsible for a template, identified by the
        template's Owner field and holding the private key of the Owner
        certificate described in <xref target="template-dual-signature"/>.</dd>

        <dt>Orchestrator:</dt>
        <dd>An agent that spawns other agents.  The figures in this document
        use the bare term for any such agent; the Root Orchestrator is the
        one with no parent.</dd>

        <dt>Root Orchestrator:</dt>
        <dd>An agent that has no parent.  Its certificate carries no Agent
        Spawn extension (<xref target="spawn-provenance"/>).</dd>

        <dt>Template Registry:</dt>
        <dd>The authoritative store of approved, signed
        agent templates for an organization.</dd>

        <dt>Template Registry CA:</dt>
        <dd>The Certificate Authority that signs agent
        templates -- the root of trust for the agent ecosystem.</dd>

        <dt>Spawn:</dt>
        <dd>The act of an agent instantiating a child agent from an
        approved template.</dd>

        <dt>Spawn Chain:</dt>
        <dd>The ordered, cryptographically verifiable sequence of
        agents from the root orchestrator to the current agent.</dd>

        <dt>Policy Authority:</dt>
        <dd>The entity responsible for countersigning dynamic
        policy changes after automated gate validation.</dd>

        <dt>CRL:</dt>
        <dd>Certificate Revocation List -- the list of revoked template
        and agent certificates maintained by the CA.</dd>

        <dt>CSR:</dt>
        <dd>Certificate Signing Request <xref target="RFC2986"/> -- the
        request to the CA from the party that holds the agent's key.  It
        carries that key's public half only; the attested template travels
        beside it, not inside it.  The CA issues one certificate from the
        two: the template certificate, for that key, with the template in
        its Agent Template extension (<xref target="template-issuance"/>).</dd>

        <dt>Cross-Org Grant:</dt>
        <dd>An explicit, signed authorization allowing agents
        from one organization to spawn from a template owned by another.
        It is not an OAuth 2.0 authorization grant
        <xref target="RFC6749"/>.</dd>
      </dl>
      <t>The Template Registry and the Template Registry CA are described
      as one logical entity throughout this document -- "the Registry" --
      that stores templates, evaluates spawn requests, and issues
      certificates.  A deployment may separate them; the interface between
      them is outside this document, and every requirement placed on "the
      Registry" applies to that entity as a whole.</t>
    </section>

    <section anchor="problem-statement" numbered="true" toc="default">
      <name>Problem Statement</name>
      <t>Multi-agent orchestration creates identity and authorization gaps:</t>

      <figure>
        <artwork type="ascii-art"><![CDATA[
   Agent A --> spawns --> Agent B --> calls --> Resource
        ]]></artwork>
      </figure>

      <ul>
        <li>Which identity does the Resource see?</li>
        <li>How does authorization propagate across the chain without escalating?</li>
        <li>If Agent B is compromised, can it impersonate Agent A?</li>
        <li>Who owns the audit trail across the full chain?</li>
        <li>How does the Resource prove Agent B was authorized to be spawned?</li>
      </ul>

      <t>The author is not aware of a standard, from the W3C, the IETF, or a
      vendor, that fully addresses agent
      provenance in multi-hop chains.</t>
    </section>

    <section anchor="existing-patterns" numbered="true" toc="default">
      <name>Existing Patterns and Gaps</name>
      <t>Several systems address a neighbouring problem.  Workload identity
      frameworks such as SPIFFE <xref target="SPIFFE"/> issue verifiable
      identities to services but do not model one service spawning another
      under a bounded delegation.  Relationship-based authorization systems
      such as OpenFGA <xref target="OpenFGA"/> evaluate what an identity may
      do but assume the identity is already established.  PKI secrets engines
      such as Vault <xref target="VAULTPKI"/> issue certificates on request
      but leave the content of a certificate to the requester.  This document
      assumes the zero-trust posture of <xref target="NIST800-207"/>, in which
      no request is trusted for where it came from, and applies it to the
      question those systems leave open: how an agent proves what authority it
      was granted, and by whom.</t>

      <section anchor="obo" numbered="true" toc="default">
        <name>On-Behalf-Of (OBO)</name>
        <t>Microsoft Entra ID OBO provides user-to-service delegation:</t>

        <figure>
          <artwork type="ascii-art"><![CDATA[
   User --> Agent A (token A) -->
   Agent A requests token for Agent B on behalf of user -->
   Entra validates the chain -->
   Issues scoped delegated token
          ]]></artwork>
        </figure>

        <t>Key insight: a trusted third party validates the delegation chain.
        Agents do not self-assert trust.</t>

        <t>OBO breaks down for agent-to-agent because agents are ephemeral,
        agent spawning is dynamic, and no registry exists for agent
        templates.</t>
      </section>

      <section anchor="token-exchange" numbered="true" toc="default">
        <name>OAuth 2.0 Token Exchange (RFC 8693)</name>
        <t>OAuth 2.0 <xref target="RFC6749"/> Token Exchange <xref target="RFC8693"/> defines scope constraint across delegation hops --
        downstream tokens <bcp14>MUST</bcp14> be a subset of upstream grants.  This
        document adopts that principle for agent scope inheritance.</t>
      </section>

      <section anchor="delegation-across-spawn" numbered="true" toc="default">
        <name>Delegation Across a Spawn</name>
        <t>Section 6.1 notes that On-Behalf-Of breaks down when agents
        spawn agents: nothing ties a delegated token to the agent presenting
        it, so a token can pass from agent to agent, parent to child.  This
        document does not carry the person an agent acts for, and it does
        not issue delegation tokens.  It closes that gap from the identity
        side: <xref target="delegated-requests" format="default"/> binds
        every delegation token an agent presents to that agent's
        certificate, so a token cannot be used by any agent but the one it
        was bound to, and a spawned child acting for the same person must
        present a token bound to its own certificate.</t>
      </section>

      <section anchor="related-work" numbered="true" toc="default">
        <name>Relationship to Other Work</name>
        <t>This section is informative.  It notes where this document meets
        drafts in progress elsewhere, so that a reader of either can see how
        the pieces fit.  It changes no requirement of this document, and this
        document does not depend on any draft it names.</t>

        <t>The WIMSE architecture <xref target="I-D.ietf-wimse-arch"/> treats
        AI agents as a special case of delegated workloads (its Section
        3.4.11).  It asks that logically distinct agents not share a workload
        identity, so that each can be audited, revoked, and subjected to
        policy on its own; that in agent-to-agent chains each hop explicitly
        scope and re-bind the security context, so that a chain cannot
        extend authority beyond what was originally granted; and that audit
        logs be tamper-evident (its Section 3.4.5).  This document gives each
        agent exactly one identity, carried in its certificate and as its
        SPIFFE ID and stable across versions
        (<xref target="certificate-profile"/>,
        <xref target="identity-binding"/>); bounds every spawned agent's
        scope to a subset of its parent's (<xref target="scope-constraint"/>);
        binds every token to the presenting agent's key at each hop
        (<xref target="delegated-requests"/>); and requires a hash-chained
        audit trail (<xref target="audit-integrity"/>).</t>

        <t>The OAuth Actor Profile <xref target="I-D.mcguinness-oauth-actor-profile"/>
        makes the acting party explicit in a token: the outermost "act"
        names the immediate actor, and nested "act" objects remain
        informational for access control (its Section 3.6.1).  It leaves
        per-hop actor-key provenance to "an additional mechanism outside the
        scope of this document, such as signed hop receipts,
        transparency-log-based recording, or another future extension" (its
        Section 13.8), and notes that token revocation does not by itself
        revoke a delegation relationship or propagate to downstream tokens
        (its Section 13.11).  This document supplies that evidence by its
        own means.  Each agent presents its own certificate, and a token
        bound to it, on every call, and the acting party the token names is
        checked against that certificate (<xref target="delegated-requests"/>).
        A child's certificate carries the agent that spawned it and is issued
        by the CA, not asserted by the parent
        (<xref target="spawn-provenance"/>).  Spawns are recorded in a
        hash-chained audit trail (<xref target="audit-requirements"/>,
        <xref target="audit-integrity"/>).  Revoking an agent's certificate
        ends every token bound to it at the next check
        (<xref target="revocation"/>).  That draft names who is acting; this
        one binds and bounds each actor.</t>

        <t>The Transaction Token chaining profile
        <xref target="I-D.fletcher-oauth-txn-token-chaining-profile"/>
        carries a transaction across trust domains.  Its grant is a bearer
        token (its Section 9.4), it carries the requesting workload's key
        only if sender-constraining is in use (its Section 6.1.2), and its
        token exchange does not use the actor_token parameters (its Section
        4.3.2).  Where the caller is an agent under this document,
        <xref target="delegated-requests"/> requires both: every token the
        agent presents is bound to its certificate, and the acting agent is
        named and checked on every call.  That profile also requires a
        bilateral Cross-Domain Trust Agreement, explicitly established and
        actively maintained before anything crosses, and leaves the
        mechanism for establishing it out of scope (its Sections 2.2 and
        9.7).  A cross-organizational grant under this document is a signed,
        revocable record of such an agreement for the agents it covers
        (<xref target="explicit-grant"/>).</t>

        <t>SPIFFE Federation <xref target="SPIFFE-FED"/> lets one trust
        domain validate another's credentials by fetching its trust bundle
        from a bundle endpoint.  Each relationship runs one way, and its
        parameters are configured by an administrator from a source such as
        email, an HTTPS-protected website, or a company-internal wiki (its
        Sections 6 and 7.1).  It exchanges keys, not terms: what the other
        domain's agents may do is outside it.  A cross-organizational grant
        states those terms, the template, scopes, lifetime, and maximum
        number of agents, under the Grantor's Owner and Policy Authority
        signatures (<xref target="grant-structure"/>), which the Grantee
        validates to a trust anchor it holds
        (<xref target="trust-anchor-options"/>).</t>

        <t>OpenID Federation 1.0 <xref target="OpenID-Federation"/> builds
        multilateral federations, in which a Trust Anchor mediates trust
        through chains of signed statements, with metadata policies and
        constraints applied along the chain.  Where two organizations deal
        directly, without a common Trust Anchor, a cross-organizational grant
        under this document is the bilateral counterpart: each is signed by
        the Grantor and names one Grantee, one template, and its limits
        (<xref target="grant-structure"/>).</t>

        <t>The AI Identity Management System
        <xref target="I-D.ietf-wimse-aims"/> describes how existing
        standards apply to agents and leaves several pieces to the
        deployment.  It places the policy model and format out of scope,
        asking only that policy be versioned, reviewable, and evaluated
        consistently (its Section 12).  This document defines one such form
        for an agent's own bounds: a template and dynamic policies that an
        Owner and a Policy Authority both sign over the same octets,
        versioned against replay, with bounds a relying party checks on
        every validation (<xref target="template-dual-signature"/>,
        <xref target="dual-signature"/>, <xref target="signature-coverage"/>,
        <xref target="dynamic-policy-bounds"/>).  AIMS requires tamper-evident
        audit records (its Section 11); <xref target="audit-requirements"/>
        and <xref target="audit-integrity"/> specify a hash-chained form with
        a defined preimage.  AIMS requires that a retired identifier not be
        reassigned (its Section 6); <xref target="template-lifecycle"/>
        applies the same rule to a deleted template's Subject and key.  And
        AIMS does not address an agent that creates other agents;
        <xref target="spawn-chain-validation"/> bounds that with a two-check
        spawn rule, a cap on children, and provenance the CA attests in each
        child's certificate.  Where a relying party delegates its decision
        to an external policy decision point, as AIMS describes (its Section
        10.4), the OpenID AuthZEN Authorization API <xref target="AuthZEN"/>
        can carry it; the checks of this document still apply, and a permit
        from that decision point cannot override a refusal under them.</t>

        <t>Transaction Tokens for Agents
        <xref target="I-D.araut-oauth-transaction-tokens-for-agents"/>
        carries agent context through a call chain in an agentic_ctx claim:
        the proximate and originating agents, a hop count, and an optional
        minimum assurance level.  The Transaction Token Service identifies
        the agent from the access token by act.sub, an Agent Attribute
        Store, or client_id (its Section 3.5.1), and the draft lists binding
        client_id to a transport-layer identity, such as an mTLS certificate
        or SPIFFE SVID, among the mitigations for misclassification (its
        Section 5.11).  This document makes that binding a requirement for
        agents: every token an agent presents is bound to its certificate,
        and the acting party the token names is checked against that
        certificate on every call (<xref target="delegated-requests"/>).
        The draft also asks that the Agent Attribute Store be protected with
        strong integrity controls (its Section 5.10); here an agent's static
        bounds travel in its own certificate, signed by an Owner and a
        Policy Authority and issued by the CA, so a relying party verifies
        them from the certificate itself (<xref target="static-field-encoding"/>,
        <xref target="template-dual-signature"/>).</t>

        <t>OAuth 2.0 Entity Profiles
        <xref target="I-D.mora-oauth-entity-profiles"/> defines the ai_agent
        profile and the sub_profile claim, which can appear in each act node
        to classify the acting entity at every hop of a delegation chain
        (its Sections 3.1.7, 4.2 and 11).  It notes that it can be difficult
        to verify that an entity truly qualifies as an AI agent, that trusted
        publishers or registries may attest to it (its Section 3.1.7), and
        that profile values should be trusted only when issued by verified
        and trusted authorities (its Section 12.1).  An agent under this
        document carries such an attestation: its certificate is issued only
        for a template that an Owner and a Policy Authority have both signed
        (<xref target="template-dual-signature"/>).  An issuer naming such an
        agent in an act node can therefore classify it as ai_agent on a
        verifiable basis.  The classification does not replace the checks
        of <xref target="delegated-requests"/>: a relying party identifies
        the acting agent from its certificate, and treats sub_profile as a
        label, not as proof.</t>

        <t>OAuth SPIFFE Client Authentication
        <xref target="I-D.ietf-oauth-spiffe-client-auth"/> lets a client
        authenticate to an authorization server with an X509-SVID over
        mutual TLS, identified by the SPIFFE ID in its URI SAN (its Section
        3.3).  An agent certificate under this document carries a SPIFFE ID
        and meets the leaf constraints of an X509-SVID
        <xref target="SPIFFE-X509"/> (<xref target="certificate-profile"/>).
        Its Agent Template extension is marked critical
        (<xref target="static-field-encoding"/>), so a validator that does not
        implement this document refuses it, as <xref target="RFC5280"/>
        requires; an authorization server that implements both can
        authenticate the agent with the certificate it already holds,
        without a second credential.</t>

        <t>The Workload Authorization Grant
        <xref target="I-D.carleton-workload-authz-grant"/> lets a platform's
        Workload Identity Provider sign a JWT grant naming one agent, which
        an authorization server that trusts that provider accepts without
        provisioning each agent.  Its agent identifier is never reassigned
        (its Section 4); the permissions an authorization server grants, and
        the claims it consults, are outside its scope (its Section 6.2); and
        it lists as open issues that the grant is a bearer assertion and
        whether a replayed jti must be rejected (its Section 9).  For agents
        under this document, the bounds are fixed in the agent's certificate
        under the signatures of an Owner and a Policy Authority
        (<xref target="template-dual-signature"/>), its identifier is never
        reused (<xref target="template-lifecycle"/>), every token the agent
        presents is bound to its certificate's key, and a proof replayed
        within its window is refused (<xref target="delegated-requests"/>).</t>

        <t>OAuth 2.0 Attestation-Based Client Authentication
        <xref target="I-D.ietf-oauth-attestation-based-client-auth"/> pairs a
        Client Attestation, signed by a client attester and carrying the
        client instance's key in cnf (its Section 4), with a proof of
        possession by that key, and defines a combined mode in which one
        DPoP proof serves as both (its Section 5.2); further replay
        protection for the proof is left to the deployment (its Section
        7.2).  An agent certificate under this document plays the
        attestation's part: the Template Registry CA issues it for the
        agent's key, <xref target="delegated-requests"/> uses that key for
        the DPoP proof, and a proof whose jti has already been accepted is
        refused.</t>

        <t>OAuth Actor Chain <xref target="I-D.mw-oauth-actor-chain"/> has
        each actor sign a step proof, and the authorization server sign an
        acceptance, at every hop, each linked by hash to the step before and
        delivered with the token or through introspection, with selective
        disclosure of earlier actors (its Sections 10 to 12 and 15).  It
        requires each actor's key to be independently authorized for that
        actor's identifier, noting that a key's presence in a JWKS alone does
        not authorize it (its Section 23), and it defines no business policy
        or delegation-policy language (its Section 2).  An agent under this
        document holds such an independently authorized key: its certificate
        binds the key to its identifier, issued by a CA under an attestation
        an Owner and a Policy Authority both signed
        (<xref target="identity-binding"/>,
        <xref target="template-dual-signature"/>), and the same certificate
        carries the agent's signed bounds (<xref target="template-structure"/>),
        which that draft leaves to deployment policy.</t>
      </section>
    </section>

    <section anchor="agent-identity" numbered="true" toc="default">
      <name>Agent Identity</name>
      <t>Agent identity <bcp14>MUST</bcp14> be established using X.509 certificate chains
      <xref target="RFC5280"/>.  This reuses the same trust model used by TLS and
      existing workload identity systems.</t>

      <section anchor="certificate-profile" numbered="true" toc="default">
        <name>Certificate Profile</name>
        <t>Certificates used for agent identity <bcp14>MUST</bcp14> conform to
        <xref target="RFC5280"/>.  In addition, a relying party validating an
        agent certificate <bcp14>MUST</bcp14> enforce all of the following, and
        <bcp14>MUST</bcp14> refuse the certificate if any is not satisfied:</t>
        <ul>
          <li>An agent certificate <bcp14>MUST</bcp14> carry the basicConstraints
          extension asserting cA = FALSE.  A certificate that omits
          basicConstraints <bcp14>MUST</bcp14> be refused; the extension's absence
          <bcp14>MUST NOT</bcp14> be treated as equivalent to cA = FALSE.</li>
          <li>A Template Registry CA certificate <bcp14>MUST</bcp14> carry
          basicConstraints asserting cA = TRUE, marked critical, and
          <bcp14>MUST</bcp14> assert keyCertSign in its keyUsage extension.</li>
          <li>Certificates <bcp14>MUST</bcp14> be signed using SHA-256 or a
          stronger digest.  Certificates signed with SHA-1 or MD5
          <bcp14>MUST</bcp14> be refused irrespective of key size.</li>
          <li>Public keys <bcp14>MUST</bcp14> provide at least a 128-bit security
          level as defined in <xref target="SP800-57"/>: RSA with a modulus of
          3072 bits or more, an EC key on P-256 or P-384, or an Ed25519 key
          <xref target="RFC8410"/>.  A relying party <bcp14>MUST</bcp14>
          refuse a certificate whose key falls below this level, including an
          RSA key of 2048 bits.  EC and Ed25519 keys are
          <bcp14>RECOMMENDED</bcp14> over RSA: they reach the floor with
          smaller certificates and faster generation, and Ed25519 signatures
          are deterministic.</li>
          <li>An agent certificate <bcp14>MUST</bcp14> carry the keyUsage
          extension, marked critical, asserting digitalSignature and no other
          bit.  keyCertSign and cRLSign <bcp14>MUST NOT</bcp14> be asserted
          on an agent certificate; a relying party <bcp14>MUST</bcp14> refuse
          one that asserts either, independently of the basicConstraints
          check above.</li>
          <li>An agent certificate <bcp14>MUST</bcp14> carry exactly one URI
          in its subjectAltName extension: a SPIFFE ID
          <xref target="SPIFFE-ID"/>, which is a Workload Identifier
          <xref target="I-D.ietf-wimse-identifier"/> in the spiffe scheme,
          whose trust domain is the one its
          issuing Template Registry CA serves and whose final path segment is
          the agent's identifier (<xref target="identity-binding"/>), for
          example "spiffe://example.org/agent/9f3c...".  A relying party
          <bcp14>MUST</bcp14> refuse an agent certificate carrying no URI,
          more than one, a URI that is not a valid SPIFFE ID, or one whose
          trust domain is not the one it has configured for that CA.</li>

          <li>The serialNumber <bcp14>MUST</bcp14> contain at least 64 bits
          of output from a cryptographically secure random number generator.
          A predictable serial number is an input an attacker controls when
          searching for a digest collision over a certificate.  The value is
          an ASN.1 INTEGER, which <xref target="RFC5280"/> requires to be
          positive, at most 20 octets, and in minimal DER form.  An
          implementation that clears the top bit of the first random octet to
          keep the value positive discards a bit of entropy and, one draw in
          256, produces a leading zero octet followed by an octet below 0x80
          -- a non-minimal encoding that a strict parser refuses.  Draw the
          random octets, at most 19 so that a prepended octet stays within
          the limit; strip any leading zero octets; and prepend a single zero
          octet only when the first remaining octet has its top bit set.  The
          result is positive, minimal, and carries every bit it was
          given.</li>
        </ul>
        <t>An agent certificate asserting cA = TRUE is a certificate entitled to
        issue further certificates.  Such an agent can create children without
        presenting a request to the Template Registry CA, which removes both
        checks required by <xref target="two-check-rule"/> from the spawn path
        entirely.  No signature is invalid in that scenario and no chain fails to
        verify; the containment described in <xref target="template-structure"/>
        is simply never consulted.  This is the reason the constraint is stated
        normatively here rather than left to the general RFC 5280 profile.</t>
        <t>These requirements are necessary and not sufficient.  A certificate
        satisfying all of them establishes identity only; it carries no
        authorization.  See <xref target="pki-boundary"/>.</t>
      </section>

      <section anchor="identity-binding" numbered="true" toc="default">
        <name>Binding Identity to the Certificate</name>
        <t>An agent has exactly one identity, expressed as a UUID in the
        canonical lowercase textual form defined in <xref target="RFC9562"/>.  A
        relying party <bcp14>MUST</bcp14> refuse a certificate whose subject
        common name is absent, is not a well-formed UUID in that form, or does
        not match the agent identifier the presenting party claims.  Uppercase
        hexadecimal <bcp14>MUST</bcp14> be refused rather than case-folded: the
        identifier is compared byte-for-byte in several places, and an
        implementation that folds in one of them and not another will accept a
        document another implementation refuses.</t>

        <t>This document does not constrain which UUID version is used.
        Implementations <bcp14>SHOULD</bcp14> use version 4 where the time an
        agent was created should not be inferable from its identifier, and
        <bcp14>MAY</bcp14> use version 7 where time-ordered identifiers are
        wanted and that disclosure is acceptable.  A version 7 identifier embeds
        a millisecond timestamp, and an agent identifier travels to places its
        template does not -- audit records, policy references, diagnostic
        messages -- so the disclosure is wider than the certificate's own notBefore field.</t>

        <t>Where a chain document restates that identifier alongside the
        certificate, every restatement <bcp14>MUST</bcp14> be identical to the
        subject common name, and a relying party <bcp14>MUST</bcp14> refuse the
        document if any two disagree.  An implementation
        <bcp14>MUST NOT</bcp14> treat one restatement as authoritative and the
        others as advisory.</t>

        <t>This requirement exists because a restated identifier that no
        signature covers is an unsigned claim sitting next to a signed one.
        Without this rule a chain could name one agent in the position a relying
        party reads and present a certificate issued to a different agent, and
        both artifacts would validate on their own terms.</t>

        <t>The SPIFFE ID of <xref target="certificate-profile"/> is a
        restatement of the same kind, inside the signed certificate: its
        final path segment <bcp14>MUST</bcp14> be identical to the subject
        common name, and a relying party <bcp14>MUST</bcp14> refuse a
        certificate in which they differ.  It gives the agent the form of
        workload identifier that SPIFFE and WIMSE deployments expect; the
        checks of this document continue to read the subject common name.
        A new version of a template keeps its Subject
        (<xref target="full-re-verification"/>), and so keeps its SPIFFE
        ID.  A relying party that authorizes by the SPIFFE ID compares the
        complete URI, as <xref target="I-D.ietf-wimse-identifier"/>, Section
        4.3 requires, and never its path alone.</t>
      </section>

      <section anchor="csr-flow" numbered="true" toc="default">
        <name>Certificate Signing Request Flow</name>
        <figure>
          <artwork type="ascii-art"><![CDATA[
   Template Author
       | defines template (scopes, spawn rules, TTL, owner)
       v
   Conformance gate (Section 9.1)
       | every REQUIRED field present and non-null
       v
   Dual attestation (Section 9.2)
       | Owner signs; Policy Authority countersigns
       | the same JCS octets
       v
   CSR (the agent's public key only) + the attested template
       v
   Template Registry CA (Section 9.4)
       | re-applies the gate, re-verifies both signatures
       | issues ONE certificate: the template certificate,
       | for the CSR's key, the template in its extension
       v
   Agent presents its template certificate
       | its private key never leaves it
       | a child it spawns is issued under Section 10
       | CA chain proves provenance
       v
   Resource validates certificate chain:
       - certificate issued by a trusted Template Registry CA?
       - Agent Template extension present and well-formed?
       - scope within bounds?
       - ALLOW or DENY
          ]]></artwork>
        </figure>
      </section>

      <section anchor="cert-chain-structure" numbered="true" toc="default">
        <name>Certificate Chain Structure</name>
        <figure>
          <artwork type="ascii-art"><![CDATA[
   Template Registry CA (root of trust)
       |
       | issues BOTH certificates (Section 9.4)
       |
       +--> Orchestrator Agent Certificate
       |      Subject CN:  9f3c...  (a UUID, Section 7.2)
       |      Issuer:      Template Registry CA
       |      Agent Template extension (Section 8.2):
       |        subject: 9f3c...  (equals Subject CN, 9.4)
       |        owner, org_id
       |        permitted_operations: [spawn]
       |        allowed_scopes:       [read:data, write:data]
       |        can_spawn: [2b7e...], max_children: 1
       |        policy_ref, ttl_seconds: 3600
       |
       +--> Child Agent Certificate
              Subject CN:  2b7e...  (a UUID)
              Issuer:      Template Registry CA
              Agent Template extension:
                subject: 2b7e...
                allowed_scopes: [read:data]  (subset, 10.3)
                ttl_seconds:    900          (shorter, SHOULD)
              Agent Spawn extension (Section 10.5):
                parent_agent_id: 9f3c...
                spawned_at, spawn_nonce
                grant_id  (only when spawned under a grant, 13.2)

   An agent certificate never issues a certificate (Section 7.1).
   The parent-child link is recorded in the child's Agent Spawn
   extension; the chain of authority runs through the CA.
          ]]></artwork>
        </figure>
      </section>
    </section>

    <section anchor="template-structure" numbered="true" toc="default">
      <name>Template Structure</name>

      <section anchor="static-fields" numbered="true" toc="default">
        <name>Static Fields</name>
        <t>The following fields <bcp14>MUST NOT</bcp14> be modified without
        full re-certification.  Those marked REQUIRED <bcp14>MUST</bcp14> be
        present in every agent template certificate; those marked OPTIONAL
        <bcp14>MAY</bcp14> be absent, with the meaning given for each:</t>

        <table>
          <thead>
            <tr><th>Field</th><th>Required</th><th>Description</th></tr>
          </thead>
          <tbody>
            <tr><td>Subject</td><td>REQUIRED</td><td>Unique template identifier</td></tr>
            <tr><td>Owner</td><td>REQUIRED</td><td>Verified identity of template owner</td></tr>
            <tr><td>OrgID</td><td>REQUIRED</td><td>CA-validated organization identifier</td></tr>
            <tr><td>PermittedOperations</td><td>REQUIRED</td><td>Operations this agent may perform</td></tr>
            <tr><td>AllowedScopes</td><td>REQUIRED</td><td>Maximum scopes this agent may hold</td></tr>
            <tr><td>CanSpawn</td><td>REQUIRED</td><td>Whitelist of permitted child templates</td></tr>
            <tr><td>MaxChildren</td><td>REQUIRED</td><td>Maximum concurrent child agents</td></tr>
            <tr><td>PolicyRef</td><td>REQUIRED</td><td>Pointer to dynamic policy store</td></tr>
            <tr><td>TTL</td><td>REQUIRED</td><td>Maximum agent lifetime</td></tr>
            <tr><td>AllowedHours</td><td>OPTIONAL</td><td>Outer limit on when the agent may act (<xref target="time-windows"/>).  Absent means no time constraint</td></tr>
            <tr><td>AllowedHoursZone</td><td>OPTIONAL</td><td>Time zone in which AllowedHours is read; present exactly when AllowedHours is</td></tr>
          </tbody>
        </table>
        <t>This document defines one value of PermittedOperations: spawn, which
        an agent <bcp14>MUST</bcp14> hold to invoke
        <xref target="spawn-chain-validation"/>.  Any other value, including
        those shown in examples, is defined by the deployment and carries no
        meaning under this specification.  A template whose CanSpawn is
        non-empty while its PermittedOperations omits spawn describes an agent
        permitted to spawn specific children and not permitted to spawn; the
        conformance gate of <xref target="template-conformance-gate"/>
        <bcp14>SHOULD</bcp14> refuse it, and a Registry <bcp14>MUST</bcp14>
        refuse a spawn request from it.</t>
        <t>A template defines exactly one agent
        (<xref target="terminology"/>), so each entry of CanSpawn names a
        child that can exist at most once at a time, and MaxChildren counts
        named children rather than instances of one.  MaxChildren
        <bcp14>MUST NOT</bcp14> exceed the number of entries in CanSpawn.  The
        conformance gate of <xref target="template-conformance-gate"/>
        <bcp14>MUST</bcp14> refuse a template that violates this, and a
        relying party <bcp14>MUST</bcp14> refuse a certificate whose extension
        does.  A cap above the number of children a template can name is a
        cap on nothing, and a validator reading it would count toward a limit
        that can never be reached.</t>
        <t>The certificate's issuer is not a template field.  It is set by the
        Template Registry CA at issuance (<xref target="template-issuance"/>)
        and read from the certificate (<xref target="static-field-encoding"/>);
        a template carries no member for it.</t>
      </section>

      <section anchor="static-field-encoding" numbered="true" toc="default">
        <name>Encoding of Static Fields</name>
        <t>The fields in <xref target="static-fields"/> <bcp14>MUST</bcp14> be
        carried in a single X.509 certificate extension, identified by the
        object identifier 1.3.6.1.4.1.67648.1 (<xref target="iana-oid"/>) and
        referred to in this document as the Agent Template extension.  The
        extension <bcp14>MUST</bcp14> be marked critical.  A validator that
        does not implement this specification therefore refuses the
        certificate, as <xref target="RFC5280"/> requires of any unrecognized
        critical extension, rather than accepting it as an ordinary client
        certificate and granting whatever its issuer's chain would grant.
        The certificate is unusable except by a party that understands what
        it says, which is the fail-closed outcome
        <xref target="fail-closed"/> requires; an agent certificate has no
        legitimate use outside this specification.</t>

        <t>The extnValue <bcp14>MUST</bcp14> be a DER OCTET STRING whose contents
        are the UTF-8 encoding of a JSON object, serialized as required by
        <xref target="document-encoding"/>.  A relying party
        <bcp14>MUST</bcp14> refuse a certificate whose Agent Template extension
        is not valid JCS, and <bcp14>MUST NOT</bcp14> attempt to repair or
        re-canonicalize it.</t>

        <t>The JSON object <bcp14>MUST</bcp14> carry the following members and
        no others.  Every member is <bcp14>REQUIRED</bcp14> except
        allowed_hours and allowed_hours_zone, which are
        <bcp14>OPTIONAL</bcp14> and <bcp14>MUST</bcp14> be present together
        or not at all.  Wire names are as given in
        <xref target="wire-name-map"/>.  A relying party <bcp14>MUST</bcp14>
        refuse a certificate whose Agent Template extension omits a
        <bcp14>REQUIRED</bcp14> member, carries only one of the two
        <bcp14>OPTIONAL</bcp14> members, carries a member not listed here, or
        carries a member whose type differs from the type given.</t>

        <table anchor="template-members">
          <name>Agent Template Extension Members</name>
          <thead>
            <tr><th>Member</th><th>Type</th></tr>
          </thead>
          <tbody>
            <tr><td>subject</td><td>string</td></tr>
            <tr><td>owner</td><td>string</td></tr>
            <tr><td>org_id</td><td>string</td></tr>
            <tr><td>permitted_operations</td><td>array of string</td></tr>
            <tr><td>allowed_scopes</td><td>array of string</td></tr>
            <tr><td>can_spawn</td><td>array of string</td></tr>
            <tr><td>max_children</td><td>integer</td></tr>
            <tr><td>policy_ref</td><td>string</td></tr>
            <tr><td>ttl_seconds</td><td>integer</td></tr>
            <tr><td>allowed_hours</td><td>array of string (OPTIONAL)</td></tr>
            <tr><td>allowed_hours_zone</td><td>string (OPTIONAL)</td></tr>
          </tbody>
        </table>

        <t>The ttl_seconds member states a duration in seconds; the display name
        TTL in <xref target="static-fields"/> does not carry a unit, and a
        duration whose unit is inferred is a duration two implementations will
        infer differently.</t>

        <t>The certificate's issuer has no member in this extension.  X.509
        already carries the issuer, and a second copy inside an extension the
        issuer signs could disagree with the copy the relying party validated
        the signature against.  A relying party <bcp14>MUST</bcp14> take the
        issuer from the certificate.</t>

        <t>A certificate <bcp14>MUST NOT</bcp14> carry more than one Agent
        Template extension, and a relying party <bcp14>MUST</bcp14> refuse a
        certificate carrying two rather than choosing between them.  The duplicate
        member rule of <xref target="document-encoding"/> applies, and is a
        requirement on the parser used to read the extension.</t>

        <t>A relying party <bcp14>MUST</bcp14> impose a limit on the size of the
        extension before parsing it, and <bcp14>MUST</bcp14> refuse an extension
        exceeding that limit rather than attempting a partial parse.  The limit
        is 16384 octets of extnValue for the Agent Template extension and 1024
        octets for the Agent Spawn extension of
        <xref target="spawn-provenance"/>.  The first holds two hundred scopes
        at the maximum length of <xref target="scope-constraint"/>, which is
        more than any template this document contemplates; the second holds
        every member of a fixed-shape object with room to spare; and neither
        is large enough to be worth handing to a parser unverified.  The
        extension arrives inside a certificate presented by the party whose
        authority it describes; it is attacker-controlled input up to the point
        the issuer's signature has been verified, and that signature covers
        whether the bytes were issued, not whether they are safe to parse.
        A relying party <bcp14>MUST</bcp14> verify the certificate signature
        before parsing the extension, so that malformed input from an unsigned
        certificate is discarded without being decoded at all.</t>

        <t>Placing these fields in the certificate rather than in a document
        accompanying it is deliberate.  <xref target="static-fields"/> requires
        that they not change without re-certification.  A field carried outside
        the certificate is signed by whoever assembled the document, not by the
        Template Registry CA, so an agent could present a valid certificate
        beside a template granting authority the CA never issued.  Carrying them
        inside the certificate makes the immutability requirement a property of
        the artifact rather than a rule an implementation is asked to
        remember.</t>
      </section>

      <section anchor="dynamic-policy-bounds" numbered="true" toc="default">
        <name>Dynamic Policy Bounds</name>
        <t>Dynamic policies <bcp14>MUST</bcp14> be bounded by the static template fields.
        A dynamic policy <bcp14>MUST NOT</bcp14> grant scopes beyond AllowedScopes.
        A dynamic policy <bcp14>MUST NOT</bcp14> add spawn targets beyond CanSpawn.
        A dynamic policy cannot extend the time an agent may act beyond
        AllowedHours: a relying party evaluates both AllowedHours and the
        policy's Hours each time it authorizes an action
        (<xref target="time-windows"/>), so time outside AllowedHours is
        refused whatever Hours states.  Because HoursZone equals
        AllowedHoursZone wherever both are present
        (<xref target="time-windows"/>), whether Hours lies within
        AllowedHours is decided on local times alone, and the conformance
        gates of the Policy Authority <bcp14>SHOULD</bcp14> refuse a policy
        whose Hours state time outside AllowedHours, since that time can never
        be used.</t>
        <t>A relying party <bcp14>MUST</bcp14> evaluate these bounds itself, on
        every validation, against the static fields of the template certificate
        naming the subject the policy governs.  This evaluation
        <bcp14>MUST</bcp14> be independent of signature validity -- a bounds
        violation is refused whether or not the signatures verify -- and it is
        performed after signature verification, in the order given by
        <xref target="policy-change-sequence"/>, so that a refusal under this
        section reports an authentic document whose content is not permitted.
        A policy exceeding the bounds <bcp14>MUST</bcp14> be refused before it
        is applied, however many valid signatures it carries.</t>
        <t>The signatures required by <xref target="dual-signature"/> and the
        bounds required here answer different questions.  The signatures
        establish who authorized a change.  They do not, and cannot, establish
        that the change was within the ceiling the template set, because the
        ceiling is stated in a certificate that no signature over the policy
        covers.  An implementation that treats a valid dual signature as
        sufficient authority to apply a policy has removed the only mechanism
        bounding what a policy may grant.</t>
        <t>Refusal under this section is a distinct condition from a signature
        failure, and implementations <bcp14>SHOULD</bcp14> report it distinctly:
        the document is authentic and its content is not permitted.  Reporting it
        as a signature failure misdirects the operator to the wrong lane of
        <xref target="two-lane-model"/>.</t>
      </section>

      <section anchor="time-windows" numbered="true" toc="default">
        <name>Time Windows</name>
        <t>An agent's authority can be bounded in time at two levels, matching
        the two lanes of <xref target="two-lane-model"/>.  AllowedHours, in the
        template certificate, is the outer limit and changes only by
        re-certification.  Hours, in the dynamic policy, narrows it and
        changes in the fast lane under the dual signature of
        <xref target="dual-signature"/>.  Both are <bcp14>OPTIONAL</bcp14>.
        Where neither is present, the agent's authority carries no time
        constraint, which is also how a template or policy written to an
        earlier revision of this document is read.</t>

        <t>AllowedHours and Hours are each an array of window strings, read in
        the time zone named by AllowedHoursZone and HoursZone respectively.
        A window string <bcp14>MUST</bcp14> match the following ABNF
        <xref target="RFC5234"/>, where weekday is the rule of that name in
        <xref target="RFC5545"/>, Section 3.3.10, and time-hour and
        time-minute are the rules of those names in
        <xref target="RFC3339"/>, Section 5.6:</t>
        <sourcecode type="abnf"><![CDATA[
window     = days SP start "-" end
days       = weekday *("," weekday)
start      = time-hour ":" time-minute
end        = time-hour ":" time-minute
]]></sourcecode>

        <t>ABNF strings are case-insensitive (<xref target="RFC5234"/>,
        Section 2.3), but a weekday in a window string <bcp14>MUST</bcp14> be
        in uppercase, as the grammar of <xref target="RFC5545"/> writes it,
        and a relying party
        <bcp14>MUST</bcp14> refuse a window string with a weekday in any
        other case.</t>

        <t>A window covers, on each day it lists, the local times from start,
        inclusive, to end, exclusive.  An end earlier than its start runs past
        midnight into the following day; the day listed is the day the window
        starts.  An end equal to its start covers the whole day from that
        time, so "00:00-00:00" is the entire listed day.  A weekday
        <bcp14>MUST NOT</bcp14> appear twice in one window.  An array
        <bcp14>MUST</bcp14> carry at least one window and <bcp14>MUST
        NOT</bcp14> carry more than 32; a template or policy that would
        carry none omits the member instead.  The following AllowedHours
        permits weekdays from 08:00 to 18:00 and Saturdays from 09:00 to
        13:00:</t>
        <sourcecode type="json"><![CDATA[
"allowed_hours": ["MO,TU,WE,TH,FR 08:00-18:00", "SA 09:00-13:00"],
"allowed_hours_zone": "America/Denver"
]]></sourcecode>

        <t>A zone is the name of a time zone in the IANA Time Zone Database,
        maintained under <xref target="RFC6557"/>, such as "America/Denver",
        and not a numeric offset: a named zone carries its daylight saving
        rules, and an offset is wrong for part of every year in which they
        apply.  A relying party <bcp14>MUST</bcp14> refuse a zone name its copy
        of the database does not contain.  Where a template carries
        AllowedHours, HoursZone in any policy governing it <bcp14>MUST</bcp14>
        equal AllowedHoursZone, and a relying party <bcp14>MUST</bcp14>
        refuse a policy where it does not.  Two zones' offsets move apart at
        each daylight saving change, so a bound between windows in different
        zones holds on some dates and not others, and no gate could decide it
        once for every week.</t>

        <t>Each time a relying party authorizes an action by an agent under
        this specification, it <bcp14>MUST</bcp14> take the current time from
        a time source it trusts, convert that instant into each zone named,
        and refuse the action unless the resulting local time falls within at
        least one window of AllowedHours, where present, and within at least
        one window of the Hours of the policy in force, where present.  The
        agent's effective hours are therefore the intersection of the two, and
        whichever is absent imposes nothing.  Local time is the wall-clock time
        the database gives for that instant in that zone: during an hour that
        repeats when daylight saving ends, the wall-clock time decides, and a
        local time skipped when it begins is never the current time.</t>

        <t>A relying party unable to obtain the current time from a source it
        trusts <bcp14>MUST</bcp14> refuse, as <xref target="fail-closed"/>
        requires, and <bcp14>MUST NOT</bcp14> take the time from the agent or
        from any party it is authorizing.  Which source to trust is the
        deployment's choice; Network Time Security
        <xref target="RFC8915"/> is one means of authenticating it.  A window
        string or zone that does not satisfy this section <bcp14>MUST</bcp14>
        be refused before the document carrying it is used, as any other
        malformed member is.</t>

        <t>The format is deliberately small.  The recurrence rules of
        <xref target="RFC5545"/> can express any calendar, and that generality
        is what this section declines: two implementations of a large
        grammar disagree at its edges, and a bound on authority is useful only
        where every relying party reads it the same way.</t>
      </section>
    </section>

    <section anchor="template-authoring" numbered="true" toc="default">
      <name>Template Authoring and Attestation</name>
      <t>A template is authored before any certificate is issued against it.
      This section specifies the checks that <bcp14>MUST</bcp14> pass before a
      Template Registry CA issues a certificate carrying the fields of
      <xref target="static-fields"/>.</t>

      <section anchor="template-conformance-gate" numbered="true" toc="default">
        <name>Conformance Gate</name>
        <t>Every field marked REQUIRED in <xref target="static-fields"/>
        <bcp14>MUST</bcp14> be present and non-null before a template is signed.
        A template missing any REQUIRED field is non-conforming and
        <bcp14>MUST</bcp14> be refused, both at signing and again at issuance.
        An implementation <bcp14>MUST NOT</bcp14> sign a non-conforming template,
        and <bcp14>MUST NOT</bcp14> issue a certificate against one by omitting
        the corresponding member from the Agent Template extension.</t>
        <t>The gate is applied twice deliberately.  A template that was
        conforming when signed can be edited afterwards, and an issuance path
        that trusts the signature without re-checking conformance will issue a
        certificate whose extension is missing a member the relying party
        requires.</t>
      </section>

      <section anchor="template-dual-signature" numbered="true" toc="default">
        <name>Dual Attestation</name>
        <t>A template <bcp14>MUST</bcp14> carry two signatures before it is
        eligible for issuance: one from the template Owner and one from the
        Policy Authority.  Both signatures <bcp14>MUST</bcp14> be computed over
        the same octet string, as required by
        <xref target="signature-envelope"/>, being the JCS serialization of the
        template restricted to the members of
        <xref target="template-members"/>.  A relying party
        <bcp14>MUST</bcp14> verify both, and <bcp14>MUST</bcp14> refuse the
        template if either is absent or does not verify.</t>
        <t>Signature verification <bcp14>MUST</bcp14> occur after the conformance
        gate of <xref target="template-conformance-gate"/>, not before.  A
        signature over an incomplete body is a valid signature over an incomplete
        body.</t>
        <t>Every member that becomes part of the Agent Template extension
        <bcp14>MUST</bcp14> be inside the signed body.  A member carried into a
        certificate without having been covered by both signatures has entered
        the certificate without the approval the two signatures exist to
        record.</t>
        <t>Both signatures <bcp14>MUST</bcp14> use the algorithm that
        <xref target="signature-algorithms"/> assigns to the signer's key
        type, over a key meeting the strength floor of
        <xref target="certificate-profile"/>.  The requirement is stated by
        reference rather than restated, because two lists of acceptable
        algorithms in one document will eventually disagree, and the weaker
        of the two becomes the one an implementation follows.</t>

        <t>The Owner and the Policy Authority each hold a certificate
        conforming to <xref target="certificate-profile"/>, issued by the
        Template Registry CA or by a CA the relying party trusts for that
        purpose.  A relying party <bcp14>MUST</bcp14> validate that
        certificate to a trust anchor it holds before verifying any signature
        with its key, and <bcp14>MUST</bcp14> refuse a signature whose
        certificate does not validate: a signature that verifies under an
        untrusted key establishes nothing.  The subject common name of the
        Owner certificate <bcp14>MUST</bcp14> equal the template's owner
        member; that equality is what binds the string in owner to a key.
        The Policy Authority certificate is a trust decision the relying
        party configures, one per Registry.</t>
      </section>

            <section anchor="webauthn-owner" numbered="true" toc="default">
        <name>WebAuthn Owner Signature</name>
        <t>An Owner whose key is a WebAuthn credential <xref target="WEBAUTHN"/>,
        such as a security key used through a browser, cannot sign the body's
        octets directly: the authenticator signs its own authenticator data
        and a hash of the client data.  This section defines a second form of
        the Owner signature for such a key.  It applies to the Owner signature
        of <xref target="template-dual-signature"/> and of
        <xref target="dual-signature"/> alike.</t>

        <t>An Owner certificate whose key signs in this form
        <bcp14>MUST</bcp14> carry, in its extended key usage extension
        <xref target="RFC5280"/>, the WebAuthn Owner key purpose
        1.3.6.1.4.1.67648.3, and an Owner certificate whose key does not
        <bcp14>MUST NOT</bcp14> carry it.  A relying party
        <bcp14>MUST</bcp14> verify an Owner signature in this form exactly when
        the Owner certificate carries that key purpose, and in the form of
        <xref target="signature-algorithms"/> exactly when it does not; it
        <bcp14>MUST</bcp14> refuse a signature in either form under the other's
        certificate.  The key type alone cannot distinguish the two, since
        both use P-256.  The certificate's subject common name equals the
        template's owner member, as <xref target="template-dual-signature"/>
        requires, and its public key is the credential public key the Registry
        obtained from a WebAuthn registration it trusts, made with user
        verification.</t>

        <t>In this form, owner_sig is the base64 encoding
        <xref target="RFC4648"/> of the JCS serialization of a JSON object with
        exactly three string members: authenticator_data, client_data_json and
        signature, holding respectively the authenticator data, the client
        data JSON octets, and the signature as the authenticator produced it
        (an ASN.1 DER Ecdsa-Sig-Value <xref target="RFC3279"/>), each in the
        base64url encoding of <xref target="RFC4648"/>, Section 5, without
        padding.  A relying party <bcp14>MUST</bcp14> check, in this order,
        and refuse at the first failure:</t>
        <ol>
          <li>the client data's type is "webauthn.get";</li>
          <li>its challenge is the base64url encoding, without padding, of the
          SHA-256 digest of the signed body's JCS octets;</li>
          <li>its origin is the origin configured for the Registry that
          issued the Owner certificate, and its crossOrigin member is absent
          or false;</li>
          <li>the authenticator data's rpIdHash is the SHA-256 digest of the
          relying party identifier configured for that Registry;</li>
          <li>the authenticator data's flags show both user presence (UP) and
          user verification (UV);</li>
          <li>the signature verifies, with ECDSA over P-256 and SHA-256, over
          the authenticator data followed by the SHA-256 digest of the client
          data JSON octets, under the Owner certificate's public key.</li>
        </ol>
        <t>The client data JSON is not a document this specification defines,
        but a relying party <bcp14>MUST</bcp14> parse it under the duplicate
        member rule of <xref target="document-encoding"/> and match its members
        by exact name, without case folding.  A parser that reads "TYPE" as
        "type", or keeps the last of two crossOrigin members, lets crafted
        client data pass checks 1 and 3 above.</t>
        <t>The origin and relying party identifier are the WebAuthn
        registration's own, because a credential is bound to the relying party
        identifier it was registered under and cannot sign for any other; the
        signing ceremony takes place where the credential was registered.</t>

        <t>An owner value <bcp14>MAY</bcp14> be the subject common name of more
        than one Owner certificate, as when it names a role held by several
        people, each with a key of their own; any of them may then sign.  A
        record of an Owner signature <bcp14>MUST</bcp14> identify the
        certificate that made it, for example by the SHA-256 digest of the
        certificate, and not only the owner value, so that the person who
        signed can be found.</t>
      </section>

      <section anchor="template-issuance" numbered="true" toc="default">
        <name>Issuance</name>
        <t>On issuance the Template Registry CA <bcp14>MUST</bcp14> re-apply the
        conformance gate, <bcp14>MUST</bcp14> re-verify both signatures, and
        <bcp14>MUST</bcp14> copy the signed members into the Agent Template
        extension of <xref target="static-field-encoding"/> without alteration.
        The CA <bcp14>MUST</bcp14> set the certificate subject common name to
        the value of the template's subject member, which <bcp14>MUST</bcp14>
        satisfy <xref target="identity-binding"/>, and <bcp14>MUST</bcp14> set
        the issuer to its own name.  The template carries no issuer member, and
        the CA <bcp14>MUST NOT</bcp14> take the issuer from the template.  A
        relying party <bcp14>MUST</bcp14> refuse a certificate whose subject
        common name differs from the subject member of its Agent Template
        extension.</t>
        <t>How an issued certificate reaches the party that will present it is
        outside this document.  The certificate is public and may travel any
        authenticated path; the private key for it stays with the party that
        generated it and is never delivered with the certificate.</t>
        <t>The CA <bcp14>MUST</bcp14> set the certificate's notAfter to no later
        than its notBefore plus the template's ttl_seconds, so that the TTL of
        <xref target="static-fields"/> is enforced by ordinary certificate path
        validation and not only by a relying party that reads the extension.  A
        relying party <bcp14>MUST</bcp14> refuse a certificate whose notAfter
        minus notBefore, in seconds, exceeds its ttl_seconds: a certificate that outlives its own
        stated lifetime was not issued as this section requires.</t>

        <t>The Registry <bcp14>MUST</bcp14> record the time at which it first
        verified both signatures of a template: the time of attestation.  At
        every later issuance from the same signed template, a renewal
        included, the CA <bcp14>MUST</bcp14> validate the Owner and Policy
        Authority certificates as of the time of attestation rather than the
        time of issuance, so that a signer's certificate expiring after the
        attestation does not end the agents issued under it.  An attestation
        <bcp14>MUST</bcp14> be treated as invalid if either signer's
        certificate was revoked before the time of attestation, or was revoked
        for key compromise with a compromise date at or before it.  The
        compromise date is the invalidity date of the revocation entry
        (<xref target="RFC5280"/>, Section 5.3.2); a revocation for key
        compromise that carries no invalidity date <bcp14>MUST</bcp14> be
        treated as dating from before every attestation the key made.  A relying
        party that verifies the signatures itself <bcp14>MUST</bcp14> obtain
        the time of attestation from the Registry over a channel it
        authenticates, or, where it cannot, <bcp14>MUST</bcp14> validate the
        signer certificates as of the notBefore of the certificate being
        validated.</t>

        <t>ttl_seconds <bcp14>MUST NOT</bcp14> exceed 604800 (seven days), and
        <bcp14>SHOULD NOT</bcp14> exceed 86400 (one day).  A relying party
        <bcp14>MUST</bcp14> refuse a certificate whose ttl_seconds exceeds the
        maximum.  An agent is ephemeral by the definition in
        <xref target="terminology"/>; its certificate's lifetime is the
        longest an attacker holding its key can act if revocation is slow to
        propagate, and <xref target="fail-closed"/> can only refuse a
        certificate a relying party knows to be revoked.  A short lifetime
        bounds that window without depending on revocation reaching every
        relying party.</t>
      </section>
    </section>

    <section anchor="spawn-chain-validation" numbered="true" toc="default">
      <name>Spawn Chain Validation</name>

      <section anchor="two-check-rule" numbered="true" toc="default">
        <name>Two-Check Spawn Rule</name>
        <t>Every spawn <bcp14>MUST</bcp14> pass two independent checks.  Either check
        failing <bcp14>MUST</bcp14> result in spawn denial with no fallback.  The Template Registry performs both checks, as
        <xref target="spawn-validation-sequence"/> specifies.  That section
        lists the individual conditions in the order they are evaluated; this
        section states which check each condition belongs to, and an
        implementation <bcp14>MUST</bcp14> evaluate every condition of both.</t>

        <t>Check 1 -- Static (from the spawning agent's certificate): The
        spawning agent's PermittedOperations <bcp14>MUST</bcp14> include
        spawn, the requested child template <bcp14>MUST</bcp14> appear in
        the spawning agent's CanSpawn list, and the requested scopes
        <bcp14>MUST</bcp14> be a subset of the spawning agent's AllowedScopes
        (<xref target="scope-constraint"/>).  All three are read from the
        Agent Template extension of the spawning agent's certificate, never
        from a document the agent supplies.  These are steps 1 and 4 of
        <xref target="spawn-validation-sequence"/>.</t>

        <t>Check 2 -- Dynamic (Registry live lookup):
        The requested child template <bcp14>MUST</bcp14> be currently registered,
        CA-signed, not self-signed, not present in the current CRL, not
        DISABLED under <xref target="template-lifecycle"/>, and owned either
        by the spawning agent's organization or by an organization that has
        issued a grant under <xref target="cross-org-interaction"/> naming the
        spawning agent's organization as Grantee.  The child template
        <bcp14>MUST</bcp14> also appear in the SpawnTargets of the dynamic
        policy currently in force for the spawning agent
        (<xref target="policy-document-structure"/>), which the Registry
        retrieves through the PolicyRef of the spawning agent's certificate
        and never accepts from the agent; a policy with no SpawnTargets grants
        none, and an agent with no policy in force may not spawn.  Finally the
        spawning agent's live child count <bcp14>MUST</bcp14> be below its
        MaxChildren.  These are steps 2, 3 and 5 of
        <xref target="spawn-validation-sequence"/>.</t>

        <t>Rationale: CanSpawn alone is insufficient because the certificate
        may be stale and a template may have been revoked since issuance.
        Registry lookup alone is insufficient because any party could
        forge a request claiming any template.  The policy condition is what
        gives the fast lane of <xref target="two-lane-model"/> authority over
        spawning: CanSpawn is the ceiling the certificate sets, SpawnTargets is
        what the Owner has currently authorized within it, and a spawn target
        can therefore be withdrawn by a policy change without
        re-certification.  Both checks <bcp14>MUST</bcp14> pass.</t>
      </section>

      <section anchor="spawn-validation-sequence" numbered="true" toc="default">
        <name>Spawn Validation Sequence</name>
        <figure>
          <artwork type="ascii-art"><![CDATA[
   1.  CanSpawn check -- spawn in PermittedOperations, and
       child template in CanSpawn list?
       NO  --> DENY, audit log
       YES --> continue

   2.  Registry check -- child template registered, CA-signed,
       not revoked, not DISABLED, and owned by the spawning
       agent's organization or granted to it?
       NO  --> DENY, audit log
       YES --> continue

   3.  Policy check -- child template in the SpawnTargets of
       the policy in force for the spawning agent?
       NO  --> DENY, audit log
       YES --> continue

   4.  Scope check -- requested scope subset of parent scopes?
       NO  --> DENY, audit log
       YES --> continue

   5.  MaxChildren check -- current children < MaxChildren, and
       no live certificate for the child template already?
       NO  --> DENY, audit log
       YES --> spawn approved

   6.  Template Registry CA issues the child certificate with:
       - parent identity embedded (delegation chain)
       - scope equal to requested scope (not exceeding parent)
       - spawn timestamp and nonce (replay prevention)
       - grant identifier, when spawned under a grant
       - audit log entry written
          ]]></artwork>
        </figure>
        <t>The count compared against MaxChildren in step 5 is held by the
        Template Registry, which is the only party that observes every spawn
        under a template.  The Registry <bcp14>MUST</bcp14> perform that
        comparison as part of Check 2 of <xref target="two-check-rule"/>,
        atomically with recording the new child, so that two concurrent spawn
        requests cannot both observe a count one below the limit and both
        succeed.  The second condition of step 5 follows from
        <xref target="full-re-verification"/>: a template defines one agent,
        one identity never holds two valid certificates, and the Registry
        <bcp14>MUST</bcp14> therefore refuse to spawn a child whose template
        already has an unexpired, unrevoked certificate.  The one exception is a new version under
        <xref target="full-re-verification"/>: the Registry issues the new
        version's certificate and revokes the prior one atomically, so that
        the two are never valid together.  A relying party
        validating a chain document counts only the children that document
        names, and <bcp14>MUST</bcp14> refuse a document in which that count
        exceeds the parent's MaxChildren; that is a consistency check on the
        document, not the enforcement of the cap, and an implementation
        <bcp14>MUST NOT</bcp14> present it as such.</t>

        <t>The Template Registry CA performs steps 1 through 5 and issues the
        certificate in step 6.  The spawning agent presents a spawn request --
        the child template's subject, the requested scopes, a timestamp, and a
        nonce per <xref target="replay-attacks"/> -- and receives the issued
        certificate; it signs nothing, because
        <xref target="certificate-profile"/> forbids an agent certificate from
        issuing.  Steps 1 and 4 are evaluated against the spawning agent's own
        Agent Template extension, which the Registry reads from the
        certificate it presented.  Step 3 is evaluated against the policy in
        force for the spawning agent, which the Registry retrieves through the
        PolicyRef of that extension; a policy the agent supplies with its
        request <bcp14>MUST NOT</bcp14> be consulted.  If the policy store
        cannot be reached, or no policy is in force, the request is refused
        under <xref target="fail-closed"/>.</t>
      </section>

      <section anchor="scope-constraint" numbered="true" toc="default">
        <name>Scope Constraint</name>
        <t>A child agent's AllowedScopes <bcp14>MUST</bcp14> be a subset of the
        parent agent's AllowedScopes: every scope granted to the child
        <bcp14>MUST</bcp14> also be held by the parent.  A child <bcp14>MUST
        NOT</bcp14> be granted any scope the parent does not itself hold;
        scope escalation across agent hops is explicitly prohibited.
        Equality is permitted -- a child <bcp14>MAY</bcp14> be granted the
        same scope set as its parent, or fewer.</t>

        <t>Example:</t>
        <figure>
          <artwork type="ascii-art"><![CDATA[
   Parent has:  read:data, write:data
   Child gets:  read:data              -- valid
   Child gets:  read:data, write:data  -- valid (same as parent)
   Child gets:  admin:data             -- MUST be rejected
          ]]></artwork>
        </figure>

        <t>A scope is an opaque token.  Two scopes are the same scope when their
        octets are identical, and a relying party <bcp14>MUST NOT</bcp14>
        apply case folding, Unicode normalization, prefix matching, wildcard
        expansion, or any hierarchy: write:data does not imply read:data, and
        admin:* names nothing.  A scope <bcp14>MUST</bcp14> be between 1 and 64
        octets, each from the set of lowercase ASCII letters, ASCII digits,
        colon, underscore, and hyphen.  A relying party <bcp14>MUST</bcp14>
        refuse a document carrying a scope outside that syntax; the syntax is
        constrained so that byte comparison is also visual comparison, and a
        confusable character cannot name a scope that looks like another.</t>

        <t>What a scope grants access to -- a secrets store, a data set, a
        tool -- is resource-layer authorization and is outside this document,
        as the Abstract states.  This document bounds which scopes an agent
        may hold and how that bound narrows across a spawn; it does not define
        what any scope means.  A deployment that needs to express "this agent
        may read vault A" does so with a scope such as secrets:vault-a:read,
        carried in allowed_scopes, bounded by the parent's allowed_scopes, and
        interpreted by the resource that owns vault A.  The registry of
        <xref target="iana-scope-registry"/> exists so that such names can
        eventually mean the same thing across organizations.</t>

        <t>A collection of scopes is a set.  The order in which its members
        appear is not significant to any comparison in this document, and a
        collection carrying the same scope twice is malformed and
        <bcp14>MUST</bcp14> be refused.  The subset test above is therefore
        set containment, and two conforming implementations reach the same
        answer for the same two collections regardless of ordering.  Order is
        significant only to serialization: <xref target="RFC8785"/> preserves
        array order, so the octets a signature covers depend on it.  An
        implementation that reorders a collection before verifying it has
        changed those octets, and the signature fails; reordering is therefore
        not a normalization step.  Comparison is performed on the parsed set,
        verification on the octets as received.</t>

        <t>A request for no scopes <bcp14>MUST</bcp14> be refused.  The empty
        set is a subset of every set, so an empty request satisfies the
        containment test vacuously while declaring no intent for the test to
        bound.</t>

        <t>A child's ttl_seconds <bcp14>SHOULD NOT</bcp14> exceed its
        parent's.  A delegation that outlives its delegator holds authority
        derived from an agent that no longer exists; the parent's
        certificate may be renewed, but a child sized to outlast it was
        sized on the assumption that it would not need to be.</t>
      </section>

      <section anchor="audit-requirements" numbered="true" toc="default">
        <name>Audit Requirements</name>
        <t>Every spawn event, accepted or refused, <bcp14>MUST</bcp14> be
        recorded as an audit log entry: a JSON object carrying exactly the
        following members, subject to the presence rules the table states,
        serialized as <xref target="document-encoding"/> requires and hashed
        as <xref target="audit-integrity"/> requires.  The entry has no
        display names; wire names are given directly.</t>
        <table anchor="audit-entry-members">
          <name>Audit Log Entry Members</name>
          <thead>
            <tr><th>Member</th><th>Type</th><th>Content</th></tr>
          </thead>
          <tbody>
            <tr><td>spawning_agent_id</td><td>string</td><td>Identifier of the spawning agent, in the form of <xref target="identity-binding"/></td></tr>
            <tr><td>child_template_id</td><td>string</td><td>Subject of the requested child template, in the same form</td></tr>
            <tr><td>requested_scopes</td><td>array of string</td><td>The scopes the request asked for</td></tr>
            <tr><td>granted_scopes</td><td>array of string</td><td>The scopes issued; empty when outcome is DENIED</td></tr>
            <tr><td>spawn_nonce</td><td>string</td><td>The nonce of the request, per <xref target="replay-attacks"/></td></tr>
            <tr><td>grant_id</td><td>string</td><td>The GrantID of <xref target="grant-structure"/> when the spawn was requested under a grant; MUST be absent otherwise</td></tr>
            <tr><td>timestamp</td><td>string</td><td>The instant the Registry recorded the outcome, per <xref target="RFC3339"/>, in UTC</td></tr>
            <tr><td>outcome</td><td>string</td><td>ALLOWED or DENIED, exactly</td></tr>
            <tr><td>reason</td><td>string</td><td>The step of <xref target="spawn-validation-sequence"/> that refused the request, and why; REQUIRED when outcome is DENIED, MUST be absent otherwise</td></tr>
            <tr><td>previous_hash</td><td>string</td><td>The entry_hash of the preceding entry, lowercase hexadecimal; sixty-four zero digits for the first entry of a log</td></tr>
            <tr><td>entry_hash</td><td>string</td><td>SHA-256 over the canonical form of every other member of this entry, lowercase hexadecimal, per <xref target="audit-integrity"/></td></tr>
          </tbody>
        </table>
        <t>A refused request is recorded for the same reason an accepted one
        is: a sequence of refusals is the evidence of an attempt, and a log
        that records only successes cannot show one.</t>
      </section>

      <section anchor="spawn-provenance" numbered="true" toc="default">
        <name>Encoding of Spawn Provenance</name>
        <t>Step 5 of <xref target="spawn-validation-sequence"/> issues a child
        certificate carrying its parent's identity, the time of the spawn, and
        the nonce of the request that produced it.  These <bcp14>MUST</bcp14>
        be carried in a single X.509 extension, marked critical for the
        reason given in <xref target="static-field-encoding"/>, identified by
        the object identifier 1.3.6.1.4.1.67648.2 (<xref target="iana-oid"/>)
        and referred to in this document as the Agent Spawn extension.  It is
        encoded exactly as the Agent Template extension of
        <xref target="static-field-encoding"/>: a DER OCTET STRING containing
        the UTF-8 JCS serialization of a JSON object, subject to the same rules
        on criticality, duplicate members, duplicate extensions, size limits,
        and parse ordering.</t>

        <table anchor="spawn-members">
          <name>Agent Spawn Extension Members</name>
          <thead>
            <tr><th>Member</th><th>Type</th><th>Content</th></tr>
          </thead>
          <tbody>
            <tr><td>parent_agent_id</td><td>string</td><td>The parent's identifier, in the form required by <xref target="identity-binding"/></td></tr>
            <tr><td>spawned_at</td><td>string</td><td>The instant of issuance, per <xref target="RFC3339"/>, in UTC</td></tr>
            <tr><td>spawn_nonce</td><td>string</td><td>The nonce of the spawn request, per <xref target="replay-attacks"/></td></tr>
            <tr><td>grant_id</td><td>string</td><td>The GrantID of the grant under which the spawn was authorized (<xref target="grant-structure"/>); REQUIRED when the child template is owned by an organization other than the spawning agent's, MUST be absent otherwise</td></tr>
          </tbody>
        </table>

        <t>parent_agent_id, spawned_at and spawn_nonce are
        <bcp14>REQUIRED</bcp14> when the extension is present; grant_id is
        present exactly when the spawn was cross-organizational, and a relying
        party <bcp14>MUST</bcp14> refuse a certificate that carries it for a
        child owned by the parent's own organization or omits it for one that
        is not.  A certificate for an agent that has a parent
        <bcp14>MUST</bcp14> carry the extension; a certificate for an agent that
        has none -- a root orchestrator -- <bcp14>MUST NOT</bcp14>.  A relying
        party validating a chain <bcp14>MUST</bcp14> refuse a certificate whose
        parent_agent_id names no agent in the chain, <bcp14>MUST</bcp14> refuse
        one whose parent_agent_id differs from the parent the chain document
        names for it, and <bcp14>MUST</bcp14> refuse a root whose certificate
        carries the extension.</t>

        <t>This is what makes a spawn chain cryptographically traceable rather
        than merely asserted.  A parent identifier carried only in a chain
        document is an unsigned claim beside a signed certificate: a child could
        name any parent it liked, and the containment of
        <xref target="scope-constraint"/> would be evaluated against whichever
        parent it chose.  Carrying the link in the certificate means the CA that
        issued the child attested to which agent spawned it, and that
        attestation is what the scope and spawn checks are evaluated
        against.</t>

        <t>The parent's Agent Template extension, not the child's Agent Spawn
        extension, is where the child's authority is bounded.  The Agent Spawn
        extension says who the parent is; the parent's certificate says what
        the parent may delegate.</t>

        <t>The absence of the Agent Spawn extension asserts that no agent
        spawned this one; it does not exempt the certificate from anything.  A
        root is legitimate for the same reason any agent certificate is: it was
        issued by the Template Registry CA from a template attested under
        <xref target="template-authoring"/>, and it chains to that CA under
        <xref target="certificate-profile"/>.  No party can declare itself a
        root, because no party other than the CA can issue a certificate that
        validates, and the CA issues only from attested templates.  A relying
        party verifies a root exactly as it verifies any other agent
        certificate.</t>

        <t>spawned_at and spawn_nonce record the request the Registry accepted.
        The freshness window of <xref target="replay-attacks"/> applies to that
        request, at the Registry, at the time it is made.  A relying party
        validating an issued certificate later <bcp14>MUST NOT</bcp14> apply
        the window to spawned_at: a certificate an hour old is as valid as one
        a second old, and its currency is governed by its validity period and
        its revocation state, not by when it was requested.  A relying party
        <bcp14>MUST</bcp14>, however, refuse a chain in which two certificates
        carry the same spawn_nonce.  That is a consistency check on the
        document, in the sense <xref target="spawn-validation-sequence"/> gives
        the term: what makes a nonce unique across every chain the Registry
        ever issues is that the Registry accepts each nonce once, under
        <xref target="replay-attacks"/>, and a relying party holding one chain
        cannot observe another.  An implementation <bcp14>MUST NOT</bcp14>
        present the document-local check as the enforcement of
        uniqueness.</t>

        <t>grant_id is what makes <xref target="unilateral-revocation"/>
        enforceable.  A grant can be revoked by its Grantor alone, and every
        certificate issued under it must then become untrusted; without a
        member naming the grant, nothing identifies those certificates.  With
        it, the Registry that issued them can revoke them, and a relying party
        in either organization learns of it through the revocation state the
        certificate already points to.</t>
      </section>

      <section anchor="delegated-requests" numbered="true" toc="default">
        <name>Delegated Requests</name>
        <t>This section applies whenever an agent presents a Delegation
        Token.  It does not define how the token is issued, which person it
        names, or how that person consented; those belong to the
        delegation layer.  It defines what a relying party accepts.</t>

        <t>Binding.  A Delegation Token presented by an agent
        <bcp14>MUST</bcp14> carry a confirmation ("cnf") claim bound to
        that agent's certificate, in one of two forms: "jkt" <xref
        target="RFC9449"/>, the JWK SHA-256 thumbprint <xref
        target="RFC7638"/> of the certificate's subject public key; or
        "x5t#S256" <xref target="RFC8705"/>, the SHA-256 thumbprint of the
        certificate.  The key an agent uses to prove possession of a token
        <bcp14>MUST</bcp14> be the private key of its agent certificate; a
        token bound to any other key is not bound to the agent.</t>

        <t>Token formats.  A relying party reads the claims this section
        names from the token itself when it is a JSON Web Token, and from
        token introspection <xref target="RFC7662"/> when it is opaque.  An
        introspection response carries the binding as "cnf" (<xref
        target="RFC9449"/>, Section 6.2; <xref target="RFC8705"/>, Section
        3.2) and the client as "client_id" (<xref target="RFC7662"/>,
        Section 2.2); a check whose claim the response omits fails.</t>

        <t>Issuers that cannot bind.  An authorization server that issues
        neither form of bound token cannot be the issuer of a Delegation
        Token under this section.  Its token can still be the input to a
        token exchange <xref target="RFC8693"/> at an authorization server
        that can bind: the agent presents it as the subject token, proving
        possession of its certificate's private key with a DPoP proof
        (<xref target="RFC9449"/>, Section 5) or by mutual TLS (<xref
        target="RFC8705"/>), and receives a token bound to its
        certificate.  The relying party
        accepts only the bound token.</t>

        <t>Validation.  For every request that carries a Delegation Token, a
        relying party <bcp14>MUST</bcp14> perform each of the following
        checks and <bcp14>MUST</bcp14> refuse the request if any fails:</t>
        <ol>
          <li>Identity: validate the presenting agent's certificate as this
          document requires (<xref target="certificate-profile"
          format="default"/>, <xref target="revocation" format="default"/>).
          A revoked or expired certificate fails here.</li>
          <li>Possession: verify that the agent holds that certificate's
          private key on this request, by a DPoP proof <xref
          target="RFC9449"/> signed with it, whose "ath" is the hash of the
          token presented, or by mutual TLS <xref target="RFC8705"/> with
          that certificate.  A relying party <bcp14>MUST</bcp14> refuse a
          DPoP proof whose "jti" it has already accepted within the window
          in which it accepts that proof's "iat" (<xref target="RFC9449"/>,
          Section 11.1).  This is stricter than <xref target="RFC9449"/>,
          which leaves single use to the server, because a replayed proof
          here carries a person's delegated authority.  A relying party
          that runs several servers meets it with "jti" state shared by all
          of them, or with
          nonces it provides (<xref target="RFC9449"/>, Section 9) that
          are single use and accepted only by the server that issued
          them.  A relying party's record of accepted proofs
          <bcp14>MUST</bcp14> survive its restart, or after a restart it
          <bcp14>MUST</bcp14> refuse proofs whose "iat" is earlier than the
          restart; when it cannot consult that record, it
          <bcp14>MUST</bcp14> refuse the proof.</li>
          <li>Token: validate the token itself: the issuer's signature, the
          issuer, the audience and the validity times, or, for an opaque
          token, an introspection response showing it active.  Checks 4 to
          6 read claims only from a token that has passed this check.  For
          a token that is a JWT, and for the DPoP proof of check 2, a relying
          party <bcp14>MUST</bcp14> refuse an "alg" of "none" and any
          algorithm outside the set it has configured for that issuer or key,
          and <bcp14>MUST</bcp14> use each key with exactly one algorithm,
          refusing a header that names any other
          (<xref target="RFC8725"/>, Section 3.1; for the proof,
          <xref target="RFC9449"/>, Section 4.3).</li>
          <li>Binding: verify that the token's "cnf" claim matches that
          certificate in one of the two forms above.</li>
          <li>Actor: verify that the token's acting party is the agent
          named in that certificate (<xref target="identity-binding"
          format="default"/>).  The acting party is the "sub" member of
          the token's outermost "act" claim (<xref target="RFC8693"/>,
          Section 4.1) when the token carries one, and otherwise the client
          the token was issued to.  For each issuer it accepts, a relying
          party <bcp14>MUST</bcp14> be configured with the one claim that
          carries that client: "client_id" (<xref target="RFC9068"/>,
          Section 2.2) by default, or the claim the issuer documents in its
          place (for example, "azp").  It <bcp14>MUST NOT</bcp14> take the
          client from any other claim, and a token without the configured
          claim fails.  It <bcp14>MUST</bcp14> map each acting-party
          identifier it accepts, per issuer, to exactly one agent identifier
          by registration made before any token naming it is accepted; an
          unregistered acting party fails.</li>
          <li>Lifetime: verify that the token does not expire after the
          certificate does.</li>
        </ol>

        <t>Consequences.  An agent <bcp14>MUST NOT</bcp14> pass a Delegation
        Token it holds to another agent, and a parent <bcp14>MUST
        NOT</bcp14> pass one to a child.  A relying party enforces this
        without trusting either agent: the receiving agent has a different
        certificate and key, so even with a valid proof of its own it fails
        checks 4 and 5, and replaying the holder's proof fails check 2.  A spawned child
        acting for the same person presents a token bound to its own
        certificate, obtained through the delegation layer, or presents
        none.  When an agent certificate is revoked or expires, every token
        bound to it stops working at check 1.  When an agent certificate is
        renewed with a new key, every token bound to the old key fails check
        4 (in the "x5t#S256" form, every renewal does, since the
        certificate's thumbprint changes); the agent obtains new tokens bound
        to the new certificate.</t>

        <t>Note: a server that checks a DPoP proof's "htu" behind a proxy
        that terminates TLS needs the public URI the client used, either
        configured or taken from forwarding headers it accepts only from
        that proxy.  Otherwise, where its internal address differs from the
        public one, it refuses every proof.  Likewise, an issuer may need
        configuring before it writes the client claim a relying party is
        configured to read in check 5; confirm that it does.</t>
      </section>
    </section>

    <section anchor="dynamic-policy-governance" numbered="true" toc="default">
      <name>Dynamic Policy Governance</name>

      <section anchor="two-lane-model" numbered="true" toc="default">
        <name>Two-Lane Model</name>
        <t>Template certificate (static): WHO the agent is and WHO it
        can spawn.  Changes require full re-certification.</t>

        <t>Dynamic policy (fast lane): WHAT the agent can do within
        the bounds of the template certificate.  Changes require
        dual signature (<xref target="dual-signature"/>).</t>

        <t>Dynamic policies <bcp14>MUST NOT</bcp14> exceed the bounds defined in the
        static template certificate.</t>
      </section>

      <section anchor="ownership" numbered="true" toc="default">
        <name>Ownership</name>
        <t>Template ownership <bcp14>MUST</bcp14> be established at certificate signing
        time and embedded in the Owner and OrgID fields.  Only the
        verified owner of the organization that signed the template
        <bcp14>MAY</bcp14> submit policy changes.  Verified means holding the
        private key of the Owner certificate of
        <xref target="template-dual-signature"/>, whose subject common name
        equals the template's Owner field; no other form of verification is
        defined by this document.</t>
      </section>

      <section anchor="dual-signature" numbered="true" toc="default">
        <name>Dual Signature Requirement</name>
        <t>Every policy change <bcp14>MUST</bcp14> be signed by two independent parties:</t>

        <ol>
          <li>Owner -- proves the right to change the policy.</li>
          <li>Policy Authority -- proves the policy passed automated
          validation gates.</li>
        </ol>

        <t>Neither signature alone is sufficient.  Both <bcp14>MUST</bcp14> be present
        and valid for a policy to be accepted.</t>

        <figure>
          <artwork type="ascii-art"><![CDATA[
   Owner key  +  Policy Authority key  =  policy accepted
       ^                  ^
   who owns it        passed the gates
          ]]></artwork>
        </figure>
      </section>

      <section anchor="policy-document-structure" numbered="true" toc="default">
        <name>Dynamic Policy Document Structure</name>
        <t>A dynamic policy document <bcp14>MUST</bcp14> contain the following
        fields.  This is the complete set; a document containing any other field
        <bcp14>MUST</bcp14> be refused, since an unrecognized field is either
        meaningless or an attempt to convey authority the profile does not
        define.</t>
        <table anchor="policy-fields">
          <name>Dynamic Policy Document Fields</name>
          <thead>
            <tr><th>Field</th><th>Type</th><th>Required</th><th>Description</th></tr>
          </thead>
          <tbody>
            <tr><td>Subject</td><td>string</td><td>REQUIRED</td><td>Identifier of the agent this policy governs; MUST match the Subject of the template certificate</td></tr>
            <tr><td>Owner</td><td>string</td><td>REQUIRED</td><td>Submitting owner; MUST match Owner in the template certificate</td></tr>
            <tr><td>OrgID</td><td>string</td><td>REQUIRED</td><td>Submitting organization; MUST match OrgID in the template certificate</td></tr>
            <tr><td>Scopes</td><td>array of string</td><td>REQUIRED</td><td>Scopes granted by this policy; bounded by AllowedScopes</td></tr>
            <tr><td>SpawnTargets</td><td>array of string</td><td>OPTIONAL</td><td>Spawn targets granted by this policy, each a template Subject in the form of <xref target="identity-binding"/>; bounded by CanSpawn.  Absent means none are granted, and a spawn request is then refused at step 3 of <xref target="spawn-validation-sequence"/></td></tr>
            <tr><td>Version</td><td>integer</td><td>REQUIRED</td><td>Monotonically increasing integer, scoped to Subject</td></tr>
            <tr><td>IssuedAt</td><td>string</td><td>REQUIRED</td><td>Timestamp of issuance, per <xref target="RFC3339"/></td></tr>
            <tr><td>NotAfter</td><td>string</td><td>OPTIONAL</td><td>Expiry of this policy, per <xref target="RFC3339"/>; MUST NOT be later than the notAfter of the certificate the policy governs.  Absent means equal to it</td></tr>
            <tr><td>Hours</td><td>array of string</td><td>OPTIONAL</td><td>When the agent may act under this policy (<xref target="time-windows"/>); bounded by AllowedHours.  Absent means this policy adds no time constraint</td></tr>
            <tr><td>HoursZone</td><td>string</td><td>OPTIONAL</td><td>Time zone in which Hours is read; MUST be present exactly when Hours is, and MUST equal AllowedHoursZone when the template carries AllowedHours</td></tr>
          </tbody>
        </table>
        <t>Version is scoped to the Subject, not global.  A relying party
        <bcp14>MUST</bcp14> refuse a policy whose Version is not strictly greater
        than the Version of the policy currently in force for that Subject.</t>
        <t>A policy is never valid beyond the notAfter of the certificate it
        governs, whether or not NotAfter is present.  NotAfter can only shorten
        that period.  A relying party <bcp14>MUST</bcp14> treat an absent
        NotAfter as equal to the certificate's notAfter, <bcp14>MUST</bcp14>
        refuse a policy whose NotAfter is later than it, and
        <bcp14>MUST</bcp14> refuse a policy presented after either has
        passed.</t>
        <t>A policy is not valid before it was issued.  A relying party
        <bcp14>MUST</bcp14> refuse a policy whose IssuedAt is later than its
        own clock by more than the 60-second freshness window of
        <xref target="replay-attacks"/>; the window allows for clocks that
        differ slightly, and nothing more.  Every layer then has both ends of
        its period: the policy from IssuedAt to its NotAfter, the
        certificate from notBefore to notAfter.</t>
      </section>

      <section anchor="canonicalization" numbered="true" toc="default">
        <name>Canonicalization</name>
        <t>Signatures and hashes defined by this document are computed over
        bytes, so the mapping from a policy document to those bytes
        <bcp14>MUST</bcp14> be deterministic and identical across
        implementations.</t>
        <t>Wherever this document requires a canonical form -- of a policy
        document, of any field subset thereof, or of an audit log entry -- that
        canonical form <bcp14>MUST</bcp14> be the JSON Canonicalization Scheme
        (JCS) serialization defined in <xref target="RFC8785"/>.  A single
        canonical form is specified for all of them deliberately: an
        implementation carrying two serializations will eventually apply the
        wrong one, and the resulting failure presents as a signature or integrity
        error with no indication that serialization was the cause.</t>
        <t>JCS is specified rather than described here because a bespoke
        serialization would require this document to define property ordering,
        string escaping, and number formatting correctly and completely, and any
        error in that definition surfaces to implementers as a signature failure
        that appears to be a cryptographic fault.  Serializations that differ
        only in whitespace, key order, or the escaping of non-ASCII characters
        produce different bytes and therefore different signatures; implementers
        <bcp14>MUST NOT</bcp14> assume a language's default JSON encoder produces
        the canonical form, as most do not.</t>
      </section>

      <section anchor="signature-coverage" numbered="true" toc="default">
        <name>Signature and Hash Coverage</name>
        <t>Both signatures required by <xref target="dual-signature"/> are
        computed over the preimage defined in <xref target="signature-envelope"/>:
        the canonical form (<xref target="canonicalization"/>) of body.  Because
        <xref target="policy-document-structure"/> makes its table the complete
        content of body, every field in that table is inside the preimage and
        none is excluded from either signature.  This section and
        <xref target="signature-envelope"/> describe the same octets.</t>
        <t>The Owner and Policy Authority certificates behind a policy's
        signatures are validated as <xref target="template-issuance"/>
        validates a template's: as of the policy's time of attestation, the
        time at which it was first verified and stored in step 4 of
        <xref target="policy-change-sequence"/>, under the same rules on
        revocation and compromise.  A relying party that cannot obtain a
        policy's time of attestation from the Registry over a channel it
        authenticates <bcp14>MUST</bcp14> validate those certificates as of
        the time of validation.  The fallback of
        <xref target="template-issuance"/>, the notBefore of the certificate
        being validated, does not serve here: a policy carries no time issued
        by the CA, and an earlier instant could precede a compromise of the
        signers' keys.</t>
        <t>In particular, Version <bcp14>MUST</bcp14> be inside the signed
        preimage.  Version exists to prevent replay, and it cannot serve that
        purpose while it remains modifiable without invalidating a signature: an
        attacker holding no key can otherwise take a superseded but validly
        signed policy, increment its Version, and present it as current.  Both
        signatures verify, the content hash matches, and the version reads as
        current.  The same reasoning applies to Subject: a signature that does
        not bind the policy to the agent it governs permits a policy issued for
        one agent to be presented for another.</t>
        <t>The content hash is a member of the envelope of a dynamic policy
        document only.  It is <bcp14>REQUIRED</bcp14> there, because step 4 of
        <xref target="policy-change-sequence"/> stores the policy and step 5
        re-reads it, and a stored document wants an integrity value that is
        cheaper to check than two signatures; it <bcp14>MUST</bcp14> be absent
        from the envelope of a template or a grant, which are verified on
        presentation and whose signatures already cover the same octets.  The
        content hash <bcp14>MUST</bcp14> be SHA-256, or a stronger digest,
        computed over the same canonical form and the same field set as the
        signatures.  The hash
        field itself is stored alongside the policy document and
        <bcp14>MUST NOT</bcp14> be included in its own preimage.  The content
        hash is a derived value: a relying party <bcp14>MUST</bcp14> recompute
        it from body and refuse the document on a mismatch, and
        <bcp14>MUST NOT</bcp14> use the envelope's content_hash as an input to
        any decision.  A modified content_hash therefore causes a refusal and
        nothing else; it is not a value a signature needs to protect, because
        the signature already covers everything the hash summarizes.</t>
        <t>The signatures and the content hash are carried in the envelope of
        <xref target="signature-envelope"/>, outside the policy document they
        attest to.  A relying party <bcp14>MUST</bcp14> refuse a policy document
        that carries any of them as a policy field: they are not in
        <xref target="policy-document-structure"/>, and a value inside body
        would be inside its own preimage.</t>
      </section>

      <section anchor="policy-change-sequence" numbered="true" toc="default">
        <name>Policy Change Sequence</name>
        <figure>
          <artwork type="ascii-art"><![CDATA[
   1.  Identity and ownership verification
       - requester matches Owner in template certificate?
       - requester OrgID matches certificate OrgID?
       NO  --> rejected, audit logged

   2.  Automated gate (policy engine):
       - scope within AllowedScopes?
       - spawn targets within CanSpawn?
       - no conflicts with active policies?
       ANY FAIL --> rejected

   3.  Dual signature applied:
       Owner signs, Policy Authority countersigns

   4.  Policy stored with dual signature, version, timestamp,
       and content hash

   5.  Relying party validates at runtime:
       - both signatures valid?
       - version current? (replay prevention)
       - hash matches? (tamper detection)
       - policy within template certificate bounds?
       ANY FAIL --> DENY, audit logged
          ]]></artwork>
        </figure>
        <t>In step 5, "both signatures valid" means valid as of the policy's
        time of attestation (<xref target="signature-coverage"/>).</t>
      </section>

      <section anchor="threat-coverage" numbered="true" toc="default">
        <name>Threat Coverage</name>
        <table>
          <thead>
            <tr><th>Scenario</th><th>Single Sig Gap</th><th>Dual Sig Fix</th></tr>
          </thead>
          <tbody>
            <tr>
              <td>Rogue Policy Authority</td>
              <td>Pushes bad policy</td>
              <td>Owner key missing</td>
            </tr>
            <tr>
              <td>Rogue owner</td>
              <td>Bypasses automated gates</td>
              <td>PA won't countersign</td>
            </tr>
            <tr>
              <td>Compromised owner key</td>
              <td>Attacker modifies</td>
              <td>Automated gates enforced</td>
            </tr>
            <tr>
              <td>Compromised Policy Auth</td>
              <td>Pushes bad policy</td>
              <td>Owner key missing</td>
            </tr>
          </tbody>
        </table>

        <t>The table above concerns the dual signature.  The following concerns
        the encodings this document specifies, and the attack each one closes.</t>

        <table anchor="encoding-threats">
          <name>Encoding Threat Coverage</name>
          <thead>
            <tr><th>Scenario</th><th>Without the encoding</th><th>With it</th></tr>
          </thead>
          <tbody>
            <tr><td>Replayed Owner signature</td><td>An Owner signature over anything other than the policy body verifies for every later policy on that agent; a rogue Policy Authority reuses it</td><td>Both signatures cover the same body (<xref target="signature-envelope"/>); a signature is specific to one policy</td></tr>
            <tr><td>Replayed policy</td><td>A superseded but validly signed policy is presented as current</td><td>Version is inside the preimage and must exceed the version in force (<xref target="policy-document-structure"/>)</td></tr>
            <tr><td>Swapped template</td><td>A valid certificate is presented beside a template granting authority the CA never issued</td><td>Static fields live in the certificate (<xref target="static-field-encoding"/>); there is no separate template to swap</td></tr>
            <tr><td>Forged parent</td><td>A child names whichever parent gives it the widest scope; containment is evaluated against that parent</td><td>The parent link is in the child's certificate, attested by the CA (<xref target="spawn-provenance"/>)</td></tr>
            <tr><td>Mismatched identity</td><td>A chain names one agent and presents a certificate issued to another; both validate on their own terms</td><td>Every restatement must equal the subject CN (<xref target="identity-binding"/>)</td></tr>
            <tr><td>Silent parser disagreement</td><td>Two parsers keep different duplicates of a key and both report success</td><td>Duplicate detection is a parser requirement (<xref target="document-encoding"/>)</td></tr>
            <tr><td>Unlocatable revocation</td><td>Revocation must be consulted but the certificate does not say where</td><td>A cRLDistributionPoints or OCSP pointer, or a registry configured for the issuing CA, is required (<xref target="revocation-discovery"/>)</td></tr>
            <tr><td>Spawn under a revoked grant</td><td>A grant is revoked and nothing identifies the certificates issued under it</td><td>grant_id in the Agent Spawn extension; the issuing Registry revokes them (<xref target="unilateral-revocation"/>)</td></tr>
            <tr><td>Spawn the policy withdrew</td><td>A policy grants no spawn targets and the agent spawns everything its certificate's CanSpawn allows</td><td>SpawnTargets is a step of the spawn sequence (<xref target="spawn-validation-sequence"/>)</td></tr>
          </tbody>
        </table>
      </section>
    </section>

    <section anchor="template-versioning" numbered="true" toc="default">
      <name>Template Versioning</name>

      <section anchor="full-re-verification" numbered="true" toc="default">
        <name>Full Re-Verification Required</name>
        <t>A new template version <bcp14>MUST</bcp14> undergo full re-verification from
        scratch.  Trust <bcp14>MUST NOT</bcp14> be inherited from a previous version.</t>

        <t>Rationale: inheriting trust from v1 would allow a compromised
        v1 certificate to bootstrap trust for v2.</t>

        <t>A new version keeps the template's Subject and receives a new
        certificate.  The Registry <bcp14>MUST</bcp14> revoke the prior
        certificate when it issues the new one, and <bcp14>MUST</bcp14>
        publish that revocation where <xref target="revocation-discovery"/>
        says relying parties find it, so that one identity never
        has two valid certificates; a relying party that encounters two
        unrevoked certificates for one Subject <bcp14>MUST</bcp14> refuse
        both.</t>

        <t>A new version does not come only from a change of terms.  When the
        rules a Registry or a relying party verifies against change, so that
        an existing attestation no longer passes them, that attestation is
        not grandfathered: certificates issued under it <bcp14>MUST</bcp14>
        be refused under the new rules, as any non-conforming template would
        be.  The only way forward is a fresh attestation of the same terms,
        which is a new version under this section and receives a new
        certificate as above.  A relying party that holds the attestation
        verifies it under its own current rules; one that does not learns
        that it is refused through the revocation of the certificates issued
        under it (<xref target="revocation"/>).</t>
      </section>

      <section anchor="versioning-principle" numbered="true" toc="default">
        <name>Versioning Principle</name>
        <t>Until the new version is fully verified and its certificate
        issued, the prior certificate remains the identity's only valid
        certificate and works unchanged.  Issuing the new certificate revokes
        the prior one (<xref target="full-re-verification"/>); the two are
        never valid together.  New connections and functionality are opt-in
        -- only available after the new version is fully verified and
        explicitly adopted -- and nothing listed in
        <xref target="non-inheritance-rules"/> carries over to it.</t>
      </section>

      <section anchor="non-inheritance-rules" numbered="true" toc="default">
        <name>Non-Inheritance Rules</name>
        <t>The following <bcp14>MUST NOT</bcp14> be inherited from a previous version:</t>
        <ul>
          <li>Trust chain</li>
          <li>Cross-organizational grants</li>
          <li>CanSpawn list</li>
          <li>Dynamic policies</li>
        </ul>
      </section>

      <section anchor="template-lifecycle" numbered="true" toc="default">
        <name>Template Lifecycle</name>
        <dl>
          <dt>ACTIVE:</dt>
          <dd>Template is trusted.  New spawns accepted.</dd>
          <dt>DISABLED:</dt>
          <dd>No new spawns.  Existing agents run to TTL expiry.  Reversible.</dd>
          <dt>DELETED:</dt>
          <dd>Certificate revoked, CRL updated, registry entry removed.
          Irreversible.  Audit log preserved.</dd>
        </dl>

        <t>A DELETED template's Subject and the public key of its last
        certificate <bcp14>MUST NOT</bcp14> be reused: the Registry
        <bcp14>MUST</bcp14> refuse a new template with that Subject and a CSR
        for that key.  The audit log names the identity for good, and a new
        agent under an old name or an old key would inherit a history that
        is not its own.</t>

        <t>DISABLED is a Registry state, not a revocation.  It is reported by
        the Registry in Check 2 of <xref target="two-check-rule"/> and is not
        carried in a CRL.  Because only the Registry performs spawns, no
        other party needs to distinguish DISABLED from ACTIVE: a relying
        party validating an existing agent's certificate consults revocation
        state as usual, and an agent issued under a template that is later
        DISABLED remains valid until its TTL or its revocation.</t>

        <t>Disable <bcp14>SHOULD</bcp14> precede delete.  Implementations <bcp14>SHOULD</bcp14> enforce
        a mandatory waiting period between DISABLED and DELETED.</t>
      </section>

      <section anchor="cross-org-grant-reissuance" numbered="true" toc="default">
        <name>Cross-Organizational Grant Re-Issuance</name>
        <t>Cross-organizational grants <bcp14>MUST</bcp14> be explicitly re-issued for
        each new template version.  Grants <bcp14>MUST NOT</bcp14> automatically roll
        over on version upgrade.  A grant names its template by Subject,
        which every version keeps, so a grant covers the version that was
        current when the grant was issued: the Grantor's Registry
        <bcp14>MUST</bcp14> refuse a spawn under a grant whose IssuedAt
        precedes the time of attestation of the template's current
        version.</t>
      </section>
    </section>

    <section anchor="cross-org-interaction" numbered="true" toc="default">
      <name>Cross-Organizational Agent Interaction</name>

      <section anchor="explicit-grant" numbered="true" toc="default">
        <name>Explicit Grant Requirement</name>
        <t>Cross-organizational agent spawning <bcp14>MUST</bcp14> be explicitly authorized
        by the resource-owning organization.  No implicit trust exists
        between organizations.</t>

        <t>A grant is a bilateral agreement between two organizations,
        signed under dual control on the Grantor's side and revocable by the
        Grantor alone (<xref target="unilateral-revocation"/>).  Work in
        progress on crossing trust domains requires such an agreement to
        exist before anything crosses, and leaves how it is established out
        of scope (<xref target="related-work"/>).  A deployment can use a
        grant as the signed record of that agreement for the agents it
        covers.</t>
      </section>

      <section anchor="grant-structure" numbered="true" toc="default">
        <name>Grant Structure</name>
        <t>A cross-organizational grant <bcp14>MUST</bcp14> contain exactly the
        following fields:</t>
        <table anchor="grant-fields">
          <name>Cross-Organizational Grant Fields</name>
          <thead>
            <tr><th>Field</th><th>Type</th><th>Description</th></tr>
          </thead>
          <tbody>
            <tr><td>GrantID</td><td>string</td><td>Identifier of this grant: a UUID in the form of <xref target="identity-binding"/>, unique among the grants the Grantor has issued</td></tr>
            <tr><td>Grantor</td><td>string</td><td>OrgID of the resource-owning organization</td></tr>
            <tr><td>Grantee</td><td>string</td><td>OrgID of the requesting organization</td></tr>
            <tr><td>Template</td><td>string</td><td>Subject of the template granted, in the form of <xref target="identity-binding"/></td></tr>
            <tr><td>AllowedScopes</td><td>array of string</td><td>MUST be a subset of the template's AllowedScopes</td></tr>
            <tr><td>IssuedAt</td><td>string</td><td>Instant of issuance, per <xref target="RFC3339"/>, in UTC</td></tr>
            <tr><td>TTL</td><td>integer</td><td>Grant validity period in seconds, counted from IssuedAt</td></tr>
            <tr><td>MaxSpawns</td><td>integer</td><td>Maximum concurrent agents permitted under this grant</td></tr>
          </tbody>
        </table>
        <t>Wire names are given in <xref target="wire-name-map"/>.  A grant is
        signed as specified in <xref target="signature-envelope"/>, by the
        grantor's Owner and Policy Authority; the signatures are envelope
        members and are not fields of the grant.</t>
        <t>A grant expires at IssuedAt plus TTL seconds.  A relying party
        <bcp14>MUST</bcp14> refuse a grant whose expiry has passed, and
        <bcp14>MUST</bcp14> refuse one whose IssuedAt is later than its own
        clock by more than the freshness window of <xref target="replay-attacks"/>.
        A duration with no stated origin has no expiry two parties can agree
        on; IssuedAt is the origin.</t>
        <t>A cross-organizational spawn is evaluated and issued by the
        Grantor's Registry, which owns the template and the CA that issues
        against it.  That Registry holds the count compared against MaxSpawns
        and <bcp14>MUST</bcp14> enforce it atomically with recording the
        spawn, exactly as <xref target="spawn-validation-sequence"/> requires
        of MaxChildren.  The Grantee's organization performs no part of the
        issuance and cannot enforce the cap.</t>
      </section>

      <section anchor="trust-anchor-options" numbered="true" toc="default">
        <name>Trust Anchor Options</name>
        <dl>
          <dt>Federated CA:</dt>
          <dd>Both organizations trust a shared root CA.</dd>
          <dt>Explicit CA trust:</dt>
          <dd>Org-B explicitly trusts Org-A's CA.</dd>
          <dt>Third-party CA:</dt>
          <dd>Both organizations use a public CA.</dd>
        </dl>
        <t>Which option applies is deployment policy.  Under each, a relying
        party in the Grantee organization <bcp14>MUST</bcp14> hold a trust
        anchor for the Grantor's Template Registry CA and
        <bcp14>MUST</bcp14> validate the Grantor's Owner and Policy Authority
        certificates to it, as <xref target="template-dual-signature"/>
        requires, before accepting a grant's signatures, as of the time of
        validation: like a policy, a grant carries no time issued by the
        CA.  A grant whose
        signatures cannot be validated to a trust anchor the relying party
        holds <bcp14>MUST</bcp14> be refused.</t>
      </section>

      <section anchor="unilateral-revocation" numbered="true" toc="default">
        <name>Unilateral Revocation</name>
        <t>The granting organization <bcp14>MAY</bcp14> revoke a cross-organizational grant
        without the cooperation of the receiving organization.  Upon
        revocation, all agents spawned under the affected grant <bcp14>MUST</bcp14> be
        treated as untrusted on next validation.  The Grantor's Registry
        issued every such certificate, and each carries the grant's GrantID in
        its Agent Spawn extension (<xref target="spawn-provenance"/>).  On
        revoking a grant the Registry <bcp14>MUST</bcp14> revoke, under
        <xref target="revocation"/>, every unexpired certificate whose
        grant_id names it, and <bcp14>MUST</bcp14> refuse further spawn
        requests under it.  A relying party in either organization then learns
        of the revocation through the revocation state the certificate itself
        points to (<xref target="revocation-discovery"/>), and needs no
        channel to the Grantor beyond that.</t>
      </section>

      <section anchor="federated-audit" numbered="true" toc="default">
        <name>Federated Audit</name>
        <t>Each organization <bcp14>MUST</bcp14> maintain its own independent audit trail.
        Audit records <bcp14>MUST NOT</bcp14> depend on the other organization's systems.</t>
      </section>
    </section>

    <section anchor="revocation" numbered="true" toc="default">
      <name>Revocation</name>

      <section anchor="template-revocation" numbered="true" toc="default">
        <name>Template Revocation</name>
        <t>Template revocation <bcp14>MUST</bcp14> be performed by recording the
        template certificate as revoked in the CA's revocation state -- an
        X.509 CRL, an OCSP responder, or an equivalent revocation registry
        consulted on every validation.  All agent certificates derived
        from a revoked template <bcp14>MUST</bcp14> be treated as untrusted on the
        next revocation check.</t>
      </section>

      <section anchor="individual-agent-revocation" numbered="true" toc="default">
        <name>Individual Agent Revocation</name>
        <t>Individual agents <bcp14>MAY</bcp14> be revoked by explicit certificate
        revocation or, outside this document, by removal of authorization
        relationships at the resource layer.</t>
      </section>

      <section anchor="automation-requirement" numbered="true" toc="default">
        <name>Automation Requirement</name>
        <t>Routine revocation (TTL expiry, task completion) <bcp14>MUST</bcp14> be fully
        automated.  Human involvement <bcp14>SHOULD</bcp14> be reserved for incident
        response and high-impact decisions.</t>
      </section>

      <section anchor="revocation-discovery" numbered="true" toc="default">
        <name>Locating Revocation State</name>
        <t>Where revocation state is published as an X.509 CRL or through an
        OCSP responder, every certificate issued under this specification --
        every agent certificate, whether a template certificate
        (<xref target="template-issuance"/>) or a child certificate
        (<xref target="spawn-chain-validation"/>), and every CA certificate
        in a certification path that ends in one -- <bcp14>MUST</bcp14> carry either
        the cRLDistributionPoints extension or the authorityInfoAccess
        extension with an id-ad-ocsp accessMethod, both as defined in
        <xref target="RFC5280"/>, and a relying party <bcp14>MUST</bcp14>
        refuse such a certificate carrying neither, because the obligation in
        <xref target="template-revocation"/> to consult revocation state on
        every validation cannot be discharged against a certificate that does
        not say where that state lives.</t>
        <t>A certificate that a relying party holds as its trust anchor is
        exempt: a self-signed root, or a CA certificate the relying party pins
        by configuration as one of the <xref target="trust-anchor-options"/>.
        Trust anchor information is an input to path validation, delivered
        out of band, and not part of the certification path
        (<xref target="RFC5280"/>, Section 6.1).  Such a certificate is
        revoked by removing it from that configuration.</t>
        <t>Where revocation state is instead an equivalent revocation registry,
        as <xref target="template-revocation"/> permits, a certificate carries
        no pointer to it, since X.509 defines none.  A relying party
        <bcp14>MUST</bcp14> then be configured with the registry for each
        issuing CA it trusts, <bcp14>MUST</bcp14> consult it on every
        validation, and <bcp14>MUST</bcp14> refuse a certificate whose issuing
        CA has neither a pointer in the certificate nor a configured
        registry.</t>
        <t>A relying party <bcp14>MUST NOT</bcp14> treat an unreachable
        revocation source as an absence of revocation.  This restates
        <xref target="fail-closed"/> and is stated again here because it is the
        requirement implementations most often relax under operational
        pressure.</t>
      </section>
    </section>

    <section anchor="failure-model" numbered="true" toc="default">
      <name>Failure Model</name>

      <section anchor="fail-closed" numbered="true" toc="default">
        <name>Fail Closed</name>
        <t>Any verification step that cannot be completed <bcp14>MUST</bcp14> result in
        DENY.  This includes:</t>
        <ul>
          <li>CA unreachable</li>
          <li>Registry unreachable</li>
          <li>CRL unreachable</li>
          <li>Certificate expired or revoked</li>
          <li>Policy store unreachable, or no policy in force</li>
          <li>Scope escalation attempt</li>
          <li>Policy invalid or unsigned</li>
          <li>Dual signature missing or invalid</li>
          <li>A policy decision point's permit that carries conditions,
          such as obligations, the relying party does not recognize or
          cannot carry out</li>
        </ul>
        <t>Implementations <bcp14>MUST NOT</bcp14> provide a degraded mode that allows
        partial spawning or execution when verification infrastructure
        is unavailable.</t>
      </section>
    </section>

    <section anchor="conformance-requirements" numbered="true" toc="default">
      <name>Conformance Requirements</name>

      <section anchor="field-placement" numbered="true" toc="default">
        <name>Field Placement</name>
        <t>Implementations <bcp14>MUST</bcp14> place every field in the location specified
        by this document: <xref target="document-encoding"/>,
        <xref target="static-field-encoding"/>,
        <xref target="spawn-provenance"/>,
        <xref target="policy-document-structure"/>,
        <xref target="grant-structure"/>, and
        <xref target="audit-requirements"/>.  Variable placement is not
        permitted.</t>
      </section>

      <section anchor="csr-validation" numbered="true" toc="default">
        <name>CSR Validation</name>
        <t>Non-conforming CSRs <bcp14>MUST</bcp14> be rejected by the CA.  A non-conforming
        template <bcp14>MUST NOT</bcp14> be signed.</t>
      </section>

      <section anchor="test-vectors" numbered="true" toc="default">
        <name>Test Vectors</name>
        <t>This document provides test vectors, concrete examples of valid and
        invalid chains and requests, in <xref target="vectors"/>.  An
        implementation claiming conformance <bcp14>SHOULD</bcp14> publish the
        results of running them, as <xref target="conformance-certification"/>
        describes.</t>
      </section>

      <section anchor="conformance-certification" numbered="true" toc="default">
        <name>Conformance Claims</name>
        <t>No conformance certification authority exists for this document.
        An implementation claiming conformance <bcp14>MUST</bcp14> state the
        revision it claims, as <xref target="implementation-status"/>
        describes, and <bcp14>SHOULD</bcp14> publish the results of running
        the test vectors of <xref target="test-vectors"/> against that
        revision.  A claim without a stated revision is not a conformance
        claim.</t>
      </section>

      <section anchor="reference-implementation" numbered="true" toc="default">
        <name>Reference Implementation</name>
        <t>A reference implementation <bcp14>SHOULD</bcp14> be made available including:</t>
        <ul>
          <li>Template Registry CA</li>
          <li>Spawn chain validation</li>
          <li>SDK with certificate chain validation, registry lookup,
          and CRL check handling</li>
          <li>Template linter for pre-submission CSR validation</li>
        </ul>
        
        <t>Known implementations are listed in
        <xref target="implementation-status"/>.</t>
      </section>
    </section>

    <section anchor="iana-considerations" numbered="true" toc="default">
      <name>IANA Considerations</name>

      <section anchor="iana-oid" numbered="true" toc="default">
        <name>Object Identifiers</name>
        <t>This document uses three object identifiers under the IANA Private
        Enterprise Number 67648, assigned to PhalanxAI Security LLC:</t>
        <ul>
          <li>1.3.6.1.4.1.67648.1: the Agent Template extension of
          <xref target="static-field-encoding"/>;</li>
          <li>1.3.6.1.4.1.67648.2: the Agent Spawn extension of
          <xref target="spawn-provenance"/>;</li>
          <li>1.3.6.1.4.1.67648.3: the WebAuthn Owner key purpose of
          <xref target="webauthn-owner"/>.</li>
        </ul>
        <t>Every arc of these identifiers fits in 64 bits.  The -03 revision
        placed both extensions under the UUID arc (2.25), whose final arc is
        128 bits long; some X.509 libraries cannot represent an arc that long
        and refuse any certificate carrying one, so a conforming certificate
        could not be read by a conforming implementation built on them.  A
        Private Enterprise Number is obtained through IANA's ordinary
        registration; this document asks IANA for no other action on object
        identifiers.  Should this document be adopted, the author is willing
        to replace them with identifiers under an arc the responsible working
        group prefers.</t>
      </section>

      <section anchor="iana-media-type" numbered="true" toc="default">
        <name>Media Type Registration</name>
        <t>IANA is requested to register the following media type in the "Media
        Types" registry, per <xref target="RFC6838"/>.</t>
        <dl>
          <dt>Type name:</dt><dd>application</dd>
          <dt>Subtype name:</dt><dd>a2a-policy+json</dd>
          <dt>Required parameters:</dt><dd>N/A</dd>
          <dt>Optional parameters:</dt><dd>N/A</dd>
          <dt>Encoding considerations:</dt><dd>binary; JSON is UTF-8 encoded and serialized per <xref target="RFC8785"/></dd>
          <dt>Security considerations:</dt><dd>See <xref target="security-considerations"/> of this document.</dd>
          <dt>Interoperability considerations:</dt><dd>N/A</dd>
          <dt>Published specification:</dt><dd>This document</dd>
          <dt>Applications that use this media type:</dt><dd>Multi-agent systems exchanging dynamic policy documents.</dd>
          <dt>Fragment identifier considerations:</dt><dd>N/A</dd>
          <dt>Additional information:</dt><dd>N/A</dd>
          <dt>Person and email address to contact for further information:</dt><dd>Tony Trujillo, founder@phalanxaisec.com</dd>
          <dt>Intended usage:</dt><dd>COMMON</dd>
          <dt>Restrictions on usage:</dt><dd>None</dd>
          <dt>Author:</dt><dd>Tony Trujillo</dd>
          <dt>Change controller:</dt><dd>IETF</dd>
        </dl>
      </section>

      <section anchor="iana-scope-registry" numbered="true" toc="default">
        <name>Agent Scope Registry</name>
        <t>IANA is requested to create a registry titled "A2A Agent Scopes", with
        a registration policy of Specification Required
        <xref target="RFC8126"/>.  Each entry carries a scope name, a
        description, and a reference.  The registry is initially empty; scope
        names not registered here are private to a deployment and
        <bcp14>MUST NOT</bcp14> be assumed to carry the same meaning across
        organizational boundaries.</t>
      </section>
    </section>

    <section anchor="implementation-status" numbered="true" toc="default">
      <name>Implementation Status</name>
      <t>This section records the status of known implementations of the protocol
      defined by this specification at the time of posting, as described in
      <xref target="RFC7942"/>.  It is meant to assist the IETF in its decision
      processes in progressing drafts to RFCs.  Please note that the listing of
      any individual implementation here does not imply endorsement by the IETF.
      Furthermore, no effort has been spent to verify the information presented
      here that was supplied by IETF contributors.  This is not intended as, and
      must not be construed to be, a catalog of available implementations or
      their features.  Readers are advised to note that other implementations may
      exist.</t>

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

      <t><em>This section is to be removed before publishing as an RFC.</em></t>

      <t>Three independent implementations exist at the time of writing.  Each
      states the revision it was written and verified against, and continues to
      state that revision until someone re-reads the newer text and re-runs the
      vectors.  An implementation pinned to an earlier revision remains a correct
      implementation of that revision; a version string is a conformance claim
      rather than a label, and advancing one without re-verifying asserts
      conformance nobody has tested.  Each is tagged in its repository at the
      commit implementing the revision named here.</t>

      <table anchor="implementations">
          <name>Known Implementations</name>
          <thead>
            <tr><th>Implementation</th><th>Revision</th><th>Notes</th></tr>
          </thead>
          <tbody>
            <tr>
              <td>a2a-trust-playground</td>
              <td>-04</td>
              <td>Browser implementation, no installation or backend.  Mints a
              Registry, attests and issues templates, and validates a chain
              against every check in this document, reporting the clause
              governing each refusal; presents delegated requests and runs the
              six checks of Section 10.6; publishes the test vectors of
              <xref target="vectors"/>.  In a browser it uses the DPoP form of Section 10.6
              only (not mutual TLS or introspection), verifies the WebAuthn
              form of Section 9.3 without a live security-key ceremony, and
              allows agent certificates of up to seven days so that its
              scenarios can show a child outliving its parent.  Tagged
              impl/draft-04; the implementations of -03 and -02 remain
              retrievable at tags impl/draft-03 and impl/draft-02.  Source:
              https://github.com/tonyt68/a2a-trust-playground</td>
            </tr>
            <tr>
              <td>ietf-a2a-trust-poc</td>
              <td>-00</td>
              <td>Registry CA, spawn validation and policy governance services.
              Tagged impl/draft-00.  Source:
              https://github.com/tonyt68/ietf-a2a-trust-poc</td>
            </tr>
            <tr>
              <td>hack-my-own-code</td>
              <td>-00</td>
              <td>Adversarial implementation that attacks its own conformance.
              Canonicalizes with a language-specific JSON serialization rather
              than the scheme required by <xref target="canonicalization"/>, so
              it does not conform to that section.  Tagged impl/draft-00.
              Source: https://github.com/tonyt68/hack-my-own-code</td>
            </tr>
          </tbody>
        </table>

      <t>All three are maintained by the author of this document.  They are
      independent in the sense that they share no code and were written against
      the specification text rather than against each other; they are not
      independent in the sense <xref target="RFC7942"/> most values, and a
      reviewer should weigh them accordingly.  An implementation by an unrelated
      party would be more informative than all three, and is actively
      sought.</t>
    </section>

    <section anchor="security-considerations" numbered="true" toc="default">
      <name>Security Considerations</name>

      <section anchor="scope-escalation" numbered="true" toc="default">
        <name>Scope Escalation</name>
        <t>Implementations <bcp14>MUST</bcp14> enforce at every hop that child
        agent scopes are a subset of parent scopes: child scopes are
        contained within parent scopes, and no scope may be introduced that
        the parent does not already hold.  Failure to enforce this
        allows privilege escalation across the agent chain.</t>
      </section>

      <section anchor="replay-attacks" numbered="true" toc="default">
        <name>Replay Attacks</name>
        <t>A spawn request <bcp14>MUST</bcp14> carry a timestamp and a nonce,
        both generated by the spawning agent.
        The timestamp <bcp14>MUST</bcp14> be an <xref target="RFC3339"/> instant
        in UTC.  The nonce <bcp14>MUST</bcp14> be at least 128 bits of output
        from a cryptographically secure random number generator, encoded as
        base64 <xref target="RFC4648"/>.  The nonce and timestamp of an accepted
        request are recorded in the child's Agent Spawn extension
        (<xref target="spawn-provenance"/>); those of every request, accepted
        or refused, are recorded in the audit log entry of
        <xref target="audit-requirements"/>.</t>
        <t>The Registry is the relying party for a spawn request.  It
        <bcp14>MUST</bcp14> record the nonce when the request carrying it is
        received, before any step of <xref target="spawn-validation-sequence"/>
        is evaluated, and <bcp14>MUST</bcp14> refuse a later request carrying
        the same nonce whatever became of the first.  A nonce is spent by being
        presented, not by being accepted: a request refused at any step has
        consumed its nonce, and a retry <bcp14>MUST</bcp14> carry a fresh one.
        Recording only accepted nonces would let a refused request be replayed
        until something changed and it was accepted, and a fresh nonce costs
        nothing to generate.</t>
        <t>A relying party <bcp14>MUST</bcp14> refuse a spawn request whose
        timestamp is more than 60 seconds from the relying party's own clock in
        either direction, and <bcp14>MUST</bcp14> refuse a request whose nonce it
        has already seen within that window.  A relying party
        <bcp14>MUST</bcp14> retain seen nonces for at least twice the freshness
        window.  Retaining them for exactly the window leaves a request
        replayable at the boundary, when the record has been discarded but the
        timestamp is still inside the window at the receiver.</t>
        <t>The window is specified rather than left to the deployment because a
        value chosen independently at each end is not a shared window, and the
        wider of the two is the one an attacker gets.  Accepting a request from
        the future by the same margin accommodates clock skew; an implementation
        that accepts only past timestamps will reject legitimate requests from a
        peer whose clock is marginally ahead.  The window assumes clocks
        synchronized to within a small fraction of it.  An operator whose
        clocks cannot meet that assumption <bcp14>MUST</bcp14> treat it as a
        failure condition under <xref target="fail-closed"/> rather than widen
        the window; a wider window is a longer replay opportunity for every
        party, not a fix for one party's clock.</t>
        <t>Sixty seconds tolerates the skew of any correctly administered clock
        -- NTP holds hosts within milliseconds -- and bounds the nonce
        retention obligation of a Registry to two minutes.  It is deliberately
        tighter than the five minutes Kerberos <xref target="RFC4120"/> adopted:
        that tolerance was sized for human-operated hosts with unsynchronized
        clocks, and a spawn request is a sub-second exchange between machines.
        A window sized for the former is a longer replay opportunity than the
        latter needs, and a peer whose clock is more than a minute wrong is not
        a peer to be accommodated.</t>
      </section>

      <section anchor="compromised-templates" numbered="true" toc="default">
        <name>Compromised Templates</name>
        <t>A compromised template certificate <bcp14>MUST</bcp14> be revoked immediately.
        A single CRL update invalidates all downstream agent certificates
        derived from that template.</t>
      </section>

      <section anchor="single-point-of-compromise" numbered="true" toc="default">
        <name>Single Point of Compromise</name>
        <t>The dual signature requirement (<xref target="dual-signature"/>) ensures no single
        compromised party can push unauthorized policy changes.  CA
        compromise requires full ecosystem re-issuance.</t>
        <t>Compromise of an Owner or Policy Authority key is handled by
        revoking its certificate under <xref target="revocation"/>.
        Which signatures survive is decided by
        <xref target="template-issuance"/>, which validates signers as of the
        time of attestation: an attestation the Registry recorded before the
        compromise date stands, because the recorded time separates it from
        anything signed later with the stolen key, and an attestation at or
        after that date is invalid.  Templates and policies whose
        attestations are invalid <bcp14>MUST</bcp14> be re-signed under
        replacement keys.</t>
      </section>

      <section anchor="cross-org-trust" numbered="true" toc="default">
        <name>Cross-Organizational Trust</name>
        <t>Cross-organizational grants <bcp14>MUST</bcp14> be explicitly issued.  Implicit
        trust between organizations is prohibited.</t>
      </section>

      <section anchor="pki-boundary" numbered="true" toc="default">
        <name>PKI Does Not Enforce Authorization</name>
        <t>Because agent identity is carried in X.509 certificates and the chain
        is verified on every validation, it is natural to assume the certificate
        chain also constrains what an agent may do.  It does not, and an
        implementation built on that assumption is unprotected while appearing
        rigorous.</t>
        <t>X.509 carries no representation of the scopes defined by this
        document.  AllowedScopes, CanSpawn and MaxChildren are conveyed in the
        template, and no certificate path validation algorithm inspects them.  A
        conformant X.509 validator presented with an agent certificate whose
        associated template claims scopes far beyond those its parent holds will
        report success, because the certificate is genuinely valid and correctly
        issued.  The over-scoping is not a defect the validator is looking
        for.</t>
        <t>The nameConstraints extension does not close this gap.  It constrains
        the namespace within which a CA may issue, not the authority a subject
        may claim once issued.  Likewise certificatePolicies expresses which
        policies a chain supports, not whether a child exceeded its parent, and
        policy processing is disabled by default in common implementations.</t>
        <t>Consequently <xref target="dynamic-policy-bounds"/> and
        <xref target="scope-constraint"/> are load-bearing implementation logic.
        They are not restatements of a property the certificate chain already
        guarantees, and an implementation that omits them because "the chain
        verifies" has no containment at all.  Certificate validity establishes
        identity.  Authorization is evaluated separately, every time.</t>
      </section>

      <section anchor="audit-integrity" numbered="true" toc="default">
        <name>Audit Integrity</name>
        <t>Audit logs <bcp14>MUST</bcp14> be tamper-evident.  Logs <bcp14>MUST NOT</bcp14> be deletable
        by agents or orchestrators.  Audit log infrastructure <bcp14>SHOULD</bcp14>
        be outside the control of the agent ecosystem itself.</t>
        <t>Each entry's hash <bcp14>MUST</bcp14> be computed as SHA-256, or a
        stronger digest, over the canonical form
        (<xref target="canonicalization"/>) of every member of
        <xref target="audit-entry-members"/> other than entry_hash -- that is,
        including previous_hash and excluding the entry's own hash.  As with
        policy documents, an unspecified preimage is not a detail: two
        implementations hashing different field sets each read the other's chain
        as broken, and a chain that cannot be verified across implementations
        provides no evidence to anyone but its author.</t>
</section>
    
      <section anchor="privacy-considerations" numbered="true" toc="default">
        <name>Privacy Considerations</name>
        <t>The Owner member of a template is carried inside a certificate that
        is presented to every relying party the agent ever contacts.  An
        Owner value that identifies a person -- an email address, as the
        examples in this document use for readability -- is therefore
        personal data disclosed to every counterparty.  Deployments
        <bcp14>SHOULD</bcp14> populate Owner with an identifier that is
        opaque outside the owning organization, and resolve it to a person
        only within that organization.</t>
        <t>A version 7 agent identifier discloses the agent's creation time
        to every party that sees the identifier, as
        <xref target="identity-binding"/> describes.  Audit records required
        by <xref target="audit-requirements"/> carry agent identifiers and
        scopes, and <xref target="federated-audit"/> places one such record
        in each organization party to a cross-organizational spawn; the
        OrgID of each is disclosed to the other by the grant itself.</t>
      </section>

      <section anchor="algorithm-agility" numbered="true" toc="default">
        <name>Algorithm Agility</name>
        <t>The signature algorithms of <xref target="signature-algorithms"/>
        and the key strength floor of <xref target="certificate-profile"/>
        are classical.  This document does not specify a post-quantum
        signature algorithm, because no X.509 profile for one had reached
        the stability this document requires at the time of writing.  The
        per-key-type mapping is the extension point: a future revision adds
        a row for a post-quantum key type without changing the envelope or
        any other structure, and a relying party that does not recognize a
        key type refuses the signature, which is the fail-closed outcome
        <xref target="fail-closed"/> requires.</t>
      </section>

      <section anchor="untrusted-input" numbered="true" toc="default">
        <name>Parsing Untrusted Input</name>
        <t>Every document this specification defines reaches a relying party
        from the party whose authority it describes, and is attacker-controlled
        input until a signature over it has been verified.
        <xref target="static-field-encoding"/> states this for the two
        certificate extensions; it applies equally to a signature envelope, a
        chain document, and a grant.  Three rules of this document exist for
        that reason and are restated here so that they are read as one
        defence.  The shape rules of <xref target="document-encoding"/> --
        flat objects, no duplicate members, exact wire names, a fixed member
        set -- mean a conforming parser accepts only the shapes this document
        defines and has nothing else to be confused by.  The size limits of
        <xref target="static-field-encoding"/> bound what a parser is asked
        to read.  And the ordering this document requires -- for a
        certificate, by <xref target="static-field-encoding"/>,
        verify the issuer's signature before decoding an extension; for an
        envelope, by <xref target="signature-envelope"/>, verify the
        signatures over the body octets before acting on
        any member of body -- means input nobody signed is discarded before it
        is interpreted.  A relying party that parses first and verifies
        afterwards has exposed its parser to every party able to present a
        certificate, which is every party.</t>
      </section>

      <section anchor="private-key-disclosure" numbered="true" toc="default">
        <name>Disclosure of an Agent's Private Key</name>
        <t>The rules of <xref target="delegated-requests" format="default"/>
        rest on the agent certificate's private key.  An agent that
        discloses that key, or whose key is taken, can be impersonated, and
        every Delegation Token bound to it can be used by whoever holds the
        key.  No binding defends against that.  This document limits the
        damage: an agent certificate lives at most seven days (<xref
        target="template-issuance" format="default"/>), and a revoked
        certificate fails every check of that section.  An implementation
        <bcp14>SHOULD</bcp14> hold agent private keys in storage from which
        they cannot be exported.  The private key belongs to the agent's
        runtime: it is never placed in a language model's context or made
        reachable through a tool the model can call, because a model can be
        led by its input to disclose what it can read.</t>
      </section>
    </section>

  </middle>

  <back>
    <references>
      <name>References</name>

      <references>
        <name>Normative References</name>

        <reference anchor="SPIFFE-ID" target="https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE-ID.md">
          <front>
            <title>The SPIFFE Identity and Verifiable Identity Document</title>
            <author>
              <organization>SPIFFE Project</organization>
            </author>
            <date/>
          </front>
        </reference>

        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner"/>
            <date month="March" year="1997"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
        </reference>

        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba"/>
            <date month="May" year="2017"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
        </reference>

        <reference anchor="RFC8032" target="https://www.rfc-editor.org/info/rfc8032">
          <front>
            <title>Edwards-Curve Digital Signature Algorithm (EdDSA)</title>
            <author initials="S." surname="Josefsson" fullname="S. Josefsson"/>
            <author initials="I." surname="Liusvaara" fullname="I. Liusvaara"/>
            <date month="January" year="2017"/>
          </front>
          <seriesInfo name="RFC" value="8032"/>
        </reference>

        <reference anchor="RFC8410" target="https://www.rfc-editor.org/info/rfc8410">
          <front>
            <title>Algorithm Identifiers for Ed25519, Ed448, X25519, and X448 for Use in the Internet X.509 Public Key Infrastructure</title>
            <author initials="S." surname="Josefsson" fullname="S. Josefsson"/>
            <author initials="J." surname="Schaad" fullname="J. Schaad"/>
            <date month="August" year="2018"/>
          </front>
          <seriesInfo name="RFC" value="8410"/>
        </reference>

        <reference anchor="RFC8259" target="https://www.rfc-editor.org/info/rfc8259">
          <front>
            <title>The JavaScript Object Notation (JSON) Data Interchange Format</title>
            <author initials="T." surname="Bray" fullname="T. Bray" role="editor"/>
            <date month="December" year="2017"/>
          </front>
          <seriesInfo name="STD" value="90"/>
          <seriesInfo name="RFC" value="8259"/>
        </reference>

        <reference anchor="RFC8785" target="https://www.rfc-editor.org/info/rfc8785">
          <front>
            <title>JSON Canonicalization Scheme (JCS)</title>
            <author initials="A." surname="Rundgren" fullname="A. Rundgren"/>
            <author initials="B." surname="Jordan" fullname="B. Jordan"/>
            <author initials="S." surname="Erdtman" fullname="S. Erdtman"/>
            <date month="June" year="2020"/>
          </front>
          <seriesInfo name="RFC" value="8785"/>
        </reference>

        <reference anchor="SP800-57" target="https://doi.org/10.6028/NIST.SP.800-57pt1r5">
          <front>
            <title>Recommendation for Key Management: Part 1 - General</title>
            <author initials="E." surname="Barker" fullname="E. Barker"/>
            <date month="May" year="2020"/>
          </front>
          <seriesInfo name="NIST SP" value="800-57 Part 1 Rev. 5"/>
        </reference>

        <reference anchor="RFC5280" target="https://www.rfc-editor.org/info/rfc5280">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate and
            Certificate Revocation List (CRL) Profile</title>
            <author initials="D." surname="Cooper" fullname="D. Cooper"/>
            <author initials="S." surname="Santesson" fullname="S. Santesson"/>
            <author initials="S." surname="Farrell" fullname="S. Farrell"/>
            <author initials="S." surname="Boeyen" fullname="S. Boeyen"/>
            <author initials="R." surname="Housley" fullname="R. Housley"/>
            <author initials="W." surname="Polk" fullname="W. Polk"/>
            <date month="May" year="2008"/>
          </front>
          <seriesInfo name="RFC" value="5280"/>
        </reference>

        <reference anchor="RFC3339" target="https://www.rfc-editor.org/info/rfc3339">
          <front>
            <title>Date and Time on the Internet: Timestamps</title>
            <author initials="G." surname="Klyne" fullname="G. Klyne"/>
            <author initials="C." surname="Newman" fullname="C. Newman"/>
            <date month="July" year="2002"/>
          </front>
          <seriesInfo name="RFC" value="3339"/>
        </reference>

        <reference anchor="RFC3279" target="https://www.rfc-editor.org/info/rfc3279">
          <front>
            <title>Algorithms and Identifiers for the Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</title>
            <author initials="L." surname="Bassham" fullname="L. Bassham"/>
            <author initials="W." surname="Polk" fullname="W. Polk"/>
            <author initials="R." surname="Housley" fullname="R. Housley"/>
            <date month="April" year="2002"/>
          </front>
          <seriesInfo name="RFC" value="3279"/>
        </reference>

        <reference anchor="RFC4648" target="https://www.rfc-editor.org/info/rfc4648">
          <front>
            <title>The Base16, Base32, and Base64 Data Encodings</title>
            <author initials="S." surname="Josefsson" fullname="S. Josefsson"/>
            <date month="October" year="2006"/>
          </front>
          <seriesInfo name="RFC" value="4648"/>
        </reference>

        <reference anchor="RFC5234" target="https://www.rfc-editor.org/info/rfc5234">
          <front>
            <title>Augmented BNF for Syntax Specifications: ABNF</title>
            <author initials="D." surname="Crocker" fullname="D. Crocker" role="editor"/>
            <author initials="P." surname="Overell" fullname="P. Overell"/>
            <date month="January" year="2008"/>
          </front>
          <seriesInfo name="STD" value="68"/>
          <seriesInfo name="RFC" value="5234"/>
        </reference>

        <reference anchor="RFC5545" target="https://www.rfc-editor.org/info/rfc5545">
          <front>
            <title>Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
            <author initials="B." surname="Desruisseaux" fullname="B. Desruisseaux" role="editor"/>
            <date month="September" year="2009"/>
          </front>
          <seriesInfo name="RFC" value="5545"/>
        </reference>

        <reference anchor="RFC6557" target="https://www.rfc-editor.org/info/rfc6557">
          <front>
            <title>Procedures for Maintaining the Time Zone Database</title>
            <author initials="E." surname="Lear" fullname="E. Lear"/>
            <author initials="P." surname="Eggert" fullname="P. Eggert"/>
            <date month="February" year="2012"/>
          </front>
          <seriesInfo name="BCP" value="175"/>
          <seriesInfo name="RFC" value="6557"/>
        </reference>

        <reference anchor="WEBAUTHN" target="https://www.w3.org/TR/2021/REC-webauthn-2-20210408/">
          <front>
            <title>Web Authentication: An API for accessing Public Key Credentials Level 2</title>
            <author initials="J." surname="Hodges" fullname="Jeff Hodges" role="editor"/>
            <author initials="J.C." surname="Jones" fullname="J.C. Jones" role="editor"/>
            <author initials="M.B." surname="Jones" fullname="Michael B. Jones" role="editor"/>
            <author initials="A." surname="Kumar" fullname="Akshay Kumar" role="editor"/>
            <author initials="E." surname="Lundberg" fullname="Emil Lundberg" role="editor"/>
            <date month="April" year="2021"/>
          </front>
          <seriesInfo name="W3C Recommendation" value="REC-webauthn-2-20210408"/>
        </reference>

        <reference anchor="RFC6838" target="https://www.rfc-editor.org/info/rfc6838">
          <front>
            <title>Media Type Specifications and Registration Procedures</title>
            <author initials="N." surname="Freed" fullname="N. Freed"/>
            <author initials="J." surname="Klensin" fullname="J. Klensin"/>
            <author initials="T." surname="Hansen" fullname="T. Hansen"/>
            <date month="January" year="2013"/>
          </front>
          <seriesInfo name="BCP" value="13"/>
          <seriesInfo name="RFC" value="6838"/>
        </reference>

        <reference anchor="RFC8126" target="https://www.rfc-editor.org/info/rfc8126">
          <front>
            <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
            <author initials="M." surname="Cotton" fullname="M. Cotton"/>
            <author initials="B." surname="Leiba" fullname="B. Leiba"/>
            <author initials="T." surname="Narten" fullname="T. Narten"/>
            <date month="June" year="2017"/>
          </front>
          <seriesInfo name="BCP" value="26"/>
          <seriesInfo name="RFC" value="8126"/>
        </reference>

        <reference anchor="RFC9562" target="https://www.rfc-editor.org/info/rfc9562">
          <front>
            <title>Universally Unique IDentifiers (UUIDs)</title>
            <author initials="K." surname="Davis" fullname="K. Davis"/>
            <author initials="B." surname="Peabody" fullname="B. Peabody"/>
            <author initials="P." surname="Leach" fullname="P. Leach"/>
            <date month="May" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9562"/>
        </reference>

        <reference anchor="RFC7638" target="https://www.rfc-editor.org/info/rfc7638">
          <front>
            <title>JSON Web Key (JWK) Thumbprint</title>
            <author initials="M." surname="Jones" fullname="M. Jones"/>
            <author initials="N." surname="Sakimura" fullname="N. Sakimura"/>
            <date month="September" year="2015"/>
          </front>
          <seriesInfo name="RFC" value="7638"/>
        </reference>

        <reference anchor="RFC8705" target="https://www.rfc-editor.org/info/rfc8705">
          <front>
            <title>OAuth 2.0 Mutual-TLS Client Authentication and Certificate-Bound Access Tokens</title>
            <author initials="B." surname="Campbell" fullname="B. Campbell"/>
            <author initials="J." surname="Bradley" fullname="J. Bradley"/>
            <author initials="N." surname="Sakimura" fullname="N. Sakimura"/>
            <author initials="T." surname="Lodderstedt" fullname="T. Lodderstedt"/>
            <date month="February" year="2020"/>
          </front>
          <seriesInfo name="RFC" value="8705"/>
        </reference>

        <reference anchor="RFC8725" target="https://www.rfc-editor.org/info/rfc8725">
          <front>
            <title>JSON Web Token Best Current Practices</title>
            <author initials="Y." surname="Sheffer" fullname="Y. Sheffer"/>
            <author initials="D." surname="Hardt" fullname="D. Hardt"/>
            <author initials="M." surname="Jones" fullname="M. Jones"/>
            <date month="February" year="2020"/>
          </front>
          <seriesInfo name="BCP" value="225"/>
          <seriesInfo name="RFC" value="8725"/>
        </reference>

        <reference anchor="RFC9449" target="https://www.rfc-editor.org/info/rfc9449">
          <front>
            <title>OAuth 2.0 Demonstrating Proof of Possession (DPoP)</title>
            <author initials="D." surname="Fett" fullname="D. Fett"/>
            <author initials="B." surname="Campbell" fullname="B. Campbell"/>
            <author initials="J." surname="Bradley" fullname="J. Bradley"/>
            <author initials="T." surname="Lodderstedt" fullname="T. Lodderstedt"/>
            <author initials="M." surname="Jones" fullname="M. Jones"/>
            <author initials="D." surname="Waite" fullname="D. Waite"/>
            <date month="September" year="2023"/>
          </front>
          <seriesInfo name="RFC" value="9449"/>
        </reference>
        <reference anchor="RFC8693" target="https://www.rfc-editor.org/info/rfc8693">
          <front>
            <title>OAuth 2.0 Token Exchange</title>
            <author initials="M." surname="Jones" fullname="M. Jones"/>
            <author initials="A." surname="Campbell" fullname="A. Campbell"/>
            <author initials="C." surname="Mortimore" fullname="C. Mortimore"/>
            <date month="January" year="2020"/>
          </front>
          <seriesInfo name="RFC" value="8693"/>
        </reference>
        <reference anchor="RFC7662" target="https://www.rfc-editor.org/info/rfc7662">
          <front>
            <title>OAuth 2.0 Token Introspection</title>
            <author initials="J." surname="Richer" fullname="J. Richer" role="editor"/>
            <date month="October" year="2015"/>
          </front>
          <seriesInfo name="RFC" value="7662"/>
        </reference>
        <reference anchor="RFC9068" target="https://www.rfc-editor.org/info/rfc9068">
          <front>
            <title>JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens</title>
            <author initials="V." surname="Bertocci" fullname="V. Bertocci"/>
            <date month="October" year="2021"/>
          </front>
          <seriesInfo name="RFC" value="9068"/>
        </reference>
      </references>

      <references>
        <name>Informative References</name>

        <reference anchor="SPIFFE-FED" target="https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE_Federation.md">
          <front>
            <title>SPIFFE Federation</title>
            <author>
              <organization>SPIFFE Project</organization>
            </author>
            <date/>
          </front>
        </reference>

        <reference anchor="OpenID-Federation" target="https://openid.net/specs/openid-federation-1_0.html">
          <front>
            <title>OpenID Federation 1.0</title>
            <author initials="R." surname="Hedberg" fullname="R. Hedberg" role="editor"/>
            <author initials="M.B." surname="Jones" fullname="M.B. Jones"/>
            <author initials="A.Å." surname="Solberg" fullname="A.Å. Solberg"/>
            <author initials="J." surname="Bradley" fullname="J. Bradley"/>
            <author initials="G." surname="De Marco" fullname="G. De Marco"/>
            <author initials="V." surname="Dzhuvinov" fullname="V. Dzhuvinov"/>
            <date day="17" month="February" year="2026"/>
          </front>
          <refcontent>OpenID Foundation, Final Specification</refcontent>
        </reference>

        <reference anchor="I-D.mw-oauth-actor-chain" target="https://datatracker.ietf.org/doc/html/draft-mw-oauth-actor-chain-03">
          <front>
            <title>OAuth Actor Chain: Protocol and Interoperability</title>
            <author initials="A." surname="Prasad" fullname="A. Prasad"/>
            <author initials="R." surname="Krishnan" fullname="R. Krishnan"/>
            <author initials="D." surname="Lopez" fullname="D. Lopez"/>
            <author initials="S." surname="Addepalli" fullname="S. Addepalli"/>
            <author initials="S." surname="Krishnan" fullname="S. Krishnan"/>
            <date day="1" month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-mw-oauth-actor-chain-03"/>
        </reference>

        <reference anchor="I-D.ietf-wimse-arch" target="https://datatracker.ietf.org/doc/html/draft-ietf-wimse-arch-09">
          <front>
            <title>Workload Identity in a Multi System Environment (WIMSE) Architecture</title>
            <author initials="J." surname="Salowey" fullname="J. Salowey"/>
            <author initials="Y." surname="Rosomakho" fullname="Y. Rosomakho"/>
            <author initials="H." surname="Tschofenig" fullname="H. Tschofenig"/>
            <date day="17" month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-wimse-arch-09"/>
        </reference>

        <reference anchor="AuthZEN" target="https://openid.net/specs/authorization-api-1_0.html">
          <front>
            <title>Authorization API 1.0</title>
            <author initials="O." surname="Gazitt" fullname="O. Gazitt" role="editor"/>
            <author initials="D." surname="Brossard" fullname="D. Brossard" role="editor"/>
            <author initials="A." surname="Tulshibagwale" fullname="A. Tulshibagwale" role="editor"/>
            <date day="11" month="January" year="2026"/>
          </front>
          <refcontent>OpenID Foundation, Final Specification</refcontent>
        </reference>

        <reference anchor="I-D.ietf-wimse-identifier" target="https://datatracker.ietf.org/doc/html/draft-ietf-wimse-identifier-04">
          <front>
            <title>Workload Identifier</title>
            <author initials="Y." surname="Rosomakho" fullname="Y. Rosomakho"/>
            <author initials="J." surname="Salowey" fullname="J. Salowey"/>
            <date day="23" month="October" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-wimse-identifier-04"/>
        </reference>

        <reference anchor="I-D.carleton-workload-authz-grant" target="https://datatracker.ietf.org/doc/html/draft-carleton-workload-authz-grant-02">
          <front>
            <title>Workload Authorization Grant</title>
            <author initials="P." surname="Carleton" fullname="P. Carleton" role="editor"/>
            <author initials="N." surname="Steele" fullname="N. Steele"/>
            <author initials="A." surname="Parecki" fullname="A. Parecki"/>
            <author initials="A." surname="Schwenkschuster" fullname="A. Schwenkschuster"/>
            <author initials="B." surname="Campbell" fullname="B. Campbell"/>
            <date day="2" month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-carleton-workload-authz-grant-02"/>
        </reference>

        <reference anchor="I-D.ietf-oauth-attestation-based-client-auth" target="https://datatracker.ietf.org/doc/html/draft-ietf-oauth-attestation-based-client-auth-12">
          <front>
            <title>OAuth 2.0 Attestation-Based Client Authentication</title>
            <author initials="T." surname="Looker" fullname="T. Looker"/>
            <author initials="P." surname="Bastian" fullname="P. Bastian"/>
            <author initials="C." surname="Bormann" fullname="C. Bormann"/>
            <date day="13" month="October" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-oauth-attestation-based-client-auth-12"/>
        </reference>

        <reference anchor="I-D.ietf-oauth-spiffe-client-auth" target="https://datatracker.ietf.org/doc/html/draft-ietf-oauth-spiffe-client-auth-03">
          <front>
            <title>OAuth SPIFFE Client Authentication</title>
            <author initials="A." surname="Schwenkschuster" fullname="A. Schwenkschuster"/>
            <author initials="P." surname="Kasselman" fullname="P. Kasselman"/>
            <author initials="S." surname="Rose" fullname="S. Rose"/>
            <author initials="S." surname="Thorgersen" fullname="S. Thorgersen"/>
            <author initials="N." surname="Cam-Winget" fullname="N. Cam-Winget"/>
            <date day="2" month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-oauth-spiffe-client-auth-03"/>
        </reference>

        <reference anchor="SPIFFE-X509" target="https://github.com/spiffe/spiffe/blob/main/standards/X509-SVID.md">
          <front>
            <title>The X.509 SPIFFE Verifiable Identity Document</title>
            <author>
              <organization>SPIFFE Project</organization>
            </author>
            <date/>
          </front>
        </reference>

        <reference anchor="I-D.mora-oauth-entity-profiles" target="https://datatracker.ietf.org/doc/html/draft-mora-oauth-entity-profiles-02">
          <front>
            <title>OAuth 2.0 Entity Profiles</title>
            <author initials="S. C." surname="Mora" fullname="S. C. Mora"/>
            <author initials="P." surname="Dingle" fullname="P. Dingle"/>
            <author initials="K." surname="McGuinness" fullname="K. McGuinness"/>
            <date day="16" month="October" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-mora-oauth-entity-profiles-02"/>
        </reference>

        <reference anchor="I-D.araut-oauth-transaction-tokens-for-agents" target="https://datatracker.ietf.org/doc/html/draft-araut-oauth-transaction-tokens-for-agents-03">
          <front>
            <title>Transaction Tokens For Agents</title>
            <author initials="A." surname="Raut" fullname="A. Raut"/>
            <date day="31" month="October" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-araut-oauth-transaction-tokens-for-agents-03"/>
        </reference>

        <reference anchor="I-D.ietf-wimse-aims" target="https://datatracker.ietf.org/doc/html/draft-ietf-wimse-aims-01">
          <front>
            <title>AI Identity Management System</title>
            <author initials="P." surname="Kasselman" fullname="P. Kasselman"/>
            <author initials="J." surname="Lombardo" fullname="J. Lombardo"/>
            <author initials="Y." surname="Rosomakho" fullname="Y. Rosomakho"/>
            <author initials="B." surname="Campbell" fullname="B. Campbell"/>
            <author initials="N." surname="Steele" fullname="N. Steele"/>
            <author initials="A." surname="Parecki" fullname="A. Parecki"/>
            <date day="2" month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-wimse-aims-01"/>
        </reference>

        <reference anchor="I-D.fletcher-oauth-txn-token-chaining-profile" target="https://datatracker.ietf.org/doc/html/draft-fletcher-oauth-txn-token-chaining-profile-01">
          <front>
            <title>Transaction Token JWT Authorization Grant Profile for OAuth
            Identity and Authorization Chaining</title>
            <author initials="G." surname="Fletcher" fullname="G. Fletcher"/>
            <author initials="P." surname="Kasselman" fullname="P. Kasselman"/>
            <author initials="S." surname="O'Dell" fullname="S. O'Dell"/>
            <date day="26" month="October" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-fletcher-oauth-txn-token-chaining-profile-01"/>
        </reference>

        <reference anchor="I-D.mcguinness-oauth-actor-profile" target="https://datatracker.ietf.org/doc/html/draft-mcguinness-oauth-actor-profile-02">
          <front>
            <title>OAuth Actor Profile for Delegation</title>
            <author initials="K." surname="McGuinness" fullname="K. McGuinness"/>
            <date day="26" month="November" year="2026"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-mcguinness-oauth-actor-profile-02"/>
        </reference>

        <reference anchor="RFC2986" target="https://www.rfc-editor.org/info/rfc2986">
          <front>
            <title>PKCS #10: Certification Request Syntax Specification
            Version 1.7</title>
            <author initials="M." surname="Nystrom" fullname="M. Nystrom"/>
            <author initials="B." surname="Kaliski" fullname="B. Kaliski"/>
            <date month="November" year="2000"/>
          </front>
          <seriesInfo name="RFC" value="2986"/>
        </reference>

        <reference anchor="RFC8915" target="https://www.rfc-editor.org/info/rfc8915">
          <front>
            <title>Network Time Security for the Network Time Protocol</title>
            <author initials="D." surname="Franke" fullname="D. Franke"/>
            <author initials="D." surname="Sibold" fullname="D. Sibold"/>
            <author initials="K." surname="Teichel" fullname="K. Teichel"/>
            <author initials="M." surname="Dansarie" fullname="M. Dansarie"/>
            <author initials="R." surname="Sundblad" fullname="R. Sundblad"/>
            <date month="September" year="2020"/>
          </front>
          <seriesInfo name="RFC" value="8915"/>
        </reference>

        <reference anchor="RFC4120" target="https://www.rfc-editor.org/info/rfc4120">
          <front>
            <title>The Kerberos Network Authentication Service (V5)</title>
            <author initials="C." surname="Neuman" fullname="C. Neuman"/>
            <author initials="T." surname="Yu" fullname="T. Yu"/>
            <author initials="S." surname="Hartman" fullname="S. Hartman"/>
            <author initials="K." surname="Raeburn" fullname="K. Raeburn"/>
            <date month="July" year="2005"/>
          </front>
          <seriesInfo name="RFC" value="4120"/>
        </reference>

        <reference anchor="RFC7942" target="https://www.rfc-editor.org/info/rfc7942">
          <front>
            <title>Improving Awareness of Running Code: The Implementation Status Section</title>
            <author initials="Y." surname="Sheffer" fullname="Y. Sheffer"/>
            <author initials="A." surname="Farrel" fullname="A. Farrel"/>
            <date month="July" year="2016"/>
          </front>
          <seriesInfo name="BCP" value="205"/>
          <seriesInfo name="RFC" value="7942"/>
        </reference>

        <reference anchor="RFC6749" target="https://www.rfc-editor.org/info/rfc6749">
          <front>
            <title>The OAuth 2.0 Authorization Framework</title>
            <author initials="D." surname="Hardt" fullname="D. Hardt"/>
            <date month="October" year="2012"/>
          </front>
          <seriesInfo name="RFC" value="6749"/>
        </reference>


        <reference anchor="NIST800-207">
          <front>
            <title>Zero Trust Architecture</title>
            <author initials="S." surname="Rose" fullname="S. Rose"/>
            <author initials="O." surname="Borchert" fullname="O. Borchert"/>
            <author initials="S." surname="Mitchell" fullname="S. Mitchell"/>
            <author initials="S." surname="Connelly" fullname="S. Connelly"/>
            <date month="August" year="2020"/>
          </front>
          <seriesInfo name="NIST SP" value="800-207"/>
        </reference>

        <reference anchor="SPIFFE" target="https://spiffe.io">
          <front>
            <title>Secure Production Identity Framework for Everyone</title>
            <author>
              <organization>SPIFFE Project</organization>
            </author>
            <date/>
          </front>
        </reference>

        <reference anchor="OpenFGA" target="https://openfga.dev">
          <front>
            <title>OpenFGA Specification</title>
            <author>
              <organization>OpenFGA Project</organization>
            </author>
            <date/>
          </front>
        </reference>

        <reference anchor="VAULTPKI"
                   target="https://developer.hashicorp.com/vault/docs/secrets/pki">
          <front>
            <title>Vault PKI Secrets Engine</title>
            <author>
              <organization>HashiCorp</organization>
            </author>
            <date/>
          </front>
        </reference>
      </references>
    </references>

    <section anchor="vectors" numbered="true" toc="default">
      <name>Test Vectors</name>
      <t>The test vectors for this revision are published with the browser
      implementation listed in <xref target="implementation-status"/>, in
      its repository directory docs/draft/vectors/, and are described here so
      that a second implementer can use them without reading that
      implementation.  They are produced by that implementation's own code
      and checked as they are built: a vector whose outcome differs from the
      one it states is not published.</t>
      <t>Most vectors are chain documents, each exactly as a relying party
      receives it, with the expected verdict and, for a refusal, the clause
      that governs it.  Where a case needs a relying-party setting, such as
      which rows of Table 2 it supports, the vector states it.  The
      single-organization and cross-organization vectors also carry the exact
      JCS serialization (<xref target="canonicalization"/>) of every object
      signed or hashed within them.  An implementer checks three things
      independently:</t>
      <ol>
        <li>Canonicalization: the implementer's serialization of each body
        and extension equals the published preimage octet for octet.</li>
        <li>Signatures: each owner_sig and pa_sig verifies under the named
        certificate over that preimage, in the form Table 2 assigns to its
        key type, or the WebAuthn form of <xref target="webauthn-owner"/>.
        Signatures are randomized and are not expected to match an
        implementer's own octets.</li>
        <li>The verdict: a conforming relying party reaches the verdict the
        vector states.</li>
      </ol>
      <t>The vectors cover: a single-organization chain and a
      cross-organization chain with a grant (both accepted); the certificate
      profile of <xref target="certificate-profile"/> and
      <xref target="identity-binding"/>, including a missing, duplicated,
      foreign or mismatched SPIFFE ID and a certificate carrying the
      extension OIDs of the previous revision; the time windows of
      <xref target="time-windows"/>; the signature rows of Table 2 and an
      attestation that current rules refuse
      (<xref target="full-re-verification"/>); the integer range and the
      IssuedAt window; the WebAuthn form of the Owner signature; the time of
      attestation against signer revocations, with and without an
      invalidity date (<xref target="template-issuance"/>); requests the
      Registry refuses (<xref target="template-lifecycle"/>); and delegated
      requests under <xref target="delegated-requests"/>: a valid bound token,
      a token presented by a different agent, a replayed proof, an "alg" of
      "none", and a token that would outlive its certificate.</t>
      <t>Every certificate, policy, grant and token in the vectors is
      time-bound: they are validated as of the time each file records, by a
      validator that accepts an injectable clock.  No private key is
      published, and none is needed: every check above is a verification.</t>
    </section>

    <section anchor="changes-04" numbered="true" toc="default">
      <name>Changes since draft-tonyai-a2a-trust-03</name>
      <ul>
        <li>Stated that the document addresses non-human identity only,
        and that the person an agent acts for is out of scope and carried
        by the delegation layer (Abstract; the Agent definition in
        <xref target="terminology" format="default"/>).  Raised on the
        DISPATCH list by Blake Morrison, who noted that nothing after
        the Terminology section says which person an agent acts for.</li>
        <li>Added <xref target="delegated-requests" format="default"/>,
        Delegated Requests: every Delegation Token an agent presents
        <bcp14>MUST</bcp14> be bound ("cnf", RFC 9449 or RFC 8705) to that
        agent's certificate and proven with its private key on each request;
        a relying party refuses a token from any other agent, so tokens
        cannot pass between agents, parent to child included.  A spawned
        child acting for the same person presents a token bound to its own
        certificate.  Added the Delegation Token definition, <xref
        target="delegation-across-spawn" format="default"/> pointing to the
        new section, and <xref target="private-key-disclosure"
        format="default"/>.  The actor check uses the outermost "act" claim's "sub" (RFC
        8693) or the client the token was issued to, read from one claim
        configured per issuer ("client_id", RFC 9068, by default) and mapped
        to the agent by registration.  Opaque tokens are read through
        introspection (RFC 7662).  The token's own validation is a check of
        its own, ahead of the claims checks; a replayed DPoP proof is
        refused; renewal with a new key ends tokens bound to the old one; a
        note covers "htu" behind a TLS-terminating proxy.  An issuer that cannot bind tokens is
        reached through a token exchange at one that can.  RFC 7638, RFC
        7662, RFC 8693, RFC 8705, RFC 9068 and RFC 9449 are normative
        references.  Issuance of the token stays with the delegation layer.
        Also raised by Blake Morrison: nothing in -03 said what a spawned
        child presents for the same person, though Section 6.1 has
        On-Behalf-Of breaking down at that point.</li>
        <li>Added time windows (<xref target="time-windows" format="default"/>):
        an <bcp14>OPTIONAL</bcp14> AllowedHours in the template certificate,
        the outer limit, changed only by re-certification, and an
        <bcp14>OPTIONAL</bcp14> Hours in the dynamic policy, changed under the
        dual signature; each with a named IANA time zone.  A relying party
        checks the current time from a source it trusts against both on each
        authorization and refuses outside them or without trusted time.
        Absent, neither imposes a constraint, so templates and policies
        written to -03 read as before; a relying party built to -03 refuses
        a certificate carrying the new members, as it refuses any unknown
        member.  The window format reuses existing grammar: weekday codes
        from RFC 5545 and time-hour and time-minute from RFC 3339, in ABNF
        (RFC 5234).  RFC 5234, RFC 5545 and RFC 6557 are normative
        references; RFC 8915 is informative.  A policy's HoursZone must
        equal the template's AllowedHoursZone where both are present, since a
        bound between windows in two zones cannot be decided for every
        date.</li>
        <li>Moved the Agent Template and Agent Spawn extensions from the UUID
        arc (2.25) to a Private Enterprise Number, every arc within 64 bits
        (<xref target="iana-oid" format="default"/>): an implementation of
        -03 found that a common X.509 library refuses a certificate carrying
        the 128-bit arc, including the draft's own test vector.  A breaking
        change for -03 certificates.</li>
        <li>Added a WebAuthn form of the Owner signature
        (<xref target="webauthn-owner" format="default"/>), for an Owner whose
        key is a security key used through a browser, signalled by an
        extended key usage on the Owner certificate; the content of owner_sig
        and the relying party's six checks are specified.  An owner value may
        name a role held by several certificate holders, and a record of a
        signature names the certificate.  RFC 3279 and W3C WebAuthn Level 2
        are normative references.</li>
        <li>Stated that the Owner and Policy Authority certificates are
        validated as of the time of attestation, which the Registry records,
        so that a renewal does not end an agent when a signer's certificate
        has since expired (<xref target="template-issuance"
        format="default"/>).</li>
        <li>Bounded every integer to 0 through 2^53 - 1, since JCS serializes
        numbers as IEEE 754 doubles and a larger integer would canonicalize
        differently in two implementations (<xref target="document-encoding"
        format="default"/>); RFC 8259 is a normative reference.  A relying
        party refuses a policy whose IssuedAt is more than the 60-second
        freshness window ahead of its clock (<xref
        target="policy-document-structure" format="default"/>); -03 bounded
        only the end of a policy's validity.  Both found while building an
        implementation to -04.</li>
        <li>Resolved a conflict between <xref target="template-revocation"
        format="default"/>, which permits an equivalent revocation registry,
        and <xref target="revocation-discovery" format="default"/>, which
        required a CRL or OCSP pointer in every certificate: the pointer is
        required where revocation is published by CRL or OCSP, and a registry
        is configured per issuing CA.  Required the WebAuthn client data to be
        parsed with the duplicate member rule and exact member names
        (<xref target="webauthn-owner" format="default"/>).  Stated that
        delivery of an issued certificate is out of scope and that its private
        key is never delivered with it (<xref target="template-issuance"
        format="default"/>).  All three found by implementing -04.</li>
        <li>Added <xref target="related-work" format="default"/>,
        Relationship to Other Work (informative), which notes where this
        document meets the WIMSE architecture, the AI Identity Management
        System, the OAuth Actor Profile, OAuth Actor Chain, the Transaction
        Token chaining profile, Transaction Tokens for Agents, OAuth 2.0
        Entity Profiles, OAuth SPIFFE Client Authentication, the Workload
        Authorization Grant, Attestation-Based Client Authentication and the
        OpenID AuthZEN Authorization API.  No requirement of this document
        depends on any of them.  The Abstract and the Introduction now say
        what this document supplies that the work in progress leaves to the
        deployment, and the Agent definition in <xref target="terminology"
        format="default"/> states that an agent is a workload.</li>
        <li>An agent certificate now carries exactly one SPIFFE ID in its
        subjectAltName, a Workload Identifier in the spiffe scheme, whose
        trust domain is the one its issuing CA serves and whose final path
        segment is the agent identifier
        (<xref target="certificate-profile" format="default"/>).  A relying
        party refuses a certificate in which they differ, and one that
        authorizes by the SPIFFE ID compares the complete URI
        (<xref target="identity-binding" format="default"/>).  The Agent
        Template extension stays critical.  The SPIFFE ID specification is a
        normative reference.</li>
        <li>Signatures and parsing: a relying party <bcp14>MUST</bcp14>
        support the ECDSA P-256 and Ed25519 rows of the signature algorithm
        table and <bcp14>MAY</bcp14> support the RSASSA-PSS and P-384 rows
        (<xref target="signature-envelope" format="default"/>).  Verifying
        the certificate signature before parsing the extension is now a
        <bcp14>MUST</bcp14> (<xref target="static-field-encoding"
        format="default"/>), and both envelope signatures are verified before
        any member of body is acted on (<xref target="signature-envelope"
        format="default"/>); <xref target="untrusted-input" format="default"/>
        cites both.  A token or DPoP proof with "alg" "none", or an
        algorithm not configured for its issuer or key, is refused, with one
        algorithm per key (<xref target="delegated-requests"
        format="default"/>); RFC 8725 is a normative reference.</li>
        <li>Key compromise: the compromise date in <xref
        target="template-issuance" format="default"/> is the invalidity date
        of the revocation entry, and a revocation for key compromise without
        one is treated as dating from before every attestation the key made.
        <xref target="single-point-of-compromise" format="default"/> now
        defers to that rule instead of invalidating every signature a revoked
        key ever made, and policies follow the same rule
        (<xref target="signature-coverage" format="default"/>,
        <xref target="policy-change-sequence" format="default"/>).</li>
        <li>Versions and lifecycle: an attestation that a relying party's or
        Registry's current rules refuse is not grandfathered, and the prior
        certificate's revocation is published where relying parties find it
        (<xref target="full-re-verification" format="default"/>).
        <xref target="versioning-principle" format="default"/> was rewritten,
        as it contradicted the revocation of the prior certificate.  A
        DELETED template's Subject and key are never reused
        (<xref target="template-lifecycle" format="default"/>).</li>
        <li><xref target="revocation-discovery" format="default"/> now says
        which certificates must point to their revocation state, and exempts
        a CA certificate the relying party pins by configuration, which is
        trust anchor information rather than part of the certification path
        (RFC 5280, Section 6.1).</li>
        <li>Smaller changes: the Certificate Signing Request definition and
        <xref target="csr-flow" format="default"/> now show that the CSR
        carries only the public key and that one certificate is issued; a
        weekday in a time window is uppercase and compared exactly
        (<xref target="time-windows" format="default"/>); a reference in
        <xref target="cert-chain-structure" format="default"/> was
        corrected; <xref target="fail-closed" format="default"/> refuses a
        decision point's permit carrying conditions the relying party cannot
        carry out; and <xref target="private-key-disclosure"
        format="default"/> states that the agent's private key is never
        placed where a language model can reach it.</li>
        <li>Cross-organizational grants: <xref target="explicit-grant"
        format="default"/> now says that a grant is a bilateral, dual-signed
        agreement the Grantor alone can revoke, which a deployment can use as
        the signed record of the cross-domain trust agreement that work in
        progress requires and leaves undefined; <xref target="related-work"
        format="default"/> relates it to SPIFFE Federation and OpenID
        Federation.  The Cross-Org Grant definition states that it is not an
        OAuth 2.0 authorization grant.  No wire name changes.</li>
        <li>Found by implementing -04 in the browser implementation:
        a policy's and a grant's signers are validated as of the time of
        validation when no authenticated time of attestation is available
        (<xref target="signature-coverage"/>,
        <xref target="trust-anchor-options"/>); a relying party without an
        attestation learns that it is refused through revocation
        (<xref target="full-re-verification"/>); a new version is the one
        exception to the live-certificate condition of the spawn sequence
        (<xref target="spawn-validation-sequence"/>); and a grant covers the
        template version current when it was issued, which makes the
        no-roll-over rule of <xref target="cross-org-grant-reissuance"/> enforceable.
        Test vectors are now provided by this document
        (<xref target="vectors"/>), with passing and failing cases.</li>
      </ul>
    </section>

    <section anchor="changes-03" numbered="true" toc="default">
      <name>Changes since draft-tonyai-a2a-trust-02</name>
      <t>
        As with the previous revision, every change here was surfaced by
        implementing the -02 text rather than by re-reading it.  Three
        implementations of one specification produced three different answers to
        the same questions, which is what the changes below exist to prevent.
      </t>
      <ul>
        <li>Specified how documents are encoded on the wire
        (<xref target="document-encoding"/>).  Field tables throughout -02 gave
        display names only, so implementations invented their own member names
        and produced signatures no other implementation could reproduce.</li>
        <li>Specified the signature envelope
        (<xref target="signature-envelope"/>).  -02 required two signatures but
        never said where they live, how they are encoded, or that they are
        excluded from the body they sign.  It also declared that a policy
        document carrying any undefined field must be refused, which forbade the
        signature fields the same document requires.</li>
        <li>Specified the encoding of the static template fields
        (<xref target="static-field-encoding"/>).  -02 listed which fields a
        template carries but never said where in the certificate they live, so
        two implementations conforming to the text could not validate each
        other's certificates.</li>
        <li>Specified the binding between an agent's identity and its certificate
        (<xref target="identity-binding"/>), and required every restatement of an
        agent identifier to agree with the certificate subject.  -02 carried the
        identifier in three places and required no agreement among them, so a
        chain naming one agent while presenting a certificate issued to another
        validated cleanly.</li>
        <li>Specified the form of an agent identifier
        (<xref target="identity-binding"/>).  -02 did not mention UUIDs at all,
        while one implementation refused anything that was not a lowercase
        version 4; an implementation reading only the text could have used any
        string and been conformant.</li>
        <li>Specified how a template is authored and attested before issuance
        (<xref target="template-authoring"/>).  -02 described what a template
        contains and how an issued certificate is validated, but not how a
        template comes to exist, so the conformance gate and dual attestation
        that existing implementations perform were unspecified.</li>
        <li>Specified the nonce and freshness window for replay prevention
        (<xref target="replay-attacks"/>).  -02 required "a timestamp and nonce"
        and a "defined freshness window" without defining either, which a
        conforming implementation could satisfy with an eight-bit nonce and a
        window of a day.</li>
        <li>Required certificates to say where their revocation state lives
        (<xref target="revocation-discovery"/>).  -02 required revocation to be
        consulted on every validation without requiring any means of finding
        it.</li>
        <li>Specified the encoding of spawn provenance
        (<xref target="spawn-provenance"/>).  -02 issued a child certificate
        "with parent identity embedded" and a nonce, and gave neither a
        location.  The link from child to parent lived in an unsigned chain
        document, so the provenance the Introduction calls cryptographically
        traceable was asserted rather than attested.</li>
        <li>Corrected the certificate chain figure
        (<xref target="cert-chain-structure"/>), which showed an agent
        certificate issuing a child certificate -- forbidden by
        <xref target="certificate-profile"/> -- and non-UUID subjects,
        forbidden by <xref target="identity-binding"/>.</li>
        <li>Typed the cross-organizational grant fields
        (<xref target="grant-structure"/>) and removed the row that listed a
        signature as a field of the grant; signatures are envelope members.
        Bounded a policy's NotAfter by the certificate's notAfter rather than by
        a duration it could not be compared against.</li>
        <li>Stated who holds the count that MaxChildren is compared against
        (<xref target="spawn-validation-sequence"/>).  -02 required the
        comparison and named no party to perform it, so a distributed
        deployment had no defined owner of the state and two concurrent spawns
        could both succeed.  The Registry enforces the cap atomically; a
        relying party's document-local count is a consistency check.</li>
        <li>Made duplicate-member detection a requirement on the parser
        (<xref target="document-encoding"/>), not only a property of the
        document.  A stock JSON parser silently keeps one of two duplicates
        and reports success, which satisfied the -02 wording while defeating
        its purpose.</li>
        <li>Defined scope syntax and set semantics
        (<xref target="scope-constraint"/>).  -02 required byte comparison of
        wire names and said nothing about scope values, so whether Read:Data
        equalled read:data, whether array order mattered, and whether an empty
        request satisfied the subset test were all implementation-defined.</li>
        <li>Named the party that performs the spawn sequence and issues the
        child certificate (<xref target="spawn-validation-sequence"/>).  -02
        stated the issuance in the passive voice, and the only party a reader
        would guess is the one <xref target="certificate-profile"/>
        forbids.</li>
        <li>Defined the value space of PermittedOperations and tied spawn to
        the right to spawn (<xref target="static-fields"/>,
        <xref target="two-check-rule"/>).  -02 required the field, typed it,
        showed values in examples, and assigned no meaning to any of them.</li>
        <li>Stated what makes a root legitimate
        (<xref target="spawn-provenance"/>), gave an absent NotAfter a meaning
        (<xref target="policy-document-structure"/>), gave a grant an issuance
        instant so its TTL has an origin (<xref target="grant-structure"/>),
        and bound a certificate's validity period to its ttl_seconds
        (<xref target="template-issuance"/>) so that the TTL is enforced by
        path validation.  Clarified that the bounds check of
        <xref target="dynamic-policy-bounds"/> is independent of signature
        validity but not prior to it.</li>
        <li>Added threat coverage for the encodings this revision specifies
        (<xref target="threat-coverage"/>), stated the rationale for the
        freshness window (<xref target="replay-attacks"/>), clarified that the
        window governs the request and not later validation
        (<xref target="spawn-provenance"/>), and stated that what a scope
        grants access to is outside this document
        (<xref target="scope-constraint"/>).</li>
        <li>Specified the signature algorithm per signer key type
        (<xref target="signature-envelope"/>): RSASSA-PSS or ECDSA with a
        fixed-width value, and no algorithm identifier in the envelope.  -02
        said "raw signature value" and "SHA-256 or stronger" with no way to
        signal which, so two implementations could not verify each other's
        signatures.</li>
        <li>Specified how a relying party trusts the Owner and Policy
        Authority keys (<xref target="template-dual-signature"/>,
        <xref target="trust-anchor-options"/>) and bound the Owner field to
        the Owner certificate's subject.  -02 required the signatures and
        said nothing about the keys.</li>
        <li>Defined Relying Party, Owner, and Root Orchestrator, stated that
        a template defines exactly one agent, and stated that the Registry
        and its CA are one logical entity (<xref target="terminology"/>).
        Stated that a new template version keeps its Subject and revokes
        the prior certificate (<xref target="full-re-verification"/>), that
        DISABLED is a Registry state reported in Check 2 rather than a CRL
        entry (<xref target="template-lifecycle"/>), and which organizations
        may own a child template under Check 2
        (<xref target="two-check-rule"/>).</li>
        <li>Replaced the conformance certification requirement, which named
        no certifying body, with a conformance claim
        (<xref target="conformance-certification"/>).  Added Privacy
        Considerations and Algorithm Agility, and the handling of a
        compromised Owner or Policy Authority key.  Adopted the BCP 14
        boilerplate of <xref target="RFC8174"/> and moved the document to
        the IETF stream and the Security Area.</li>
        <li>Hardened the profile with no allowance for prior
        implementations, which are retained under tags.  Both certificate
        extensions are now critical (<xref target="static-field-encoding"/>),
        so a validator that does not implement this document refuses the
        certificate instead of treating it as an ordinary client
        certificate.  The key strength floor rose to 128 bits, RSA-2048 is
        refused, EC and Ed25519 are recommended, keyUsage is restricted to
        digitalSignature, and serial numbers require 64 bits of entropy
        (<xref target="certificate-profile"/>).  Ed25519 joined the
        signature algorithms.  The two-roles-one-key rule now compares keys
        rather than signature octets, which a randomized scheme made
        necessary (<xref target="signature-envelope"/>).  Certificate
        lifetime is capped at seven days (<xref target="template-issuance"/>).
        Timestamps require the Z designator and the JSON objects are
        declared flat (<xref target="document-encoding"/>).  The Grantor's
        Registry was named as the enforcer of MaxSpawns
        (<xref target="grant-structure"/>).</li>
        <li>Replaced the IANA Considerations section, which previously declared
        no actions.  Specifying the dynamic policy as a standalone JSON document
        made a media type necessary, and defining scope syntax made a scope
        registry possible.</li>
        <li>Promoted the implementation table to a top-level Implementation
        Status section per <xref target="RFC7942"/>.</li>
        <li>Made the dynamic policy govern spawning
        (<xref target="two-check-rule"/>,
        <xref target="spawn-validation-sequence"/>).  The policy document
        carried a SpawnTargets member that no check consulted, so a policy
        granting no spawn targets left an agent able to spawn everything its
        certificate's CanSpawn allowed.  The spawn sequence now has a policy
        step, and each of its steps is assigned to one of the two checks so
        that an implementer reading the rule alone builds all of them.</li>
        <li>Stated who generates the spawn nonce and when it is spent
        (<xref target="replay-attacks"/>, <xref target="spawn-provenance"/>).
        The text had the agent supplying the nonce in one place and the
        Registry issuing it in another.  The agent generates it; the Registry
        records it on receipt, whether or not the request is then refused; and
        the document-local uniqueness check is a consistency check rather than
        the enforcement of uniqueness, which a relying party holding one chain
        cannot perform.</li>
        <li>Bounded MaxChildren by the size of CanSpawn
        (<xref target="static-fields"/>) and required the Registry to refuse a
        second live certificate for one child template
        (<xref target="spawn-validation-sequence"/>).  A template defines one
        agent, so a cap above the number of named children was a cap on
        nothing, and the example in <xref target="cert-chain-structure"/>
        showed exactly that.</li>
        <li>Removed Issuer from the static field table
        (<xref target="static-fields"/>).  It was REQUIRED there and declared
        to have no member in the extension two sections later, so the
        conformance gate demanded a value that could never be supplied.</li>
        <li>Tied an issued certificate to the grant that authorized it: a grant
        carries a GrantID (<xref target="grant-structure"/>), a
        cross-organizational spawn records it in the Agent Spawn extension
        (<xref target="spawn-provenance"/>), and revoking the grant revokes
        those certificates (<xref target="unilateral-revocation"/>).  The
        requirement that agents spawned under a revoked grant be treated as
        untrusted recorded nothing that identified them.</li>
        <li>Gave the audit log entry a member table
        (<xref target="audit-requirements"/>), the extension size limit a
        value (<xref target="static-field-encoding"/>), the policy document
        table a type column (<xref target="policy-document-structure"/>), the
        content hash a stated scope (<xref target="signature-coverage"/>),
        string equality one rule (<xref target="document-encoding"/>), and
        the serial number its DER encoding
        (<xref target="certificate-profile"/>).  Redrew the CSR flow
        (<xref target="csr-flow"/>) to show the dual attestation that
        <xref target="template-dual-signature"/> requires, added
        <xref target="untrusted-input"/>, listed every field-bearing section
        in <xref target="field-placement"/>, and moved OAuth 2.0 and Token
        Exchange to the informative references, since neither is needed to
        implement anything here.</li>
      </ul>
    </section>

    <section anchor="changes-02" numbered="true" toc="default">
      <name>Changes since draft-tonyai-a2a-trust-01</name>
      <t>Section numbers in this appendix are those of draft-tonyai-a2a-trust-02,
      the revision these changes produced.  Several sections were renumbered in
      -03; see <xref target="changes-03"/>.</t>
      <t>
        All changes in this revision were surfaced by building a second,
        independent implementation of the -01 text and attacking it.  Changes are
        described below by their effect on a conformant implementation rather
        than by intent: where an implementation conforming to -01 must change to
        remain conformant, this is stated plainly, because an implementer reading
        this appendix is deciding whether re-verification is required.
      </t>
      <t>
        Four changes below are breaking.  Two implementations exist at the time
        of writing, both under the author's control; the cost of these changes is
        at its minimum now and rises permanently once a third-party
        implementation ships.
      </t>

      <t><strong>Security fix -- breaking.</strong></t>
      <ul>
        <li>
          Section 9.6 (Signature and Hash Coverage) is new, and requires that
          Version and Subject be inside the signed preimage.  In -01 the policy
          version was listed in Section 9.4 as a value stored alongside the
          signature, and the text never required the signature to cover it.  Both
          existing implementations read it that way and neither signed the
          version, which defeats the replay prevention that Section 9.4 assigns
          to that field: an attacker holding no key can take a superseded but
          validly signed policy, increment the version, and have it accepted --
          both signatures verify, the content hash matches, and the version reads
          as current.  Implementations MUST re-sign existing policies under the
          new coverage.  Signatures produced under -01 do not verify under -02.
        </li>
      </ul>

      <t><strong>Interoperability -- breaking.</strong></t>
      <ul>
        <li>
          Section 9.5 (Canonicalization) is new, and normatively specifies JCS
          (RFC 8785) as the serialization for all signatures and hashes.  -01
          contained no canonicalization text of any kind, which made Section 9.3
          impossible to implement interoperably: a signature is over bytes, and
          nothing in -01 said how those bytes are produced.  The only way to
          implement -01's dual signature was to read an existing implementation's
          source.  JCS differs from what both current implementations do, so
          both must change and all existing signatures and test vectors are
          invalidated.  An existing implementation is not conformant to -02 by
          default.
        </li>
        <li>
          Section 9.4 (Dynamic Policy Document Structure) is new.  -01 required
          the dynamic policy to be signed, hashed, stored and integrity-checked
          without ever defining what it contains, leaving each implementer to
          invent a field set.  Different invented sets produce different
          signatures and different hashes for the same policy, and each
          implementation reads the other's documents as tampered with.
          Implementations whose field set differs from the table in Section 9.4
          must change.
        </li>
      </ul>

      <t><strong>New normative requirements -- additive.</strong></t>
      <ul>
        <li>
          Section 6.3 (Certificate Profile) is new.  -01 mandated X.509 and
          specified no profile: no key strength, no digest floor, and no
          basicConstraints requirement.  Three certificates that verify under a
          conformant X.509 validator were accepted as agent identities by an
          implementation conforming to -01 -- one asserting cA = TRUE, one signed
          with SHA-1, and one carrying no basicConstraints at all.  The first is
          also a containment failure: an agent whose certificate permits it to
          issue certificates can create children without presenting a request to
          the CA, which removes both checks in Section 8.1 from the spawn path
          without invalidating any signature.  Implementations already issuing
          cA = FALSE, SHA-256, RSA-2048 leaves satisfy this section unchanged,
          but MUST add the corresponding checks on validation.
        </li>
        <li>
          Section 7.2 now states who enforces the dynamic policy bounds, when,
          and with what result.  -01 stated the rule and named no enforcement
          point, so an implementation that never checked it and one that checked
          it before signature verification both read as conformant while
          returning different results for the same document.  The bounds MUST now
          be evaluated independently of signature validity and refused before the
          policy is applied.
        </li>
      </ul>

      <t><strong>Rename -- breaking.</strong></t>
      <ul>
        <li>
          The Section 7.1 static field KeyUsage is renamed
          PermittedOperations.  The field carries the operations an agent may
          perform -- spawn, delegate, read -- and is unrelated to the X.509
          keyUsage extension, whose values are digitalSignature, keyCertSign and
          the rest of the RFC 5280 set.  The collision was latent while this
          document never referred to the X.509 extension; Section 6.3 now does,
          normatively, so a single document used one name for two unrelated
          things.  RFC 5280 owns the name keyUsage, so the template field is the
          one that moves.  The new name is the description this document already
          gave the field.  Implementations MUST rename the corresponding metadata
          field; the value space is unchanged.
        </li>
      </ul>

      <t><strong>Removal -- breaking for any implementation reading the field.</strong></t>
      <ul>
        <li>
          The ScopeInherit field is removed from the Section 7.1 static field
          table.  It was REQUIRED in -00 and -01 with no defined value space, and
          the value both existing implementations populate it with,
          "strict-subset", contradicts Section 8.3 as clarified in -01, which
          explicitly permits equality.  Neither implementation reads the value,
          so the field conveyed no capability; Section 8.3 already determines
          inheritance completely.  An implementation that enforced the field
          literally would deny a child legitimately holding its parent's full
          scope set, which is the misreading -01 was published to prevent.
        </li>
      </ul>

      <t><strong>Non-normative.</strong></t>
      <ul>
        <li>
          Section 16.7 (PKI Does Not Enforce Authorization) is new.  It states
          that certificate validity establishes identity and not authorization,
          that neither nameConstraints nor certificatePolicies closes that gap,
          and that Sections 7.2 and 8.3 are therefore load-bearing implementation
          logic rather than restatements of a guarantee the chain already
          provides.  No behaviour changes; the omission was judged the most
          likely to cause an implementer to build something that verifies
          correctly and contains nothing.
        </li>
      </ul>
    </section>

    <section anchor="changes-01" numbered="true" toc="default">
      <name>Changes since draft-tonyai-a2a-trust-00</name>
      <t>Section numbers in this appendix are those of draft-tonyai-a2a-trust-01,
      the revision these changes produced.</t>
      <t>
        Clarified two areas identified as ambiguous during development of a
        reference implementation:
      </t>
      <ul>
        <li>
          Section 8.3/16.1 scope-subset language now explicitly permits
          equality between a child's requested scope and its parent's
          granted scope; only escalation (a superset) is prohibited. The
          prior wording could be misread as requiring a strict/proper
          subset, which would wrongly deny a child that legitimately needs
          the same scope as its parent.
        </li>
        <li>
          Section 12.1 revocation-check language now explicitly accepts an
          X.509 CRL, an OCSP responder, or an equivalent revocation
          registry, rather than implying a CRL specifically. The
          normative requirement is that revocation state is consulted on
          every validation, not the specific mechanism used to represent
          it.
        </li>
      </ul>
      <t>
        Neither change alters the normative requirements themselves; both
        make explicit what the -00 text intended. Both were surfaced by
        building and red-teaming a conformance reference implementation
        against the -00 text.
      </t>
    </section>
    <section anchor="acknowledgments" numbered="false" toc="default">
      <name>Acknowledgments</name>
      <t>The author thanks Blake Morrison for review comments on the
      DISPATCH mailing list that led to the statement of scope in the
      Abstract and to <xref target="delegated-requests"
      format="default"/>.</t>
    </section>
  </back>

</rfc>
