dsh-build-hermeticity-proof
开发工具 活跃维护

dsh-build-hermeticity-proof

dongsheng123132/dsh-build-hermeticity-proof

离线哈希校验工具,无需联网即可基于纯哈希核验构建全流程访问记录,确认所有资源访问均落在预先声明的闭包范围内,快速验证构建封闭性,避免未授权依赖引入,保障构建结果可信。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
16 KB
仓库大小
27 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:dongsheng123132/dsh-build-hermeticity-proof
git clone https://github.com/dongsheng123132/dsh-build-hermeticity-proof.git
git clone git@github.com:dongsheng123132/dsh-build-hermeticity-proof.git
README.md main

DSH Build Hermeticity Proof

An offline, deterministic evidence layer for DeepSeek Harness supply chains. It verifies whether an explicit, hash-only build access receipt stayed inside its declared file, environment, network, clock, randomness and output closure.

It does not execute a build, does not enforce a sandbox, authenticate the receipt, or prove that unrecorded accesses could not occur. It also does not prove reproducibility. A hermetic verdict means only that the supplied receipt is internally complete and policy-conformant.

Complementary boundary

  • dsh-reproducible-build-proof compares independently operated rebuild receipts for byte-identical specified outputs.
  • dsh-attestation-proof verifies DSSE/in-toto signatures, subjects and signer thresholds.
  • This plugin checks one recorded build's declared external-influence closure: file reads/writes, environment reads, network, clock and randomness.

Observed undeclared access fails. A denied undeclared attempt is retained as containment evidence but does not breach the closure. Observed network access always fails under the v1 deny-only network policy. Declared inputs and outputs must all appear in the receipt; the source revision, invocation, clock value, random seed and allowed environment values are hash-bound.

Install

dsh plugin add github:dongsheng123132/dsh-build-hermeticity-proof#COMMIT

The bundle exposes dsh_build_hermeticity_inspect and dsh_build_hermeticity_verify from one headless core. The independent MCP stdio server exposes build_hermeticity_inspect and build_hermeticity_verify. The CLI accepts inspect or verify plus an explicit JSON path.

See examples/hermetic.json. Reports contain only hashes, counts, booleans, classifications and verdicts. Secret-shaped material, raw logs and body/content fields are rejected. The DSH verify tool reads a workspace-relative non-symlink manifest, writes only to an explicit workspace-relative artifactDir, creates deterministic content-addressed output exclusively, and verifies it by read-back.

npm test
npm run check
npm run smoke:plugin
npm run smoke:mcp
python C:/Users/YOU/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py .

Node.js 22 or newer is required. The verifier has no runtime dependency, spawns no process and makes no network request.