feat(routing): ערובת at-least-once להערות-יו"ר → CEO (sweep-פיוס) #3
Reference in New Issue
Block a user
Delete Branch "feat/comment-delivery-guarantee"
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?
הבעיה
מסלול ניתוב ההערות הקיים (
issue.comment.created→ CEO) הוא best-effort: invoke שנכשל/התלכד/בוטל, או הערה שנוחתת בזמן שסוכן רץ — משאירים את ההערה ללא ניתוב וללא מי שינסה שוב. כך בדיוק הערת-יו"ר על CMP-190 (30.6.26) נשמטה בשקט: ה-wakeup הנייטיב בוטל (issue_execution_promoted/assignee_changed) ושום מסלול-פלאגין לא נורה. אין ספר-חשבונות של הערות-שטופלו.הפתרון — sweep פיוס (at-least-once)
route-pending-comments, כל 2 דק':last-routed-comment-id.שינויים
worker.ts: חילוץrouteCommentToCeo()+markCommentRouted()משותפים; ה-event handler מסמן את הסמן (כולל בענף "native handles it"); רישום ה-sweep עם guards per-company/per-issue ו-try/catch.manifest.ts: הצהרת jobroute-pending-comments(*/2 * * * *).Invariants
בדיקות
tscנקי ·biome checkנקי · נמדד footprint=0 active issues עם הערת-יו"ר אחרונה.done.Refs legal-ai TaskMaster #164.
🤖 Generated with Claude Code