C99: Phase 4 seventeenth part (acting on the peer's limits), tracker and status
C99: Phase 4 sixteenth part (the granted stream counts), tracker and status
C99: Phase 4 fifteenth part (the granted connection limit), tracker and status
C99: Phase 4 fourteenth part (the STREAM send path), tracker and status
C99: Phase 4 thirteenth part (the key lifecycle), tracker and status
C99: Phase 4 twelfth part (QUIC DATAGRAM over the connection), tracker and status
C99: Phase 4 eleventh part (the peer's limits), tracker and status
C99: Phase 4 tenth part (the TLS handshake over CRYPTO); WT-75, WT-76, WT-77 - Project Tracker: Phase 4 row to 2c1a217, the completion criterion met end to end, and three defects found by running a real handshake (WT-75, WT-76, WT-77). - Implementation Status: 37 test files and 75,368 checks.
C99: Phase 4 ninth part (the CRYPTO stream), tracker and status - Project Tracker: Phase 4 row to 5c38da3 with the CRYPTO stream. - Implementation Status: 36 test files and 75,260 checks, and the Phase 4 prose.
C99: Home page status catches up with Phases 3 and 4
C99: Phase 4 eighth part (the connection runtime), WT-72 closed, WT-74 fixed - Project Tracker: Phase 4 row to 7bab142 with the connection runtime and the packet-level IPv4/IPv6 loopback result; WT-72 (padding) closed; WT-74 records that a connection with no round trip sample armed no probe timeout and is fixed. - Implementation Status: 35 test files and 75,163 checks, and the Phase 4 prose.
C99: fix a sentence in the Phase 4 status prose
C99: Phase 4 seventh part (the UDP socket layer), WT-13/14/36 realised, tracker and status - Project Tracker: Phase 4 row to d3eaacd with the socket layer; WT-13 and WT-14 (the POSIX surface and the feature-test policy) are now realised by the real source rather than a probe; WT-36 (truncation) is implemented. - Implementation Status: 34 test files and 74,872 checks, and the Phase 4 prose.
C99: WT-73, a failed AEAD tag is WT_ERR_AUTHENTICATION (fixed at 261c4e2)
C99: Phase 4 sixth part (the packet build/read seam), tracker row and WT-72 - Project Tracker: the Phase 4 row now names the wire seam and the latest commit 199cd2c; WT-72 records that the header protection sample sets a minimum packet size, so the runtime must pad a tiny packet with a short packet number. - Implementation Status: 33 test files and 74,692 checks, the Phase 4 prose and the open-items range WT-3 to WT-72.
Record C99 Phase 4's fifth part: QUIC DATAGRAM and the close paths RFC 9221's datagrams with their two-sided size rule and a bounded receive queue whose discard policy is the newest, and RFC 9000 sections 10.2 and 19.19's two CONNECTION_CLOSE forms with the draining period. 32 test files, 74,544 checks. Two things worth carrying forward. The two close forms are different messages -- the transport form names the frame that caused the error and the application form cannot -- and the frame structure carries a flag for that field rather than using zero, because PADDING is frame type zero and "no frame" is not the same value. And the queue's discard policy is stated rather than implied: the newest goes, because the application has already been told about everything in the queue and the freshest message is the one that matters least for the traffic this carries.
Record C99 Phase 4's fourth part: the stream state machines and flow control RFC 9000 sections 2, 3 and 4: both halves' state machines, the final size as the boundary that stops a peer appending to a stream it has ended, RESET_STREAM and STOP_SENDING, and flow control at both levels. 30 test files, 74,388 checks. Two things worth carrying forward. Flow control counts offsets rather than delivered bytes -- a peer that writes ten bytes at offset one million spends a million bytes of credit -- which is the RFC's model and the opposite of what my first draft's documentation said, with the test catching the contradiction. And a reset receive half had no way to become *read*, so a stream whose reset had arrived could never be forgotten; RFC 9000 section 3.2 puts a state between the two for exactly that reason, and the API now has it.
Record C99 Phase 4's third part: congestion control RFC 9002 section 7's NewReno, with the recovery epoch as the idea the tests are mostly about: a burst of losses has to cost one halving rather than one per packet, and an acknowledgement from before the period must not grow the window during the recovery it is recovering from. 29 test files, 74,279 checks. The finding worth carrying forward is about the increment: it is mds * acked / cwnd with integer division, so a small acknowledgement adds nothing at all and a large one adds a fraction of a datagram -- the "one datagram per round trip" is only true in aggregate over a window's worth of acknowledgements, which is what the comments now say.
Record C99 Phase 4's second part: loss detection and probe timeouts RFC 9002 section 6, with both thresholds pinned at their boundaries and the probe timeout's two easy mistakes checked: it exists only while something ack-eliciting is in flight, and its backoff is reset by acknowledging an ack-eliciting packet rather than by any acknowledgement. 28 test files, 74,191 checks. The finding worth carrying forward was in the tests rather than the code: both thresholds are inclusive comparisons, so an off-by-one in either direction is a test that passes for the wrong reason -- which is why the boundary cases (three numbers higher and two, the threshold instant and one microsecond inside it) are the ones written out.
Record C99 Phase 4's first part: 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, with 176 checks that include order-independence for the ranges and hand-computed values for the arithmetic. 27 test files, 74,022 checks. Two defects came out of that test and both were in the merging logic: a packet bridging a gap left two ranges where the set has one, which would put a gap in an ACK frame that does not exist; and the bound dropped the newest range instead of the oldest, because the list is kept largest-first. The phase row now says what is done and what the runtime still owes.
Say in the status page that Phase 3 is complete and Phase 4 is next The same record the tracker carries, in the page a reader looks at first: the server handshake's evidence, the phase's completion, and what Phase 4 inherits -- a handshake to drive and the CRYPTO-stream walker it needs. 26 test files, 73,846 checks.
Close WT-56 and point the tracker at Phase 4 WT-56 records Phase 3 in full: its seven parts, the vectors each is pinned to, and the seven defects the tests found -- with the two that were invisible to a single half or a single platform named, because those are the ones a reader of this tracker can learn from. Phase 4 is marked next and the row says what it now has to work with: TLS is done, so the runtime feeds CRYPTO stream bytes to the handshake and protects what it produces with the secrets handed back.
Record C99 Phase 3 complete: the server handshake, and the phase with it The server mirrors the client's checks and order, the flight is two calls because QUIC has two encryption levels, and one handshake between the two halves requires that the application secrets each end derives are the other's in the opposite direction. 26 test files, 73,846 checks. WT-56 is closed and the phase row says so. Two defects came out of that test and both were invisible to a single half: the ALPN extension was written as a bare name where RFC 7301 defines a ProtocolNameList, so the client refused the extension rather than the server; and walking a concatenation of handshake messages with the header parser does not work, which is why a CRYPTO-stream walker now exists -- the QUIC runtime, which is next, will need exactly that.
Record the leak the Linux leg found, and the contract that came out of fixing it A failed or restarted C99 TLS handshake left the transcript's hash context allocated, which LeakSanitizer on the Linux CI leg saw and the macOS configuration cannot. The fix produced a contract worth stating: a failed machine holds nothing, beginning again is a fresh start, and a caller-owned struct carries a marker so that 'is this live?' has one answer in every build. The first attempt -- refusing to begin on a live machine -- was worse than the leak, because whether an uninitialised struct counted as live depended on what the stack held.
Record C99 Phase 3's sixth part: the client handshake The sequencing that consumes everything the earlier parts built, with the application secrets available in no state before every security condition has been met. 25 test files, 73,756 checks. Driven end to end by RFC 8448's recorded flight, so the handshake secrets, the application secrets and the client's Finished are the RFC's own. What is worth carrying forward is the shape of the three defects that test found: all three were one message out of step in the transcript. The Early Secret was never derived, the handshake traffic secrets were read before the ServerHello was absorbed, and the client's Finished was over a transcript that did not yet include the server's Finished. Each produces secrets that are well formed and verify against nothing, and none of them is visible without a recorded flight to compare against -- which is the argument for keeping the RFC's trace in the suite rather than only fixtures this project writes itself.
Record C99 Phase 3's fifth part: peer authentication Chain validation through OpenSSL and the CertificateVerify signature check, behind a prompt-free policy that mirrors the Swift library's four modes -- including the development bypass whose loopback restriction travels with the mode rather than sitting beside it as advice. 24 test files, 73,677 checks. The evidence worth carrying forward is that the strongest test uses one document end to end: the transcript through RFC 8448's Certificate, the content a CertificateVerify signs built from that hash, the public key extracted from the RFC's own certificate DER, and the RFC's signature verified with it -- so the expected answer is a document rather than this code. Two defects were found by running it: a failure path freed a certificate stack the caller also freed, and the public key was written into the caller's buffer before its length was checked.
Record C99 Phase 3's fourth part: the certificate messages Certificate, CertificateVerify and Finished as framing: a chain of DER views, a scheme with a signature, and a body of exactly Hash.length bytes. Nothing is validated at that layer, which is what lets the codec be pinned to RFC 8448's own certificate message byte for byte. 23 test files, 73,601 checks. One semantics change came out of it and is worth carrying forward: a read past the end of a region whose length has already been validated is now a protocol error rather than truncation. Every parser here is handed a complete message, so an inner length that overruns is a length that lies, and that difference decides whether a receiver abandons the connection or waits for more of it.
Record C99 Phase 3's third part: the X25519 key agreement RFC 7748's primitive, key generation, the public key from a private key and the shared secret, with an all-zero secret refused where it is computed. 23 test files, 73,569 checks. Two things are worth carrying forward. The extractor implements the ladder from the same document as an oracle and requires it to reproduce every published value before writing one, which matters because section 6.1's Curve25519 labels are word for word the X448 labels directly below them. And the test ties two documents together: X25519(client private, server public) must equal the ECDHE value RFC 8448's key schedule consumes, so the key agreement and the schedule cannot disagree without a test saying so -- a property neither document checks on its own.
Record C99 Phase 3's second part: the handshake messages and extensions The four-byte framing, the extension list codec, the typed extensions a QUIC handshake uses, and the ClientHello and ServerHello in both directions -- parsed into views, re-encoded byte for byte from RFC 8448's own messages (unknown extensions included), and built from parameters. 22 test files and 73,519 checks. The shape worth carrying forward is the asymmetry between the two directions: a peer's message is parsed into views because it is read once and used, while what we send is built from parameters because those are values we chose. Both run the same body function through the two-pass writer, so a length field cannot disagree with what follows it, and the builders refuse rather than emit a message whose length lies. The rest of Phase 3 -- the key share, certificate validation, the trust policy and the two state machines -- is what the phase row still owes.
Record how Phase 3's test overflow was found: the compiler matrix, not the suite Two refusal checks in the new key schedule test passed a 16-byte record-key buffer where a 32-byte secret belongs. Every local run accepted it, because the functions refuse before writing anything; ubuntu-24.04's GCC refused to compile it with -Wstringop-overflow. Apple clang, Linux clang and both sanitizers missed it, so the row now says which gate caught it.