Skip to content

feat(browser): bound client page command dispatch - #14550

Closed
Jinwoo-H wants to merge 1 commit into
sta-4150-browser-host-command-contractsfrom
sta-4150-browser-host-command-dispatch
Closed

Jinwoo-H wants to merge 1 commit into
sta-4150-browser-host-command-contractsfrom
sta-4150-browser-host-command-dispatch

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​446 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​446
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​695 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​694

STA-4150: https://linear.app/stably/issue/STA-4150/refactor-remote-browser-to-client-hosted-electron-webviews

Stacked on #14544. This inert layer adds a client-side page-command dispatcher with exact lease/page authority, per-page FIFO execution, payload-matched duplicate replay, immutable request/result snapshots, bounded concurrency/queues/caches, create dependency fencing, stale-generation rejection, and cancellation/retirement joins.

Causal evidence: the unchanged oracle was red on parent d539542 because the dispatcher module did not exist. During fresh review, direct probes also reproduced payload-conflict replay, stale generation resurrection after forgetting, mutable authority/double-commit cache retention, and abort-listener retirement reentry; regressions for each are green on the candidate.

Validation: 16 focused dispatcher tests; 351 runtime/browser files with 4,992 passed and 5 existing skips; full node/CLI/web typecheck; native and type-aware audits; changed-code quality; reliability and max-lines gates; formatting and diff checks; two clean fresh rereviews.

Compatibility: no exchanged field, RPC/event registration, capability advertisement, persisted/mobile surface, production caller, Electron behavior, placement default, or server/offscreen behavior changes. The scalar forgotten-generation floor depends on future server delivery preserving the runtime registry global generation order.

Activation remains blocked on a server outstanding-command ledger, authenticated exact result admission, ordered replay/outcome-unknown semantics, execution-host grant resolution, navigation policy, lifecycle cleanup for non-cooperative handlers, the runtime-main-renderer bridge, and real Electron/browserless/headless/WSL/physical cross-platform proof.

@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch from 8bd3775 to 0cc3c68 Compare August 14, 2026 20:03
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch from 0cc3c68 to 6ebb288 Compare August 14, 2026 20:14
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch 2 times, most recently from 5f8f901 to ba04501 Compare August 14, 2026 23:17
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch from ba04501 to 7cce868 Compare August 15, 2026 00:44
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch from 7cce868 to 499c834 Compare August 15, 2026 00:57
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch 2 times, most recently from 63ecccb to d329849 Compare August 15, 2026 03:24
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch from d329849 to 5b1a60b Compare August 15, 2026 08:53
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch 2 times, most recently from 29b0c6d to c8b4bf0 Compare August 15, 2026 11:34
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch from c8b4bf0 to 24ad811 Compare August 15, 2026 12:30
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-browser-host-command-dispatch branch from 24ad811 to 87ce42f Compare August 16, 2026 09:09
@OrcaWin

OrcaWin commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Closing because this command/lifecycle stage is already implemented on main (a93e31a9339). I compared the complete production patch, body/discussion, and introduced regression intent against the current modules.

The current client command dispatcher retains per-page FIFO, exact authority checks, immutable request/result snapshots, payload-matched duplicate replay, create dependency fencing, retirement/abort joins, and the forgotten-generation floor. Its state/cache modules retain the 256-page/256-active/8-handler/32-per-page bounds and 64-per-page/1024-global result bounds. All 16 introduced regression cases remain; later reconciliation/profile-switch commands and close-settlement cleanup extend the same dispatcher.

Validation: six current dispatcher, lease, composition, ledger, and result-RPC suites passed 84 tests with ORCA_BACKGROUND_LAUNCH=1 and two workers. This closes the redundant stage, without asserting completion of every original STA-4150 activation blocker.

@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