undominated-install-receipt
Compare an expected file manifest with a sha256sum receipt and, when asked, the bytes in a directory next to the input.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- undominated-install-receipt
- license
- MIT
- metadata
- { "author": "Undominated.ai", "version": "1.0.0" }
- description
- Compare an expected file manifest with a sha256sum receipt and, when asked, the bytes in a directory next to the input.
02 资源文件 7
- 参考文档examples/expected.json263 B
- 参考文档examples/mismatch.json422 B
- 参考文档examples/observed-mismatch.txt149 B
- 参考文档examples/observed.txt149 B
- 参考文档examples/synthetic.json413 B
- 许可证LICENSE1.0 KB
- 脚本scripts/check.py6.9 KB
03 SKILL.md 正文
Install receipt
Use after copying a skill, agent profile, or MCP bundle into a directory you control, before treating that copy as the reviewed revision.
- Write the expected manifest yourself from the reviewed hashes: each relative path and its SHA-256. Save a
sha256sumreceipt (64 lowercase hex, two spaces, relative path) for the copy you are checking. - Put both documents next to the input JSON and record their SHA-256. Set
sourceUrlto the page or commit you believe the bytes came from, andobservedAtto the day you hashed them. - Set
bindFilesto true androotto a relative directory when the bytes themselves are next to the input. The checker hashes only those files. It does not search a repository, follow symlinks, or accept absolute paths. - A pass means the manifest, the receipt, and the bound bytes agree. It does not mean
npx, the Skills CLI, or a registry published that directory. - Missing files, extra files, and hash mismatches are review results. Do not delete the extra file from inside this checker. Decide that outside it.
Run the local check
python3 scripts/check.py examples/synthetic.json
python3 scripts/check.py /absolute/path/to/your-input.json
The bundled fixture is synthetic. The script reads the input directory only, makes no network requests, and writes no files. Python 3.10+; no dependencies.
Exit codes: 0 the documents and bound bytes agree; 1 review required; 2 invalid input. Passing is not an installation certificate.
Input contract
Required: resourceId (slug), sourceUrl (HTTPS), observedAt (ISO date), bindFiles (boolean), expectedFile, expectedSha256, observedFile, observedSha256. When bindFiles is true, root is a relative directory. The expected file is JSON {"files":[{"path","sha256"}]}. The observed file uses sha256sum lines. Paths are portable relative segments: letters, digits, ., _, -.
Deliverable and limits
Return the resource id, file count, which paths were hashed from disk, and every mismatch. Keep the JSON with the explanation.
The user retains control over what is deleted or published. This skill does not install packages or contact a registry.
04 同仓库更多 Skills
undominated-zero-base-undefined
Refuse a multiple whose base is zero. The multiple is undefined. This checker does not emit a quotient.
undominated-withheld-provider
Check a supplied publication denylist by exact provider-name matching. A pass does not approve a provider or establish that the supplied list is complete.
undominated-withdrawal-residue
Check an explicitly observed withdrawn numeric field and its named dependents for leftover values. Use after a source value has been removed from a snapshot.
undominated-unrated-sentinel
Keep a missing score out of a ranked list, so unrated is not scored zero and a scored row is not dropped in silence.
undominated-unit-not-scaled
Refuse a scale factor or a restated invoice unit. A per-thousand row is not turned into a per-million row by multiplying. Amounts are not read.
undominated-topk-not-dump
Refuse a prompt whose scope is the whole catalogue. Retrieval stays top-k. No catalogue is copied.