fix(db): fold five raw-SQL repo-identity tables and widen the drift guard past Drizzle - #10125
Conversation
…uard past Drizzle decision_records, decision_audit_labels, submitter_outcome_log, ai_review_verdict_flips, and alert_dedup_claims were never moved by renameRepositoryIdentity, so a repo rename silently orphaned the contributor's decision trail, the human adjudication labels, the windowed submitter-reputation signal, the verdict-flip guard state, and the alert dedup claims. The completeness drift guard only enumerated schema.ts's Drizzle tables, so it couldn't see any of them -- it now also replays migrations/*.sql the way scripts/check-schema-drift.ts does and checks the raw-SQL-only tables that surfaces.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 08:17:18 UTC
Review summary Nits — 6 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10125 +/- ##
===========================================
- Coverage 91.95% 79.85% -12.10%
===========================================
Files 931 283 -648
Lines 113924 58881 -55043
Branches 27506 6919 -20587
===========================================
- Hits 104760 47022 -57738
- Misses 7863 11570 +3707
+ Partials 1301 289 -1012
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(db): fold five raw-SQL repo-identity tables and widen the drift guard past Drizzle
decision_records, decision_audit_labels, submitter_outcome_log, ai_review_verdict_flips,
and alert_dedup_claims were never moved by renameRepositoryIdentity, so a repo rename
silently orphaned the contributor's decision trail, the human adjudication labels, the
windowed submitter-reputation signal, the verdict-flip guard state, and the alert
dedup claims. The completeness drift guard only enumerated schema.ts's Drizzle tables,
so it couldn't see any of them -- it now also replays migrations/*.sql the way
scripts/check-schema-drift.ts does and checks the raw-SQL-only tables that surfaces.
Closes #10053