Skip to content

build(ssh): assemble relay runtime artifacts - #8741

Closed
Jinwoo-H wants to merge 267 commits into
Jinwoo-H/bug-8450-ssh-relay-contractsfrom
Jinwoo-H/bug-8450-ssh-relay-runtime-builds
Closed

Jinwoo-H wants to merge 267 commits into
Jinwoo-H/bug-8450-ssh-relay-contractsfrom
Jinwoo-H/bug-8450-ssh-relay-runtime-builds

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor

Scope

Work Package 2 for #8450: target-native relay runtime assembly and artifact verification only.

  • pins and authenticates the official Node 24.18.0 inputs and release key
  • builds patched node-pty against the bundled Node headers
  • assembles a runtime-only relay/PTY/watcher tree with deterministic identity and tar.xz
  • emits unpublished SBOM, provenance, and identity evidence
  • adds a read-only four-runner POSIX artifact workflow

Safety boundary

This PR does not connect a desktop resolver, cache, SSH transfer/install path, fallback state machine, target setting, or production launch path. It publishes no GitHub Release and enables no tuple. Existing relay behavior remains the default.

The eventual bundled path remains a per-SSH-target Beta opt-in, default off; any default-on change requires separate review and completed evidence gates.

Local evidence

  • 4 focused suites, 15/15 tests
  • pnpm run typecheck
  • pnpm run lint
  • focused format/max-lines/diff gates
  • fresh native Linux/arm64 build in the pinned container
  • full 49-entry archive/tree verification before bundled Node/native smoke
  • PTY input/resize/exit and watcher create/update/rename/delete

Exact commands, hashes, timings, resource observations, and residual gaps are in the living implementation checklist.

Open gates

GitHub native POSIX runner results, oldest-baseline checks, macOS native trust/signing, Windows runtime/zip, SSH transfer, relay RPC conformance, cancellation/resource metrics, and all tuple-enablement/default-path gates remain open.

Made with Orca 🐋

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Jinwoo-H and others added 29 commits July 14, 2026 11:20
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: Orca <help@stably.ai>
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Jinwoo-H and others added 6 commits July 16, 2026 19:54
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

An error occurred during the review process. Please try again later.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Jinwoo-H and others added 17 commits July 16, 2026 21:47
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Orca <help@stably.ai>
xianjianlf2 added a commit to xianjianlf2/orca that referenced this pull request Aug 31, 2026
…n't inherit them

node-pty 1.1.0's forkpty() spawn path never applies FD_CLOEXEC to the
returned master (only O_NONBLOCK), and the macOS posix_spawn path opens
the master with plain posix_openpt(O_RDWR). Every later child spawned by
the same process through a non-fd-closing path can inherit earlier
terminals' masters — reproduced on a relay host where a later PTY child
held an earlier PTY's ptmx fd. Leaked masters keep dead sessions' PTY
objects alive and can break EOF/hangup semantics for other sessions'
children (stablyai#8362). Upstream fixed only the child side, only on Linux, and
only in 1.2.0 betas; the parent-side master stays inheritable even there.

Extend Orca's node-pty patch with a pty_cloexec helper applied to the
master after forkpty() (parent branch) and after posix_openpt() in the
posix_spawn path. The same patched source flows into the bundled relay
runtime artifacts (stablyai#8741 pipeline), which is what carries the fix to
remote relay hosts that today npm-install stock node-pty.

Verified on macOS after a native rebuild: PTY spawn/IO/exit still work,
and a second PTY's child holds zero ptmx fds.

Fixes stablyai#8362

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@OrcaWin

OrcaWin commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

SSH still works: Orca connects to the host over SSH and routes workspace operations through the managed remote Orca server (orcad). These merges remove the legacy SSH relay, not SSH support.

Closing as obsolete after the merged SSH relay retirement in #27214 and #27215. This PR concerns SSH relay runtime deployment and its native dependency bootstrap. #27214 removed the desktop relay connection/fallback path; #27215 deleted the SSH relay server, deployment assets, and relay-only tests. SSH hosts now use the managed Orca server (orcad), and unsupported hosts fail explicitly, so this relay-specific work is no longer planned. This closes the proposed relay implementation; it does not claim that any independent local, WSL, or managed-server behavior was fixed.

@OrcaWin OrcaWin closed this Oct 11, 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