Skip to content

Protocol spec v2 (sans-IO, multiplexed, negotiated) #12

Closed

Description

@bradgessler

Define the v2 wire protocol as a language-neutral spec. Foundation — everything depends on this.

  • Multiplexed framing: stream_id + type on every frame (control / stdout / stderr / stdin / transfer-chunk).
  • Handshake with protocol-version + capability negotiation (so old installed clients fail gracefully).
  • One-way stdout/stderr streaming (no ack); stdin request/response; chunked transfers.
  • Structured error model with codes; recoverable errors must NOT tear down the connection.
  • MessagePack wire encoding, self-describing frames.
  • Sans-IO: spec the protocol as a pure state machine (bytes in → events + bytes out), no sockets/clock. Stream IDs seedable/injectable for deterministic test vectors.

Done when: spec doc exists (open) + every feature has at least one conformance vector.

Activity

  1. added
    v2
    P0
    on May 30, 2026
  2. bradgessler commented on Jun 14, 2026

    @bradgessler
    ContributorAuthor

    Shipped: PROTOCOL.md / TERMINAL.md / UPGRADE.md (sans-IO, multiplexed, negotiated) in terminalwire/protocol, pinned by the conformance corpus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions