Repository navigation
fix(stt): contain live-window faults to GPU replicas - #23508
Merged
Merged
Conversation
Use fresh ready GPU identities, bounded adaptive pod quarantine and one alternate-pod retry inside the existing POST and first-text budgets. Preserve empty answers, replay anchors, account gates and a default-on rollback switch. Expire idle selection gauges without changing breaker admission. Failure-Class: FC-recoverable-provider-failure-terminal
Keep detailed error_class and add auth/quota/5xx/latency/no_text/connect groups, preserving capacity and unknown evidence honestly. Initialize each known class/reason pair before the first trip and verify real transitions. Failure-Class: FC-recoverable-provider-failure-terminal
Condense the circuit-trip explanation so the normalized reason dimension does not grow an existing oversized product file.
Pass the public state snapshot into VIP grace admission instead of reading a private streaming global. Exercise the closed, half-open and open states through that interface, including a replaced breaker in the regression. Keep existing oversized source files at their line-count baselines. Failure-Class: FC-recoverable-provider-failure-terminal
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d63f10b9ef
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Route the new WINDOW_REPLICA_ATTEMPTS and circuit-trip reason labels through reason_label() with closed enums so the reason-label ratchet (tests/unit/test_reason_label_enums.py) passes with no new debt allowances: - _post_replicas retry outcomes are LiveSttReason members (timeout, provider_5xx, empty_streak); emitted label values are unchanged. - post_service_window outcomes move to a new ServiceWindowOutcome enum in utils/observability/reasons.py; the service_* values are unchanged. - raise_if_non_replica_error refusals pass through reason_label with LiveSttReason; all four refusal values are existing members. - circuit_trip_reason joins CLOSED_HELPERS after review: every return path is a fixed auth/quota/5xx/latency/no_text/connect/capacity/ unknown member, and '5xx' cannot join a reasons.py enum (values must be lower_snake). No metric label value changes and no dashboards/queries are affected; parakeet_window.py stays under the 1500-line file ratchet.
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.
2026-10-24 17:13:37 UTC — NOT SHIP / blocked handoff. Published head
2f364978ca1b7a786e62bb8217cdb79d795e5813has495focused test passes and passed every normal push gate. Current-head E2E and backend guardrails are green, but six unit shards fail on five main-side Pyright diagnostics. The R2 source finding is fixed with red/green proof; a lead ruling is required for further review. The T3 freeze was missed. No merge, deployment, credential or quota change occurred.Live-window HTTP failures currently open a listener's whole Parakeet family circuit, so a stale load-balancer backend can send unrelated English audio onto paid vendors. Route internal HTTP windows directly to fresh, DNS-ready GPU pods and quarantine only the contacted pod (120/240/300 seconds, one half-open POST per listener/pod pair). Retry once on a distinct pod within the original POST and first-text budgets; retry model-empty output once per empty episode without advancing audio/replay anchors or treating silence as an outage.
PARAKEET_WINDOW_REPLICA_RECOVERY_ENABLEDships on. Set false/0/off to restore service-VIP routing, no replica retries and the previous family breaker behavior for new sockets. Account/auth/quota, rate limits, signalled queue pressure, local semaphore waits and invalid input never retry. Failed attempts remain in the new bounded replica-attempt metric; successful recovery uses shared fallback telemetry. An idle selection gauge now expires when its cooldown expires, without changing breaker admission.omi_stt_provider_circuit_trip_totalretainserror_classand adds normalizedreason=auth|quota|5xx|latency|no_text|connect; capacity and unknown evidence have explicit buckets. Zero baselines include the mapped reason, and tests pin actual trip transitions and each cause group. Existing queries that aggregate by provider/kind/error_class work across mixed listener revisions; wait for full rollout before requiring the new label.adm2 integration: separate fresh DNS membership from pressure-sample routing eligibility, so temporary metrics failures cannot erase a DNS-ready pod's quarantine. Both accessors honor its unavailable-discovery flag. An active pod-scoped socket may make an initial VIP POST only before any direct-pod attempt, when fresh discovery is absent and the pressure owner's public admission check still permits bounded cached grace. Later windows retain the no-VIP fence. This path never retries the VIP or renews the grace timestamp;
service_*outcomes expose it.Production investigation (ro-prod, aggregate infrastructure evidence only; 2026-10-23 23:45–2026-10-24 05:45Z):
provider_5xx./v1/transcribeILB logs have 20 HTTP503s (15 backend_connection_closed, 5 failed_to_connect_to_backend) and one HTTP500. Failed connects line up with GPU shutdowns at02:57Z,03:12Z and05:11Z. HTTP500 matches a NeMo single-feature-frame normalization exception on one GPU; exact failed-request-to-pod mapping is unavailable in ILB logs.modulate_serve_errorframes say Unable to complete the request; two trips are connection losses. No account/auth/budget trips in this window. No credentials, quota, funding or production configuration changed. The existing account cooldown remains30minutes; existing selection starts180seconds and escalates, rather than a flat30minute bench.backend-listen-metricsjob has53 serving-fault and19 connection-loss transitions, no Modulate account trips or failed connects. A targeted139-entry log read was untruncated:55 vendor error frames all say Unable to complete the request, with no auth/402/quota/rejected-connect signature. Actual credit balance and auto-reload are unverified because vendor billing access is unavailable; no account repair or change is proposed from these samples.Validation:
2f364978ca1b7a786e62bb8217cdb79d795e5813, independently matched by remote Git advertisement and clean local HEAD.495focused tests passed across8 files. The real-pump regression fails at the expected quarantine assertion on4009, then passes after classifying its first-text deadline as owned timeout evidence; external cancellation stays non-outage evidence. Window source1496/1497frozen lines.The new integration regression executes the managed live leg through VAD, window POST, alternate pod and transcript emission, proving one transcript and no vendor dial. Other cases cover real outages, cancellation, stale generations, single probes, bounds, cooldown ladder, account conditions, pressure, original deadlines and kill-switch rollback. Local hermetic checks do not establish production transcript quality or reduced Soniox hours; the lead owns the T3 listen deployment and live first-text/no-text/vendor-hours readback with adm2. No workflow or production mutation is included.
Product invariants affected
none
Failure-Class: FC-recoverable-provider-failure-terminal