Repository navigation
Conversation
c9a41ab to
30c3e6f
Compare
30c3e6f to
6cf85d8
Compare
6cf85d8 to
92cc518
Compare
92cc518 to
5bfe5fe
Compare
3bc90fb to
c8fd430
Compare
f9a0f4b to
c628bfb
Compare
fb4a809 to
7a46457
Compare
7a46457 to
6145741
Compare
ecc6c0b to
995b3de
Compare
995b3de to
0b7e3ea
Compare
0b7e3ea to
33965d4
Compare
|
Closing because the browser-host lease stage is already implemented on main ( I read the complete production patch, body and available discussion and compared its regression intent. Main still mints the runtime authority epoch and monotonic host/page/tunnel generations, binds host identity to the authenticated paired device, rejects stale epochs/generations, selects an exact eligible host or rejects ambiguity, and fences the old route on replacement without allowing stale cleanup to remove the new one. Page admission/retirement is now bounded and stronger than this original stage. Authenticated attach still requires the client-host capability and exact runtime, emits server-owned readiness and exact epoch/generation revocation, and connects cleanup to the caller connection. The client connection validates the runtime and schemas, rejects premature/mismatched revocation and malformed readiness, and releases late-acquired subscriptions. Later negotiated reconnect support deliberately preserves exact authority during grace; legacy clients keep immediate teardown. Tunnel attach still requires both capabilities plus a live exact lease and native runtime revision; the revision check now resides in the execution-route resolver. Route generations remain server-owned, binary data before readiness is rejected, and route/lease loss closes the exact session. Current routing additionally supports granted SSH/WSL hosts, host-admin permission and aggregate memory admission. The old inactive-registration assertion is superseded by production activation. Validation: the additional tunnel authorization RPC suite passed all 13 tests. The preceding runs passed the current lease/protocol/registry/authenticated attach suites (179 tests in 10 suites), reconnect and route/composition suites (127 in 8), and real paired-runtime tunnel integration within the 58-test authority suite. No new live Electron/platform run was performed. Relevant |
Summary
This is the third inert layer for STA-4150, stacked on #14470. Neither RPC method is registered in production and neither capability is advertised, so this does not change live browser behavior or mixed-version peers.
Causal evidence
Before lease enforcement, an authenticated paired runtime could self-assert its paired device ID and receive a ready tunnel generation without any server-owned browser-host lease. The unchanged authorization oracle failed before this layer and passes after exact lease, epoch, host-generation, device, and execution-revision validation.
A fresh review also found that server-side replacement alone left the old desktop believing its lease was live. The final implementation emits an exact revocation; server and client tests cover replacement, release, premature and mismatched events, malformed reasons, duplicate readiness, closure, and reporting.
Validation
pnpm typecheckDeliberately deferred before activation