Skip to content

Conformance

Level Includes
Core Framing, session (§7.1-7.4, initial authentication from §7.5, §7.6, §7.7, §7.10), unary calls, notifications
Streaming Core + stream shapes 1-3, CANCEL, deadlines, WS credit
Server calls Core + §8.8
Auth lifecycle Core + AUTH_EXPIRING, AUTH_REFRESH, expiry and re-evaluation from §7.5, and §7.9
Lanes Core + §9.2
Datagrams §11
Resumption §7.8
Channels §7.9, §10.1-10.4
History §10.5
Presence §10.6

Levels describe features; bindings (§4) and codecs (§5.5) are separate axes. An implementation states which levels it supports on which bindings and codecs, and every claimed level is tested on each binding and codec it lists; cbor is mandatory (§5.5). Clients and servers negotiate the rest via capabilities.

The project maintains machine-readable test vectors (vectors/):

  • Frame vectors: hex bytes ↔ decoded frame (type, flags, header in diagnostic notation, data in diagnostic notation), for both bindings. Includes invalid vectors with the expected error.

  • Codec vectors: contract type + value ↔ cbor hex ↔ json text.

  • Manifest vectors: manifests at and past the type depth and name length limits of §12.2, and whether a reader takes them.

  • Scripts: ordered exchanges (send/expect/expect_nothing_within/wait/close_transport, where wait advances time, with captures and wildcards for values the peer chooses, as defined by the vector format) describing a scenario from the client’s perspective. A server conformance runner replays scripts against a server under test; a client conformance runner plays the server side against a client under test.

  • Abuse scripts: scripts that exercise every session limit in §16 (rapid reset, ping flood, handshake flood, slow HELLO, oversized varints, CBOR depth bombs, datagram floods) and assert the specified close code within a bounded time.

Every normative MUST in this document should be covered by at least one vector or script. Changes to this specification MUST update vectors in the same change.


From the specification: §17.1, §17.2.