Shard format format 0.1.0.6 · npm 0.80.0

The Wildshard wire, v1

Reference, rendered from docs/wire.md as it stands at this build. Its links to code go to GitHub; the code is the spec.

On this page
  1. Versions
  2. Framing
  3. Ids and the handshake
  4. Snapshots
  5. The check and the harness
  6. Changing the wire

Written by: Claude (opus-wr8, WIRE-STABILITY WR8a) State: current at wire-v1.0.0, 2026-11-17. The full design, reviews and history: meta docs/plans/WIRE-STABILITY-PLAN.md sections 5 and 7.

@wildshard/wire (packages/wire) is the one home of the wire. It holds:

Engine only binds accessors to the descriptors. Shard authors get the command descriptors through @wildshard/format, never from engine.

Versions

Framing

Ids and the handshake

Snapshots

The check and the harness

wire check runs in pre-push and CI here and in engine. It works in four steps:

  1. It regenerates the lock and fails if the committed lock differs.

  2. It diffs the lock against the newest wire-vM.m.0 tag, and against every earlier release for reuse.

  3. It classifies each change by the rules above.

  4. It fails on any of these:

    • an id outside the lock, a duplicate, or a reused, renumbered or reserved id;
    • a removal inside its window (one minor and 14 days), or a required field removed;
    • a released id whose name, node, bounds, default, send, predicted or required changed;
    • a major-level change without a WIRE_MAJOR bump, or a patch tag with a lock change;
    • more than 32 row fields in a class.

    Ids added since the last release may change freely until the next minor.

wire check --baseline holds the frozen v0 lock (wire.v0.lock.json) on its own. v0SchemaHash in the lock is informational: no v0 peer gets past the bootstrap byte.

The cross-version harness (test/cross.test.ts here, test/contract-cross.test.ts in engine) runs the last released codec against HEAD's, both ways. The scenario covers:

Changing the wire