Content-addressed manifests and verification for local archives.
The current project fleet already covers agent frameworks, music software, games, privacy, sync, mobile, and archival tooling. vhsvault fills a narrower gap: a small local-first utility that can be audited in one sitting and composed with OpenShark, OpenShield, shell scripts, or other agents.
- No network access.
- No external Rust dependencies.
- Deterministic output where the filesystem allows it.
- Plain text formats that can be reviewed in Git.
- Real unit tests, not placeholder stubs.
Walk a directory, hash every file with FNV-1a 64-bit, and output a VHS1 manifest.
# Write to stdout
vhsvault create ~/archive
# Write to a file
vhsvault create ~/archive --out archive.vhsRe-hash every file in a directory and compare against a manifest. Reports modified, missing, and extra files. Exit 0 if clean, exit 1 if differences found.
vhsvault verify archive.vhs ~/archiveCompare two manifests and show added, removed, and changed entries. Exit 0 if identical, exit 1 if different.
vhsvault diff old.vhs new.vhsLine-oriented, versioned, human-readable. Each entry is one line:
VHS1|path|size|hash
VHS1— format version identifierpath— relative path from archive root, forward-slash separatedsize— file size in bytes (decimal)hash— FNV-1a 64-bit hash (16 hex digits)
Lines starting with # are comments. Blank lines are ignored. Entries are sorted by path for deterministic output.
Example:
# vhsvault manifest v1 (FNV-1a 64-bit)
# format: VHS1|path|size|hash
VHS1|README.txt|14|0e644a3b38dcbfb0
VHS1|docs/design.txt|19|28e5c87981357cb9
VHS1|music/sunset.txt|10|b10a26d7cdb7499b
src/main.rs contains the complete v0 implementation: FNV-1a hashing, manifest parsing, directory walking, pure core functions (build_manifest, verify_manifest, diff_manifests), CLI dispatch, and 29 unit tests. The next extraction boundary is a core module once the format stabilizes; until then, keeping the tape on one reel makes audits cheap.
- Manifest create/verify/diff
- Chunked large-file hashing
- Optional BLAKE3 backend
- Cold-storage bundle writer
cargo fmt --check
cargo test
cargo run -- --helpLocal commits only. Never push or create remotes without explicit instruction. Do not weaken validation to make a failing test pass.
