发布

  • feat(analytics): stamp org, surface, and session on usage lifecycle events (#4218)

    frostbyte_neo 发布于 2026-07-23 00:12:09 +00:00

    • feat(analytics): stamp org, surface, and session on usage lifecycle events

    Close gaps so investigation and gateway turn events reliably carry
    organization_id, surface, session_id, and PostHog org group association
    across CLI one-shots, REPL background threads, HTTP workers, and Hermes.

    • fix(analytics): satisfy ruff format and single-import usage_context tests

    • fix(analytics): address Greptile P2s on usage session stamping

    Lock process session minting, use canonical surface constants, always
    emit gateway_turn_failed, and avoid overriding an outer Hermes surface.

    • fix(analytics): clarify Greptile P1/P2 on failure telemetry and HTTP session

    Always emit gateway_turn_failed with surface_missing when unbound, use a
    process session for HTTP worker runs (keep investigation_id separate), and
    tighten the track_investigation binding comment.

    下载附件