Documentation Index
Fetch the complete documentation index at: https://docs.chameleondb.dev/llms.txt
Use this file to discover all available pages before exploring further.
Synopsis
Description
Theverify command performs cryptographic verification of the Schema Vault to detect:
- Manifest tampering - Modified or corrupted manifest.json
- Version file tampering - Modified version snapshots
- Hash mismatches - Schema files that don’t match stored hashes
- Missing files - Deleted vault files
- Inconsistent state - Schema files out of sync with versions
- Audit vault integrity
- Detect unauthorized changes
- Verify schema authenticity
- Troubleshoot migration issues
Examples
All Checks Passed
Integrity Violation Detected
No Vault Found
What Gets Verified
1. Vault Manifest
Checks.chameleon/vault/manifest.json:
- Valid JSON structure
- Required fields present
- Current version references exist
2. Version Files
For each version in.chameleon/vault/versions/:
- Version file exists (e.g.,
v001.json) - Hash file exists (e.g.,
.chameleon/vault/hashes/v001.hash) - Computed hash matches stored hash
3. Schema Files
Verifies merged schema:- Schema file exists at configured path
- Hash matches current vault version (if applicable)
4. Integrity Log
Checks.chameleon/vault/integrity.log:
- File is append-only
- No suspicious modifications
Vault Structure
Verification Process
Step 1: Load Manifest
Step 2: Verify Each Version
For each version:- Read version file (e.g.,
v001.json) - Compute SHA256 hash of contents
- Compare with stored hash in
v001.hash - Report OK or FAILED
Step 3: Check Tampering
Step 4: Verify Schema Files
Checks if current schema matches vault:Common Scenarios
After Migration
After Manual Vault Edit
If someone manually edits.chameleon/vault/versions/v002.json:
After Schema Edit (Not Yet Migrated)
Editschemas/users.cham but don’t migrate:
Modified schema files are expected during development. This is not an error until you run
migrate --apply.Integrity Log
View detailed audit trail:Recovery Options
If Vault is Corrupted
-
Check integrity log:
-
Review recent changes:
-
Restore from backup:
- Contact DBA if tampering suspected
If Schema File is Missing
.chameleon/state/schema.merged.cham.
Integration with Migrate
Themigrate command automatically runs integrity verification:
Exit Codes
0- All integrity checks passed1- Integrity violations found or vault not initialized
Automated Verification
Daily Cron Job
CI/CD Pipeline
Troubleshooting
Cannot Load Manifest
Permission Denied
See Also
chameleon migrate- Includes automatic verificationchameleon status- Quick vault status checkchameleon journal- View vault operation history- Schema Vault - Learn about vault design
- Integrity Modes - Paranoid mode protection