<?xml version="1.0" encoding="utf-8"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     version="3"
     category="info"
     docName="draft-ayoub-http-client-only-processing-00"
     ipr="trust200902"
     submissionType="IETF"
     consensus="true"
     sortRefs="true"
     symRefs="true"
     tocInclude="true"
     xml:lang="en">

  <front>
    <title abbrev="Client-Only-Processing Header">The Client-Only-Processing HTTP Response Header Field for Verifiable Zero-Upload Web Applications</title>
    <seriesInfo name="Internet-Draft" value="draft-ayoub-http-client-only-processing-00"/>

    <author fullname="Islam Ayoub" initials="I." surname="Ayoub">
      <organization>Utilvo</organization>
      <address>
        <email>info@utilvo.com</email>
        <uri>https://utilvo.com</uri>
      </address>
    </author>

    <date year="2026" month="November" day="29"/>
    <area>Web and Internet Transport</area>
    <workgroup>Individual Submission</workgroup>
    <keyword>HTTP</keyword>
    <keyword>Structured Fields</keyword>
    <keyword>Privacy</keyword>
    <keyword>WebAssembly</keyword>
    <keyword>Zero-Upload</keyword>

    <abstract>
      <t>
        Modern web applications increasingly execute compute-intensive document, media, cryptographic, and clinical imaging workloads entirely inside the user agent using WebAssembly, Web Workers, and WebGPU without transmitting user-supplied files to a remote server. However, HTTP currently lacks a standardized, machine-readable response header field allowing an origin to declare verifiable zero-upload execution invariants that user agents, browser extensions, and automated security auditors can cross-check against active transport policies.
      </t>
      <t>
        This document specifies the <tt>Client-Only-Processing</tt> HTTP response header field, structured as an RFC 9651 Dictionary, together with an optional <tt>/.well-known/client-only-processing.json</tt> attestation manifest. Together, they enable an origin to declare strict client-local payload confinement, network egress restrictions, and cryptographic subresource digests that an independent verifier can audit deterministically at runtime.
      </t>
    </abstract>
  </front>

  <middle>
    <section anchor="introduction">
      <name>Introduction</name>
      <t>
        Historically, browser-based file transformation utilities required uploading user files over HTTP to server-side worker fleets, creating data-retention, regulatory compliance, and breach-exposure risks. Advances in WebAssembly <xref target="W3C-WASM"/>, isolated Web Workers, and client-side memory management have made it practical to process large binary payloads entirely within local volatile memory inside the browser sandbox <xref target="AYOUB-2026"/>.
      </t>
      <t>
        Despite this architectural shift, users and enterprise security gateways cannot easily distinguish a genuine client-only web application from one that silently exfiltrates file bytes via background <tt>fetch()</tt>, <tt>XMLHttpRequest</tt>, <tt>Navigator.sendBeacon()</tt>, WebSocket, or WebRTC channels. While Content Security Policy (CSP) <xref target="W3C-CSP3"/> provides low-level directive enforcement and Subresource Integrity (SRI) <xref target="W3C-SRI"/> pins static bundle hashes, neither mechanism alone expresses the high-level semantic claim that user-selected input payloads never leave the client device.
      </t>
      <t>
        This specification defines:
      </t>
      <ul>
        <li>
          The <tt>Client-Only-Processing</tt> HTTP response header field (<xref target="header-definition"/>), encoded as a Structured Field Dictionary <xref target="RFC9651"/>.
        </li>
        <li>
          A deterministic runtime verification algorithm (<xref target="verification"/>) allowing user agents and auditing tools to validate that the response's effective CSP and isolation headers satisfy the declared zero-upload mode.
        </li>
        <li>
          An optional well-known manifest at <tt>/.well-known/client-only-processing.json</tt> (<xref target="well-known"/>) listing cryptographic SHA-256 digests of client-executed WebAssembly and script artifacts for reproducible build auditing.
        </li>
      </ul>
    </section>

    <section anchor="conventions">
      <name>Conventions and Definitions</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>
      <t>
        This specification uses the Structured Fields syntax and parsing algorithms defined in <xref target="RFC9651"/>, HTTP semantics from <xref target="RFC9110"/>, and Well-Known URI conventions from <xref target="RFC8615"/>.
      </t>
      <dl>
        <dt>User Payload:</dt>
        <dd>Any file, byte stream, clipboard buffer, media capture, or form input supplied locally by the end user into a browsing context after document load.</dd>
        <dt>Zero-Upload Execution:</dt>
        <dd>Execution in which no raw, partial, or derived bytes of a User Payload are transmitted over any network transport initiated by the browsing context or its associated workers.</dd>
      </dl>
    </section>

    <section anchor="header-definition">
      <name>The Client-Only-Processing HTTP Response Header Field</name>
      <t>
        The <tt>Client-Only-Processing</tt> HTTP response header field is a Dictionary Structured Field (<xref target="RFC9651" sectionFormat="of" section="3.2"/>) sent by an origin server on HTML document responses to assert that User Payloads handled within the resulting browsing context are processed exclusively on the client.
      </t>
      <sourcecode type="abnf"><![CDATA[
Client-Only-Processing = sf-dictionary
]]></sourcecode>

      <section anchor="dictionary-members">
        <name>Defined Dictionary Keys</name>
        <t>
          The dictionary defines the following keys. Unrecognized keys <bcp14>MUST</bcp14> be ignored by recipients in accordance with <xref target="RFC9651"/> extensibility rules.
        </t>
        <dl>
          <dt><tt>mode</tt> (Token, <bcp14>REQUIRED</bcp14>):</dt>
          <dd>
            <t>Declares the enforcement profile. Defined token values are:</t>
            <ul>
              <li><tt>strict</tt>: Once static scripts and WebAssembly modules are loaded, the document's effective policy prohibits all outbound network requests carrying dynamic data (<tt>connect-src 'none'</tt> and <tt>form-action 'none'</tt>).</li>
              <li><tt>static-fetch</tt>: Outbound requests are restricted exclusively to idempotent <tt>GET</tt> or <tt>HEAD</tt> fetches of static runtime assets (such as lazy-loaded WebAssembly binaries or font tables) listed in the attestation manifest, with no User Payload bytes in URLs, headers, or request bodies.</li>
            </ul>
          </dd>
          <dt><tt>egress</tt> (Token, <bcp14>OPTIONAL</bcp14>):</dt>
          <dd>
            Indicates the permitted network egress scope during active document lifetime. Defined tokens are <tt>none</tt> (default when <tt>mode=strict</tt>) and <tt>same-origin-static</tt>.
          </dd>
          <dt><tt>sri</tt> (Boolean, <bcp14>OPTIONAL</bcp14>):</dt>
          <dd>
            When <tt>?1</tt> (true), asserts that every external <tt>&lt;script&gt;</tt> element and dynamically instantiated module carries cryptographic Subresource Integrity verification <xref target="W3C-SRI"/> or matches a digest in the manifest.
          </dd>
          <dt><tt>isolated</tt> (Boolean, <bcp14>OPTIONAL</bcp14>):</dt>
          <dd>
            When <tt>?1</tt> (true), indicates that the browsing context enables cross-origin isolation (<tt>Cross-Origin-Opener-Policy: same-origin</tt> and <tt>Cross-Origin-Embedder-Policy: require-corp</tt>) for deterministic bounded WebAssembly linear memory.
          </dd>
          <dt><tt>manifest</tt> (String, <bcp14>OPTIONAL</bcp14>):</dt>
          <dd>
            A root-relative path beginning with <tt>"/.well-known/"</tt> referencing the JSON attestation manifest (<xref target="well-known"/>). If omitted, verifiers <bcp14>MAY</bcp14> probe <tt>"/.well-known/client-only-processing.json"</tt> when explicit manifest auditing is requested.
          </dd>
        </dl>
      </section>

      <section anchor="header-example">
        <name>Example HTTP Response</name>
        <t>
          An origin serving a zero-upload document inspector under strict egress lockdown sends:
        </t>
        <sourcecode type="http-message"><![CDATA[
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Client-Only-Processing: mode=strict, egress=none, sri=?1,
  isolated=?1,
  manifest="/.well-known/client-only-processing.json"
Content-Security-Policy: default-src 'self'; connect-src 'none';
  form-action 'none'; object-src 'none'; base-uri 'none'
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp
]]></sourcecode>
      </section>
    </section>

    <section anchor="verification">
      <name>Client and Auditor Verification Procedure</name>
      <t>
        A conforming verifier (such as a browser privacy indicator, enterprise proxy, or automated security scanner) evaluating an HTTP response containing <tt>Client-Only-Processing</tt> <bcp14>MUST</bcp14> perform the following checks before treating the zero-upload assertion as verified:
      </t>
      <ol>
        <li>
          Parse the <tt>Client-Only-Processing</tt> field value as a Structured Field Dictionary (<xref target="RFC9651" sectionFormat="of" section="4.2.2"/>). If parsing fails or the <tt>mode</tt> member is absent or not a Token, verification <bcp14>MUST</bcp14> fail.
        </li>
        <li>
          Ensure the response was delivered over an authenticated TLS connection (<tt>https</tt> scheme) or a trustworthy local loopback origin. Assertions over cleartext HTTP <bcp14>MUST</bcp14> be rejected.
        </li>
        <li>
          <t>Inspect the effective <tt>Content-Security-Policy</tt> header(s) delivered with the response:</t>
          <ul>
            <li>If <tt>mode=strict</tt>, verify that the effective policy includes <tt>connect-src 'none'</tt> and <tt>form-action 'none'</tt>, and does not permit arbitrary third-party image, media, or frame navigation sinks capable of URL query exfiltration.</li>
            <li>If <tt>mode=static-fetch</tt>, verify that <tt>form-action 'none'</tt> is present and <tt>connect-src</tt> is restricted to <tt>'self'</tt> or an explicit allowlist of immutable static asset origins declared in the attestation manifest.</li>
          </ul>
        </li>
        <li>
          If <tt>isolated=?1</tt> is asserted, verify that <tt>Cross-Origin-Opener-Policy: same-origin</tt> and <tt>Cross-Origin-Embedder-Policy: require-corp</tt> (or <tt>credentialless</tt>) are present on the response.
        </li>
        <li>
          Monitor or audit runtime APIs (such as <tt>RTCPeerConnection</tt> STUN/TURN iceServers and dynamic DOM <tt>&lt;a ping&gt;</tt> or stylesheet <tt>url()</tt> insertions) to confirm no covert egress channel bypasses <tt>connect-src</tt>.
        </li>
      </ol>
      <t>
        If any mandatory condition above is violated, the verifier <bcp14>MUST</bcp14> classify the assertion as <em>unverified</em> and <bcp14>SHOULD</bcp14> surface a diagnostic warning indicating which transport invariant conflicted with the declared <tt>Client-Only-Processing</tt> header.
      </t>
    </section>

    <section anchor="well-known">
      <name>Well-Known Attestation Manifest</name>
      <t>
        To allow independent auditors to verify that served JavaScript and WebAssembly binaries correspond to auditable source builds, an origin <bcp14>MAY</bcp14> publish a JSON document (<tt>application/json</tt>) at <tt>/.well-known/client-only-processing.json</tt> in accordance with <xref target="RFC8615"/>.
      </t>
      <sourcecode type="json"><![CDATA[
{
  "version": 1,
  "default_mode": "strict",
  "zero_payload_retention": true,
  "routes": [
    {
      "path_prefix": "/pdf-tools/",
      "mode": "strict",
      "egress": "none",
      "artifacts": [
        {
          "url": "/static/wasm/pdf-inspector.wasm",
          "alg": "sha-256",
          "digest": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
        }
      ]
    }
  ]
}
]]></sourcecode>
      <t>
        Servers serving this manifest <bcp14>MUST</bcp14> deliver it over HTTPS with <tt>Content-Type: application/json</tt> and <bcp14>SHOULD</bcp14> include explicit <tt>Cache-Control</tt> directives so external reproducibility monitors can track artifact rotation over time.
      </t>
    </section>

    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <t>
        The <tt>Client-Only-Processing</tt> header is a self-issued technical declaration that becomes trustworthy only when bound to enforceable browser sandbox constraints (<xref target="verification"/>). Implementers and auditors need to account for the following threat vectors <xref target="RFC3552"/>:
      </t>
      <ul>
        <li>
          <strong>Header-Policy Mismatch:</strong> A misconfigured or deceptive server might emit <tt>Client-Only-Processing: mode=strict</tt> while omitting <tt>Content-Security-Policy: connect-src 'none'</tt>. Verifiers <bcp14>MUST NOT</bcp14> trust the header in isolation without validating the accompanying CSP directives.
        </li>
        <li>
          <strong>Side-Channel Exfiltration via Subresource Loads:</strong> Even when <tt>connect-src 'none'</tt> blocks <tt>fetch()</tt>, <tt>XMLHttpRequest</tt>, WebSockets, and <tt>sendBeacon()</tt>, script execution can attempt low-bandwidth exfiltration by encoding data into URLs of dynamically injected <tt>&lt;img&gt;</tt>, <tt>&lt;link rel="prefetch"&gt;</tt>, CSS <tt>url()</tt> rules, or top-level <tt>window.location</tt> navigations, or via WebRTC ICE candidate hostnames. High-assurance <tt>strict</tt> deployments <bcp14>SHOULD</bcp14> pair <tt>connect-src 'none'</tt> with restrictive <tt>img-src 'self' data: blob:</tt>, <tt>style-src 'self' 'unsafe-inline'</tt>, and <tt>frame-src 'none'</tt> directives.
        </li>
        <li>
          <strong>Origin Equivocation (Targeted Bundle Swapping):</strong> An origin server could serve clean HTML/WASM to public auditors while serving a modified bundle without <tt>Client-Only-Processing</tt> to a targeted client IP. Publishing SHA-256 artifact digests in <tt>/.well-known/client-only-processing.json</tt> enables third-party transparency witnesses and browser extensions to detect inconsistent bundle delivery.
        </li>
        <li>
          <strong>Privileged Browser Extensions:</strong> Content scripts injected by installed browser extensions may possess host permissions outside the page's CSP. The <tt>Client-Only-Processing</tt> guarantee applies strictly to the origin's own document and worker contexts.
        </li>
      </ul>
    </section>

    <section anchor="privacy-considerations">
      <name>Privacy Considerations</name>
      <t>
        Per <xref target="RFC6973"/>, executing payload transformations strictly on the client eliminates server-side collection, storage, and secondary correlation of user document contents. However, standard HTTP transport metadata -- including the client IP address, TLS handshake parameters, requested application route URL, and <tt>User-Agent</tt> -- remains visible to the origin server during the initial <tt>GET</tt> request that fetches the static application shell. Users requiring network-layer anonymity for route access still rely on transport-layer privacy relays (such as Oblivious HTTP or VPNs) orthogonal to this specification.
      </t>
    </section>

    <section anchor="iana-considerations">
      <name>IANA Considerations</name>

      <section anchor="iana-http-field">
        <name>HTTP Field Name Registration</name>
        <t>
          This document proposes registration of the following entry in the "Hypertext Transfer Protocol (HTTP) Field Name Registry" maintained by IANA in accordance with <xref target="RFC9110" sectionFormat="of" section="18.4"/>:
        </t>
        <dl>
          <dt>Field Name:</dt>
          <dd><tt>Client-Only-Processing</tt></dd>
          <dt>Status:</dt>
          <dd>provisional</dd>
          <dt>Structured Type:</dt>
          <dd>Dictionary</dd>
          <dt>Reference:</dt>
          <dd>This document (<xref target="header-definition"/>)</dd>
          <dt>Comments:</dt>
          <dd>Declares verifiable client-local zero-upload payload processing invariants.</dd>
        </dl>
      </section>

      <section anchor="iana-well-known">
        <name>Well-Known URI Registration</name>
        <t>
          This document proposes registration of the following suffix in the "Well-Known URIs" registry in accordance with <xref target="RFC8615"/>:
        </t>
        <dl>
          <dt>URI Suffix:</dt>
          <dd><tt>client-only-processing.json</tt></dd>
          <dt>Change Controller:</dt>
          <dd>Islam Ayoub (<tt>info@utilvo.com</tt>)</dd>
          <dt>Specification Document:</dt>
          <dd>This document (<xref target="well-known"/>)</dd>
          <dt>Status:</dt>
          <dd>provisional</dd>
        </dl>
      </section>
    </section>
  </middle>

  <back>
    <references>
      <name>References</name>

      <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 fullname="S. Bradner" initials="S." surname="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 fullname="B. Leiba" 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 fullname="M. Nottingham" initials="M." surname="Nottingham"/>
            <date month="May" year="2019"/>
          </front>
          <seriesInfo name="RFC" value="8615"/>
        </reference>

        <reference anchor="RFC9110" target="https://www.rfc-editor.org/info/rfc9110">
          <front>
            <title>HTTP Semantics</title>
            <author fullname="R. Fielding" initials="R." surname="Fielding" role="editor"/>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham" role="editor"/>
            <author fullname="J. Reschke" initials="J." surname="Reschke" role="editor"/>
            <date month="June" year="2022"/>
          </front>
          <seriesInfo name="STD" value="97"/>
          <seriesInfo name="RFC" value="9110"/>
        </reference>

        <reference anchor="RFC9651" target="https://www.rfc-editor.org/info/rfc9651">
          <front>
            <title>Structured Field Values for HTTP</title>
            <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
            <author fullname="P-H. Kamp" initials="P-H." surname="Kamp"/>
            <date month="September" year="2024"/>
          </front>
          <seriesInfo name="RFC" value="9651"/>
        </reference>

        <reference anchor="W3C-CSP3" target="https://www.w3.org/TR/CSP3/">
          <front>
            <title>Content Security Policy Level 3</title>
            <author fullname="M. West" initials="M." surname="West"/>
            <author fullname="A. Sartori" initials="A." surname="Sartori"/>
            <date year="2024"/>
          </front>
          <seriesInfo name="W3C Working Draft" value="CSP3"/>
        </reference>

        <reference anchor="W3C-SRI" target="https://www.w3.org/TR/SRI/">
          <front>
            <title>Subresource Integrity</title>
            <author fullname="D. Akhawe" initials="D." surname="Akhawe"/>
            <author fullname="F. Braun" initials="F." surname="Braun"/>
            <author fullname="F. Marier" initials="F." surname="Marier"/>
            <author fullname="J. Weinberger" initials="J." surname="Weinberger"/>
            <date month="June" year="2016"/>
          </front>
          <seriesInfo name="W3C Recommendation" value="SRI"/>
        </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 fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <author fullname="B. Korver" initials="B." surname="Korver"/>
            <date month="July" year="2003"/>
          </front>
          <seriesInfo name="BCP" value="72"/>
          <seriesInfo name="RFC" value="3552"/>
        </reference>

        <reference anchor="RFC6973" target="https://www.rfc-editor.org/info/rfc6973">
          <front>
            <title>Privacy Considerations for Internet Protocols</title>
            <author fullname="A. Cooper" initials="A." surname="Cooper"/>
            <author fullname="H. Tschofenig" initials="H." surname="Tschofenig"/>
            <author fullname="B. Aboba" initials="B." surname="Aboba"/>
            <author fullname="J. Peterson" initials="J." surname="Peterson"/>
            <author fullname="J. Morris" initials="J." surname="Morris"/>
            <author fullname="M. Hansen" initials="M." surname="Hansen"/>
            <author fullname="R. Smith" initials="R." surname="Smith"/>
            <date month="July" year="2013"/>
          </front>
          <seriesInfo name="RFC" value="6973"/>
        </reference>

        <reference anchor="W3C-WASM" target="https://www.w3.org/TR/wasm-core-2/">
          <front>
            <title>WebAssembly Core Specification Version 2.0</title>
            <author fullname="A. Rossberg" initials="A." surname="Rossberg" role="editor"/>
            <date year="2024"/>
          </front>
          <seriesInfo name="W3C Working Draft" value="wasm-core-2"/>
        </reference>

        <reference anchor="AYOUB-2026" target="https://utilvo.com/research/privacy-preserving-client-side-information-processing">
          <front>
            <title>Privacy-Preserving Client-Side Information Processing in Isolated Browser Sandboxes</title>
            <author fullname="I. Ayoub" initials="I." surname="Ayoub">
              <organization>Utilvo</organization>
            </author>
            <date year="2026"/>
          </front>
        </reference>
      </references>
    </references>
  </back>
</rfc>
