verify_archive
Check archive integrity: recompute SHA-256 for sealed archives and validate database structure, row counts, and registry match for open archives.
Instructions
Verify an archive's integrity.
For sealed archives: recomputes SHA-256 of the .db file, compares to the recorded hash.
For open archives: verifies structural integrity (DB can be opened, row counts match the registry).
Returns: {verified: bool, recorded_hash, computed_hash (sealed only)}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| archive_id | Yes | ID of the target archive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| sealed | No | ||
| verified | No |