fix(digests): enrich self-cleans duplicate-yomon rows (re-sent issues) #135

Merged
chaim merged 1 commits from worktree-digest-dup-yomon into main 2026-06-08 04:59:35 +00:00
Owner

התגלה בגיבוי: אותו יומון יכול להגיע כשני PDF שונים (re-send/forward → בייטים שונים → content_hash dedup מפספס), אבל yomon_number ייחודי → ה-update ב-enrich מתנגש על uq_digests_yomon_number ומשאיר שורה תקועה (retry אינסופי דרך ה-cron self-heal).

עכשיו enrich_digest תופס את ההתנגשות, מוחק את השורה הכפולה (היומון כבר קיים כשורה מוצלחת), ומחזיר status='duplicate'. סוגר את הפער האחרון לאוטונומיה מלאה.

נוקו ידנית 2 כפילויות כאלה שהתגלו (yomon 4620, 4747). מצב סופי של הגיבוי: 536 digests, כולם completed, 39 מקושרים.

🤖 Generated with Claude Code

התגלה בגיבוי: אותו יומון יכול להגיע כשני PDF שונים (re-send/forward → בייטים שונים → content_hash dedup מפספס), אבל `yomon_number` ייחודי → ה-`update` ב-`enrich` מתנגש על `uq_digests_yomon_number` ומשאיר שורה תקועה (retry אינסופי דרך ה-cron self-heal). עכשיו `enrich_digest` תופס את ההתנגשות, **מוחק את השורה הכפולה** (היומון כבר קיים כשורה מוצלחת), ומחזיר `status='duplicate'`. סוגר את הפער האחרון לאוטונומיה מלאה. נוקו ידנית 2 כפילויות כאלה שהתגלו (yomon 4620, 4747). מצב סופי של הגיבוי: **536 digests, כולם completed, 39 מקושרים**. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-06-08 04:59:29 +00:00
אותו יומון יכול להגיע כשני PDF שונים (re-send/forward → בייטים שונים →
content_hash dedup מפספס), אבל yomon_number ייחודי → ה-update ב-enrich מתנגש
על uq_digests_yomon_number. עכשיו enrich תופס את ההתנגשות, מוחק את השורה
הכפולה (היומון כבר קיים), ומחזיר status='duplicate' — כך ה-cron לא מנסה אותה
שוב ושוב. סוגר לולאת-retry אינסופית פוטנציאלית במערכת הלא-מאוישת.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim merged commit d8113adec6 into main 2026-06-08 04:59:35 +00:00
chaim deleted branch worktree-digest-dup-yomon 2026-06-08 04:59:35 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#135