Skip to content

sta 4150 hardening storage identity - #15397

Closed
Jinwoo-H wants to merge 5 commits into
sta-4150-landing-client-mirror-transportfrom
sta-4150-hardening-storage-identity
Closed

Jinwoo-H wants to merge 5 commits into
sta-4150-landing-client-mirror-transportfrom
sta-4150-hardening-storage-identity

Conversation

@Jinwoo-H

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

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​740 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​728
Prod 24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​698 $\color{#cf222e}{\Huge{\mathbf{−}}}$​85 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​613

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-landing-client-mirror-transport branch from 9d71c9a to fda719d Compare August 19, 2026 01:23
@Jinwoo-H
Jinwoo-H requested a review from brennanb2025 as a code owner August 19, 2026 01:23
…tity

The client route partition hashed the route fencing key, whose native/WSL
revision and SSH connectionGeneration/providerEpoch change on every runtime
restart and reconnect. Every restart minted a new Chromium partition, dropping
cookies and localStorage and accruing binding-store entries toward the 512 cap.

Storage identity now uses only stable components (native: runtimeId; wsl:
runtimeId+distro; ssh: targetId). Route fencing keeps the full per-boot key.
…cord

Binding metadata now records which environment record owns each partition so
storage lifecycle events can find partitions without a live connection, which
re-deriving the partition identity requires. Store format moves to version 2;
version 1 entries load as unscoped.
…on removal

Startup sweeps route partitions whose owning environment record is gone, plus
pre-scope entries whose partition names the stable identity scheme can never
re-derive. Removing an environment clears its partitions' storage immediately.

Both paths refuse to touch a partition that still has prepared pages, and a
merely disconnected host keeps its record and therefore its storage.
…ions

With a client host active for a paired server, cookie import ran over runtime
RPC on the remote machine, which is usually headless and finds no browsers.
Detection and import now run on the desktop and land in the route partition
main derives for that server; the renderer never names a partition. Servers
whose pages are not client-hosted keep the existing server-side RPC path.
@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