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, and now realised: src/runtime/udp.c is the one POSIX translation unit (with src/core/time.c), it uses sendto, recvmsg, poll, getsockname and close, and the build sets _POSIX_C_SOURCE=200809L for the library on Unix-but-not-Apple only. "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 and answered by the policy now in the build: _POSIX_C_SOURCE=200809L is set for the library on Unix-but-not-Apple (documented in cmake/WTCompilerWarnings.cmake), and the source uses no BSD-only name -- the loopback addresses are written out as bytes rather than taken from INADDR_LOOPBACK. The rule the port follows: only names POSIX 2008 guarantees, so the macro can be set anywhere. |
| 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. |
Implemented at d3eaacd: wt_udp_receive uses recvmsg and reports WT_ERR_TRUNCATED from MSG_TRUNC with the length zeroed, so a caller cannot parse the prefix of a packet; the sender's address is still reported. The documented alternative is sizing the buffer at WT_UDP_MAX_DATAGRAM (65507), which cannot truncate. An earlier row part follows: 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-73 | P1 | c99, security, docs |
wt_quic_unprotect_frames returned WT_ERR_PROTOCOL when an AEAD tag did not verify, while status.h defines WT_ERR_AUTHENTICATION for exactly that case and says it is deliberately not WT_ERR_PROTOCOL, because the packet is well formed and simply was not produced by the holder of the key. Two documented contracts disagreed, and the connection runtime is where that bites: a caller cannot choose between discarding a datagram and closing a connection when both arrive as the same error. |
Fixed on main at 261c4e2. The function returns WT_ERR_AUTHENTICATION, its header says the choice of remedy is the caller's (RFC 9001 section 5.3 discards), and wt_quic_packet_read passes it through. The five Phase 2 expectations that pinned the old value were wrong and were the reason the defect survived: a test can hold a defect in place. |
| WT-79 | P2 | c99, transport | RFC 9000 section 14.1's datagram-size rule is not implemented, in either half. A CLIENT must expand the payload of every UDP datagram carrying an Initial packet to at least 1200 bytes, and a SERVER must discard an Initial packet carried in a datagram smaller than that. The runtime does neither: its Initial packets are only as large as the frames in them (the handshake test's ClientHello datagram is 207 bytes), and a server reads an Initial packet out of any datagram that holds one. The two halves have to land together, because enforcing the server's discard without the client's padding would refuse the runtime's own handshake. |
New, found while looking for the next Phase 4 rule to enforce (ef89b92). It matters beyond tidiness: the 1200-byte floor is what makes the handshake's anti-amplification budget meaningful, since a server's response is bounded by three times what it received. Exit criterion: a client pads its Initial datagrams to at least 1200 bytes through the existing padding path (WT-72's helper is the same idea at a smaller scale), a server discards an Initial packet in a smaller datagram and counts it, the handshake test still completes with padded datagrams, and a test sends an undersized Initial to a server and requires the discard. A first attempt (ef89b92 working tree, reverted) wrote both halves and compiled, but the test binary then took more than 60 seconds where it had taken under one: THE FLOOR MAKES EVERY HAND-BUILT INITIAL PACKET IN THE EXISTING TESTS SUBJECT TO IT. test_discards sends Initial packets to a SERVER on purpose -- to have them refused for the address or the connection ID -- and the floor now refuses them first, so each following wt_udp_wait expires its full two-second timeout instead of returning immediately. The next attempt must give those packets the floor too (they are meant to test a different refusal) and re-check the loss tests, where 1200-byte Initial packets are ten to the initial congestion window. A SECOND ATTEMPT MEASURED THE TWO HALVES SEPARATELY, and the finding changed the shape of the task: with the CLIENT PADDING ALONE -- no server discard, so nothing can be refused for its size -- test_quic_connection still fails 76 of 401 checks ("processing nothing more: want 1, got 0" and "processing two datagrams in all: want 2, got 1" among them), while test_quic_handshake passes unchanged. So the entanglement is not only the server-side discard: the existing connection tests' expectations depend on the sizes the client sends, and WHERE has to be measured rather than reasoned about (run the test binary with a progress line per function, or bisect by returning the padding to one space at a time). The next attempt should instrument first, and treat "which existing expectations depend on packet size" as the real question. PARKED after a fourth attempt (829d300 working tree, reverted). The fourth attempt fixed the cause the third one exposed -- the padding was aimed at the floor by arithmetic, so the rebuilt packet came out two bytes above the path's maximum and every Initial packet a client sent was refused, which is also what made the earlier attempts look like hangs: nothing arrived, so every wait in the suite expired its full timeout. With the padding measured instead (pad, rebuild, adjust until the packet is between the floor and the ceiling), test_quic_handshake still passes its 240 checks and test_quic_connection still does not finish, so a fifth unknown remains in the connection tests. Decision: park this row. It is an anti-amplification hardening rule, not a prerequisite -- the handshake completes and interoperates without it, and no other task depends on it -- and four sessions' remaining budgets have now gone into it. The next session should spend its budget on WT-78 (the stream layer), which the phase and everything after it actually needs, and return to this row only with a session that can instrument the connection tests properly (per-test progress output, or bisecting the suite). |
| WT-78 | P1 | c99, transport | The connection runtime has the WIRE half of streams and not the state. wt_quic_connection_send_stream encodes and sends a STREAM frame and checks the stream number against the peer's grant, but nothing remembers the bytes it sent (so a STREAM frame is never retransmitted), nothing counts the flow control credit it spends against wt_quic_peer_limits_t, nothing raises the limits it grants when a stream closes, and the receive side hands a STREAM frame to the caller's handler with no reassembly, no final-size check and no RESET_STREAM or STOP_SENDING handling. quic/stream.h has the state machines and the flow control arithmetic ready; what is missing is the table that owns a bounded number of them and the wiring to the frames. |
Deliberately deferred, and now the largest remaining item of Phase 4 (ef89b92). It is recorded as its own task because the phase row alone hides how much is there: the pieces landed one at a time on purpose -- the limits the peer grants, the limits this endpoint grants, the key lifecycle, the frame-permission rules -- and each of them is something the stream layer needs to be correct rather than something it can add later. Exit criterion: a bounded stream table with per-stream send and receive state; stream data sent, acknowledged and retransmitted from the bytes it kept; flow control enforced in both directions with MAX_DATA and MAX_STREAMS raised as the application reads; a stream that is reset and one that is stopped both observed as their own states; and a test that carries bytes over a real loopback connection, loses a packet, and gets them there. |
| WT-75 | P2 | c99, transport | The loss list keyed a sent packet on its packet number alone, but packet numbers are per packet number space (RFC 9000 section 12.3), so the server's first Handshake packet number zero was refused as a duplicate of its Initial packet number zero and the handshake could not proceed. Detection, the loss timer and the probe timeout also considered every space's packets at once. |
Fixed on main at 2c1a217. wt_quic_sent_packet_t carries the space, the duplicate check and the lookup use it, and wt_quic_loss_detect, wt_quic_loss_time and wt_quic_loss_pto take it -- RFC 9002 appendix A's own shape, one sent-packet list per space. Found by running a real handshake, which is the only way it could surface. |
| WT-76 | P2 | c99, transport | The connection's send path set the source connection ID and the token unconditionally, and the packet builder refuses both on a short header, so the FIRST 1-RTT packet a connection ever sent was WT_ERR_INVALID_ARGUMENT. Nothing had sent one until the handshake produced the application keys. |
Fixed on main at 2c1a217: the two long header fields are set only for a long header, and tests/unit/test_quic_handshake.c sends a 1-RTT frame the server reads. |
| WT-77 | P2 | c99, tls | The TLS machine's views of the negotiated ALPN and the peer's transport parameters point into the CRYPTO window that carried them, and that window slides as the handshake proceeds, so reading them after the handshake reads bytes that have been consumed. Both are needed for the connection's whole life: the ALPN picks the application protocol and the parameters carry the flow control limits. |
Fixed on main at 2c1a217: the handshake driver copies each the FIRST time the machine reports it -- copying later would overwrite the good copy with a stale pointer -- and the accessors return the driver's copies. |
| WT-74 | P2 | c99, transport | RFC 9002 section 6.2.1 uses a fixed initial round trip (kInitialRtt = 333ms) for the probe timeout until the estimator has a sample, and wt_quic_loss_pto refuses before its first sample. Nothing else armed a probe, so a connection whose first Initial was lost had no timer at all: it would wait forever and never retransmit the packet that would have produced the sample the estimator was waiting for. |
Fixed on main at 7bab142. The runtime carries the fallback (probe_time): with no estimator answer and something ack-eliciting in flight, the deadline is the earliest ack-eliciting send plus the initial probe timeout, doubled by the probe count and clamped. Exit criterion met by tests/unit/test_quic_connection.c, which fires the timeout on a connection with no sample and requires that a probe goes out. |
| WT-72 | P2 | c99, transport | The header protection sample decides the smallest packet this tree can build. The sample is sixteen bytes starting four bytes after the packet number (RFC 9001 section 5.4.2), so a packet can only be protected when its payload is at least 4 - packet_number_length bytes: with an eight byte connection ID and a one byte packet number, an empty payload is 26 bytes and refused as WT_ERR_TRUNCATED, while the same packet with a four byte packet number is exactly 29 bytes and builds. wt_quic_packet_build refuses rather than appending PADDING itself, which is the right default -- a builder should not invent frame bytes -- but it puts the obligation on the connection runtime: an ACK-only 1-RTT packet with a short packet number must be padded to four bytes of payload. |
New, found while testing the wire seam (199cd2c, WT-57), and it is the kind of rule that fails only for the smallest packets, which is why it is recorded rather than left to a comment: a runtime that never sends a tiny packet would never see it, and one that does would see a build failure with nothing naming the padding. Exit criterion: either the runtime pads such packets and a test exercises an ACK-only packet with a one byte packet number on the wire, or the builder gains an explicit "pad to the sample minimum" that the caller asks for by name. |
| 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 |
Complete on main at 388bf62. The key schedule and handshake transcript (RFC 8446 section 7.1); the four-byte handshake framing, extension codec and ClientHello/ServerHello in both directions; the certificate messages; X25519 (RFC 7748); chain validation through OpenSSL and the CertificateVerify check behind a prompt-free policy mirroring the Swift library's trust modes; and both halves of the handshake, with the client pinned to RFC 8448's recorded flight and the two halves required to agree on the application secrets. WT-56 is closed by this. |
| 4 | QUIC connection runtime: packet number spaces, ACK, loss and PTO, streams, flow control, datagrams, close, IPv4 and IPv6 |
Under way, the latest at the key-lifecycle part (WT-57): the packet number space (the received set as a bounded range list, ACK construction, the acknowledgement debt and RFC 9002 section 5's RTT estimator) loss detection with probe timeouts (section 6's packet and time thresholds, the loss timer, bytes in flight, and the exponential backoff) congestion control (section 7's NewReno with its recovery epoch) the stream state machines with flow control (RFC 9000 sections 2, 3 and 4, with the final size as the boundary that stops a peer appending to an ended stream), QUIC DATAGRAM (RFC 9221, with its size rule against both limits and a bounded receive queue), the connection close paths (RFC 9000 sections 10.2 and 19.19, the two CONNECTION_CLOSE forms and the draining period) and the packet build/read seam (quic/packet_io.h: build in header, seal, tag, header-protection order, read in reverse, with a layout-only walk of a still-protected header because the packet number's length and the reserved bits are both behind the mask). its seventh is the IPv4/IPv6 UDP socket layer (runtime/udp.h: whole datagrams between two addresses, every syscall classification in one place with WT_ERR_IO for what it cannot classify, IPV6_V6ONLY set explicitly rather than left to a platform default, and a truncated datagram reported rather than returned short). its eighth is the connection runtime over that socket (quic/connection.h: the three packet number spaces and their keys, the acknowledgement debt and 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 can travel the whole path without a handshake), with two connections exchanging protected, acknowledged packets over IPv4 and IPv6 loopback in the tests -- so the phase's completion criterion is met at the packet level. its ninth is the CRYPTO stream (quic/crypto_stream.h: a bounded window with a bitmap of what has arrived, delivering only up to the first hole so a ClientHello split across two packets reads correctly, and a send half that keeps what was sent because a packet can be lost after a later one was acknowledged). its tenth is the TLS 1.3 handshake driver over CRYPTO, with a whole handshake between two connections over real loopback sockets on IPv4 and IPv6 in tests/unit/test_quic_handshake.c -- a real certificate, signature and trust check, the ClientHello and ServerHello in Initial packets, the flight and the client's Finished under the keys the ServerHello derived, HANDSHAKE_DONE under the application keys and then a 1-RTT frame. The phase's completion criterion is therefore met end to end. its eleventh is the peer's transport parameters turned into the limits this endpoint obeys (wt_quic_peer_limits_t: the flow control limits at both levels, the stream counts, the connection ID limit, the datagram size), with RFC 9000 section 18.2's defaults applied by name -- an absent parameter and a zero one are different facts -- and the effective idle timeout becoming the smaller of the two ends' (section 10.1). its twelfth is QUIC DATAGRAM over the connection (wt_quic_connection_send_datagram bounded by both the peer's frame size and the path, with no retransmission descriptor because that is what makes it unreliable; a bounded receive queue whose newest datagram is discarded when full; and a composed frame handler, handshake first then the queue, which is the layering the stream and session layers will use too). its twenty-first is the four fields in a stream number (RFC 9000 section 2.1) read and written in one place, the first piece of the stream layer. Its twentieth is a frame that arrives in the wrong packet type being refused (RFC 9000 sections 12.4 and 12.5, including a CRYPTO frame at the application level). Its nineteenth is HANDSHAKE_DONE only reaching a client (RFC 9000 section 19.20: a server that receives one refuses the connection). Its eighteenth is a closed connection refusing to process frames (RFC 9000 section 10.2.1, 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, and a limit that falls is the PROTOCOL_VIOLATION RFC 9000 makes it). Its sixteenth is the stream counts this endpoint grants (MAX_STREAMS, per direction, with the same only-ever-rising rule as MAX_DATA). Its fifteenth is the connection-level limit this endpoint grants (MAX_DATA: the other direction from the peer limits, and one that may only ever rise, since RFC 9000 section 4.1 makes a limit that decreases a protocol error). Its fourteenth is the STREAM frame send path (wt_quic_connection_send_stream: the RFC 9000 section 19.8 wire format with the stream number checked against the peer's grant, where whether a limit applies depends on who opened the stream -- and deliberately not the stream layer, since nothing remembers the bytes yet). Its thirteenth is the key lifecycle RFC 9001 section 4.9 makes a MUST: the Initial keys are discarded when the first Handshake packet is processed and the Handshake keys when the handshake is confirmed, leaving only the application level, which is the one an attacker who saw the first packet cannot derive. What remains for the phase: the stream frames and their flow control over the parsed limits, the rest of the resource limits (buffered peer input), cancellation, and the server's connection ID issuance and Retry. |
| 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-56 | P2 | c99, tls | Phase 3 of the C99 plan -- TLS 1.3 for QUIC -- needed the key schedule, the handshake messages and extensions, a key agreement, certificate validation and the two state machines. |
Complete on main at 388bf62. Seven parts: the key schedule and transcript (RFC 8446 section 7.1, with RFC 8448 section 3's trace re-derived by the extractor and checked against the handshake messages it prints); the four-byte handshake framing, extension codec and ClientHello/ServerHello in both directions, re-encoded byte for byte from the RFC's own messages including extensions this implementation does not implement; the certificate messages; X25519 (RFC 7748, with a ladder implemented in the extractor as an oracle and the RFC 8448 shared secret as the cross-document check); chain validation through OpenSSL and the CertificateVerify check behind a prompt-free policy mirroring the Swift library's trust modes, including a development bypass whose loopback restriction is part of the mode; and both halves of the handshake, with the client pinned to RFC 8448's recorded flight and one handshake between the halves required to agree on the application secrets in opposite directions. Seven defects were found by these tests, and the two worth carrying forward are the leak LeakSanitizer found on the Linux leg (a failed handshake kept its transcript's hash context) and the server's ALPN extension written as a bare name where RFC 7301 defines a ProtocolNameList -- both invisible to a single half or a single platform. 26 test files and 73,846 checks. |
| 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. |