Skip to content

Instrument conversation-processing volume (conversation_processed event) #13

Description

@formed2forge

Symptom: No per-user daily conversation-count telemetry exists anywhere. hourly_usage (Firestore, users/*/hourly_usage) has no conversation counter — record_usage(insights_gained=N) increments by N per processed conversation, not by "1 conversation." users/*/conversations exists (~9.9M docs) but a collection-group filter on created_at/started_at fails for lack of a COLLECTION_GROUP_ASC index, so an unfiltered scan isn't a usable 30-day distribution. No PostHog event fires once per non-discarded processed conversation either.

Impact: Blocks evaluating a conversation-anchored cap for mobile Proactive AI (the pricing-tier rework's preferred cap unit, since insights/memories fire once per processed conversation) — see the pricing handoff (formed2forge/handoffs, omi-pricing.md §4/§5/§7/§14) for full context.

Fix identified: emit a conversation_processed event, or add a hourly_usage.conversations_processed int field, from backend/utils/conversations/process_conversation.py after a non-discard — same call site as the existing record_usage call.

Evidence: production usage-distribution report (30-day window, 2026-07-29 to 2026-08-27, prod Firestore hourly_usage collection group) explicitly flagged this as unmeasurable from existing data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions