You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v2: clean-sheet rewrite — Go client + multiplexed protocol #11
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.
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).
Activity
bradgessler commentedon May 30, 2026
Autonomous build progress — branch
v2Harness-first, per the plan. All committed to
v2and verified green.Done & tested
v2/PROTOCOL.md: multiplexed framing (sidper frame), negotiated handshake, one-way stdout/stderr, request/response, structured errors. Sans-IO.v2/conformance/: language-neutral corpus (negotiate, roundtrip, golden msgpack bytes, malformed validation). Driven natively by both Ruby (RSpec) and Go. This is the cross-impl contract and it passes on both sides.terminalwire2gem: sans-IO core (codec/negotiator/frames/mux),Server::Connection/Runtime/Context/Handler/Session, Thor integration. 89 examples, 0 failures, 99.5% line / 88% branch.protocol(92.9%),entitlementwith doublestar**globbing (100%),clientconnection+resources (85.6%); WebSocket transport +cmd/terminalwirebuild a ~7 MB static binary.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.mdfor how to run the tests, build the client, and wire a Rails server.v2: protocol spec + conformance corpus + Ruby sans-IO core (harness-f…
bradgessler commentedon Jun 14, 2026
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).