feat(runtime-host): admit exact accepted-world Node tests - #68
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.
Summary
Admit one explicit dependency-free Node test observation from the exact accepted Gitoxide world and an owner-issued hermetic toolchain capability.
Primary invariant
Before T1, the Runtime Host must bind one exact accepted repository/workspace/epoch/version/commit/tree, the canonical test-file identities, a verified Node toolchain identity, and a fixed hermetic execution profile. After admission, the operation and disposable roots are linear and cannot silently fall back to PATH, npm, package scripts, or the attached checkout.
Authority and atomic boundary
Failure and convergence
Scope
This intentionally does not add the tool to
managed-coding-v1. A later versioned product profile must land with packaged/current-process toolchain proof, enforcing sandbox evidence, and production-shaped Host/helper crash recovery.Validation
link.exeis unavailable, so the repository helper CI remains the real-binary evidence owner.中文说明
本 PR 建立 M5 的 Runtime Host admission:
ManagedNodeTest在 T1 前必须绑定 exact accepted Gitoxide head、workspace epoch/version、显式测试文件 bytes/SHA-256、受权 Node toolchain identity 与固定 hermetic profile。权限边界已经收窄:Gitoxide session 只拥有 accepted-tree;command sandbox 只拥有 toolchain/process;execution-root owner 持有完整生命周期的 storage-root write lease;admission 不接收裸 storage path,也没有任意递归删除权限;Runtime 仍是唯一 T1/T2 与 provider result owner。
任何 identity、物化或 toolchain 失败都在 T1 前拒绝并清理。T1 后禁止回退到 PATH、npm、package script、attached checkout 或普通 test runner。
本 PR 不会静默扩大现有
managed-coding-v1。后续必须通过版本化产品 profile,在 enforcing sandbox 和真实 Host/helper kill-reopen 证据齐备以后再接 Desktop。