Repository navigation
SCA-2918: Export conversations v3 builder metrics from backend-sync - #26299
Git-on-my-level wants to merge 1 commit into
Conversation
Failure-Class: FC-metric-dropped-by-scrape-allowlist Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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:
Before your next PR, please skim:
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! |
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.
Reconcile 5xx <1%. Count request logs using this Logs Explorer filter over the hour. Divide the count with
httpRequest.status>=500 AND httpRequest.status<600appended by the count using the base filter.Committed reconciles. Require a positive result from:
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 == trueandv3_pending_since < now - 1h, restricted to the user recording rows counted by the sweep. Confirm the sweep ran during the window before interpreting zero.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.
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.
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