Skip to content

Implementation Status

Pummelchen edited this page Sep 12, 2026 · 152 revisions

Implementation Status

The active Swift implementation targets IETF draft-ietf-webtrans-http3-16, published on 6 July 2026. Every item in the repository's draft-16 compliance matrix currently passes, backed by protocol, runtime, process, and interoperability tests.

This status is an implementation claim, not a general certification. The project remains macOS-specific and under active development; see Known Limitations.

Public API

Surface Responsibility
WebTransportClientConfiguration Authority, path, origin, subprotocols, trust, settings profile, optimistic capsules, and timeout.
WebTransportServerConfiguration Listener admission policy, supported subprotocols, settings profile, timeout, local-only binding, TLS identity, connection admission limits, and QUIC transport limits.
WebTransportClient Establish outbound WebTransport sessions.
WebTransportServer Create configured listeners.
WebTransportListeningServer Report the bound endpoint and certificate fingerprint/expiry, accept sessions, and shut down immediately or gracefully with GOAWAY and drain.
WebTransportSession Streams, datagrams, drain, close, endpoints, selected protocol, and TLS exporter material.
WebTransportBidirectionalStream Send and receive application data over a QUIC stream.
WebTransportLogger and WebTransportErrorSurface Opt-in sanitized events and redacted public error text.

The high-level package intentionally exposes a smaller surface than the protocol-core modules. Unidirectional stream handling exists in the core but is not currently part of the application-facing WebTransportSession API.

The lower-level libraries are published products too, and 1.3.6 adds one entry point to them: QUICTransportParameters.validated() enforces the RFC 9000 section 18.2 value rules that decode deliberately leaves alone, because decode is also the TLS-extension parser and must keep accepting parameters this build does not model. The UDP helper's receive path also gained truncation reporting: an oversized datagram is refused rather than silently shortened.

Protocol coverage

Area Implemented behavior
Session establishment HTTP/3 extended CONNECT, authority/path/origin policy, subprotocol negotiation, acceptance, and rejection.
Draft-16 behavior Optimistic capsules, directional flow control, strictly increasing limits, close-message validation, excessive-session rejection, and session-bound TLS exporter context.
Streams and datagrams Bidirectional and core unidirectional streams, QUIC DATAGRAM signaling, buffering, backpressure, reset, stop-sending, close, and drain.
HTTP/3 and QPACK SETTINGS, control/request streams, frames, GOAWAY, static and dynamic QPACK behavior, Huffman coding, Base, and post-Base references.
QUIC Variable-length integers, packets, frames, stream identifiers, transport parameters, flow/congestion state, loss and ACK helpers, and packet protection.
TLS 1.3 Handshake messages, transcript and key schedule, certificate trust and CertificateVerify gating, Finished, ALPN h3, QUIC parameters, and exporter material.
Runtime Network.framework QUIC client/server sessions, packet transport, trust policies, endpoints, timeouts, and connection lifecycle.

Validation evidence

  • 294 Swift tests cover the public API, runtime, protocol layers, crypto, UDP, process behavior, stress, malformed input, resource limits, server identity, admission policy, graceful shutdown, peer-input fuzzing, and PKCS#12 identity import of bundles Security.framework cannot build an identity from.
  • Client and server command-line conformance suites each contain 40 positive and negative scenarios.
  • CI enforces the Swift 6.3.3 toolchain baseline, strict memory and concurrency diagnostics, manifest agreement between the two package manifests, builds the package and DocC, compiles a standalone API consumer, verifies reproducible release artifacts, runs the test suite, and runs both conformance suites. Two further jobs run the peer-input fuzz corpus under AddressSanitizer and the in-process suite under ThreadSanitizer.
  • The remote interop matrix passed 7/7 proofs across 5 independent implementations on 16 August 2026, with platform system trust over a routable path.
  • Release 1.3.6 was published from commit 1643ed4 on 12 September 2026 with CI green across all three jobs, 294 package tests, both 40-scenario conformance suites, and reproducible artifacts verified against their published checksums. It is a defect-fix release; its evidence is unit, conformance, sanitizer and reproducibility coverage rather than a new interoperability run, so the 1.3.5 remote matrix (7/7 across five implementations) remains the standing interop claim for the protocol behaviour, which 1.3.6 does not change.
  • Release 1.3.5 was published from commit b1c5625 on 16 August 2026 with CI green across all three jobs, 273 package tests, both 40-scenario conformance suites, remote interop 7/7 and containerized interop 5/5.
  • Release 1.3.4 was published from commit a777b26 on 16 August 2026 with CI green across all three jobs, 273 package tests, both 40-scenario conformance suites, and containerized interop passing 5/5.
  • Release 1.3.3 was published from commit 56a521e on 16 August 2026 with CI green across all three jobs, 263 package tests and both 40-scenario conformance suites.
  • Release 1.3.1 was published from commit ac1c71c on 15 August 2026 with CI green across all three jobs, 260 package tests, both 40-scenario conformance suites, and Docker interop passing 5/5.
  • Release 1.3.0 was published from commit 3060a6e on 15 August 2026 with CI green across all three jobs, 256 package tests, both 40-scenario conformance suites, and Docker interop passing 5/5 across pywebtransport/aioquic, Quinn and Quiche. Its code audit was performed by Claude Opus 5.
  • Release 1.2.0 passed four required stream/datagram proofs across pywebtransport/aioquic, Quinn, and Quiche implementations.
  • A containerized matrix reproduces five of those proofs on any machine with Docker, and Chrome 148 has been verified end to end against the listener.
  • Peer-facing parsers are fuzzed under AddressSanitizer; the runtime is checked under Thread Sanitizer and a connection-churn soak.

See Development and Testing for commands and Release and Interoperability for proof boundaries.

Package layers

The repository-root package exports the high-level WebTransport product, six lower-level libraries, and the WebTransportClient and WebTransportServer executables. The nested Swift/Package.swift additionally provides smoke-test executables and shared test support.

WebTransportNetworkRuntime also depends on WebTransportSecurityShim, an internal C/Objective-C target that is not exported as a product. It exists because SecPKCS12Import raises an Objective-C exception for an identity it cannot construct, and Swift cannot catch one; the shim provides the Objective-C frame where that exception becomes a status code. It is the only non-Swift source in the repository.

Planned ports

C99/ contains an implementation plan, a directory skeleton, and platform placeholders. It contains no working protocol stack, build system, CLI implementation, or conformance suite, and its status must remain “planned” until runnable code and equivalent evidence exist.

The two trees are independent ports, not layers of one another: they share no files, and each has its own application names (wt-client-c99 versus wt-client). Work on one does not depend on the other.

C99 target

The C99 port targets XAIOS, which has no C++ support and never will. The repository has been inspected directly, and the constraint is satisfied at the source level: XAIOS contains 596 C files, 239 headers and 58 assembly files, and zero C++, .cc, .cxx or .hpp files. A pure C99 port introduces no C++ and needs no C++ runtime.

Three earlier assumptions are now settled:

  • libc. XAIOS provides picolibc, built freestanding into a sysroot by scripts/build-libc.sh and layered with userspace/libc/. The plan's configurable allocator stands as written.
  • Network stack. XAIOS has a full kernel stack — IPv4, IPv6, ARP, NDP, routing, socket_buffer, and e1000e/virtio_net/vmxnet3 drivers — exposed to userspace through a capability-checked syscall API (XAIOS_SYSCALL_NET_SEND, _NET_RECV, _NET_LISTEN, _NET_RESOLVE), not raw POSIX sockets. xaios_net_sendto and xaios_net_recvfrom carry real datagrams, including ARP resolution with a bounded retry on first contact.
  • Crypto. OpenSSL cannot be used — XAIOS has none. It vendors BearSSL instead, and scripts/build-bearssl.sh compiles every src/**/*.c of it with -std=c99 -ffreestanding -fno-builtin -Os -Wall -Wextra -Werror, so the whole library is available rather than only the objects xapt links.

BearSSL supplies the primitives a TLS 1.3 implementation needs: AES-GCM, ChaCha20-Poly1305, HKDF, SHA-256/384/512, X25519, ECDSA verify on P-256/384/521, and RSA-PSS verify.

It does not supply TLS 1.3, and QUIC requires TLS 1.3. The vendored copy is documented as being "for the xapt TLS 1.2 client"; bearssl_ssl.h defines BR_TLS10/11/12 with no BR_TLS13, and there is no TLS 1.3 source in the tree. RFC 9001 makes TLS 1.3 mandatory for QUIC, so the handshake cannot be delegated. Writing that state machine in C99 on top of BearSSL's primitives is the largest single workstream in the port — the crypto is solved, and the handshake is new code with no counterpart in either repository.

That work is done, on the XAIOS side and on main as of 787622c, short of three things named below. userspace/wt/ carries the key schedule, QUIC packet protection, TLS handshake framing and the transcript, a ClientHello builder, ServerHello, EncryptedExtensions, CertificateRequest, Certificate and CertificateVerify parsers, x25519, the Finished MAC, the CertificateVerify signature check, the pinned-key policy, and the client handshake state machine that sequences them. 1214 host checks against RFC 8446, 8448, 9001, 7301 and 7748 run in XAIOS CI and under AddressSanitizer and UndefinedBehaviorSanitizer; the RFC vectors are extracted from the RFC text rather than transcribed and two Python oracles recompute them; and the handshake completes end to end against a server flight built by an independent Python implementation, which is what makes the client's own Finished a check rather than a tautology. What is not written is 0-RTT and the session tickets it needs, so there is no early-data encryption level at all; HelloRetryRequest, which is refused by name rather than mishandled; and client authentication beyond the empty Certificate a client with no certificate sends.

The trust model is decided, and it is the one xapt already uses: one pinned operator key. xapt verifies identity against an operator-set RSA public key rather than building a general path, and WebTransport adopts the same model, which removes general X.509 path building, a trust store, a clock and a revocation story from scope. It is implemented on the XAIOS side in userspace/wt/src/wt_tls_pin.c: an unset pin refuses everything rather than accepting anything, and a certificate has to pass two independent checks -- it must carry the pinned key, and its signature over the transcript must verify under that key. Neither alone is sufficient: a pin by itself accepts a certificate anyone could copy, and a signature check by itself accepts any self-signed key an attacker generated.

What a pin does not do is authenticate a name. It answers "is this the machine this image was built to talk to", not "is this the host that DNS named", and every deployment that pins gives up being redirected. That is the trade rather than an oversight, and Security and Trust states it for the Swift side too.

The size remains roughly 15,000 to 25,000 lines of C99. The Swift side is measured at 17,126 lines across 49 files; the QUIC runtime and the TLS 1.3 handshake have no Swift counterpart to size against, so the range still carries real uncertainty.

Open items are tracked as WT-3 to WT-43 on the Project Tracker, which is the only task list for this repository. WT-35 through WT-43 were added by the C99 work on the XAIOS side, and each names the XAIOS tracker entry it corresponds to.

Clone this wiki locally