Skip to content

sta 4150 hardening file channels - #15398

Closed
Jinwoo-H wants to merge 7 commits into
sta-4150-hardening-storage-identityfrom
sta-4150-hardening-file-channels
Closed

Jinwoo-H wants to merge 7 commits into
sta-4150-hardening-storage-identityfrom
sta-4150-hardening-file-channels

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1161 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1161
Prod 38 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1271 $\color{#cf222e}{\Huge{\mathbf{−}}}$​91 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1180

ELI5

What Changed

Why

Linked Issue

Fixes #

Visual Proof

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • 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)

Author

  • X / Twitter: @your_handle

@Jinwoo-H
Jinwoo-H marked this pull request as ready for review August 19, 2026 01:07
@Jinwoo-H
Jinwoo-H force-pushed the sta-4150-hardening-storage-identity branch from f8f5356 to d62e58d Compare August 19, 2026 01:24
@Jinwoo-H
Jinwoo-H requested a review from brennanb2025 as a code owner August 19, 2026 01:24
Bounds, zod schemas, and the automation methods whose path arguments name the
remote workspace on a client-placed page. Download filename normalization moves
to shared so the runtime can reuse it without importing Electron.
…ndshake

fileChannelProtocolVersion is an additive optional field on browser.clientHost
attach and ready, echoed only when the client asked for it. An old host never
echoes it and an old client never sends it, so either skew leaves both sides
knowing the channel is unavailable. Reconnect treats a dropped version as a
changed authority. Extracts the lease inventory refresh to hold the file under
its max-lines budget.
Adds lease- and page-fenced read/write/abort RPCs over the existing
containment-checked file-explorer transfer path, and refuses browser.upload and
browser.download on a client-placed page whose lease never negotiated the
channel — an old client must never have its remote paths resolved on the
desktop filesystem. Inbound download bytes land in .orca/browser-downloads with
bounded, sequential, collision-free commits and cleanup on failure or page loss.
…upload

Upload paths on a client-placed page now mean the remote workspace. The runtime
reads the bytes, main writes them into its own scoped temp directory, rewrites
files to the staged copies, and removes the directory on success, failure, page
retirement, and executor close. Without the negotiated channel the command fails
closed instead of reading the desktop filesystem, which also closed the path
that let a remote name an arbitrary client file.
A download from a client-hosted page is staged in a main-owned temp file,
streamed to the remote workspace over the file channel, and the temp copy is
deleted; a completion toast names the remote path and the execution host. With
no client-hosted router or an unnegotiated channel the download keeps its
current desktop Downloads behavior.
…time

One transport and staging root per composition so an authority replacement
rebinds to the new lease, and record the file-channel work in the STA-4150
progress ledger.
browser-download-destination-toast.ts lands in this layer, so its key must land here too; it was only synced two layers up.
@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