<?xml version="1.0" encoding="UTF-8"?>
<rfc version="3" ipr="trust200902" docName="draft-herod-witness-evidence-00" category="info" submissionType="IETF" consensus="false" xml:lang="en">
  <front>
    <title abbrev="Witness Evidence">A Witness Record for Agent Handoffs: A Signed Receipt Binding a Fingerprint to a Witnessed Time</title>
    <seriesInfo name="Internet-Draft" value="draft-herod-witness-evidence-00"/>
    <author fullname="Violet Herod" initials="V." surname="Herod">
      <organization>Briarwood AI</organization>
      <address>
        <email>violet@briarwood.ai</email>
      </address>
    </author>
    <date day="4" month="December" year="2026"/>
    <abstract>
      <t>When one agent hands work to another, the record of what was handed over is usually kept by one of the parties to the handoff. A record kept by a party asks to be trusted. This document describes a different shape: a witness, a service that is a party to no handoff, receives a fingerprint of the record and returns a signed receipt stating that the fingerprint was received inside a stated time interval. The receipt, the fingerprint, and the terms it binds are packaged in a bundle that anyone can check offline against the witness's published keys, without asking the witness or either party. The witness attests to one thing only: that a fingerprint arrived in an interval. It does not attest to authorship, agreement, competence, or completion.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="intro">
      <name>Introduction</name>
      <t>Agents increasingly approve work, hand work to each other, and pay each other. When a dispute follows, the question is what bytes were presented, and when. The logs that could answer that question belong to the parties themselves, or to the platforms that host them. A party cannot witness itself: a record stamped by the party it describes carries no weight with anyone who does not already trust that party.</t>
      <t>The design in this document separates the record from the parties. A witness stands outside the handoff. It holds no custody, takes no side, and judges nothing. It receives a fingerprint, binds it to the payment approval, signs the result with its own key, and publishes that key at a fixed address so any checker can verify the signature without the witness's help or permission.</t>
      <t>This document describes a format that is already in production use. A running witness service issues receipts in this format today, and the format's dated versions <xref target="BUNDLE"/>, a validator, and worked examples are published by the operator.</t>
    </section>
    <section anchor="terms">
      <name>Terminology</name>
      <dl>
        <dt>Witness:</dt>
        <dd>a service that receives fingerprints and issues signed receipts. The witness is not a party to the handoff it witnesses.</dd>
        <dt>Payload digest:</dt>
        <dd>the SHA-256 hash of the exact bytes being handed over, printed as text with its 0x prefix, in lowercase hex.</dd>
        <dt>Payment identifier:</dt>
        <dd>the unique identifier of the payment approval that covers the handoff. For an EIP-3009 payment, this is the payment's nonce. It is never a transaction hash or settlement reference.</dd>
        <dt>Pair digest:</dt>
        <dd>a deterministic commitment binding a payment identifier to a payload digest, defined in <xref target="pairdigest"/>.</dd>
        <dt>Receipt:</dt>
        <dd>the witness's signed statement that a fingerprint was received inside a stated time interval.</dd>
        <dt>Bundle:</dt>
        <dd>the package defined in <xref target="bundle"/>, carrying everything a checker needs.</dd>
      </dl>
    </section>
    <section anchor="pairdigest">
      <name>The Pair Digest</name>
      <t>The pair digest is computed as:</t>
      <artwork>pair_digest = SHA-256( payment_identifier : payload_digest )</artwork>
      <t>The two values enter the hash as printed text, each with its 0x prefix, in lowercase hex, joined by a single colon with no spaces. The construction is deterministic and recomputable by anyone, offline, from the two values alone. It is a commitment, not an authorization: it binds the payment approval's identifier to the payload digest of the bytes handed over. The hash by itself establishes neither that a payment settled nor that an approval covered those bytes, and it grants no permission by itself.</t>
    </section>
    <section anchor="receipt">
      <name>The Receipt</name>
      <t>A receipt states that the witness received a stated fingerprint inside a stated time interval, and it is signed with the witness's key. The signing keys are published at a fixed, well-known address <xref target="KEYS"/>, so verification does not depend on the witness being reachable or cooperative at check time.</t>
      <t>A receipt does not state that the parties agreed, that the work was done, that the work was done well, or who authored the bytes. Verification of a receipt depends on the checker accepting the witness's key and clock. A receipt is evidence, not permission.</t>
    </section>
    <section anchor="bundle">
      <name>The Bundle</name>
      <t>The bundle is a JSON document. Its required fields are:</t>
      <dl>
        <dt>referred_by:</dt>
        <dd>who is handing the bundle over, and in what role. Data, not authority.</dd>
        <dt>task_it_fits:</dt>
        <dd>the kind of handoff this evidence is for, stated by the sender.</dd>
        <dt>payload_digest:</dt>
        <dd>as defined in <xref target="terms"/>.</dd>
        <dt>payment_identifier:</dt>
        <dd>as defined in <xref target="terms"/>.</dd>
        <dt>pair_digest:</dt>
        <dd>as defined in <xref target="pairdigest"/>.</dd>
        <dt>receipt:</dt>
        <dd>the signed receipt for this record, as issued.</dd>
        <dt>issuer_keys:</dt>
        <dd>the witness's published keys, or a reference by which they were independently obtained.</dd>
        <dt>protocol:</dt>
        <dd>the protocol document this bundle follows.</dd>
        <dt>limits:</dt>
        <dd>the stated limits of the evidence, carried inside the bundle itself.</dd>
      </dl>
      <t>Optional fields include the exact bytes inline (preferred for small payloads) or a pointer to them; the signing key identifier, which must resolve uniquely in the published key set; the hash algorithm, named inside the record; and additional witnesses, below.</t>
    </section>
    <section anchor="additional">
      <name>Additional Witnesses</name>
      <t>A bundle may carry signatures from witnesses other than the issuer. Each additional entry is typed, names its issuer, and carries a message imprint that must equal the bundle's pair digest. In the current version, the permitted types are timestamps: an RFC 3161 <xref target="RFC3161"/> timestamp response, and a detached timestamp envelope for hash-based or future proof formats. Every additional entry is a statement about time. The format carries no type for a judgment about content, and no type for an outcome, because no witness in this design attests to either.</t>
      <t>Two witnesses over the same fingerprint do not duplicate each other's time. Each attests to its own interval, and the fingerprint has then stood in two clocks that do not answer to each other.</t>
    </section>
    <section anchor="verification">
      <name>Verification</name>
      <t>A checker verifies a bundle without contacting the witness:</t>
      <ol>
        <li>Recompute the payload digest from the exact bytes and compare it to the bundle's.</li>
        <li>Recompute the pair digest from the payment identifier and the payload digest, per <xref target="pairdigest"/>.</li>
        <li>Verify the receipt's signature against the witness's published keys.</li>
        <li>Read the payment identifier, the payload digest, and the pair digest out of the receipt's signed payload, and compare each one to the bundle's fields. All three must match exactly.</li>
        <li>Check the receipt's stated time interval.</li>
        <li>For each additional witness entry, confirm its imprint equals the pair digest, and verify its proof by that issuer's own method.</li>
      </ol>
      <t>Structural acceptance of a bundle is not cryptographic verification. The bundle's own limits field states what has and has not been verified.</t>
    </section>
    <section anchor="migration">
      <name>Algorithm Migration</name>
      <t>The bundle names its hash algorithm inside the record, supports multiple independent witnesses over the same fingerprint, and leaves room for proof formats the issuer does not yet run, while keeping prior receipts checkable. This prepares the format for migration when an algorithm weakens. It does not make existing receipts survive a break of the algorithms they were issued under.</t>
    </section>
    <section anchor="security">
      <name>Security Considerations</name>
      <t>A receipt is only as strong as the checker's decision to accept the witness's key and clock. Different keys do not prove different operators: a second signature strengthens a record only when the second signer is in fact independent, and independence is established by the signer's own public history, not by the signature. The witness holds no custody of funds, keys, or content belonging to the parties. The bundle carries data to check, not instructions to obey.</t>
    </section>
    <section anchor="iana">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>Normative References</name>
      <reference anchor="RFC3161" target="https://www.rfc-editor.org/rfc/rfc3161">
        <front>
          <title>Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP)</title>
          <author fullname="C. Adams"/>
          <author fullname="P. Cain"/>
          <author fullname="D. Pinkas"/>
          <author fullname="R. Zuccherato"/>
          <date month="August" year="2001"/>
        </front>
        <seriesInfo name="RFC" value="3161"/>
      </reference>
    </references>
    <references>
      <name>Informative References</name>
      <reference anchor="BUNDLE" target="https://767-2676.com/schemas/witness-evidence-bundle-2026-11-30.json">
        <front>
          <title>Witness Evidence Bundle, 2026-11-30 version</title>
          <author fullname="Violet Herod">
            <organization>Briarwood AI</organization>
          </author>
          <date month="November" year="2026"/>
        </front>
      </reference>
      <reference anchor="KEYS" target="https://767-2676.com/.well-known/popcorn-keys.json">
        <front>
          <title>The witness's published signing keys</title>
          <author fullname="Violet Herod">
            <organization>Briarwood AI</organization>
          </author>
          <date year="2026"/>
        </front>
      </reference>
    </references>
  </back>
</rfc>
