Skip to content

feat(browser): preserve executor across authority changes - #14876

Closed
Jinwoo-H wants to merge 1 commit into
sta-4150-browser-reconciliation-orchestrationfrom
sta-4150-browser-client-executor-authority-transition
Closed

Jinwoo-H wants to merge 1 commit into
sta-4150-browser-reconciliation-orchestrationfrom
sta-4150-browser-client-executor-authority-transition

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​527 $\color{#cf222e}{\Huge{\mathbf{−}}}$​46 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​481
Prod 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​681 $\color{#cf222e}{\Huge{\mathbf{−}}}$​241 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​440

Summary

Preserves the concrete Electron page executor and retained page inventory when the runtime authority changes inside the same authenticated pairing revision. The old host and route authority are fenced first, old handlers settle, a fresh authority connection and route set are installed, and retained pages are reconciled before new commands are admitted.

This is the final authority review layer before the activated desktop slice. It does not add a two-way fallback, live client/server migration, or temporary compatibility machinery for partial deployment.

Linear: STA-4150

Compatibility

  • Pairing-revision replacement still closes the old composition before replacement.
  • Same-pairing replacement preserves inventory only when the negotiated inventory and reconciliation protocols can prove it; legacy peers are accepted only with empty retained inventory.
  • Old callbacks, commands, routes, navigation grants, and authority identities are generation-fenced.
  • Ambiguous host, executor, page, or route cleanup remains fail-closed and bounded.
  • No new wire field or opcode is introduced in this layer; existing optional negotiated contracts remain the boundary.
  • Server placement, browserless/ineligible callers, SSH, WSL, native hosts, folder workspaces, and worktrees are not rerouted by this review layer.

Evidence

  • Deterministic affected authority/reconciliation suite: 11 files / 173 tests.
  • Lifecycle tombstone oracle: 3 files / 36 tests.
  • Focused execution-host routing: 3 files / 23 tests.
  • Shared compatibility: 3 files / 46 tests; mobile legacy fixture: 1/1.
  • Full Node, CLI, and web typecheck.
  • Full lint, native and type-aware audits, max-lines ratchet, localization checks, and 88 reliability gates.
  • Conflict-free rebase onto origin/main@1b6d2403cb; all 40 patches were identical under git range-diff before the ledger-only checkpoint update.

Next

The next stacked branch activates the complete eligible Electron desktop path: capability advertisement, default client placement, live host registration, normal browser/agent/CLI routing, renderer presentation and local input/chrome, exact SSH/native execution-host grants, kill switch, failure UX/telemetry, and paired-Electron proof. The feature is judged production-ready only at that activated tip.

@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-client-executor-authority-transition branch from 94c0ee1 to 7014343 Compare August 16, 2026 09:11
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-client-executor-authority-transition branch from 7014343 to 182c2c7 Compare August 16, 2026 09:12
@OrcaWin

OrcaWin commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Closing because the complete authority-transition layer is already implemented on main (1a723194c32).

I read the full production patch, body and available discussion and compared its regression intent. The registry still preserves a composition for same-pairing runtime-authority replacement, while pairing revision changes close it and unresolved cleanup retains a tombstone. Composition invalidates old callback generations, retires old routes, begins the executor transition, closes the old host, waits for old handlers, updates the executor identity, then starts the replacement host. A nonempty retained inventory requires reconciliation; an empty inventory can accept a legacy peer.

The route-set manager and navigation-fence implementation are byte-identical to this branch. Current executor code retains the inventory, revokes navigation before transition, blocks old commands/in-flight creates, and admits a new route identity only after completing transition. Page navigation requires the exact page authority. DOM-preserving reclaim remains restricted to the same runtime; cross-runtime cases close/restore instead. Main additionally includes staged profile-switch guests in fencing and handles delayed authority-replacement notification and partition teardown.

Validation: 5 focused suites, 58 tests passed, including executor transition/failure fencing, reconciliation adapters, registry tombstones, planner and the real paired-runtime tunnel integration. The immediately preceding reconnect run also passed all 127 tests in 8 suites, including composition replacement/route retirement. Relevant HEAD..origin/main files are unchanged. No Electron or physical platform matrix was rerun; this closes the implemented layer without independently asserting the old activated-tip checklist.

@OrcaWin OrcaWin closed this Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants