feat(runtime-host): attest the bundled npm runtime - #2
Closed
zhiiw wants to merge 7 commits into
Closed
Conversation
zhiiw
force-pushed
the
codex/managed-dependency-producer-boundary
branch
from
August 9, 2026 01:33
aa0692b to
b58a6db
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 9, 2026 01:33
85d9180 to
f57dd31
Compare
zhiiw
force-pushed
the
codex/managed-dependency-producer-boundary
branch
from
August 9, 2026 02:59
b58a6db to
4dfd049
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 9, 2026 03:00
f57dd31 to
c400560
Compare
zhiiw
force-pushed
the
codex/managed-dependency-producer-boundary
branch
from
August 10, 2026 01:38
4dfd049 to
70549fd
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 10, 2026 01:38
a656397 to
e642020
Compare
zhiiw
force-pushed
the
codex/managed-dependency-producer-boundary
branch
from
August 10, 2026 06:59
70549fd to
2989a77
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 10, 2026 06:59
e642020 to
78b0150
Compare
zhiiw
force-pushed
the
codex/managed-dependency-producer-boundary
branch
from
August 10, 2026 07:14
2989a77 to
07771db
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 10, 2026 07:14
78b0150 to
c4fa57b
Compare
zhiiw
force-pushed
the
codex/managed-dependency-producer-boundary
branch
2 times, most recently
from
August 16, 2026 03:31
a3a0333 to
69cd4ec
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 16, 2026 03:58
c4fa57b to
b6a9d2f
Compare
zhiiw
force-pushed
the
codex/managed-dependency-producer-boundary
branch
from
August 23, 2026 05:24
69cd4ec to
2c37025
Compare
zhiiw
force-pushed
the
codex/bundled-npm-runtime-attestation
branch
from
August 23, 2026 05:24
59f8384 to
9f1418b
Compare
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
Attests the packaged npm runtime before it can issue the process-local capability consumed by managed provisioning. The attestation binds platform, architecture, Node/npm versions, declared runtime files, and the fixed execution policy; every managed invocation revalidates the declared runtime tree.
Trust boundary
The manifest proves runtime integrity inside an already authorized release resource root; it is not a standalone provenance trust root. Provenance comes from the outer signed application and release/update chain. If an attacker can replace both the packaged npm tree and its manifest, this layer alone cannot distinguish that tree from a Maka release.
Primary invariant
No path, version string, or caller-constructed object can self-authorize npm provisioning. Only a process-local capability issued after bundled-runtime attestation can cross the producer boundary.
Verification
The release verifier runs the actual bundled npm against a hermetic loopback registry and installs a tarball fixture with a real
bindeclaration. Producer tests also cover the fixed permission profile and Windows long-path HOME handling.Stack
中文说明
本切片在 managed provisioning 前验证随包发布的 npm runtime,并签发进程内不可伪造的 capability。验证绑定平台、架构、Node/npm 版本、完整文件清单与固定执行策略;每次调用都会重新验证 runtime tree。
这里明确区分两层信任:外层应用签名与发布/更新链提供来源信任,manifest 只证明已授权资源目录内的运行时完整性。manifest 本身不是独立的密码学信任根。
验收测试使用真实 bundled npm,从本地 hermetic registry 安装带
bin的 tarball fixture,并覆盖 Windows 长路径 HOME 的执行边界。