Agent instruction file integrity seal (instruct-v2)
Seal agent instruction files and verify them before developers, CI, or agent harnesses pass them to models.
What it protects
- Prompt & policy integrity (
instruct-v2) — lossless raw front-matter + body BLAKE3 digest protects YAML lists (globs:,tools:), nested maps, and Markdown body verbatim. - Cryptographic trust (
signing-v2) — OpenSSHSSHSIG(.hashseal/allowed_signers) or hardened GPG (.hashseal/keys/), bound toscope(<rel-path>or*via--portable) and failing closed (UNVERIFIED_SIGNATURE) if unverified. - Presence & allowlist (
.hashseal.lock) — detects deleted (LOCKED_FILE_REMOVED) and unapproved (UNAPPROVED_FILE) instruction files. - Unicode smuggling defense — detects hidden Unicode Tag, BiDi override, zero-width, and embedded BOM characters (
SUSPICIOUS_UNICODE).
Quick workflow
hashseal init --claude-hooks --git-hooks --lock
hashseal seal --instruct --sign --lock --root .
hashseal check --root . --require-signature
Terminal screenshot
Docs in this section
| Page | Topic |
|---|---|
| Seal format | instruct-v2 raw-FM framing, reserved fields, Unicode hygiene |
| Signing | signing-v2 (SSH allowed_signers + hardened GPG), scope, --portable |
| Verify SDKs | Tier-1 JS, Python, Go, WASM + frozen vectors |
| CLI | init, seal, check, verify, unseal, clean |