feat: add 12 integrity check saved queries for SQL Explorer (migration 037)

Prefixed with ⚕ for easy identification. Checks: duplicate snapshots,
orphaned links, evidence count mismatches, contribution score sums,
canonical key consistency, out-of-range values, unmatched snapshots,
zero evidence rate, duplicate count mismatches, missing prices,
outcome integrity, and pipeline health summary.
This commit is contained in:
Celes Renata
2026-05-01 19:20:56 +00:00
parent cc21fd9e8f
commit 376fcb4bb4
2 changed files with 43 additions and 1 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ When a full reset is needed:
## Database Migrations
- Located in `infra/migrations/001_*.sql` through `030_*.sql`
- Applied automatically by `runmefirst.sh` in sorted order
- Next migration number: **037**
- Next migration number: **038**
- Key migrations:
- 016: Global news interpolation (global_events, macro_impact_records, exposure_profiles, trend_projections)
- 017: Competitive intelligence (competitor_relationships, competitive_signal_records)