<?xml version="1.0" encoding="utf-8"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" category="std" docName="draft-kanojia-creduent-agent-uri-01" ipr="trust200902" submissionType="IETF" xml:lang="en" version="3">
  <front>
    <title abbrev="agent URI and Attestation">The 'agent' Uniform Resource Identifier (URI) Scheme and Cryptographic Attestation Protocol</title>
    <seriesInfo name="Internet-Draft" value="draft-kanojia-creduent-agent-uri-01"/>
    <author fullname="Kashish Kanojia" initials="K." surname="Kanojia">
      <organization>IDevSec</organization>
      <address>
        <postal>
          <country>India</country>
        </postal>
        <email>kashish@idevsec.com</email>
        <uri>https://idevsec.com</uri>
      </address>
    </author>
    <date year="2026" month="November" day="21"/>
    <area>Security</area>
    <workgroup>Network Working Group</workgroup>
    <keyword>agent</keyword>
    <keyword>URI</keyword>
    <keyword>Ed25519</keyword>
    <keyword>Creduent</keyword>
    <keyword>JCS</keyword>
    <abstract>
      <t>This document specifies the 'agent' Uniform Resource Identifier (URI) scheme and its associated cryptographic attestation protocol. The 'agent' scheme defines a transport-agnostic, cryptographically verifiable addressing layer for identifying autonomous software agents, binding domain ownership via DNSSEC TXT records, resolving agent identity documents via deterministic HTTPS well-known paths, and validating attenuated capability delegation tokens.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <section anchor="problem-statement">
        <name>Problem Statement</name>
        <t>Autonomous software agents operating across distributed multi-cloud networks, model contexts, and tool environments require a unified, cryptographically secure identity layer. Existing network addressing schemes (HTTP URLs, gRPC endpoints) route traffic to server hosts, but fail to verify:</t>
        <ol spacing="normal" type="1">
          <li><t>Whether the remote software process possesses a verified Ed25519 cryptographic key pair.</t></li>
          <li><t>Whether the agent's domain identity matches DNS infrastructure ownership validated via DNSSEC.</t></li>
          <li><t>Whether active agent capabilities and endpoints have been tampered with.</t></li>
          <li><t>Whether sub-agent tasks carry valid, scope-restricted delegation tokens.</t></li>
        </ol>
      </section>
      <section anchor="protocol-goals">
        <name>Protocol Goals</name>
        <t>The Creduent protocol specifies the 'agent' URI scheme to establish a verifiable trust root for software agents. The protocol provides:</t>
        <ul spacing="normal">
          <li><t>Deterministic resolution from 'agent://' URIs to signed identity documents (`agent.json`).</t></li>
          <li><t>Cryptographic key binding using Ed25519 digital signatures and JSON Canonicalization Scheme (JCS).</t></li>
          <li><t>Domain-level ownership validation via DNSSEC TXT records (`_creduent.&lt;authority&gt;`).</t></li>
          <li><t>Attenuated capability delegation via Creduent Delegation Tokens (CDT).</t></li>
          <li><t>Optional third-party registry attestations for multi-domain verification.</t></li>
        </ul>
      </section>
    </section>

    <section anchor="terminology-and-conventions">
      <name>Terminology and Conventions</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>
      <dl newline="false" spacing="normal">
        <dt>Agent Identity:</dt>
        <dd>A cryptographic identity consisting of an `agent_id` uniquely bound to an Ed25519 public key through the verification procedures defined in this document.</dd>
        <dt>agent.json:</dt>
        <dd>An I-JSON document canonicalized per RFC 8785 containing public keys, capabilities, endpoints, and owner metadata.</dd>
        <dt>Authority:</dt>
        <dd>The domain name or host portion (`reg-name`) of an 'agent' URI responsible for identity resolution.</dd>
        <dt>Attestation:</dt>
        <dd>An optional cryptographically signed assertion issued by a registry validating domain mapping.</dd>
      </dl>
    </section>

    <section anchor="uri-scheme-specification">
      <name>URI Scheme Specification</name>
      <section anchor="abnf-syntax-definition">
        <name>ABNF Syntax Definition</name>
        <t>The 'agent' URI scheme syntax is specified using Augmented Backus-Naur Form (ABNF) as defined in <xref target="RFC5234"/>, importing core productions from <xref target="RFC3986"/>.</t>
        <artwork><![CDATA[
agent-URI       = "agent://" agent-authority [ "/" agent-path ]
                  [ "?" query ] [ "#" fragment ]

agent-authority = host [ ":" port ]
agent-path      = segment-nz *( "/" segment )

host            = IP-literal / IPv4address / reg-name
port            = *DIGIT
segment-nz      = 1*pchar
segment         = *pchar
pchar           = unreserved / pct-encoded / sub-delims / ":" / "@"
unreserved      = ALPHA / DIGIT / "-" / "." / "_" / "~"
query           = *( pchar / "/" / "?" )
fragment        = *( pchar / "/" / "?" )
]]></artwork>
      </section>
      <section anchor="uri-normalization-and-canonicalization">
        <name>URI Normalization and Canonicalization</name>
        <t>Implementations <bcp14>MUST</bcp14> normalize 'agent' URIs prior to resolution and signature validation:</t>
        <ul spacing="normal">
          <li><t>Scheme names <bcp14>MUST</bcp14> be converted to lowercase ("agent://").</t></li>
          <li><t>Hostnames <bcp14>MUST</bcp14> be converted to lowercase per Internationalized Domain Names (IDNA) rules (<xref target="RFC5890"/>).</t></li>
          <li><t>Percent-encoded unreserved characters <bcp14>MUST</bcp14> be decoded.</t></li>
          <li><t>Agent-path segments equal to `.` or `..` <bcp14>MUST</bcp14> be rejected by resolvers prior to HTTPS URL construction to prevent path traversal vulnerabilities.</t></li>
          <li><t>Query components (`?`) and fragment identifiers (`#`) <bcp14>MUST NOT</bcp14> participate in agent identity calculation and <bcp14>MUST NOT</bcp14> alter deterministic well-known HTTPS resolution.</t></li>
          <li><t>Public IPv4 and IPv6 literal addresses <bcp14>MAY</bcp14> be used for testing, but production authorities <bcp14>SHOULD</bcp14> use domain names (`reg-name`). Resolvers <bcp14>MUST NOT</bcp14> connect to private-use or loopback IPv4/IPv6 address ranges to prevent Server-Side Request Forgery (SSRF).</t></li>
        </ul>
      </section>
      <section anchor="example-uris">
        <name>Example URIs</name>
        <artwork><![CDATA[
agent://example.com
agent://example.com/auditor
agent://example.com/finance/payroll-bot
]]></artwork>
      </section>
    </section>

    <section anchor="cryptographic-identity-document-format-agentjson">
      <name>Cryptographic Identity Document Format (agent.json)</name>
      <section anchor="field-definitions">
        <name>Field Definitions</name>
        <t>The identity payload document <bcp14>MUST</bcp14> conform to I-JSON constraints (<xref target="RFC7493"/>) and contain the following structured JSON fields:</t>
        <dl newline="false" spacing="normal">
          <dt>version (string, <bcp14>REQUIRED</bcp14>):</dt>
          <dd>Protocol version identifier ("2.0").</dd>
          <dt>identity.agent_id (string, <bcp14>REQUIRED</bcp14>):</dt>
          <dd>The absolute 'agent://' URI of the agent.</dd>
          <dt>identity.owner (string, <bcp14>REQUIRED</bcp14>):</dt>
          <dd>Contact URI or email of the controlling entity (e.g. "mailto:admin@example.com").</dd>
          <dt>identity.endpoint (string, <bcp14>OPTIONAL</bcp14>):</dt>
          <dd>Base HTTPS service URL where remote agents send API requests or invoke agent tasks.</dd>
          <dt>identity.keys (array, <bcp14>REQUIRED</bcp14>):</dt>
          <dd>List of key objects (`id`, `type`, `public_key`, `status`, `expires_at`). Public keys <bcp14>MUST</bcp14> use the unpadded base64url encoding (<xref target="RFC4648"/>) of the raw 32-octet Ed25519 public key (yielding exactly 43 characters), prefixed with `ed25519:`.</dd>
          <dt>policy.capabilities (array, <bcp14>REQUIRED</bcp14>):</dt>
          <dd>Array of exact capability strings (e.g. `["ledger:read", "reports:generate"]`).</dd>
          <dt>signature (object, <bcp14>REQUIRED</bcp14>):</dt>
          <dd>Signature envelope containing `key_id`, `created`, and `proofValue` (unpadded base64url encoded 64-octet Ed25519 signature yielding exactly 86 characters).</dd>
        </dl>
      </section>
      <section anchor="jcs-processing">
        <name>JSON Canonicalization Scheme (JCS) Processing</name>
        <t>To generate or verify signatures, the document <bcp14>MUST</bcp14> be canonicalized using JCS <xref target="RFC8785"/>:</t>
        <ol spacing="normal" type="1">
          <li><t>Reject documents containing duplicate JSON object keys.</t></li>
          <li><t>Remove the `"signature"` object member from the document copy.</t></li>
          <li><t>Canonicalize the remaining JSON payload strictly according to RFC 8785 (ECMAScript UTF-16 code unit property sorting).</t></li>
          <li><t>Encode the canonical string as UTF-8 bytes.</t></li>
        </ol>
      </section>
      <section anchor="ed25519-signature-generation">
        <name>Ed25519 Signature Generation and Validation</name>
        <t>Signatures <bcp14>MUST</bcp14> be generated using PureEd25519 (<xref target="RFC8032"/>) over the UTF-8 bytes of the canonicalized JCS document:</t>
        <artwork><![CDATA[
signature_bytes = Ed25519_Sign(private_key, UTF8(JCS(doc_copy)))
proofValue      = Base64Url_NoPadding_Encode(signature_bytes)
]]></artwork>
      </section>
      <section anchor="complete-example-document">
        <name>Complete Example Document</name>
        <artwork><![CDATA[
{
  "version": "2.0",
  "identity": {
    "agent_id": "agent://example.com/auditor",
    "owner": "mailto:security@example.com",
    "endpoint": "https://example.com/api",
    "keys": [
      {
        "id": "key-1",
        "type": "ed25519",
        "public_key":
          "ed25519:11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo",
        "status": "active",
        "expires_at": "2027-01-01T00:00:00Z"
      }
    ]
  },
  "policy": {
    "capabilities": [
      "ledger:read",
      "reports:generate"
    ]
  },
  "signature": {
    "key_id": "key-1",
    "created": "2026-09-02T04:00:00Z",
    "proofValue":
      "HDVEC1vr1udw0FljRcvvmtefQSs-NAnImbHZctUYTuQLPMBQc-"
      "aiPih8RfWHrhOB7-GGbmhR0b_1zSre6tGlDg"
  }
}
]]></artwork>
      </section>
    </section>

    <section anchor="resolution-and-verification-architecture">
      <name>Resolution and Verification Architecture</name>
      <section anchor="resolution-algorithm">
        <name>Resolution Algorithm (Path-Preserving Decentralized Resolution)</name>
        <t>When resolving an 'agent' URI (e.g. "agent://example.com" or "agent://example.com/auditor"), resolving clients <bcp14>MUST</bcp14> execute the following deterministic, decentralized pipeline:</t>
        <ol spacing="normal" type="1">
          <li><t><strong>Authority &amp; Path Extraction:</strong> Extract `authority` (`netloc`) and `agent-path` from the URI.</t></li>
          <li><t><strong>Deterministic HTTPS Resolution URL Construction:</strong></t>
            <ul spacing="normal">
              <li><t>If `agent-path` is empty or "/", construct: `https://{authority}/.well-known/agent.json`.</t></li>
              <li><t>If `agent-path` is present (e.g. `/auditor`), construct: `https://{authority}/.well-known/agent/{agent-path}.json`.</t></li>
            </ul>
          </li>
          <li><t><strong>HTTPS Document Fetch:</strong> Issue an HTTPS GET request to the resolved URL, validating WebPKI TLS 1.3 certificates. HTTP redirects <bcp14>MUST NOT</bcp14> cross authority boundaries.</t></li>
          <li><t><strong>Schema &amp; Signature Validation:</strong> Parse the JSON document, remove `"signature"`, canonicalize via JCS <xref target="RFC8785"/>, and verify the Ed25519 signature against the key specified in `signature.key_id`.</t></li>
          <li><t><strong>DNSSEC Binding Verification:</strong> Perform DNSSEC validation (<xref target="RFC4035"/>) for TXT records at `_creduent.&lt;authority&gt;`. Verify that the Ed25519 public key in `_creduent.&lt;authority&gt;` matches or authorizes the key in `signature.key_id`. If DNSSEC validation fails, resolution <bcp14>MUST</bcp14> fail.</t></li>
          <li><t><strong>Cross-Namespace Spoofing Check:</strong> Confirm that `identity.agent_id` inside `agent.json` exactly matches the target 'agent://' URI.</t></li>
          <li><t><strong>Optional Registry Attestation Check:</strong> Clients <bcp14>MAY</bcp14> optionally query a secondary attestation registry to verify cross-domain endorsements, but base resolution <bcp14>MUST NOT</bcp14> depend on centralized registries.</t></li>
        </ol>
      </section>
      <section anchor="dns-txt-ownership-verification">
        <name>DNS TXT Ownership Verification</name>
        <t>To bind domain control, authority domain owners <bcp14>MUST</bcp14> publish a DNS TXT record at `_creduent.&lt;authority&gt;`.</t>
        <artwork><![CDATA[
_creduent.example.com. IN TXT
  "v=CRE1; k=ed25519; p=11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo"
]]></artwork>
        <t>Resolvers <bcp14>MUST</bcp14> enforce DNSSEC (<xref target="RFC4033"/>, <xref target="RFC4034"/>, <xref target="RFC4035"/>) validation when querying DNS TXT records to prevent DNS cache poisoning attacks.</t>
      </section>
    </section>

    <section anchor="delegation-tokens-and-capability-attenuation-cdt">
      <name>Delegation Tokens and Capability Attenuation (CDT)</name>
      <section anchor="token-payload-format">
        <name>Token Payload Format</name>
        <t>Parent agents delegating authority to child sub-agents <bcp14>MUST</bcp14> issue a Creduent Delegation Token (CDT):</t>
        <artwork><![CDATA[
{
  "iss": "agent://example.com/parent-agent",
  "sub": "agent://example.com/child-worker",
  "aud": "agent://target-service.com/api",
  "iat": 1786273200,
  "exp": 1786276800,
  "jti": "cdt-nonce-98765",
  "parent_token_hash":
    "sha256:c1551acada3a8983c9cd6ad5"
    "cb12814050585c66d12678151f4ff967b1f07850",
  "capabilities": [
    "db:read:readonly_table"
  ],
  "delegation_depth": 2,
  "signature": {
    "key_id": "key-1",
    "proofValue":
      "P5ObC-B2Wub8-Cpc-PoukzSmade1447CsZHqG8G89cqj"
      "V8grcU65Aa6az3L3TsC6plyhTbwtAnYtWdWL72IdDA"
  }
}
]]></artwork>
      </section>
      <section anchor="cdt-signature-computation">
        <name>CDT Signature Computation</name>
        <t>CDT signatures <bcp14>MUST</bcp14> be computed over the JCS canonicalization of the token payload excluding `"signature"`:</t>
        <ol spacing="normal" type="1">
          <li><t>Parse CDT payload as I-JSON (<xref target="RFC7493"/>) and reject duplicate keys.</t></li>
          <li><t>Remove top-level `"signature"` member.</t></li>
          <li><t>Canonicalize remaining fields via JCS (<xref target="RFC8785"/>).</t></li>
          <li><t>Sign canonical UTF-8 bytes using Ed25519 (<xref target="RFC8032"/>) private key of `iss`.</t></li>
          <li><t>Encode signature as unpadded Base64Url string in `signature.proofValue`.</t></li>
        </ol>
      </section>
      <section anchor="capability-attenuation-algebra">
        <name>Capability Attenuation Algebra</name>
        <t>Capabilities are exact, opaque strings formatted as `namespace:action:resource`. Attenuation dictates that child token capabilities <bcp14>MUST</bcp14> be a non-expanding subset of parent capabilities (`Capabilities(child) &lt;= Capabilities(parent)`):</t>
        <artwork><![CDATA[
Capabilities(Token_child) <= Capabilities(Token_parent)
]]></artwork>
      </section>
      <section anchor="depth-limit-and-chain-validation">
        <name>Delegation Depth and Chain Validation</name>
        <t>Delegation depth is decremented at each hop (`delegation_depth_child = delegation_depth_parent - 1`). If `delegation_depth` reaches 0, no further child tokens <bcp14>MAY</bcp14> be issued. Verifying endpoints receiving a delegation chain <bcp14>MUST</bcp14> recursively validate Ed25519 signatures, capability subset constraints, parent token hashes, and non-expired `exp` timestamps.</t>
      </section>
    </section>

    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <section anchor="uri-scheme-registration-template">
        <name>URI Scheme Registration Template</name>
        <t>The 'agent' URI scheme registration follows the guidelines defined in BCP 35 <xref target="RFC7595"/>.</t>
        <artwork><![CDATA[
Scheme name:
   agent

Status:
   Provisional

Applications:
   Autonomous AI agent systems, MCP hosts, microservice swarms.

Contact:
   Kashish Kanojia <kashish@idevsec.com>

Change controller:
   IDevSec (https://idevsec.com)

References:
   draft-kanojia-creduent-agent-uri-01
]]></artwork>
      </section>

      <section anchor="well-known-uri-registration">
        <name>Well-Known URI Registration (Suffix agent.json)</name>
        <t>This document requests registration of the well-known URI suffix `agent.json` in the "Well-Known URIs" registry per <xref target="RFC8615"/>.</t>
        <artwork><![CDATA[
URI Suffix:
   agent.json

Change Controller:
   IDevSec (https://idevsec.com)

Reference:
   draft-kanojia-creduent-agent-uri-01

Status:
   provisional

Related Information:
   The syntax and semantics of root agent identity documents
   are defined in Section 4.
]]></artwork>
      </section>

      <section anchor="well-known-prefix-registration">
        <name>Well-Known URI Registration (Prefix agent/)</name>
        <t>This document requests registration of the well-known URI prefix `agent/` in the "Well-Known URIs" registry per <xref target="RFC8615"/> Section 3.1.</t>
        <artwork><![CDATA[
URI Suffix:
   agent/

Change Controller:
   IDevSec (https://idevsec.com)

Reference:
   draft-kanojia-creduent-agent-uri-01

Status:
   provisional

Related Information:
   The syntax and semantics of path-preserving agent identity
   documents (e.g., /.well-known/agent/{path}.json) are defined
   in Section 5.1.
]]></artwork>
      </section>
    </section>

    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <section anchor="attacker-capabilities-and-threat-matrix">
        <name>Attacker Capabilities and Threat Matrix</name>
        <t>Per <xref target="RFC3552"/>, the protocol evaluates defenses against explicit adversary models:</t>
        <ul spacing="normal">
          <li><t><strong>On-Path Adversary (Eavesdropping &amp; Modification):</strong> Defended via mandatory WebPKI TLS 1.3 and Ed25519 signatures over canonical JCS.</t></li>
          <li><t><strong>Off-Path Adversary (DNS Poisoning &amp; BGP Hijacking):</strong> Defended via mandatory DNSSEC (<xref target="RFC4035"/>) verification of `_creduent.&lt;authority&gt;`.</t></li>
          <li><t><strong>TLS Interception Adversary:</strong> Defended via WebPKI certificate validation and public key binding.</t></li>
          <li><t><strong>Token Replay Adversary:</strong> Defended via mandatory `exp` timestamps and unique `jti` nonces recorded in verifier LRU caches.</t></li>
          <li><t><strong>SSRF &amp; Path Traversal Adversary:</strong> Defended via mandatory prohibition of private/loopback resolution targets and rejection of `.` / `..` path segments.</t></li>
        </ul>
      </section>
      <section anchor="key-revocation-and-recovery">
        <name>Key Revocation and Recovery</name>
        <t>In case of key compromise, domain owners <bcp14>MUST</bcp14> update the `_creduent` DNS TXT record with a new public key. Resolvers <bcp14>MUST NOT</bcp14> cache verification documents past their HTTP `Cache-Control` max-age. Residual Risk: If an authority's private key is compromised, residual risk is bounded by the DNS TTL and HTTP Cache-Control max-age window before public key rotation takes effect.</t>
      </section>
      <section anchor="privacy-considerations">
        <name>Privacy Considerations</name>
        <t>Agent identity documents expose public metadata (`identity.owner`, `identity.endpoint`, `policy.capabilities`). The `identity.owner` field (e.g. `mailto:security@example.com`) is intentionally public administrative contact metadata analogous to WHOIS abuse contact records. Agents handling confidential workloads <bcp14>SHOULD</bcp14> restrict sensitive capabilities to authenticated mutual TLS sessions or authorized API handshakes rather than advertising them in unauthenticated `agent.json` documents.</t>
      </section>
    </section>
  </middle>

  <back>
    <references>
      <name>Normative References</name>
      <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"/>
          <date month="March" year="1997"/>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="2119"/>
      </reference>
      <reference anchor="RFC3986" target="https://www.rfc-editor.org/info/rfc3986">
        <front>
          <title>Uniform Resource Identifier (URI): Generic Syntax</title>
          <author initials="T." surname="Berners-Lee"/>
          <author initials="R." surname="Fielding"/>
          <author initials="L." surname="Masinter"/>
          <date month="January" year="2005"/>
        </front>
        <seriesInfo name="STD" value="66"/>
        <seriesInfo name="RFC" value="3986"/>
      </reference>
      <reference anchor="RFC4035" target="https://www.rfc-editor.org/info/rfc4035">
        <front>
          <title>Protocol Modifications for the DNS Security Extensions</title>
          <author initials="R." surname="Arends"/>
          <author initials="R." surname="Austein"/>
          <author initials="M." surname="Larson"/>
          <author initials="D." surname="Massey"/>
          <author initials="S." surname="Rose"/>
          <date month="March" year="2005"/>
        </front>
        <seriesInfo name="RFC" value="4035"/>
      </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"/>
          <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" role="editor"/>
          <author initials="P." surname="Overell"/>
          <date month="January" year="2008"/>
        </front>
        <seriesInfo name="STD" value="68"/>
        <seriesInfo name="RFC" value="5234"/>
      </reference>
      <reference anchor="RFC5890" target="https://www.rfc-editor.org/info/rfc5890">
        <front>
          <title>Internationalized Domain Names for Applications (IDNA): Definitions and Document Framework</title>
          <author initials="J." surname="Klensin"/>
          <date month="August" year="2010"/>
        </front>
        <seriesInfo name="RFC" value="5890"/>
      </reference>
      <reference anchor="RFC7493" target="https://www.rfc-editor.org/info/rfc7493">
        <front>
          <title>The I-JSON Message Format</title>
          <author initials="T." surname="Bray" role="editor"/>
          <date month="March" year="2015"/>
        </front>
        <seriesInfo name="RFC" value="7493"/>
      </reference>
      <reference anchor="RFC7595" target="https://www.rfc-editor.org/info/rfc7595">
        <front>
          <title>Guidelines and Procedures for Registration of URI Schemes</title>
          <author initials="D." surname="Thaler" role="editor"/>
          <date month="June" year="2015"/>
        </front>
        <seriesInfo name="BCP" value="35"/>
        <seriesInfo name="RFC" value="7595"/>
      </reference>
      <reference anchor="RFC8032" target="https://www.rfc-editor.org/info/rfc8032">
        <front>
          <title>Edwards-Curve Digital Signature Algorithm (Ed25519)</title>
          <author initials="S." surname="Josefsson"/>
          <author initials="I." surname="Liusvaara"/>
          <date month="January" year="2017"/>
        </front>
        <seriesInfo name="RFC" value="8032"/>
      </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"/>
          <date month="May" year="2017"/>
        </front>
        <seriesInfo name="BCP" value="14"/>
        <seriesInfo name="RFC" value="8174"/>
      </reference>
      <reference anchor="RFC8615" target="https://www.rfc-editor.org/info/rfc8615">
        <front>
          <title>Well-Known Uniform Resource Identifiers (URIs)</title>
          <author initials="M." surname="Nottingham"/>
          <date month="May" year="2019"/>
        </front>
        <seriesInfo name="RFC" value="8615"/>
      </reference>
      <reference anchor="RFC8785" target="https://www.rfc-editor.org/info/rfc8785">
        <front>
          <title>JSON Canonicalization Scheme (JCS)</title>
          <author initials="A." surname="Rundgren"/>
          <date month="June" year="2020"/>
        </front>
        <seriesInfo name="RFC" value="8785"/>
      </reference>
    </references>
    <references>
      <name>Informative References</name>
      <reference anchor="RFC3552" target="https://www.rfc-editor.org/info/rfc3552">
        <front>
          <title>Guidelines for Writing RFC Text on Security Considerations</title>
          <author initials="E." surname="Rescorla"/>
          <author initials="B." surname="Korver"/>
          <date month="July" year="2003"/>
        </front>
        <seriesInfo name="BCP" value="72"/>
        <seriesInfo name="RFC" value="3552"/>
      </reference>
      <reference anchor="RFC4033" target="https://www.rfc-editor.org/info/rfc4033">
        <front>
          <title>DNS Security Introduction and Requirements</title>
          <author initials="R." surname="Arends"/>
          <author initials="R." surname="Austein"/>
          <author initials="M." surname="Larson"/>
          <author initials="D." surname="Massey"/>
          <author initials="S." surname="Rose"/>
          <date month="March" year="2005"/>
        </front>
        <seriesInfo name="RFC" value="4033"/>
      </reference>
      <reference anchor="RFC4034" target="https://www.rfc-editor.org/info/rfc4034">
        <front>
          <title>Resource Records for the DNS Security Extensions</title>
          <author initials="R." surname="Arends"/>
          <author initials="R." surname="Austein"/>
          <author initials="M." surname="Larson"/>
          <author initials="D." surname="Massey"/>
          <author initials="S." surname="Rose"/>
          <date month="March" year="2005"/>
        </front>
        <seriesInfo name="RFC" value="4034"/>
      </reference>
    </references>
    <section anchor="test-vector-appendix">
      <name>Cryptographic Test Vectors</name>
      <t>This appendix provides two deterministic, mathematically verified test vectors for Ed25519 signature computation over JCS canonicalized identity documents and CDT delegation tokens.</t>
      
      <section anchor="vector-1-identity">
        <name>Agent Identity Document Test Vector</name>
        <t><strong>Private Key (32 octets, Hex Seed):</strong> `9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60`</t>
        <t><strong>Public Key (32 octets, Base64Url):</strong> `11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo`</t>
        <t><strong>Canonical JCS Input Bytes (UTF-8):</strong></t>
        <artwork><![CDATA[
{"identity":{"agent_id":"agent://example.com/auditor",
 "endpoint":"https://example.com/api",
 "keys":[{"expires_at":"2027-01-01T00:00:00Z","id":"key-1",
  "public_key":
   "ed25519:11qYAYKxCrfVS_7TyWQHOg7hcvPapiMlrwIaaPcHURo",
  "status":"active"}],"owner":"mailto:security@example.com"},
 "policy":{"capabilities":["ledger:read","reports:generate"]},
 "version":"2.0"}
]]></artwork>
        <t><strong>Expected Signature (`proofValue`, Base64Url):</strong> `HDVEC1vr1udw0FljRcvvmtefQSs-NAnImbHZctUYTuQLPMBQc-aiPih8RfWHrhOB7-GGbmhR0b_1zSre6tGlDg`</t>
      </section>

      <section anchor="vector-2-cdt">
        <name>Creduent Delegation Token (CDT) Test Vector</name>
        <t><strong>Parent CDT Hash (`parent_token_hash`, SHA-256):</strong><br/>
`sha256:c1551acada3a8983c9cd6ad5`<br/>
`cb12814050585c66d12678151f4ff967b1f07850`</t>
        <t><strong>Child CDT Canonical JCS Input Bytes (UTF-8):</strong></t>
        <artwork><![CDATA[
{"aud":"agent://target-service.com/api",
 "capabilities":["db:read:readonly_table"],"delegation_depth":2,
 "exp":1786276800,"iat":1786273200,
 "iss":"agent://example.com/parent-agent","jti":"cdt-nonce-98765",
 "parent_token_hash":
  "sha256:c1551acada3a8983c9cd6ad5"
  "cb12814050585c66d12678151f4ff967b1f07850",
 "sub":"agent://example.com/child-worker"}
]]></artwork>
        <t><strong>Expected CDT Signature (`proofValue`, Base64Url):</strong><br/>
`P5ObC-B2Wub8-Cpc-PoukzSmade1447CsZHqG8G89cqjV8grcU65Aa6az3L3TsC6`<br/>
`plyhTbwtAnYtWdWL72IdDA`</t>
      </section>
    </section>

        <section anchor="changelog-appendix">
      <name>Document Revision History</name>
      <t><strong>Changes from draft-00 to draft-01:</strong></t>
      <ul spacing="normal">
        <li><t>Formally updated IANA Considerations (Section 7) per RFC 7595 Section 7.3, adjusting intended initial registration status to Provisional and assigning Change Controller to IDevSec.</t></li>
        <li><t>Transitioned identity resolution architecture to a fully decentralized, path-preserving HTTPS .well-known model.</t></li>
        <li><t>Added explicit DNSSEC TXT verification validation steps and key identifier disambiguation.</t></li>
        <li><t>Added deterministic, mathematically verified Ed25519 identity and Creduent Delegation Token (CDT) test vectors (Appendix A).</t></li>
        <li><t>Structured security considerations according to RFC 3552 threat model with explicit residual risk bounds and privacy considerations.</t></li>
        <li><t>Formatted artwork and test vector lines for strict RFC 72-column margin compliance.</t></li>
      </ul>
    </section>
  </back>
</rfc>