Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

fix(observability): log compute-metric's entry/exit for the HeyTelo chat-hang

merged#2894CedarCopilot

CedarCopilot wants to merge 1 commit into staging from fix/chris-compute-metric-observability

What Libra verified

  • AOP conversion reports scope and history sizes before downstream processing

    Libra ran this behavior against the change and confirmed the check detects when it breaks.

    Technical evidence
    • computeMetric emits the organization, scoped conversation count, and history count after a non-empty aop_conversion scope and history query complete

    Changed code: deal-metrics.ts.

  • A completed compute-metric call records its result size and duration

    Libra ran this behavior against the change and confirmed the check detects when it breaks.

    Technical evidence
    • a successful compute-metric call records its run, user, metric, returned-row count, and elapsed duration before returning the unchanged rows

    Changed code: conversationReasoningActions.ts.

  • Each compute-metric call records its scope and requested metric at entry

    Libra ran this behavior against the change and confirmed the check detects when it breaks.

    Technical evidence
    • the compute-metric action records run, user, thread, organization, metric, grouping, and an empty-scope flag for an org-wide call
    • the compute-metric action records a false empty-scope flag after resolving a requested conversation within the organization

    Changed code: conversationReasoningActions.ts.

run 993b98d6-a11b-496c-895a-05dfe4564027, completed Sep 22, 2026, 7:53 PM