dsh-release-evidence
其他 活跃维护

dsh-release-evidence

Edge-Echo/dsh-release-evidence

自动收集生命周期测试、回归评估、兼容性结果与质量预算,生成单一签名包供独立核验;不参与测试执行,仅做证据汇总与可追溯发布。

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

dsh-release-evidence

One verifiable artifact per release. It does not run your tests — it proves which checks ran, what they concluded, and that the reports have not been altered since.

When you need this

  • You publish plugins and want reviewers to verify your test results without trusting your CI
  • A marketplace or a customer asks you to prove the checks really ran
  • You need a third party to be able to check a release, offline, with the artifact alone

Tampering with any single report, reordering entries, rewriting the subject or dropping the signature all fail verification — checked by 13 unit tests and 24 end-to-end CLI checks.

dsh-evidence pack     # → .dsh-evidence/evidence.json + EVIDENCE.md (+ Ed25519 signature)
dsh-evidence verify   # → a third party checks it without trusting your CI

npm version
license


The problem

A DSH plugin can compile, pass unit tests, and still fail after publication — files missing
from the tarball, a peer that does not resolve, a lifecycle stage that only breaks in a real
host. The ecosystem already has tools that answer those questions:

tool answers
dsh-testkit does the plugin survive a real host install → register → exercise → uninstall?
dsh-eval-harness do the YAML regression cases still match the baseline?
dsh-plugin-compat-check do the peer versions resolve?
dsh-cordis-plugin-kit does it fit the size and dependency budgets?

Each writes its own report, in its own format, into its own directory. What has been missing
is one artifact a reviewer — or a marketplace — can check without trusting the CI run that
produced it
, and which states plainly what was not checked.

What this does

$ dsh-evidence pack --pack-tarball --key release-key.pem

packed 3 artifact(s) from 6 scanned file(s)
  subject        : dsh-driftwatch@0.1.1 (b149219)
  evidence root  : e117cc029c4caee6d5cc65be4e7fcacf5c171e837313d59e5f96b8cb626c1948
  signed         : yes (Ed25519)
  complete       : true
  wrote .dsh-evidence/evidence.json
  wrote .dsh-evidence/EVIDENCE.md

And a verifier, who needs nothing from your machine:

$ dsh-evidence verify .dsh-evidence --require-complete

subject: dsh-driftwatch@0.1.1
verification: OK
  complete=true signature=true digests=true root=true stale=false

Three properties make that a check rather than a claim:

  1. Every artifact is digested, and the digests are covered by one Merkle root. A report
    swapped, added, removed or reordered after packing changes the root — and editing a report
    in place is caught by its own digest.
  2. The pack is Ed25519-signed, so it also pins who attested it, and rewriting the subject
    (for example, claiming a different version) invalidates the signature.
  3. Verification reports what is missing. Lifecycle evidence and the packed tarball are
    required; a pack without them verifies as complete=false, not as ok. A report that says
    failed fails the pack. A pack past its expiry is stale.

Install

npm install -D dsh-release-evidence

Use

dsh-evidence collect --root .          # what would be picked up, and what is missing
dsh-evidence keygen --out release-key.pem
dsh-evidence pack --root . --out .dsh-evidence --pack-tarball --key release-key.pem
dsh-evidence verify .dsh-evidence --root . --require-complete

collect needs no configuration for the known tools — it recognises what they write:

evidence kind required recognised paths
lifecycle-test yes .dsh-testkit/runs/**/report.json, junit.xml, report.md
packed-artifact yes *.tgz (or produced by --pack-tarball)
regression-eval no eval-harness*.json, eval-report.md
compatibility no compat-check*.json
quality-budget no quality-budget*.json
security-audit no security-audit*.json, or any path you add with --include
build-output no tsc-output.txt
coverage no coverage-summary.json, coverage-final.json, lcov.info
lint no eslint-report*.json, lint-output.txt
sbom no sbom*.json, *.cdx.json

Artifacts older than --max-age-days (default 14) are skipped, and the pack says so — a
year-old report does not become current by being packed.

Opening the pack in a browser

--html <file> on pack or verify writes one self-contained page: the verdict, every check with
its own pass/fail, the evidence kinds (present, missing or not provided), each artifact with its
status and digest, and the Merkle root. No scripts, no external assets, values from the log escaped.

npx dsh-evidence verify .dsh-evidence --html evidence.html

Release evidence report

The page is deliberately blunt about what it does not prove: a passing pack means the recorded
evidence is present, intact and signed — not that the plugin has no bugs.

GitHub Action

- uses: Edge-Echo/dsh-release-evidence@v0.2.0
  with:
    dsh-version: '0.15.3'
    suite: full
    signing-key: ${{ secrets.DSH_EVIDENCE_KEY }}
    require-complete: 'true'

It runs the lifecycle gate, packs whatever evidence exists, verifies the pack as a third party
would, and uploads it as a build artifact.

What a pack does not claim

  • It is not a statement that the plugin is good. It is a statement that specified checks
    produced specified results for a specified build
    .
  • It does not cover anything absent from its table — absent kinds are listed explicitly under
    Not included, with which tool normally produces them.
  • An unsigned pack is not ok. Signing is what lets a reviewer attribute the attestation to
    a key rather than to whoever uploaded the file.
  • A signature proves the pack was assembled by the key holder and not altered since. It does
    not prove the key holder ran the tools honestly on this machine.

Verified behaviour

npm test covers the paths a reviewer depends on: an edited report, an added or reordered
entry, a rewritten subject, an unsigned pack, missing required evidence, a failing report, an
expired pack, and cross-pack entry replay. npm run verify drives the CLI end to end over a
fixture repository.

Built on @edge-echo/dsh-ledger for the Merkle
tree (RFC 6962). That is the only runtime dependency, and it has none of its own.

License

MIT

Related

Part of the dsh-toolkit family — small, independently useful pieces for
DeepSeek Harness: