Skip to content

Implementation Status

Pummelchen edited this page Sep 13, 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. 1.3.7 changes nothing in them: it is the runtime listener fix described under the release evidence below. 1.3.6 added 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.7 was published from commit 3df28f2 on 13 September 2026 with 297 package tests, both 40-scenario conformance suites, the ASan fuzz job and the TSan job, and reproducible artifacts verified against their published checksums. It is a defect-fix release for issue #23 -- a listener that stopped accepting once it had served maxConcurrentConnections sessions in total -- and its evidence is unit, conformance, sanitizer and reproducibility coverage rather than a new interoperability run, so the 1.3.5 remote matrix remains the standing interop claim for the protocol behaviour, which 1.3.7 does not change.
  • 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/ now contains a working, tested implementation of the QUIC wire core, QUIC's cryptographic packet protection, the TLS 1.3 handshake, the QUIC connection runtime, the HTTP/3 core, QPACK and the draft-16 WebTransport session layer, on top of a build system and a conformance suite of its own; "planned" no longer describes it, and the detail is in The portable C99 implementation in this repository below. It runs sessions: the conformance tool stands up both endpoints in one process over IPv4 and IPv6, wt-client-c99 and wt-server-c99 exchange a session in two processes, and C99/scripts/run-container-interop.sh now completes a whole session and the message exchange against an independent implementation (pywebtransport/aioquic) in a container -- the client reports received 13 byte(s) and the peer logs stream in: 13 bytes / stream echoed. Two of the three peers that tree can start are measured to a named point rather than left as silence: quinn completes the handshake and never answers the CONNECT (WT-145), and quiche does not complete the handshake (WT-146). What remains is the rest of the test port, the FreeBSD and Windows CI legs, and the VPS interop matrix's five implementations, which need a host.

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.

The portable C99 implementation in this repository

The C99/ directory is a second, portable implementation, built from the Swift library rather than from the XAIOS work, against C99/IMPLEMENTATION_PLAN.md's fourteen phases. Phases 0 to 9 are complete and Phase 10, the test port, is under way on main. Phase 0 is the CMake project -- a static and a shared library, the three CLI tools, ten core modules (checked arithmetic, byte cursor, two-pass writer, bounded buffer, allocator interface, status model, logging surface, monotonic clock, endian helpers, version), an install tree with a find_package consumer test, and a C99 CI workflow on macOS and Debian. Phase 1 is the QUIC wire core: varints, packet numbers, every RFC 9000 frame plus the RFC 9221 DATAGRAM pair, long/short/Retry packet headers, transport parameters and connection ID retirement, with RFC 9000's published varint and packet number examples and RFC 9001 appendix A.2's client Initial as vectors. Phase 2 is the crypto provider and packet protection: SHA-256, HMAC, HKDF, AES-128-GCM and ChaCha20-Poly1305, the AES block and ChaCha20 keystream header protection is built from, then the Initial secret and packet keys, the traffic-secret and key-update derivations, the packet nonce, header protection and the payload seal and open. Its vectors are all of RFC 9001 appendix A -- the Initial keys, both Initial packets and the ChaCha20-Poly1305 short header packet, with their samples, masks, packet numbers and nonce -- re-derived from the RFC text by the extractor before they are written, and checked in CI by C99/scripts/check-vectors.sh. 86 CTest tests -- 80 unit test programs -- and 80,732 checks pass under CTest and under AddressSanitizer and UndefinedBehaviorSanitizer. Phase 3's first part is the TLS 1.3 key schedule and handshake transcript (RFC 8446 section 7.1): the two extract chains, both directions' traffic secrets, the record keys, the Finished keys and verify data, and a running transcript that absorbs whole handshake messages into a SHA-256 and reads the hash at each derivation without consuming it. Its vectors are RFC 8448 section 3's trace, whose transcript hashes are checked against the handshake messages extracted beside them. Phase 3's second part is the handshake message and extension codecs: the four-byte framing, the extension list and the typed extensions, and the ClientHello and ServerHello parsed into views, re-encoded byte for byte and built from parameters, with RFC 8448's own ClientHello as the round-trip vector. Phase 3's third part is the X25519 key agreement, checked against RFC 7748's vectors and against RFC 8448's own shared secret, which is what ties the key agreement to the key schedule. Phase 3's fourth part is the certificate messages: Certificate, CertificateVerify and Finished as framing, with nothing validated at that layer, which is what lets them be pinned to RFC 8448's own bytes. Phase 3's fifth part is peer authentication: chain validation through OpenSSL and the CertificateVerify check behind a prompt-free policy that mirrors the Swift library's trust modes, with RFC 8448's own CertificateVerify verified end to end. Phase 3's sixth part is the client handshake state machine, driven end to end by RFC 8448's recorded flight: started with the RFC's ClientHello and client key, it must produce the RFC's own handshake secrets, application secrets and client Finished. Three defects came out of that test, all of them one message out of step in the transcript. Phase 3's seventh part is the server handshake, tested by running a whole handshake between the two halves and requiring that they agree on the application secrets in opposite directions. One contract defect was fixed on the way to the runtime (WT-73): the packet protection layer reported a tag that did not verify as WT_ERR_PROTOCOL, while status.h defines WT_ERR_AUTHENTICATION for exactly that case and reserves the protocol error for bytes that violate the protocol. The five Phase 2 expectations that pinned the old value were the reason it survived; a caller cannot choose between discarding a datagram and closing a connection when both arrive as the same error. Phase 4 is complete. Its completion criteria are met and recorded in C99/README.md: two connections complete a whole TLS 1.3 handshake and exchange protected, acknowledged packets over both IPv4 and IPv6 loopback; the loss, probe-timeout and close-path suites pass; and every suite runs again under AddressSanitizer and UndefinedBehaviorSanitizer. The three legs of the C99 CI job -- macOS clang, Ubuntu gcc and Ubuntu clang -- were green on the last run. Its tail, after the runtime itself, closed RFC 9000 section 14.1's 1200-byte Initial rule, RFC 9001 appendix A.4's Retry integrity tag against the document, the decoder's failure to tell a peer that a frame was undecodable, and the receive path's inability to accept a packet addressed to a connection ID this endpoint had issued -- all four recorded in the Project Tracker as WT-79, WT-82, WT-83 and parts 37 to 39.

Phase 4 began with the packet number space, and the account below is kept as it was written: Phase 4, the QUIC connection runtime, has begun: its first part is the packet number space -- the received set as a bounded range list, ACK construction, the acknowledgement debt and the round trip estimator of RFC 9002 section 5; its second is loss detection and probe timeouts, section 6's packet and time thresholds with the loss timer they imply and the backoff that goes with them; its third is congestion control, section 7's NewReno with the recovery epoch that makes a burst of losses cost one halving; its fourth is the stream state machines and flow control, where flow control counts offsets rather than delivered bytes so a gap cannot escape the accounting; its fifth is QUIC DATAGRAM and the close paths; its sixth is the wire seam, where a packet is built in the order the two protections impose -- header, seal with the header as associated data, tag, header protection last -- and read in the reverse order, which needed two codec additions: a long header encoder for a payload the caller has not produced yet, and a walk of a still-protected header by layout alone, since the packet number's length and the reserved bits are both behind the mask. That walk is why the test flips every byte of a packet and requires the frames never come back: a round trip would let a mistake shared by both directions pass (WT-72 records the minimum packet size it implies); its seventh is the IPv4/IPv6 UDP socket layer -- whole datagrams between two addresses, every syscall classification in one place with a status (WT_ERR_IO) for what it cannot classify, IPV6_V6ONLY set explicitly rather than left to a platform default, and a datagram larger than the buffer reported as a truncation with no length rather than returned short (WT-36). Its eighth is the connection runtime over that socket: the three packet number spaces and their keys, the acknowledgement debt with its delay timer, the sent-packet list with loss detection and probe timeouts, NewReno, the close paths, and a handler seam for the frames it does not own -- so a packet travels the whole path (build, protect, send, receive, unprotect, walk, acknowledge, account) without a handshake, which is how tests/unit/test_quic_connection.c runs two connections over two loopback sockets on IPv4 and IPv6. Its ninth is the CRYPTO stream, the reassembler the TLS handshake driver needs: a bounded window with a bitmap of what has arrived, delivering only up to the first hole, and a send half that keeps what was sent because a packet can be declared lost after a later one was acknowledged. Its twenty-fourth is a stream being created by its first frame, bounded by the count the endpoint granted. Its twenty-fifth is RESET_STREAM and STOP_SENDING reaching their state machines as they arrive. Its twenty-sixth is received stream data accounted against BOTH flow control limits -- the stream's and the connection's -- with the RFC's error code chosen by asking each limit in turn, because the stream module reports a per-stream overrun and a final-size contradiction with the same status. Its twenty-seventh is the receive limits being raised as the data arrives -- MAX_DATA and MAX_STREAM_DATA for the next window -- which is RFC 9000 section 4. Its twenty-eighth is a sender cancelling a stream: RESET_STREAM with the final size computed from what was sent, both directions of the cancellation path now present. Its twenty-ninth is a lost stream packet naming what to send again: a STREAM send carries a retransmission descriptor (the stream, the offset, the length) that the connection hands to the layer that keeps the bytes. Its thirtieth is STOP_SENDING, the other half of cancellation: the receiver asks the peer to stop, once, and the path is complete in both roles. Its thirty-first is the Retry integrity tag of RFC 9001 section 5. Its thirty-second is issuing connection IDs, bounded by both the endpoint's own table and the peer's active_connection_id_limit less the handshake's ID. Its thirty-third is the peer's connection IDs being stored, with the section's encoding, protocol and limit errors raised rather than ignored.8, whose value still needs RFC 9001 A.4 extracted rather than transcribed.1's rule applied where arrival is consumption, because this runtime hands each frame's bytes to the caller immediately. Its twenty-third is the connection owning that table and opening streams through it. Its twenty-second is the bounded stream table of quic/stream.h -- the resource limit the plan names -- and its twenty-first is the four fields of a stream number read and written in one place, the first piece of the stream layer. Its twentieth is the frame-permission rule of RFC 9000 sections 12.4 and 12.5 -- a frame in the wrong packet type is refused, including a CRYPTO frame at the application level. Its nineteenth is HANDSHAKE_DONE only reaching a client (a server that receives one refuses the connection, RFC 9000 section 19.20). Its eighteenth is a closed connection refusing to process any frame but PADDING, the close's own and the probes (RFC 9000 section 10.2.1, enforced through wt_quic_close_accepts_frame_type so the rule is stated once). Its seventeenth is the peer's limits being acted on rather than only parsed -- a received MAX_DATA or MAX_STREAMS is applied by the connection itself, and a limit that falls is the PROTOCOL_VIOLATION RFC 9000 sections 4.1 and 4.6 make it. Its sixteenth is the stream counts this endpoint grants (MAX_STREAMS, per direction, same rule), its fifteenth is the connection-level limit this endpoint grants (MAX_DATA, which may only ever rise), and its fourteenth is the STREAM frame send path, the wire half of sending on a stream with the stream number checked against what the peer granted. Its thirteenth is the key lifecycle of RFC 9001 section 4.9 -- the Initial keys discarded when the first Handshake packet is processed and the Handshake keys when the handshake is confirmed, which leaves only the application level. Its twelfth is QUIC DATAGRAM over the connection: a send bounded by both the peer's frame size and the path, with no retransmission descriptor, and a bounded receive queue fed by a composed frame handler -- the layering the stream and session layers will use too. Its eleventh is the peer's transport parameters turned into the limits this endpoint obeys, which is the other half of the resource limit task: the flow control limits at both levels, the stream counts, the connection ID limit and the datagram size, with RFC 9000 section 18.2's defaults applied by name and the effective idle timeout made the smaller of the two ends'. Its tenth is the TLS 1.3 handshake driver over CRYPTO, which joins the message-at-a-time TLS machine to the packet layer and carries a whole handshake -- real certificate, signature and trust check -- between two connections over real loopback sockets on IPv4 and IPv6, ending with a 1-RTT frame the server reads. THE PHASE'S COMPLETION CRITERION IS THEREFORE MET END TO END (local IPv4 and IPv6 QUIC loopback); the stream frames and their flow control, the resource limits, cancellation and the server's connection ID issuance and Retry are what the phase still needs. Three defects were found by running the real handshake and are fixed (WT-75 the loss list keyed per space, WT-76 short headers carrying long header fields, WT-77 stale ALPN and transport parameter views). One defect was found and fixed on the way (WT-74): a connection with no round trip sample armed no probe timeout at all, so a client whose first Initial was lost would never retransmit it -- RFC 9002 section 6.2.1's initial round trip is now the runtime's fallback. Four defects were found while building Phase 2, all of them in code that had never been executed until its first test called it; they are recorded in WT-55.

No HTTP/3 or WebTransport code exists yet, so the draft-16 score stays 0%. Phases 4 to 14 are WT-57 to WT-67 on the Project Tracker, each with what it would take to close it

Open items are tracked as WT-3 to WT-72 on the Project Tracker, which is the only task list for this repository. WT-35 through WT-53 were added by the XAIOS-side C99 work, each naming the XAIOS tracker entry it corresponds to, and WT-54 through WT-67 by the portable C99 implementation in C99/.

Clone this wiki locally