Skip to content

STA-4150: activate client-hosted desktop browsers - #14957

Closed
Jinwoo-H wants to merge 29 commits into
sta-4150-landing-command-authorityfrom
sta-4150-landing-desktop-activation
Closed

Jinwoo-H wants to merge 29 commits into
sta-4150-landing-command-authorityfrom
sta-4150-landing-desktop-activation

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 71 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6762 $\color{#cf222e}{\Huge{\mathbf{−}}}$​406 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6356
Prod 118 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5719 $\color{#cf222e}{\Huge{\mathbf{−}}}$​886 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4833

Summary

Stack 5/5 for STA-4150, based on #14956. Activates client-hosted Electron webviews by default for eligible paired desktop clients, connects runtime placement and automation routing, renders the retained local guest, and adds the new-page-only kill switch and actionable failure UX.

The cumulative stack is rebased onto origin/main@71bbab72e1. The latest-main rebase preserves all 74 current patches exactly; the #14955 audit-only patch remains the sole addition relative to the prior published series after CI proved the injected worker fetch source needed an explicit global-fetch audit entry.

The top layer also makes the existing Windows daemon boot smoke validate named-pipe publication by connecting to the pipe instead of using the filesystem-only existsSync oracle.

E2E behavior

  • One local client guest, zero host guest
  • No screencast frame for client placement
  • browser.snapshot executes against the client guest
  • Existing client page survives kill-switch disable
  • Next page uses server placement without duplication
  • Both headed paired-Electron and real headless orca serve topologies pass

Validation

  • 5,749 test files passed
  • 53,861 tests passed; 126 skipped; zero failures
  • Full Node/CLI/web typecheck and full lint/audits
  • 89 reliability gates and max-lines ratchet
  • Fresh desktop build: Linux/macOS/Windows relay bundles, WSL browser relay, CLI, Electron, paired web
  • Package/Electron runtime contract: 23/23
  • Persisted-worker lifecycle: 3 files / 28 exact tests and 9 files / 123 cumulative tests
  • Fresh latest-main overlap/lifecycle/wire gate: 8 files / 72 tests
  • Exact global-fetch audit plus worker oracle after the CI fix: 2 files / 2 tests
  • Windows daemon smoke correction: local built-daemon journey passed; workflow contract 14/14
  • Fresh current-head CI: 46 passes, 5 intentional skips, zero failures
  • Fresh independent Electron/CDP render check: zero console errors
  • Headed paired-Electron and real headless orca serve E2E passed
  • Final lifecycle, wire/mobile/security, and performance/resource reviews: no proven P0/P1/P2

Compatibility and residual risk

Old, web/mobile, browserless, ineligible, and explicit-server clients remain server-hosted. Placement is immutable per page generation; there is no live migration, dual execution, or automatic client-to-server fallback.

Remaining release validation gaps: physical Windows and Linux Electron ordering, physical mobile clients, packaged Windows/Linux skew, spontaneous background-worker timing across platforms, broader direct-egress containment (including speculative traffic, QUIC/HTTP3, DoH, WebTransport, network-service restart, and downloads), the joined terminal-link/no-reconnect assertion, local-input and zero-screencast counters, large binary-result secondary transport, and mobile mirroring transport.

Development PR mapping

Draft only. Do not merge or mark ready as part of this task.

@Jinwoo-H Jinwoo-H changed the title sta 4150 landing desktop activation STA-4150: activate client-hosted desktop browsers Aug 16, 2026
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from dd4e08a to f36b2b4 Compare August 16, 2026 20:50
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from af7fc4f to d0cb9a6 Compare August 16, 2026 20:50
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from f36b2b4 to 6e0f6b6 Compare August 16, 2026 21:54
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from c82eed2 to a4be155 Compare August 16, 2026 21:54
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from 6e0f6b6 to fb0eb9b Compare August 16, 2026 22:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from 023a1b1 to cac0894 Compare August 16, 2026 22:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from fb0eb9b to 1042652 Compare August 16, 2026 22:35
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from 3837344 to ff46039 Compare August 16, 2026 22:35
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from 1042652 to 323d347 Compare August 16, 2026 23:07
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from ff46039 to f21ec1c Compare August 16, 2026 23:07
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from 323d347 to 176b907 Compare August 17, 2026 00:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from f21ec1c to b2cb1ba Compare August 17, 2026 00:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from 176b907 to f0a2288 Compare August 17, 2026 01:05
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from b2cb1ba to e4aacfd Compare August 17, 2026 01:05
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from f0a2288 to b604f58 Compare August 17, 2026 02:02
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from e4aacfd to aec0708 Compare August 17, 2026 02:02
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Final local landing checkpoint at aec0708a6f:

  • Rebased onto origin/main@21ed09e45c; all 63 feature commits are patch-identical by git range-diff.
  • Fresh headed paired-runtime proof completed with Playwright status passed; a separate clean headless rerun passed both product journeys 2/2 in 47.1s.
  • Full typecheck, 89 reliability gates, max-lines ratchet, and diff check pass.
  • Three exact-tip closure rereviews found no remaining proven P0/P1/P2; packaged-profile and Electron-probe cleanup gaps are closed.

All five PRs remain draft. No merge or ready-for-review transition was performed.

@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

CI follow-up at 7d0595e2a7: Node 24 shard 16/16 deterministically exposed a stale top-layer integration WebContents double that omitted the newly required Electron WebRTC policy method. The test was red 1/1 locally with fail-closed cleanup, now models and asserts disable_non_proxied_udp; the focused package passes 63/63 and the exact CI shard passes 367 files / 3,132 tests with one intentional skip. The prior pushed head already passed both Linux and Windows package jobs.

@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from 7d0595e to 84c8a91 Compare August 17, 2026 02:22
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from 84c8a91 to a8a229c Compare August 17, 2026 02:36
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from b7bd319 to 1d9a7b1 Compare August 17, 2026 02:36
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Final latest-main checkpoint: stack #14958 is rebased onto origin/main@b6d5972ec4; git range-diff marks all 68 pre-ledger patches identical. The only upstream overlap was additive reliability-gate composition, covered by 6 files / 104 mobile Relay tests. Fresh checks are green on every current head (#14953/#14955: 43 pass + 2 intentional skips; #14954/#14956/#14957: 46 pass + 5 intentional skips), including Linux/Windows package and native lanes plus the superseding green Windows daemon-smoke run 31988539689. All five PRs remain draft; no PR was merged or marked ready.

@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from 1d9a7b1 to 2e35957 Compare August 17, 2026 03:54
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from a8a229c to 82d0751 Compare August 17, 2026 03:54
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from 2e35957 to ab29c01 Compare August 17, 2026 04:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from 82d0751 to f599835 Compare August 17, 2026 04:01
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-command-authority branch from ab29c01 to 523b6de Compare August 17, 2026 04:15
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from f599835 to d841b84 Compare August 17, 2026 04:15
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-landing-desktop-activation branch from b928fac to 7e6bd45 Compare August 19, 2026 01:23
@Jinwoo-H Jinwoo-H closed this Aug 19, 2026
@Jinwoo-H Jinwoo-H reopened this Aug 19, 2026
GitHub was computing this PR's mergeability against the pre-rebase base tip (bc868fb), reporting a false conflict and never producing a merge ref, so no pull_request workflow dispatched.
@Jinwoo-H
Jinwoo-H marked this pull request as draft August 19, 2026 01:57
@Jinwoo-H
Jinwoo-H marked this pull request as ready for review August 19, 2026 01:57
@Jinwoo-H
Jinwoo-H changed the base branch from sta-4150-landing-command-authority to sta-4150-landing-electron-lifecycle August 19, 2026 02:01
@Jinwoo-H
Jinwoo-H changed the base branch from sta-4150-landing-electron-lifecycle to sta-4150-landing-command-authority August 19, 2026 02:01
@Jinwoo-H Jinwoo-H closed this Aug 19, 2026
@Jinwoo-H Jinwoo-H reopened this Aug 19, 2026
…untime browser suite

orca-runtime-browser.test.ts reached 810 counted lines here (max 800) and failed static analysis. The extraction matches the one #15038 already performs, so the file contents converge with that PR rather than diverging.
@Jinwoo-H
Jinwoo-H changed the base branch from sta-4150-landing-command-authority to sta-4150-landing-electron-lifecycle August 19, 2026 04:38
@Jinwoo-H
Jinwoo-H changed the base branch from sta-4150-landing-electron-lifecycle to sta-4150-landing-command-authority August 19, 2026 04:38
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Superseded by the consolidated PR #15448 (the full STA-4150 feature merged with latest main). This PR's diff remains as the per-layer review view; its CI was fully green at close.

@Jinwoo-H Jinwoo-H closed this Aug 19, 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.

1 participant