Repository navigation
Project Tracker
André Borchert edited this page Sep 12, 2026
·
377 revisions
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: 12 September 2026, at release 1.3.6.
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"; bearssl_ssl.h defines BR_TLS10/11/12 and there is no BR_TLS13 and no TLS 1.3 source anywhere in the tree. RFC 9001 requires TLS 1.3 for QUIC, so the handshake cannot be delegated to BearSSL. |
Verified by reading third_party/bearssl/inc/bearssl_ssl.h and the absence of any TLS 1.3 file. This is the single largest remaining workstream: a TLS 1.3 handshake state machine written in C99 on top of BearSSL's primitives. It is well bounded — the crypto is solved — but it is new code with no reference in either repository. |
| 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-35 | P2 | c99, transport | XAIOS has no userspace UDP socket creation the way it has xaios_net_tcp_connect. UDP is reachable through xaios_net_bind_udp (receive) and xaios_net_sendto/xaios_net_recvfrom, and xaios_net_send with an address performs a genuine datagram send including ARP resolution and a bounded retry — but a QUIC client needs an ephemeral, unbound UDP socket to send from, and that path is not exposed. |
Verified by reading userspace/lib/xaios_user.c and kernel/user/syscall.c. The kernel side already handles KERNEL_SOCK_DATAGRAM sends from a socket that has never received, so this looks like a small userspace/syscall addition on the XAIOS side rather than a protocol problem. Confirm before Phase 4. |
| 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. XAIOS exposes recvfrom/recv but nothing in the API says whether an oversized datagram is reported or shortened. |
Open question, and verified as unverified: the Swift fix depends on recvmsg setting MSG_TRUNC, and macOS recvfrom does not report it. XAIOS's xaios_syscall_socket_request_t carries out_bytes but no flags field, so the answer is probably "not reported" and the port will need a maximum-datagram-size policy instead. |
| 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. |
| 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". |
| #20 | P1 | transport | A PKCS#12 bundle with explicit elliptic-curve parameters terminated the process with an uncatchable NSException instead of throwing. |
SecPKCS12Import now runs behind an Objective-C exception boundary in the new WebTransportSecurityShim target, so listen(on:) throws a WebTransportNetworkRuntimeError naming the cause. Regression fixtures under Swift/Tests/WebTransportNetworkRuntimeTests/Resources/. |
| #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. |