Repository navigation
Conversation
Jinwoo-H
marked this pull request as ready for review
August 19, 2026 01:07
Jinwoo-H
force-pushed
the
sta-4150-hardening-storage-identity
branch
from
August 19, 2026 01:24
f8f5356 to
d62e58d
Compare
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
force-pushed
the
sta-4150-hardening-file-channels
branch
from
August 19, 2026 01:26
1577427 to
07bd535
Compare
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
What Changed
Why
Linked Issue
Fixes #
Visual Proof
Testing
AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand 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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Author