Skip to content

SCA-2918: Export conversations v3 builder metrics from backend-sync - #26299

Closed
Git-on-my-level wants to merge 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/v3-sync-gate-metrics
Closed

Git-on-my-level wants to merge 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/v3-sync-gate-metrics

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

SCA-2918. Export the six existing conversations-v3 builder families through the backend-sync Cloud Run GMP profile. The profile is shared with sync-backfill and integration, so filter by service when reading the gate. The stage stays at beta. No application code changes.

One full production beta hour

Use a full hour after telemetry is serving. Require positive request volume, observed successful commits, and live scrapes throughout the window. A missing series is missing evidence.

  1. Reconcile 5xx <1%. Count request logs using this Logs Explorer filter over the hour. Divide the count with httpRequest.status>=500 AND httpRequest.status<600 appended by the count using the base filter.

    resource.type="cloud_run_revision"
    resource.labels.service_name="backend-sync"
    log_id("run.googleapis.com/requests")
    httpRequest.requestMethod="POST"
    httpRequest.requestUrl=~"/v1/conversations-v3/reconcile([?].*)?$"
    
  2. Committed reconciles. Require a positive result from:

    sum(increase(omi_conversations_v3_reconciles_total{service_name="backend-sync",outcome="committed"}[1h]))
    
  3. Pending recordings older than one hour. This query counts observations older than one hour. The sweep can observe the same recording repeatedly. An exact distinct backlog count requires an approved aggregate count over the conversations collection group with v3_pending == true and v3_pending_since < now - 1h, restricted to the user recording rows counted by the sweep. Confirm the sweep ran during the window before interpreting zero.

    sum(increase(omi_conversations_v3_pending_age_seconds_count{service_name="backend-sync"}[1h]))
    - sum(increase(omi_conversations_v3_pending_age_seconds_bucket{service_name="backend-sync",le=~"3600(\\.0)?"}[1h]))
    
  4. At most one outline call per conversation. Use the following for total outline attempts. The counter has no conversation key, and a committed reconcile can affect several conversations. An exact gate needs a correlated aggregate of outline attempts grouped by conversation, then the maximum count across conversations. Do not substitute outlines per reconcile.

    sum(increase(omi_conversations_v3_model_calls_total{service_name="backend-sync",kind="outline"}[1h]))
    
  5. Late-rewrite cost share <=5%. Use the following for persisted rewrite volume. The gateway ledger is the cost source. The exact gate needs the sum of gateway cost attributed to late rewrites divided by total v3 builder cost for the same hour and scope. This write counter contains neither cost nor a correlation key. No exact query for this ratio was verified. The rollout remains gated pending an attributable aggregate.

    sum(increase(omi_conversations_v3_summary_writes_total{service_name="backend-sync",kind="rewrite"}[1h]))
    

Terminal failure and race counters are available for diagnosis. This PR is scoped to the five SCA-2918 gates. Blocked/adopted counters and visibility/summary latency are separate runbook readouts. Labeled counters are registered by the existing metrics module and become visible when their producer observes a label value.

Verification

The scrape contract exercises all six families and rejects an arbitrary v3 family.

Failure-Class: FC-metric-dropped-by-scrape-allowlist

🤖 Generated with Claude Code

Failure-Class: FC-metric-dropped-by-scrape-allowlist

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T15:37:51.919327Z 9980247 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Superseded by #26307. GitHub stopped syncing this PR's head: it is stuck at 9980247 while the branch moved to 8197954 with the panel fixes. Closing this one.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant