cache & verify
Synopsis
Section titled “Synopsis”canontra cache <info|verify|prune|clean> [-d|--dir DIR] [--json]canontra verify <FILE> [-n|--runs N] [--json]canontra completions <bash|zsh|fish|powershell>Description
Section titled “Description”cache: Manages.canontra/cache.bin(CNTR\x07incremental binary slab cache with automatic read support forCNTR\x06andCNTR\x05):info: Shows record counts,FileGraphSummaryslab page usage, and cache metadata.verify: Checks the global header and every 4KB page IEEE 802.3 CRC-32C checksum.prune: Removes entries for files that were deleted from disk.clean: Deletes.canontra/cache.bin.
verify: Parses and hashesFILENtimes in a row (default10) to verify bit-identical repeat execution ().completions: Prints shell autocompletion scripts to stdout forbash,zsh,fish, orpowershell(including allcanontra snapsubcommands and flags).
| Flag | Short | Applies To | Default | Description |
|---|---|---|---|---|
--dir |
-d |
cache |
. |
Repository root containing .canontra/cache.bin |
--runs |
-n |
verify |
10 |
Number of repeat determinism runs |
--json |
- |
cache, verify |
false |
Print CacheInfo or VerificationResult as JSON |
Output Schema & Exit Codes
Section titled “Output Schema & Exit Codes”verifyexits0whenvrDeterministic == Trueacross allNruns, and1if any hash differs.cache verifyexits0when all slab pages pass CRC-32C checks.completionsexits0on supported shells and2on unsupported shell names.
Examples
Section titled “Examples”# Inspect and CRC-verify the local cachecanontra cache info --dir .canontra cache verify --dir . --json
# Confirm repeat determinism over 25 runscanontra verify src/core.rs -n 25
# Install shell completionscanontra completions bash > ~/.local/share/bash-completion/completions/canontracanontra completions zsh > ~/.zfunc/_canontracanontra completions fish > ~/.config/fish/completions/canontra.fishcanontra completions powershell >> $PROFILE