Repository navigation
Project Tracker
The single place where known work on WebTransport is recorded: what is being
worked on, what has been fixed, and what is known but not yet scheduled. Update
this page whenever a change lands on main or a new defect or task is identified.
Last updated: 13 September 2026, at release 1.3.6. Records two bodies of
work: the XAIOS-side C99 port of the TLS/QUIC layer (WT-44 to WT-53, on
XAIOS main as of 471349d) and the portable C99 implementation in this
repository under C99/ (WT-54 to WT-67, Phases 0 to 2 complete on main at
53a86ec).
This is the only project tracker for the repository. If a second list of tasks ever appears elsewhere, this page wins and the other one should be folded into it.
Current release: 1.3.6, published 12 September 2026 from commit 1643ed4. It is a defect-fix release closing the accept-queue defect and a set of codec, runtime and CLI conformance gaps found by the audit. Nothing in this list is a blocker for it; the open items below are future work.
- A row leaves Open work when the change is merged to
mainand the documentation is updated, and moves to Resolved. -
Numbering. Every item has a stable reference that never changes once
assigned, so a commit message, an issue, or a review comment can point at one row
and stay correct.
-
#N— a GitHub issue number, where one exists. -
WT-N— a tracker-local item with no issue yet. Work discovered while doing something else is recorded here first and filed as an issue later if it warrants one; theWT-Nreference stays valid either way. - Numbers are never reused and never renumbered. An answered question moves to Resolved like anything else rather than being deleted, so the numbering stays contiguous and the answer is still findable later.
-
- Unknown problems belong here too. Anything noted but not understood — a suspicion that could not be reproduced, a behaviour that looks wrong but has no trigger yet — gets a row and a number, marked unverified in its Notes. A suspicion recorded is cheap; a suspicion forgotten is re-discovered later at full cost.
- Severity follows the repository label scheme: P0 blocks a release or breaks core functionality or creates a security risk, P1 is required for MVP or release readiness, P2 is important but not blocking, P3 is polish or hardening.
| Ref | Severity | Area | Item | Notes |
|---|---|---|---|---|
| WT-1 | P2 | transport | The Retry Integrity Tag is never computed or verified, so a caller that treats decode as validation will accept a forged Retry packet. RFC 9001 section 5.8 requires the tag to be checked, and the packet type does not retain the original Destination Connection ID it would need as associated data. |
Needs an API decision: verifying the tag requires the original DCID, so the type or its decode signature has to carry it. Not a small change, and the shipped runtime uses Network.framework's QUIC rather than this codec. |
| WT-2 | P3 | api | Several fixed codecs and the transport-parameter validator are not on the shipped path, which uses Network.framework's QUIC rather than this package's QUIC/HTTP-3 stack. The fixes are real but exercise only where an embedder constructs those types directly. | Recorded so the coverage boundary is not mistaken later. Not a defect; a scope statement. |
| WT-3 | P2 | c99, crypto | The C99 plan's OpenSSL 3.x dependency cannot be used on the target: XAIOS vendors BearSSL for its TLS 1.2 client and has no OpenSSL. The good news is that BearSSL is compiled in full by scripts/build-bearssl.sh — every src/**/*.c, with -std=c99 -ffreestanding -fno-builtin -Os -Wall -Wextra -Werror — so all 294 sources are available, not only the objects xapt reaches. |
Verified by reading the XAIOS tree. BearSSL supplies the primitives a TLS 1.3 implementation needs: AES-GCM (br_gcm_*), ChaCha20-Poly1305, HKDF (br_hkdf_*), SHA-256/384/512, X25519 (br_ec_c25519_*, curve 29), ECDSA verify on P-256/384/521 and RSA-PSS verify. The plan should name BearSSL instead of OpenSSL. |
| WT-4 | P1 | c99, transport | The entire QUIC transport currently comes from NetworkListener<QUIC> and NetworkConnection<QUIC>. Nothing equivalent exists on the target platform, so this is new code written from the RFCs, not a port. |
Verified by measurement: 19 references across 2 files, one of which is 2,228 lines; the two files total roughly 3,340 lines of the 17,126-line source tree. This is the largest single workstream. |
| WT-5 | P1 | c99, crypto | Apple-only crypto and key handling must be replaced with C99 implementations: 9 source files import Security or CryptoKit. |
Verified by grep over Swift/Sources. Covers AES-GCM, ChaCha20-Poly1305, HKDF, SHA-256, X25519 and ECDSA/Ed25519 verification. |
| WT-6 | P0 | c99, security |
BearSSL has no TLS 1.3, and QUIC requires TLS 1.3. The vendored copy is explicitly "for the xapt TLS 1.2 client". |
Answered on the XAIOS side, on main as of 787622c. userspace/wt/ now implements the whole client handshake in C99 over BearSSL's primitives: the key schedule (RFC 8446 section 7.1) in its two phases, QUIC traffic keys, Initial secrets, the Retry integrity tag and packet protection (RFC 9001 sections 5 and 6), handshake framing and the transcript, a ClientHello builder, ServerHello, EncryptedExtensions, CertificateRequest, Certificate and CertificateVerify parsers, x25519, Finished compute and verify, the CertificateVerify signature check, the pinned-key trust policy, and the 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, with the vectors extracted from the RFC text and two Python oracles recomputing them. The handshake completes end to end against a server flight built by an independent Python implementation (tests/security/generate_wt_quic_flight.py), which is what makes the client's own Finished a check rather than a tautology. What is not implemented: 0-RTT and the session tickets it needs, so there is no early-data encryption level; HelloRetryRequest, which is refused by name rather than handled; and client certificates, where the client answers a CertificateRequest with an empty Certificate (RFC 8446 section 4.4.2) and never a CertificateVerify. Recording B-79 in the XAIOS tracker, which stays open for those three. Five adversarial audits and the sanitizer runs found and closed a remote stack overflow in the Retry tag, a resumption secret derived from the wrong transcript, a packet number encoder using the wrong range, a decrypt path that failed on every packet, a CertificateVerify digest buffer sized for SHA-256 while offering SHA-512, a public key that pointed into a dead decoder frame, and an ALPN extension read in a format RFC 7301 does not define. |
| WT-9 | P2 | c99, tests | The test suite that gives this port its correctness evidence cannot run on a freestanding target. The protocol stack needs a host build with libc and a test crypto backend, where the RFC vectors and the existing Swift suite act as an oracle. | Verified by the plan's own completion criteria, which require RFC vectors, malformed-input corpora and interop runs. The target having a full libc makes this easier than expected: a host build is now a build-flag difference rather than a portability project. |
| WT-10 | P2 | c99 | Size estimate for the C99 port: roughly 15,000 to 25,000 lines, in the nature of a multi-month effort. | Partly verified, partly inferred. The Swift side is measured at 17,126 lines across 49 files. The QUIC-runtime-from-scratch and crypto/X.509 portions have no Swift counterpart to size against, so the range carries real uncertainty and should not be treated as a committed estimate. |
| WT-12 | P1 | c99, security | The trust model is now largely answered. XAIOS already pins an operator-set RSA public key for xapt runtime identity verification rather than doing general path building, and BearSSL provides the X.509 parser and ECDSA/RSA-PSS verifiers regardless. |
Answered by reading XAIOS. The remaining question is narrower: does the WebTransport port adopt the same operator-pinned model, or validate chains against a configured trust set? Pinning removes general path building from scope and is consistent with how XAIOS already does TLS identity. |
| WT-13 | P2 | c99, docs | The port's real dependency surface is ISO C99 plus POSIX.1-2008, not ISO C99 alone. Sockets (SOCK_DGRAM, sendto/recvmsg), poll, clock_gettime and close are POSIX, not C99; only printf/memcpy/int64_t and friends are ISO C99. |
Verified by compiling a probe: UDP bind, IPv6 sockets and CLOCK_MONOTONIC all work, and the file compiles clean under -std=c99 -pedantic -Werror. "100% C99 libc" in practice means C99 plus Unix, which is exactly what the port needs. |
| WT-14 | P2 | c99, config | Feature-test-macro discipline is a real portability hazard, and it bit the probe. Defining _POSIX_C_SOURCE=200809L on this host removed INADDR_LOOPBACK, so the same source that compiles bare fails with the macro set. A different libc will have different defaults. |
Verified on the development host. The port needs one documented feature-test policy fixed up front, or every platform will disagree about which symbols exist. |
| WT-15 | P2 | c99, transport | The UDP socket surface had to be specified rather than assumed: datagram receive must report truncation, and IPv6 must work. | Closed into WT-16 and WT-17, which record what XAIOS actually exposes now that its source has been read. |
| WT-36 | P2 | c99, transport | Datagram receive must report truncation. QUIC needs to know when a datagram exceeded its buffer rather than silently parsing a short one. |
Answered on the XAIOS side, and the answer is narrower than the row assumed. A datagram that does not fit SOCKET_BUFFER_SIZE (16384) is dropped whole at the frame and counted, never queued in part, and that check runs against the same bound the read is clamped to. So a caller passing a buffer of SOCKET_BUFFER_SIZE cannot be truncated, and that is the whole maximum-datagram-size policy the row concluded would be needed. A caller passing less than that can still be truncated with nothing said: the syscall request structure has no flags field, and adding one is a syscall change rather than a stack one. Recorded in network_stack.c beside the check. The port should therefore size its receive buffer at the maximum rather than at the QUIC default. |
| WT-37 | P3 | c99, config | XAIOS builds freestanding: -ffreestanding -fno-builtin -fno-pic -fno-pie, --target=aarch64-none-elf, with its own linker script and crt0.S, and picolibc is currently an empty placeholder directory built on demand by scripts/build-libc.sh. |
Verified. The port must build the same way, which means no dynamic loading, no errno-driven libc behaviour to rely on, and its own allocator strategy. This is a build-system constraint rather than a blocker, but every #include must come from the sysroot. |
| WT-38 | P3 | c99, transport | XAIOS's network stack exists in kernel (kernel/net/: ipv4.c, ipv6.c, arp.c, ndp.c, routing.c, socket_buffer.c, net_device.h, plus e1000e, virtio_net, vmxnet3 drivers) with IPv6 dual-stack addressing through xaios_ip_addr_t. |
Verified. Recording it so the C99 plan's "platform runtime" section names the real backend instead of a generic BSD socket layer. Note the target's socket surface is a capability-checked syscall API (XAIOS_CAP_NET_SOCKET per process), not raw POSIX. |
| WT-39 | P2 | c99, transport |
NETWORK_MAX_LISTENERS is 16 and one row serves both TCP and UDP, so sixteen concurrent endpoints of either kind exhausts it. WT-35 made every datagram socket register one, which is what makes this reachable without anything asking for it. |
New, found while implementing WT-35 on the XAIOS side (webtransport branch, commit 4ddd7d8). The registration path logs network: UDP listener registry full and returns void, so a socket that is refused a row is left with no reply path and no error to the caller. QUIC's own connection counts are bounded well below sixteen in the current design, so nothing here reaches it; it is recorded because the limit is now on a path that did not ask for it. |
| WT-68 | P2 | c99, config | The two C99 bodies of work now meet at an interface and do not share an implementation. The XAIOS side runs on vendored BearSSL; the portable C99/ tree links OpenSSL 3 (WT-3). C99/include/webtransport/crypto/crypto.h is deliberately the whole boundary -- one header, one file behind it -- but a BearSSL backend does not exist, and neither does the socket layer the portable tree would need on a target with no POSIX sockets. |
New, found by completing WT-55. Recorded rather than solved: the portable tree is the one the plan describes, and the XAIOS tree is already merged and tested on its own primitives, so nothing is blocked. The decision to make is whether C99/src/quic/ is ever built for XAIOS, which would mean a crypto_ bearssl.c behind this header plus a datagram layer over the capability-checked syscall API. Exit criterion: either a documented "the two trees stay separate" decision, or a BearSSL backend that passes the same RFC 9001 vectors as the OpenSSL one. |
| WT-69 | P2 | c99, transport |
WT-55 completed the key update derivation (wt_quic_packet_keys_update, checked against RFC 9001 A.5's quic ku) and the header documents that the lifecycle is not here: when to initiate an update, the key phase bit, and holding the previous keys so a reordered packet under the old phase still decrypts (RFC 9001 sections 6.1 to 6.4). |
New, found by completing WT-55, and it is a deliberate deferral rather than an oversight: the phase table's task list names the lifecycle, and the phase's completion criteria are the round trip and tamper rejection, both met. The state belongs to the Phase 4 connection runtime. Exit criterion: a key update is initiated and confirmed, a packet under the new phase decrypts, a reordered packet under the previous phase still decrypts within the RFC's limits, and an update that is refused for a missing confirmation is refused by name. |
| WT-71 | P3 | c99, tls | The resumption master secret is derived and tested against RFC 8448, and nothing consumes it: there is no NewSessionTicket handling, so the C99 tree cannot resume a session and has no 0-RTT to offer (RFC 8446 sections 4.6.1 and 7.1). |
New, found by completing the key schedule. Recorded rather than solved: nothing in draft-16 requires resumption, so this is scope rather than a gap in the protocol -- but the derivation exists without a consumer, and the tracker is where that is visible. Exit criterion: either the server issues a ticket and the client resends a PSK with a binder (which needs the res binder and c e traffic labels this schedule deliberately omits), or an explicit decision that resumption is out of scope for the C99 tree. |
| WT-70 | P2 | c99, security | The C99 tree has no Retry integrity tag (RFC 9001 section 5.8). quic/packet.c parses a Retry header and the Retry frame codec is in Phase 1, but nothing computes or verifies the tag, so a client built on this code would accept a forged Retry. WT-1 records the same gap on the Swift side, including the API problem it exposes: verifying the tag needs the original Destination Connection ID as associated data, and nothing carries it. |
New, found by reading the Phase 2 boundary -- the tag is the one part of RFC 9001 section 5 that neither Phase 1 nor Phase 2 covers, and it is needed before Phase 4 can accept a Retry. Exit criterion: RFC 9001 appendix A.4's Retry packet verifies, a packet with one altered byte is refused, and the original Destination Connection ID is carried to the check by the type rather than by a caller's convention. |
The C99 port is tracked against C99/IMPLEMENTATION_PLAN.md, which has fourteen
phases and a definition of done. They are recorded here so that the one project
tracker says where the work actually is, rather than only what is outstanding.
| Phase | What it is | Status |
|---|---|---|
| 0 | Build system, core utilities, allocator, status model, CI skeleton |
Complete on main at a922521: CMake producing static and shared libraries and the three CLI tools, ten core modules, 10 test files with 5,392 checks passing under CTest and under AddressSanitizer and UndefinedBehaviorSanitizer, an install tree with a find_package consumer test, and a C99 CI workflow on macOS/clang and Debian/gcc and clang. |
| 1 | QUIC wire core: varints, frames, packets, packet numbers, transport parameters, connection IDs |
Complete on main at d5ec5ac. Six codecs under C99/src/quic/, with RFC 9000's varint and packet number examples and RFC 9001 appendix A.2's client Initial header and CRYPTO frame as vectors, plus a deterministic malformed-input corpus run under the sanitizers. WT-54 is closed by this. |
| 2 | Crypto provider and packet protection: HKDF, AEAD, header protection, Initial secrets, key update |
Complete on main at 53a86ec. crypto/crypto.h over one OpenSSL backend, and quic/protection.h for the Initial secret, the traffic-secret and key-update derivations, the nonce, header protection and the payload seal and open. Vectors are all of RFC 9001 appendix A, re-derived by the extractor and checked in CI. WT-55 is closed by this; the key update lifecycle it names is WT-69. |
| 3 | TLS 1.3 for QUIC: handshake, extensions, certificate messages, key schedule, trust policy |
Partly: the key schedule, the transcript, the handshake message and extension codecs, the X25519 key agreement, the certificate message codecs, peer authentication and the client handshake are complete on main, the latest at 61cc18b (WT-56). RFC 8446 section 7.1's two chains and the running transcript, with RFC 8448 section 3's trace as vectors -- extracted and re-derived, including the check that the trace's transcript hashes are the hashes of the handshake messages beside them. Then the four-byte handshake framing, the extension list codec and the typed extensions, and the ClientHello and ServerHello in both directions: parsed into views, re-encoded byte for byte (RFC 8448's own ClientHello, unknown extensions included), and built from parameters. Then the X25519 key agreement (RFC 7748's primitive, key generation, the public key from a private key and the shared secret, with an all-zero secret refused where it is computed), whose extractor carries a ladder implemented from the same document as an oracle. Then the certificate messages (Certificate, CertificateVerify and Finished, held as DER views and a signature with nothing validated at this layer, which is what lets them be pinned to RFC 8448's own bytes). Then peer authentication: chain validation through OpenSSL and the CertificateVerify signature check, behind a prompt-free policy mirroring the Swift library's modes -- system trust, a caller-supplied store, pinned leaf fingerprints, and a development bypass whose loopback restriction is part of the mode. The test verifies RFC 8448's own CertificateVerify end to end, and chain validation is tested against generated fixtures plus the RFC's expired certificate. Then the client handshake state machine, which sequences the whole handshake and gates the application secrets on every security condition -- driven end to end by RFC 8448's recorded flight, so the secrets and the client's Finished it produces are the RFC's own. What remains is the server side of the same handshake. The commit after it (d420de2) is worth naming here: LeakSanitizer on the Linux CI leg found that a failed or restarted handshake left the transcript's hash context allocated -- something the macOS sanitizer configuration cannot see, and the second time that leg has found what nothing local could. Fixing it produced a contract rather than a patch: a failed machine holds nothing, beginning again is a fresh start, and a caller-owned-struct machine carries a marker so that "is this live?" has one answer in every build instead of depending on what the stack held. The first attempt -- refusing to begin on a live machine -- was worse than the leak, because whether an uninitialised struct counted as live depended on the stack. The fix commit that follows it repaired a stack overflow in the new test, not the library: two refusal checks passed a 16-byte record-key buffer where a 32-byte secret was expected, which every local run accepted because the callee refuses before writing, and ubuntu-24.04's GCC refused to compile with -Wstringop-overflow. Apple clang, Linux clang and the sanitizers all missed it, which is the argument for the multi-compiler matrix rather than for a bigger test suite. |
| 4 | QUIC connection runtime: packet number spaces, ACK, loss and PTO, streams, flow control, datagrams, close, IPv4 and IPv6 | Not started. WT-57
|
| 5 | HTTP/3 core: frames, SETTINGS, control and request streams, GOAWAY, error mapping | Not started. WT-58
|
| 6 | QPACK: static table, Huffman, literals, dynamic table, encoder and decoder streams | Not started. WT-59
|
| 7 | WebTransport draft-16: extended CONNECT, stream and datagram prefixes, sessions, close and drain, capsules | Not started. WT-60
|
| 8 | Public C API: opaque handles, callbacks, backpressure, blocking helpers | Not started. WT-61
|
| 9 | CLI apps: wt-client-c99, wt-server-c99, wt-conformance-c99
|
Stubs only, and they exit 3 rather than 0 so a script cannot read them as working. WT-62
|
| 10 | Test port: mirror the Swift suites, malformed input, resource exhaustion, fuzzing | Partly: the Phase 0 core has unit tests. The protocol suites are not started. WT-63
|
| 11 | External interop against the five VPS endpoints | Not started. WT-64
|
| 12 | Cross-platform CI: macOS, Debian, FreeBSD, Windows | Partly: macOS and Debian are green in C99 CI. FreeBSD and Windows runners are not on it; Windows also waits on the WSA runtime in Phase 4. WT-65
|
| 13 | Production hardening: sanitizers, fuzzing, static analysis, no unchecked narrowing | Partly: -Wconversion and warnings-as-errors are on, and the sanitizer configuration runs in CI. The rest waits on the protocol. WT-66
|
| 14 | Release readiness: API docs, artifacts, checksums, interop proof table | Not started. WT-67
|
The draft-16 score in C99/README.md is still 0% and stays there until the
protocol phases land: the wire core and the crypto layer are the foundation, not
the protocol.
Paused here. The XAIOS-side TLS 1.3 client handshake is written, tested,
audited and merged to XAIOS main (471349d): it completes a QUIC handshake
against a server flight built by an independent Python implementation, and 1214
host checks pin it against RFC 8446, 8448, 9001, 7301 and 7748 in XAIOS CI and
under AddressSanitizer and UndefinedBehaviorSanitizer. What is left of the port
is the ten tasks below, in the order they unblock each other. They are numbered
from WT-44, and each names the XAIOS tracker entry that holds its detail.
| Ref | Severity | Area | Task | Exit criterion |
|---|---|---|---|---|
| WT-44 | P0 | c99, transport | Nothing on the target drives the handshake from a socket. The module is exercised from the host, and the only on-target evidence under it is the datagram syscall's own gate. | A guest opens a datagram socket, sends a real QUIC Initial, receives a ServerHello and completes a handshake, held by a XAIOS QEMU gate. B-84
|
| WT-45 | P0 | c99, transport | QUIC transport parameters are carried as opaque bytes. Nothing encodes the client's set or validates the peer's, so no flow-control limit, idle timeout or connection ID is actually known. | The client's parameters are encoded, the server's are parsed, and a parameter that violates RFC 9000 is refused. B-85
|
| WT-46 | P0 | c99, transport | There is no QUIC connection runtime: no packet number spaces, CRYPTO stream reassembly, ACK or loss recovery, connection IDs, Retry or Version Negotiation. | A connection can be established, carry a stream, lose a packet and recover. B-86
|
| WT-47 | P1 | c99, security | 0-RTT is not implemented, and neither is what it needs. The early-data encryption level is deliberately absent rather than present and unavailable. | The c e traffic and binder branches of the key schedule, a session-ticket store, and an early-data level. B-87
|
| WT-48 | P1 | c99, protocol | A HelloRetryRequest is refused by name rather than handled, so a server that wants a different group cannot be reached. | The transcript is rewritten with the synthetic message_hash, a second ClientHello is sent, and a second retry is refused. B-88
|
| WT-49 | P2 | c99, protocol | A CertificateRequest is answered with an empty Certificate and no CertificateVerify. This is conformant, and it is also the whole of client authentication. | Client certificates, if XAIOS ever has a use for them. B-89
|
| WT-50 | P1 | c99, security | No P-384 or P-521 certificate has been through the verifier. The generated ECDSA fixture is P-256, so two of the three ECDSA schemes this module advertises have never seen a real certificate. | A generated P-384 and P-521 fixture, in the shape of generate_wt_ecdsa_vectors.py. B-90
|
| WT-51 | P2 | c99, build | The module has never been built or booted for RISC-V. make compile-check covers aarch64 and x86_64 freestanding and the host; no RISC-V cross-toolchain is installed on the development machine. |
userspace/wt/ compiles for riscv64 and the suite runs there. B-91
|
| WT-52 | P2 | c99, api | Two views outlive the buffers they point into by documented contract rather than by construction: the Certificate message is borrowed until CertificateVerify, and the peer's transport parameters are returned as a view into the EncryptedExtensions buffer. | The client owns the bytes it keeps, or the receive path takes a buffer it owns. B-92
|
| WT-53 | P2 | c99, api | The client's flight is valid only until the next call, and QUIC retransmits a lost Finished with the same keys. Nothing says so at the type level. | The flight outlives the call that produced it, or the API says it does not. B-93
|
| Ref | Severity | Area | Item | Outcome |
|---|---|---|---|---|
| WT-7 | — | c99, config | It was undecided whether the target has any libc, which would have changed Phase 0 substantially: without one, every buffer becomes caller-provided and the arena strategy shapes nearly every API. |
Answered by the operator and confirmed in the XAIOS tree: libc comes from picolibc, built freestanding into a sysroot by scripts/build-libc.sh, with a userspace libc layer in userspace/libc/. The plan's configurable-allocator interface stands as written. |
| WT-8 | — | c99, transport | The OS's own datagram and entropy interfaces were unknown, so the transport backend boundary could not be frozen. | Answered by the operator and confirmed in the XAIOS tree: a full kernel network stack with IPv4, IPv6, ARP, NDP, routing and multiple NIC drivers, exposed to userspace through a capability-checked syscall API rather than POSIX sockets. The remaining specifics are tracked as WT-16 and WT-19. |
| WT-11 | — | c99, docs | The repository carried both a C99 and a C++ port plan, which invited the assumption that C99 depended on the C++ tree. |
Resolved by removal: the CPP/ tree was deleted on 12 September 2026, so there is now a single port target and nothing to confuse it with. The finding that the two trees were independent was correct — they shared no files — and removing the C++ tree left C99/ unaffected. |
| WT-16 | P0 | transport | A timed-out accept left a continuation parked at the head of the connection queue, so the next accepted connection was handed to it and dropped. Reachable from the documented accept loop; every connection arriving slower than the one-second default timeout was lost. | The queue tags each waiter with an identity so an abandoned caller removes its own entry, and shutdown now wakes parked accepts instead of leaving them to time out. Two regression tests, both of which fail before the change. |
| WT-17 | P0 | transport | The first fix for the entry above dropped the abandoned continuation instead of resuming it. withTimeout abandons its operation task rather than awaiting it, so the task stayed suspended on that continuation; the Swift runtime reported a leaked continuation on every timed-out accept, turning a lost connection into an unbounded task leak. Found by adversarial review of the fix itself. |
The waiter is resumed with CancellationError so the abandoned task unwinds; its one-shot gate discards the value. A cancelled accept also releases a connection that arrives after it gave up. Three consecutive full-suite runs report zero continuation-misuse warnings. |
| WT-18 | P3 | transport |
QUICFrame could encode a zero-length connection ID that its own decoder had just been taught to reject. |
The encoder now enforces the same 1...20 range, so the library cannot produce a frame it would refuse to read. |
| WT-19 | P1 | transport |
connectSession cancelled its inbound handler task only when the peer rejected the session, so on every other failure the handler kept the connection — and its socket — alive. |
A defer guard cancels it on every path that does not hand back a session. Not claimed as a confirmed leak fix: the descriptor-growth symptom was not reproducible here. |
| WT-20 | P2 | transport | The connection-ID store did not track the retire_prior_to watermark, so a sequence below a received watermark could be named again and re-activated, making a retired connection ID usable. RFC 9000 section 19.15 retires it permanently. |
The store tracks the high-water mark and records any sequence below it as retired, emitting a RETIRE_CONNECTION_ID only when it actually held that connection ID. Regression test fails before the change. |
| WT-21 | P0 | transport | The first attempt at releasing a connection that arrives after its accept was abandoned put the cancellation check in acceptSession. withTimeout runs the queue wait in a separate task, so that check read the wrong task's state and was unreachable; the race stayed open and the connection's handler kept it alive. Also caught by adversarial review of the fix. |
The check moved into dequeue, the task that observes the cancellation, on both its paths. |
| WT-22 | P1 | cli-cd | The previous round left the strict swift format lint gate failing, so CI would not have built. |
A test's tuple array did not match the formatter; fixed with the project's own formatter command. Worth recording as a reminder that the blocking gates must be run locally before a push. |
| WT-23 | P3 | api | An explicit maxConcurrentConnections was silently ignored when a non-default admission policy was supplied: the override was gated on admission == .default, so .publicFacing with maxConcurrentConnections: 1 produced a 256-connection listener, and an out-of-range value was neither applied nor refused. |
The override is now tied to the default argument value rather than the policy, so precedence is the same for every policy, and the value is validated like the policy's own field. |
| WT-24 | P2 | transport | The long-header decoder accepted a cleared Fixed Bit and non-zero reserved bits, and the Retry decoder additionally accepted a zero-length token. The short-header path already enforced the Fixed Bit, so the two disagreed about what a valid packet is. | All three checks added, with regression tests. The Retry Integrity Tag remains unimplemented — a structural gap, recorded below. |
| WT-25 | P3 | transport | An oversized datagram was silently truncated: recvfrom returns a short payload with a valid source and no indication that data was lost. |
Now uses recvmsg and rejects the datagram when the kernel sets MSG_TRUNC. The obvious fix does not work — passing MSG_TRUNC to recvfrom is ignored on this platform, since the flag is reported on output rather than honoured on input. |
| WT-26 | P2 | transport | No transport-parameter value validation existed: ack_delay_exponent > 20, max_udp_payload_size < 1200, active_connection_id_limit < 2, max_ack_delay >= 2^14, a stateless_reset_token that is not 16 bytes, a zero max_datagram_frame_size, and connection-ID parameters outside 1...20 were all accepted where RFC 9000 section 18.2 requires TRANSPORT_PARAMETER_ERROR. |
Added as an opt-in validated() rather than tightening decode, which is also the TLS-extension parser and must keep accepting unmodelled parameters. One test covers all eight rules. |
| WT-27 | P1 | transport | The CRYPTO reassembly ceiling counted bytes already consumed, making it a lifetime cap rather than a bound on bytes waiting for a gap: after a large handshake a peer could no longer deliver a legitimate NewSessionTicket or KeyUpdate. | The reassembler tracks a consumed watermark and counts only bytes at or above it, memoised so a large frame is not quadratic. An earlier attempt at this appeared to produce an intermittent SIGBUS, which turned out to be stale incremental build state — only a clean rebuild is trustworthy after a series of failed builds. The regression test takes 0.02s. |
| WT-28 | P1 | transport | DATAGRAM and PING frames were classified as retransmittable, so a caller resending retransmittableFrames re-sent unreliable datagrams and delivered them twice (RFC 9221 section 5.2, RFC 9000 section 13.3). |
Both excluded, with regression tests. |
| WT-29 | P2 | transport |
NEW_CONNECTION_ID accepted a zero-length connection ID, which RFC 9000 section 19.15 makes a FRAME_ENCODING_ERROR. |
The length must now be 1...20, with boundary tests at both ends. |
| WT-30 | P2 | transport |
HKDF-Expand accepted output above 255 * HashLen, wrapping the block counter and returning bytes that are not the RFC 5869 stream. |
Capped at 8,160 bytes for SHA-256, with a regression test. |
| WT-31 | P2 | cli-cd |
--max-sessions was unbounded, so an oversized value committed memory until the process was killed, and --listen exited zero after serving nothing. |
Bounded at 4,096; serving no sessions now exits non-zero. |
| WT-32 | P2 | api |
makeFromPKCS12 used as! to read kSecImportItemIdentity. |
Replaced with a type-identifier check and a justified unsafeDowncast; as? SecIdentity is not usable because the compiler treats a conditional CoreFoundation downcast as infallible. |
| WT-33 | P2 | transport | The public error spliced Security.framework's raw exception reason into invalidTransport. |
Reason dropped from the public error, per the [[Security and Trust |
| WT-34 | P2 | docs | Issue #20's own diagnosis was inaccurate in three places: the library does not call SecKeyCopyExternalRepresentation on the failing path, the exception is synchronous rather than raised through an async continuation, and the trigger is explicit curve parameters rather than EC keys as such. |
Corrected on the issue and in the fix commit message, so the resolution is not later misread as "EC keys are unsupported". |
| WT-35 | P2 | c99, transport | XAIOS had no way to open a datagram socket on a port the kernel chose, which is the first thing a QUIC client needs. |
Resolved on the XAIOS side, on main as of 787622c (commits 4ddd7d8, 56ed3fd). XAIOS_SYSCALL_NET_OPEN_UDP (55) binds a datagram socket from the dynamic range when the caller passes port 0 and reports it through an out-pointer, registers it so a reply can be routed back, and releases it on close. Two defects were found while building its gate rather than by reading the code: the answer first travelled through a field of the request structure and so was never observed by the caller, and the ephemeral counter's wrap could hand out port 0 once in 16384 draws. A third, that kernel_socket_alloc does not check for a port already held, would have made two ephemeral sockets share a port with the second unreachable and silent. Held by make qemu-datagram-ephemeral-port-gate, which reads the kernel's allocation log and the app's report of what it was told and requires them to agree; it runs in XAIOS's per-push CI. The request-structure ABI that the first defect exposed is now checked by tests/repository/check-syscall-abi.py in make docs-check. |
| WT-40 | P1 | c99, security | The XAIOS-side CertificateVerify verifier picked its hash from the signature SCHEME and hashed the signed content into a buffer sized for SHA-256 (32 bytes), while offering RSA-PSS-RSAE with SHA-384/SHA-512 and ECDSA P-384/P-521, which need 48 and 64. |
Found and fixed on XAIOS, on main as of 787622c. Found by asking what a length actually is rather than what it is called. A server that answered a CertificateVerify with scheme 0x0805 or 0x0806 wrote past a stack local before the signature was examined, reachable from the wire by an unauthenticated peer; AddressSanitizer: stack-buffer-overflow ... [1328, 1360) 'digest' is the reproducer. The buffer is now sized for the largest hash any supported scheme uses, with a build-time assertion that it is, and both dispatch paths refuse a hash length that does not fit. The two longer RSA schemes are driven in the test with a garbage signature, which is enough, because the overflow happens while the content is hashed. This is the second defect of this class in the port, after the Retry integrity tag's unbounded copy in WT-1. Tracked as B-81 in the XAIOS tracker. |
| WT-41 | P1 | c99, security |
wt_tls_certificate_public_key returned BearSSL's own key views, whose pointers live in br_x509_decoder_context's pkey_data array -- a member of the decoder, which is a local in every function that parses a certificate. |
Found and fixed on XAIOS, on main as of 787622c. The key it reported pointed into a stack frame that had already returned: a use-after-return that reads whatever the next call left there, and reads as a correct key whenever nothing has overwritten it, which is why the test that existed passed. Found while building the pinned-key policy, the first caller that had to keep a key across a call; sweeping the stack shows the modulus changing, and the test now sweeps and requires it not to. A public key owns its bytes, sized to BearSSL's own key buffer bound. Tracked as B-82 in the XAIOS tracker. |
| WT-42 | P2 | c99, protocol | The EncryptedExtensions ALPN answer was parsed in a format RFC 7301 does not define: a bare protocol_name<1..255> instead of a ProtocolNameList of exactly one name, which begins with a two-byte list length. |
Found and fixed on XAIOS, on main as of 787622c. A conformant server's ALPN answer was refused and a non-conformant one accepted. It survived four audits and 711 checks because nothing carried ALPN: RFC 8448's EncryptedExtensions has none, and the hand-written fixtures agreed with the parser. What found it was the independently generated QUIC server flight -- which had itself been written to agree with the parser, and only found it once corrected to the RFC, when the two disagreed. The parser is fixed and the flattened form is refused by a regression test. Tracked as B-83 in the XAIOS tracker. |
| WT-43 | P3 | c99, testing | The XAIOS-side host suites -- over a thousand checks plus two independent Python oracles -- were run by nothing but a developer's machine. |
Found and fixed on XAIOS, on main as of 787622c. They were in the Makefile and in no CI job, so a regression would have been invisible until someone ran them by hand. XAIOS CI now has a wt-host-tests job that recomputes the RFC vectors, re-verifies both generated fixtures, runs the suites and runs them again under AddressSanitizer and UndefinedBehaviorSanitizer, and make wt-vectors-check re-verifies the fixtures. The vendored BearSSL is no longer compiled with -Werror there: it is third-party code compiled by the target build with its own flags, and a warning a different clang grows should not turn into a red job about XAIOS's code. |
| WT-54 | P2 | c99, transport | Phase 1 of the C99 plan -- the QUIC wire core -- needed varints, packet numbers, frames, packet headers, transport parameters and connection ID retirement. |
Complete on main at d5ec5ac. Six codecs with 18 test files and 72,577 checks passing in Debug, Release and under AddressSanitizer and UndefinedBehaviorSanitizer. Four defects were found while building it; three were the same shape -- a value that could not express the difference between "absent" and "present and empty", or a length that excluded the thing it named -- and the one worth recording is that the long header's reported size excluded the packet number, which phase 2's AEAD would have used as associated data and rejected every packet over. |
| WT-55 | P2 | c99, crypto | Phase 2 of the C99 plan -- the crypto provider and packet protection -- needed HKDF, AEADs, header protection, Initial secrets and the key update derivation. |
Complete on main at 53a86ec. src/crypto/crypto_openssl.c behind crypto/crypto.h: SHA-256, HMAC, HKDF (extract, expand, expand-label), AES-128-GCM and ChaCha20-Poly1305 with the tag verified inside the AEAD, the AES block and ChaCha20 keystream, a constant-time comparison and a secure zero. src/quic/protection.c: the Initial secret and packet keys, the traffic-secret and key-update derivations, the nonce, the sample, mask, protect and unprotect, and the payload seal and open. 20 test files and 73,012 checks in Debug, Release and under AddressSanitizer and UndefinedBehaviorSanitizer. Four defects, every one in code that had never been executed until this phase's tests called it: wt_aead_open asked OpenSSL for a computed tag, which its provider GCM cannot produce in decrypt mode (measured, not assumed) -- the API is now an authenticated open returning the new WT_ERR_AUTHENTICATION and clearing the plaintext; HKDF-Expand passed its mode to EVP_KDF as a four-byte string, which that parameter rejects, so every derivation in the library returned WT_ERR_UNSUPPORTED and it is now the RFC 5869 HMAC chain; the streaming SHA-256 context had no initialised marker, so update or final on a never-initialised context dereferenced the caller's array and crashed inside libcrypto (WT_ERR_STATE now); and the installed CMake package did not declare its OpenSSL dependency, so a consumer of the static library failed inside a generated file, which only C99/scripts/check-package.sh could see. Two vectors were also written wrong in the way that matters most -- RFC 4231's cases 6 and 7 with invented message bytes beside the RFC's digests, and NIST's GCM case 5 with 64-byte buffers for a 60-byte plaintext -- and both passed a round trip while failing the published value. One test exists because RFC 9001's own vectors cannot catch what it covers: both published AES masks have a zero in the bit that separates a four-bit mask from a five-bit one, so it synthesises packets whose masks set that bit. |
| #21 | P1 | api, docs |
.certificateChain accepted only Apple's private-key representation while the parameter name invited DER, and the failure was a bare OSStatus -50. |
Documented the required encoding on the case and on makePrivateKey, with a worked example; the error now names the expected form, byte length, and rejected encodings; [[Getting Started |
| #22 | P2 | transport | Reject explicit-parameter bundles before the import rather than after it raises. | Closed as not planned, reasoning recorded on the issue: the certificate bag is encrypted, so a pre-flight check needs PKCS#12 PBE decryption and an ASN.1 walk in the trust path, and it would be narrower than the exception boundary it was meant to replace. Revisit if macOS exposes the certificate without going through the raising import, or if the usually hedge proves misleading in practice. |
| #2–#13 | — | config, transport, tests, docs | The v1.0 readiness programme: planning labels and milestones, README installation guidance, documentation entrypoint, client/server example, MVP connection lifecycle, coverage guidance, error-handling audit, security review, CI diagnostics, setup and troubleshooting docs, interoperability evidence, and the release checklist. | Closed 10 August 2026. |
| Item | When |
|---|---|
| Re-run the remote interoperability matrix | Before any release that touches the CONNECT path, settings, or QPACK |
| Re-check the Apple Feedback Assistant report FB24354509 | Open as of 16 August 2026; see [[Known Limitations |
| Confirm release artifacts reproduce | Every release, via Swift/build-release-apple-silicon.sh
|
| Investigate the Thread Sanitizer suite's sensitivity to host load | Resolved: there was nothing to fix. The CLIProcess and ReleaseArtifacts suites orchestrate subprocesses against wall-clock timeouts that TSan's slowdown exceeds, so they report as timeouts rather than races. CI and [[Development and Testing |
| Revisit the identity error contract if macOS changes behaviour | The #20 regression test pins macOS 26 behaviour, where the import raises rather than returning a status. A change there should be a deliberate decision, not a silent test failure. |