Skip to content

v2: clean-sheet rewrite — Go client + multiplexed protocol #11

Open
6 of 7 issues completed
Open

Description

@bradgessler

Clean-sheet v2 of Terminalwire. No backwards compatibility with v1 (install base is small).

North stars

  • Go thin client (Tebako is no longer maintained; Go gives static cross-compiled binaries + easy distribution + goroutines that fit a multiplexed protocol).
  • Ruby/Rails server stays Ruby, but behind a framework-agnostic adapter.
  • Conformance-harness-first: the protocol test harness is the keystone, built before the client or any server. Protocol-level TDD.

Settled design decisions

  • One WebSocket connection, multiplexed with stream_id + type per frame (SSH-channel model). Not separate sockets.
  • stdout/stderr are one-way streamed frames (no per-write ack) — kills the per-line round trip that's the real stdio bottleneck. stdin stays request/response. Large transfers chunked.
  • Versioned + capability-negotiated handshake from the first commit (clean-sheet on v1 ≠ skip forward-compat for v2).
  • Consent-based entitlements: server declares what it wants, client prompts the user once, client enforces.
  • Structured errors that don't tear down the connection; heartbeats for liveness.
  • Sans-IO protocol core (pure state machine, no sockets/clock) so one corpus validates client + multiple servers, and tests are fast and precise (deterministic).

Licensing

  • v2 is proprietary/closed-source (reverted from AGPL).
  • Test harness follows the SQLite/TH3 model, two-tier: spec open + a "starter" corpus open; the exhaustive adversarial/fuzz/security harness closed. Built internal + fast now, kept accurate/precise.

Workstreams tracked as sub-issues below, in priority order.

Sub-issues

Sub-issues

6 of 7 Issues completed
Loading 7 sub-issues

Activity

  1. added
    v2
    epic
    on May 30, 2026
  2. bradgessler commented on May 30, 2026

    @bradgessler
    ContributorAuthor

    Autonomous build progress — branch v2

    Harness-first, per the plan. All committed to v2 and verified green.

    Done & tested

    Coverage is ≥80% on both the Go client and the Ruby server, line and branch.

    Remaining (unchanged scope): #16 consent entitlements (client uses a conservative default policy for now), #21 interop matrix CI, #17 distribution, #20/#22 closed exhaustive harness.

    See v2/README.md for how to run the tests, build the client, and wire a Rails server.

  3. bradgessler commented on Jun 14, 2026

    @bradgessler
    ContributorAuthor

    Status (2026-06-14). The clean-sheet v2 rewrite is built, conformance-tested across all impls, and running in production (alpha channel).

    Done: #12 (spec) · #13 (conformance harness) · #14 (Go client) · #15 (Ruby/Rails v2) · #17 (distribution → cli) · #18 (repo hygiene/docs) · #19 (sans-IO core + corpus) · #20 (reference + adversarial peer) · #21 (interop CI).

    Remaining before GA: #16 (consent model — enforcement + out-of-band grants shipped; in-session interactive prompts deferred) · #22 (entitlement conformance vectors — entitlement still isn't cross-impl-pinned). Epic stays open until v2 is GA (default installer still hands out v1).

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

    epicv2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions