validate_index
Verify an indexed dataset's on-disk integrity: run SQLite PRAGMA integrity check, compare row counts and columns against index metadata, hash-verify index.json, and report stale-lock states.
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'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | Yes | Dataset identifier |