Repository navigation
Conversation
0cd3404 to
4efd597
Compare
4efd597 to
2050b69
Compare
2050b69 to
3b00b5a
Compare
3d41869 to
9ff17fc
Compare
9ff17fc to
6987a05
Compare
6987a05 to
713f8b6
Compare
713f8b6 to
2e19bd3
Compare
2e19bd3 to
68223e3
Compare
122379c to
80ac724
Compare
c6c0a77 to
74cc344
Compare
74cc344 to
54751ef
Compare
54751ef to
2953a2f
Compare
2953a2f to
76a439f
Compare
76a439f to
4665de4
Compare
4665de4 to
6096764
Compare
6096764 to
185cda0
Compare
|
Closing because this paired-browser transport stage is implemented on main ( I read the complete production patch, body and available discussion and compared its regression intent. Main retains the bounded source multiplexer/Duplex bridge, generation and stream limits, ordered half-close/close, remote-DNS SOCKS targets, and credit granted only after the browser-facing socket write settles. Memory claims now also cover pending and unsettled application bytes. Retired-stream late packets are deliberately ignored so they cannot terminate healthy sibling streams; never-reserved stream identities still fail closed. The dedicated raw binary router still excludes terminal framing on the same connection and is wired through the extracted runtime dispatcher. Authenticated E2EE subscriptions still disable compression, bind the optional capabilities, enforce the 1 MiB soft / 7 MiB queued / 2048-frame limits, and return actual enqueue admission. Current per-turn drain and aggregate socket-memory admission strengthen that boundary. Late acquisition, pre-ready close, readiness deadline, cleanup failures and runtime termination remain covered; bounded independent transport recovery now preserves the listener while replacing tunnel generations. The original test-only registration and self-asserted identity/generation are superseded by live browser-host leases, exact runtime authority, server-minted generations and production activation. This is closure of the implemented transport stage, not a claim that every activation-blocker platform or Electron containment matrix was rerun. Validation: seven focused current suites passed all 62 tests, including real paired-runtime SOCKS-to-HTTP transport, source/client memory accounting, raw/terminal isolation, route lifecycle, subscription requests and outbound admission. The preceding tunnel RPC suite passed 13 tests. Relevant |
ELI5
The browser window will eventually live on the desktop that is displaying it, while its network requests still leave from the runtime that owns the workspace. This stage proves that network path: a desktop-side loopback SOCKS route carries bounded TCP frames over a dedicated authenticated paired-runtime connection, and the runtime opens the real destination socket without resolving names on the desktop.
Nothing selects this route in production yet. The RPC method is test-injected only and the client-host/tunnel capabilities remain unadvertised, so existing clients and server-hosted browser placement are unchanged.
What Changed
Why
STA-4150 needs client-hosted Electron pages to render and accept input locally without giving them the desktop's DNS, localhost, or private-network identity. The tunnel is the first executable cross-boundary route for that architecture. Keeping registration and capability advertisement off prevents this transport from becoming a hidden arbitrary-TCP feature before browser-host leases, server-owned route generations, aggregate accounting, proxy trust, and Electron isolation exist.
This is stacked on #14440, which contains the inert framing, destination-flow, capability, and SOCKS contracts.
Linked Issue
Part of STA-4150.
Visual Proof
N/A — this stage has no registered production method, Electron webview, or visible interaction change.
Testing
25/25 shared protocol, destination flow, and SOCKS tests.
19/19 source flow, route lifecycle, raw/terminal routing, RPC authorization, and real paired-runtime SOCKS-to-HTTP tests.
17/17 authenticated remote-runtime subscription tests.
5/5 terminal cross-version wire tests.
pnpm run typecheckpnpm run check:code-quality:changedpnpm run check:reliability-gatespnpm run check:max-lines-ratchetgit diff --checkRebased and rerun on
origin/mainat9e5ee5ef8eon macOS.Automated tests added/updated
Electron rendered validation — not applicable until a later stage registers a host and webview
Review
Please treat these as activation blockers, not follow-ups that can be deferred after registration:
Existing server/offscreen placement, old callers that omit placement, terminal framing, mobile surfaces, SSH, WSL, folder workspaces, and git worktrees are not activated or semantically changed by this stage.
Checklist