[FROZEN REFERENCE ONLY - DO NOT MERGE] add realm sandbox boundaries and instant code previews - #5670
Draft
christse wants to merge 50 commits into
Draft
[FROZEN REFERENCE ONLY - DO NOT MERGE] add realm sandbox boundaries and instant code previews#5670christse wants to merge 50 commits into
christse wants to merge 50 commits into
Conversation
Contributor
Preview deploymentsHost Test Results 1 files 1 suites 2h 27m 21s ⏱️ Results for commit 3a51b51. For more details on these errors, see this check. Realm Server Test Results 1 files 1 suites 11m 39s ⏱️ Results for commit 3a51b51. For more details on these errors, see this check. |
…stant-reload # Conflicts: # packages/host/app/services/network.ts # packages/host/app/services/store.ts
…stant-reload # Conflicts: # packages/host/tests/acceptance/host-mode-test.gts
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.
Background and Goal
This draft consolidates the realm-boundary sandbox work: trusted Base loading, per-principal SES execution, the iframe compatibility tier, explicit card/template APIs, and volatile Code-mode preview generations. It preserves the Store as canonical card state while preventing user-realm modules from receiving ambient host, credential, loader, service, or DOM authority.
The branch is published now to run the unchanged full Host CI suite. It remains a draft while hosted iframe origin deployment, route-level SES/iframe retainer testing, and visual CSS paint containment are completed or explicitly split into follow-ups.
Where to start
docs/realm-sandbox-reviewer-guide.mdbuilds the system from threat model through implementation and gives a roughly 20-minute review path.packages/host/app/services/realm-sandbox.tsowns policy, runtime selection, explicit template/style projection, cache lifecycle, and volatile preview coordination.packages/host/app/lib/realm-compartment-module-runtime.tsis the SES module/component protocol.packages/host/app/lib/realm-sandbox-boundary.tsdefines the opaque data boundary used by ordinary Host UI.docs/realm-sandbox-wip-review-findings.mdrecords the independent review and the implementation response.Key decisions and non-obvious mechanics