feat(digests): self-heal drain — auto-resume after quota/interruption (X12) #127
Reference in New Issue
Block a user
Delete Branch "worktree-digest-resume"
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?
חיזוק מנגנון ה-resume של ההעשרה (לבקשת היו"ר — שהמערכת תמשיך לבד אחרי שהסשן/מכסת-claude מתחדשת).
ה-cron של
drain_digests.pyכבר מהווה resume (pending-based, idempotent, host-side — לא תלוי בסשן האינטראקטיבי). הבעיה שתוקנה: אםenrichנכשל באמצע (מכסת claude נגמרה), השורה נשארהcompletedעם שדות ריקים → ה-drain לא חזר אליה.עכשיו drain מאפס בתחילתו כל digest
completedעםconcept_tagריק וגםunderlying_citationריק (= חילוץ שמעולם לא נחת; שורה מוצלחת תמיד מכילה לפחות מראה-מקום) → חזרה ל-pending. כך כל קטיעה/מכסה מתאוששת אוטומטית בריצת ה-cron הבאה. בטוח: שורות שעובדו בהצלחה לא נוגעים בהן.בנוסף (host, מחוץ ל-PR): ה-crontab יעבור מ-יומי 10:00 ל-כל שעתיים (
0 */2, flock) — כך ההעשרה מתחדשת תוך ~שעתיים אחרי שהמכסה משתחררת.🤖 Generated with Claude Code