feat(runtime-host): negotiate managed execution profiles - #78
Draft
zhiiw wants to merge 1 commit into
Draft
Conversation
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.
Outcome
Desktop now freezes the exact managed execution profile from the resident Runtime Host before Session creation and before any managed T1. A renderer cannot mint a profile, and an unavailable v2 capability never falls back after T1.
Primary invariant
Ownership and atomic boundary
Platform contract
managed-coding-v1and sandbox-provenmanaged-coding-v2.managed-coding-v1and sandbox-provenmanaged-coding-v2.managed-coding-v1; v2 remains unavailable until a Windows managed Node sandbox is proven.Verification
unavailable/EPIPE); the profile-query focused test passes and this PR does not modify those lifecycle seams.中文说明
结果
Desktop 现在会在创建 Session 和任何 managed T1 之前,向当前 resident Runtime Host 查询真实能力,并冻结最高可用的 managed execution profile。renderer 不能自行授予 profile,T1 后也不允许因为 v2 不可用而静默降级。
主要不变量