Skip to content

refactor(relay): delete the SSH relay server, its build assets and tests - #27215

Merged
OrcaWin merged 6 commits into
mainfrom
OrcaWin/ssh-relay-retire-server
Oct 11, 2026
Merged

OrcaWin merged 6 commits into
mainfrom
OrcaWin/ssh-relay-retire-server

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 10, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 271 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​258 $\color{#cf222e}{\Huge{\mathbf{−}}}$​51359 $\color{#cf222e}{\Huge{\mathbf{−}}}$​51101
Prod 241 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​99 $\color{#cf222e}{\Huge{\mathbf{−}}}$​30431 $\color{#cf222e}{\Huge{\mathbf{−}}}$​30332

ELI5

This deletes the SSH relay itself: the program Orca used to upload to SSH hosts, plus its build, packaged assets and tests. After #27214 nothing on the desktop deploys it any more.

Stacked on #27214 (base OrcaWin/ssh-relay-retire-client). Do not merge; the owner decides when.

What Changed

  • Deleted src/relay (379 files): the relay daemon, its fs/git/pty/watcher/AI Vault handlers, and their tests. The WSL guest code it used to share already lives in src/wsl-guest (refactor(wsl): move the WSL guest bundle sources out of src/relay #27174).
  • Build: config/scripts/build-relay.mjs builds only the WSL guest bundles: the hook relay, browser network relay, Claude profile helper, and the OpenCode SQLite reader. The reader moves from the per-platform relay dirs into out/relay/wsl, and opencode-wsl-runtime-preparation.ts looks there. The script name stays because it still builds the WSL hook relay. Its bundle and version stamp are byte-identical (0.1.0+eb7001341c70), so existing WSL guests are not redeployed. Packaging still ships out/relay → resources/relay (now only wsl/).
  • Deleted: config/relay-assets (relay-only node-pty patches) and their tests; the relay artifact manifest, staging and line-ending tests; the relay watcher fault harness (and its release-cut and mac-release gates); the Node 18 managed-hook smoke and managed-hook-runtime.ts; relay benchmarks and repros; tsconfig.relay.json; and the src/relay import-boundary test, which has nothing left to guard.
  • Production code left unreachable (found by an import-graph pass from every production entry, then removed): the remote AI Vault scanner, the quick-open readdir walker and its budgets, git-grep and directory-listing limits, and similar relay-only helpers.
  • Tests outside src/relay that compared desktop main with the relay (real-git parity, plugin host conformance, shell-wrapper snapshots, quick-open options): the relay half is removed; tests that were only parity are deleted. The managed-hook installer tests keep a local-filesystem adapter, now a test fixture.
  • CI and config: src/relay removed from tsconfig, knip, max-lines, process-host baselines, Node-runtime/performance file lists, CI routing prefixes, path filters, the git-compat lane, reliability gates (two relay-only gates removed) and shard timings. The cross-version harness extracts a release's src/relay only when that release has one.

Net lines (vs #27214): production −27,883 (+5 / −27,888); tests −54,228 (tests that also ran a local half keep it); config/CI −3,223.

Stack total vs main: production −46,924; tests −105,412; config/CI/locales −4,738.

Why

The owner decided on 2026-10-10 to delete the relay outright. With #27214 the relay is never deployed, so the server, its build and its CI lanes are dead weight.

I kept build:relay, out/relay/wsl and resources/relay/wsl as-is because the WSL hook relay still uses them. Renaming them would touch packaging and many workflows with no user-visible gain.

Linked Issue

Phase 6 (relay retirement) of the Node runtime plan. No issue.

Visual Proof

N/A, no UI change.

Testing

  • pnpm tc (node, web, cli): pass

  • node config/scripts/build-relay.mjs into a temp dir: emits only wsl/ with the four bundles; the hook relay version is unchanged

  • Affected suites (config/scripts, src/main/{ai-vault,agent-hooks,hermes,kiro,git,plugins,ssh}, src/shared, src/wsl-guest, the cross-version checkout test): pass, apart from a local bash-version test that also fails on main

  • Reliability gates check: pass

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Left for a follow-up (CI-only): the relay-windows-process-tree reusable workflow is still called by the release, hourly, daily and adhoc builds. Its artifact is no longer staged by build:relay, so it is now unused work. Removing it touches six release workflows plus their contract tests, so it belongs in a CI PR that can be validated on a release dry run.

Agent skill upstream boundary

  • Not applicable

Notes

SSH/remote: hosts no longer receive a relay. WSL: the guest bundles are unchanged. Windows packaging: resources/relay/wsl is unchanged. Mobile and the cloud Relay pairing service are untouched.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch 2 times, most recently from 9ebe302 to 974458f Compare October 10, 2026 10:41
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-client branch from 7e8b88b to 734dd99 Compare October 10, 2026 16:28
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch 2 times, most recently from 016c6f3 to 3584900 Compare October 10, 2026 16:53
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-client branch from 2b56a04 to 7b105e8 Compare October 10, 2026 22:52
@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 10, 2026 22:52
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch from 3584900 to e2f9efd Compare October 10, 2026 22:54
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-client branch from 7b105e8 to aed15c5 Compare October 10, 2026 23:19
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch from e2f9efd to 93311dd Compare October 10, 2026 23:20
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-client branch from aed15c5 to 8c3c846 Compare October 11, 2026 00:10
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch from 93311dd to 21c9b20 Compare October 11, 2026 00:11
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-client branch from 8c3c846 to aa49420 Compare October 11, 2026 01:12
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch 2 times, most recently from 899a28e to 413777a Compare October 11, 2026 01:37
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-client branch from d4cf0c1 to 89e3d54 Compare October 11, 2026 04:44
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch 2 times, most recently from eaca551 to 37b26e7 Compare October 11, 2026 05:12
@OrcaWin
OrcaWin changed the base branch from OrcaWin/ssh-relay-retire-client to main October 11, 2026 05:12
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch from 37b26e7 to 667f067 Compare October 11, 2026 05:14
@OrcaWin
OrcaWin force-pushed the OrcaWin/ssh-relay-retire-server branch from 667f067 to e1e70df Compare October 11, 2026 05:36
@zpyoung zpyoung mentioned this pull request Oct 16, 2026
6 of 9 tasks
nwparker added a commit that referenced this pull request Oct 22, 2026
…H file watcher

Nothing in production has registered an SSH filesystem provider since the
relay removal (#27214/#27215), so every getSshFilesystemProvider read
returned undefined. Delete the provider table and the remote watcher
subsystem, and collapse the call sites to that always-undefined behaviour:
fs:watchWorktree/fs:unwatchWorktree ignore SSH roots, the worktree base
watcher only resolves local repos, and worktree removal skips the desktop
watcher for SSH paths.
nwparker added a commit that referenced this pull request Oct 22, 2026
…H file watcher (#31922)

* refactor(ssh): remove the dead SSH filesystem provider and desktop SSH file watcher

Nothing in production has registered an SSH filesystem provider since the
relay removal (#27214/#27215), so every getSshFilesystemProvider read
returned undefined. Delete the provider table and the remote watcher
subsystem, and collapse the call sites to that always-undefined behaviour:
fs:watchWorktree/fs:unwatchWorktree ignore SSH roots, the worktree base
watcher only resolves local repos, and worktree removal skips the desktop
watcher for SSH paths.

* test: drop the nested SSH watcher catalog case that can no longer occur

The base-directory watcher never carries a connection id now, so the
host-blind-event guard it exercised is gone. Also prune the deleted remote
watcher suites from the shard timings and the nested-SSH wording from the
worktree catalog reliability gate.
@AmethystLiang AmethystLiang mentioned this pull request Nov 12, 2026
9 tasks
lourot pushed a commit to lourot/orca that referenced this pull request Nov 17, 2026
Browse, create and edit project-backed tasks using the pinned Backlog CLI, then open the existing workspace composer. Preserve execution-host ownership, legacy statuses, configured mutation safeguards and unknown-result handling.

Document the host-user relay trust boundary and test runtime authentication, registered-repository routing, mobile admission and relay schema rejection. Retain CLI, capability and hidden Electron regression coverage.

Fixes stablyai#25955

(cherry picked from commit a27ee71, stablyai/orca PR stablyai#25990)

Ported onto the fork:
- SSH projects are refused: the SSH relay that served
  backlog.execute was removed upstream (stablyai#27215). Local and paired
  runtime projects work as before.
- tasks.backlog.v1 is advertised through the existing
  TASK_SOURCE_RUNTIME_CAPABILITIES list instead of a new
  workspace-context capability module.
- backlog.execute declares the workspace RPC permission.
- runProcess now comes from @orca/process-host.
- The launch guard compares the launched repo ID and host ID, as
  the composer no longer passes the whole repo.
- The quick-create ephemeral VM recipe moved into its own hook
  (quick-create-ephemeral-vm-recipe.ts) to keep
  quick-creation-execution.ts under the 300-line limit.

Includes:
- docs(T-1795): explain Backlog verification fixture contracts
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