Skip to content

feat(runtime-host): attest the bundled npm runtime - #2

Closed
zhiiw wants to merge 7 commits into
codex/managed-dependency-producer-boundaryfrom
codex/bundled-npm-runtime-attestation
Closed

feat(runtime-host): attest the bundled npm runtime#2
zhiiw wants to merge 7 commits into
codex/managed-dependency-producer-boundaryfrom
codex/bundled-npm-runtime-attestation

Conversation

@zhiiw

@zhiiw zhiiw commented Aug 8, 2026

Copy link
Copy Markdown
Owner

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.

  • Owner: Runtime Host bundled npm attestation authority
  • Failure state: invalid or changed runtime evidence fails closed before operational-root acquisition
  • Rollback: remove bundled npm preparation/attestation; the constrained producer remains unreachable from production composition

Verification

The release verifier runs the actual bundled npm against a hermetic loopback registry and installs a tarball fixture with a real bin declaration. Producer tests also cover the fixed permission profile and Windows long-path HOME handling.

Stack

  1. durable dependency artifact authority
  2. constrained npm producer
  3. This PR: bundled npm runtime attestation
  4. cancellable managed admission authority
  5. production managed inspection task + crash/replay proof
中文说明

本切片在 managed provisioning 前验证随包发布的 npm runtime,并签发进程内不可伪造的 capability。验证绑定平台、架构、Node/npm 版本、完整文件清单与固定执行策略;每次调用都会重新验证 runtime tree。

这里明确区分两层信任:外层应用签名与发布/更新链提供来源信任,manifest 只证明已授权资源目录内的运行时完整性。manifest 本身不是独立的密码学信任根。

验收测试使用真实 bundled npm,从本地 hermetic registry 安装带 bin 的 tarball fixture,并覆盖 Windows 长路径 HOME 的执行边界。

@zhiiw
zhiiw force-pushed the codex/managed-dependency-producer-boundary branch from aa0692b to b58a6db Compare August 9, 2026 01:33
@zhiiw
zhiiw force-pushed the codex/bundled-npm-runtime-attestation branch from 85d9180 to f57dd31 Compare August 9, 2026 01:33
@zhiiw zhiiw changed the title Ship an attested bundled npm runtime feat(runtime-host): attest the bundled npm runtime Aug 9, 2026
@zhiiw
zhiiw force-pushed the codex/managed-dependency-producer-boundary branch from b58a6db to 4dfd049 Compare August 9, 2026 02:59
@zhiiw
zhiiw force-pushed the codex/bundled-npm-runtime-attestation branch from f57dd31 to c400560 Compare August 9, 2026 03:00
@zhiiw
zhiiw force-pushed the codex/managed-dependency-producer-boundary branch from 4dfd049 to 70549fd Compare August 10, 2026 01:38
@zhiiw
zhiiw force-pushed the codex/bundled-npm-runtime-attestation branch from a656397 to e642020 Compare August 10, 2026 01:38
@zhiiw
zhiiw force-pushed the codex/managed-dependency-producer-boundary branch from 70549fd to 2989a77 Compare August 10, 2026 06:59
@zhiiw
zhiiw force-pushed the codex/bundled-npm-runtime-attestation branch from e642020 to 78b0150 Compare August 10, 2026 06:59
@zhiiw
zhiiw force-pushed the codex/managed-dependency-producer-boundary branch from 2989a77 to 07771db Compare August 10, 2026 07:14
@zhiiw
zhiiw force-pushed the codex/bundled-npm-runtime-attestation branch from 78b0150 to c4fa57b Compare August 10, 2026 07:14
@zhiiw
zhiiw force-pushed the codex/managed-dependency-producer-boundary branch 2 times, most recently from a3a0333 to 69cd4ec Compare August 16, 2026 03:31
@zhiiw
zhiiw force-pushed the codex/bundled-npm-runtime-attestation branch from c4fa57b to b6a9d2f Compare August 16, 2026 03:58
@zhiiw
zhiiw force-pushed the codex/managed-dependency-producer-boundary branch from 69cd4ec to 2c37025 Compare August 23, 2026 05:24
@zhiiw
zhiiw force-pushed the codex/bundled-npm-runtime-attestation branch from 59f8384 to 9f1418b Compare August 23, 2026 05:24
@zhiiw

zhiiw commented Aug 30, 2026

Copy link
Copy Markdown
Owner Author

Closed as an obsolete extraction/integration slice. The current delivery path is the merged Gitoxide foundation followed by #40 -> #41 -> #42. This PR remains available as design and implementation history.

中文说明

该 PR 属于旧 extraction/integration 栈,现已失去独立合并价值。当前交付路径是已合并的 Gitoxide 基础,然后依次审查 #40#41#42。这里继续保留设计、实现与审查历史。

@zhiiw zhiiw closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant