טלמטריה מובנית (OpenTelemetry) על שכבת-הסוכנים (השראת Gastown OTel) #449
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
What & Why
לפלוט אירועי OTel מובנים על מחזור-חיי הסוכנים (session lifecycle, wake_reason, disposition, mail/comment-routing, recovery-actions) כדי להפוך דיבוג לולאות-recovery מפורנזיקה-ידנית (שאילתות SQL) לנראוּת בזמן-אמת.
הקשר ופירוט
מקור-השראה: Gastown OTel data-model — events over session lifecycle, agent state, bd calls, mail, sling/done, daemon restarts (docs/otel-data-model.md).
הבעיה אצלנו: אבחון לולאות-recovery נעשה ידנית מול Paperclip DB (agent_wakeup_requests, heartbeat_runs, issue_recovery_actions) — ראה reference_paperclip_recovery_loops + reference_recovery_loop_stranded_child. אין ערוץ-נראוּת אחד.
מטרה: instrumentation מובנה בשער-הפלטפורמה (X15) שפולט span/event לכל: wake (reason, issueId, agentId), run-start/end (status), disposition-write (PATCH), comment-routing (sweep hit/coalesced), recovery-action fired, interaction created/reaped.
קשור: docs/spec/X16-pipeline-durability.md, project_operations_process_controls.
Acceptance Criteria
הועבר מ-TaskMaster (tag
legal-ai, id 219, status היהin-progress) ב-2026-08-05. הפניות(#219)בהודעות-commit ישנות מתייחסות למזהה ה-TaskMaster, לא למספר ה-issue הזה.