validate_index
Verify an indexed dataset's on-disk integrity by running SQLite integrity checks, validating row counts, columns, and content hashes against index metadata. Reports overall status: ok, warning, or error.
Instructions
Verify an indexed dataset's on-disk integrity. Runs SQLite PRAGMA integrity_check, cross-checks row count and column list against index.json, and verifies index.json content hash. Reports stale-lock state from interrupted index_local runs. Returns overall_status: 'ok' | 'warning' | 'error'. Checks the integrity of the index, never the correctness of the underlying data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | Yes | Dataset identifier |