Skip to content

Project Tracker

André Borchert edited this page Sep 11, 2026 · 377 revisions

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: 12 September 2026, after the PKCS#12 identity-diagnostics changes.

How to use this page

  • A row leaves Open work when the change is merged to main and the documentation is updated, and moves to Resolved.
  • Ref is the GitHub issue number where one exists. Work discovered while fixing something else is recorded here first, then filed as an issue.
  • 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.

Open work

Ref Severity Area Item Notes
— 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.
— — C99, CPP C99/ and CPP/ remain planning skeletons with no protocol implementation. A standing scope statement rather than a scheduled task: status must remain "planned" until runnable code and equivalent evidence exist, and there is no plan to start either port. See [[Implementation Status

Nothing else is outstanding. Everything below was open earlier and is now closed; it is kept so the reasoning is not lost and the same ground is not covered twice.

Resolved

Ref Severity Area Item Outcome
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
— 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.
#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.
— 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.
— 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
— 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".
#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.

Recurring maintenance

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.

Clone this wiki locally