feat(halacha): UNIQUE(case_law_id, halacha_index) backstop (#83) #51
Reference in New Issue
Block a user
Delete Branch "feat/halacha-unique-index"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#83 — חוסן pipeline: ערובת מספור תקין
CREATE UNIQUE INDEX idx_halachot_unique_index ON halachot(case_law_id, halacha_index).הכנת נתונים (לפני האילוץ, מגובה ב-
data/audit/halacha-reindex-backup-*.sql)6 הפסקים שעדיין נשאו אינדקסים מתנגשים (9 קבוצות — עקרונות מובחנים שחלקו מספר, לא כפילויות תוכן) מוספרו מחדש לאינדקסים ייחודיים רצופים. נותרו 0 קבוצות כפולות.
אומת
force=Trueמבצע delete+checkpoint-clear בטרנזקציה אחת (83.5).גם
מתעד ב-TaskMaster את כל יוזמת איכות-ההלכות (#81-#84 + תתי-משימות מבוססות-מחקר + סטטוסים).
הערה
83.3 (content_hash) מיותר — #82 (dedup-on-insert) כבר מבטיח אידמפוטנטיות. נותר ל-follow-up: 83.4 (retry-on-violation, אם יידרש), והשאר ב-#84.
🤖 Generated with Claude Code