Protocol
This part is the public wire contract. A frame carries one message, a sequence number, wire ticks, predictor presence codes, a bit-packed payload and a CRC.
The protocol is deliberately small:
- Bits are packed least-significant bit first; multi-byte integers are little-endian.
- The receiver never supplies a wall clock to
feed; it uses wire ticks only. - Sequence numbers are 8 bits and wrap at 256.
- Every rejected frame must leave predictor state unchanged.
Read the chapters in order:
- Frame format — header, presence bytes, payload and CRC.
- Value encoding — slots, quantisation, final values, strings and lists.
- Predictors and tolerance — windows, fits and bound checks.
- Recovery and validity — schedules, gaps, resets and the blind spot.
The golden vectors in tests/vectors/ and the Python reference model in
tests/reference/ are executable interpretations of this contract. They are
part of the test suite, not optional examples.