Repository navigation
chore(gmp): keep #23388 cap-enforcement counters in the sync allowlist - #23492
Merged
Merged
Conversation
Codex Review SummaryThis 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
#23388 enforces finite allowances before sync and batch cloud spend, and its watch readout (
backend/docs/stt-cap-dispatch.md) isomi_stt_cap_dispatch_decisions_total{path,outcome,reason}plusomi_stt_cap_provider_audio_seconds_total{path,outcome,provider,allowance}. The sync fleet's GMP collector keep-list (backend/deploy/cloud_run_gmp_sync.yaml) drops both families, so onbackend-sync,backend-sync-backfill, andbackend-integration— the services that make essentially all sync/batch provider-spend decisions — nobody can see whether the cap is holding or refusing. This adds exactly those two_totalfamilies to the keep regex, updates the runbook's family list, and extends the coverage test. Nothing else widens.Series cost (all closed-enum labels, no free strings):
synclane meters on this fleet (livenever fires there), 2 outcomes × 5 providers × 2 allowance states = ≤20.Worst case ≈ 70 new series per instance, realistically 20–30, against ~270 already kept. The bridge exporter's sync prefix list is deliberately untouched: its rule is one family per in-cluster consumer, and this watch queries GMP directly.
Product invariants affected
none
How it was verified
BACKEND_UNIT_TEST_FILE_LIST=<file with tests/unit/test_attach_cloud_run_gmp_sidecar.py> BACKEND_PYTEST_WORKERS=4 bash backend/test.sh— 97 passed, includingtest_sync_scrape_retains_exporter_and_direct_sentinel_consumersasserting both new families survive relabeling whileomi_stt_cost_routing_settlements_total,omi_product_event_total, and the live-STT fallback drops still hold._createdcompanion series stay dropped, matching the existingstt_cap_recovery_reconciliation_totalconvention.Tests
test_attach_cloud_run_gmp_sidecar.py::test_sync_scrape_retains_exporter_and_direct_sentinel_consumersextended with the two families — that enumeration is exactly the check that would have caught this gap.UI evidence
UI-Evidence: none -- backend collector config, runbook, and test only; no UI surface changed.
Failure class (fixes)
Failure-Class: none
🤖 Generated with Claude Code