# Wire Format & Conformance

> Shared cross-language wire protocol specification, JSON Schema, and conformance test suite reference.

- [`spec/protocol.md`](/protocol/specification/) — normative wire format & hydration/sync rules
- [`spec/wire.schema.json`](/spec/v3/wire.schema.json) — JSON Schema for `HydratedState`, `StatePatch[]`, and `conformance.json`
- [`spec/conformance.json`](/spec/v3/conformance.json) — shared v4 test vectors for replay suppression, collection windows, `errorRecoveryDiamond`, shared-seed `differentialFuzz`, and the cases below, executed identically by `ts/tests/conformance.test.ts` (Node V8 + Bun JSC) and `rust/crates/zwire/tests/{conformance,differential_fuzz}.rs`, covering:
  1. `optimisticRebaseCases`
  2. `stmDraftCases`
  3. `collectionTopKCases`
  4. `wireFixtures` (`unsignedJson`, `signedJson`, `hydratedJson`, `statePatchesJson`, `nestedEscapedJson`)
