Skip to content

fix(stt): contain live-window faults to GPU replicas - #23508

Merged
Git-on-my-level merged 9 commits into
mainfrom
lane/adm4
Oct 24, 2026
Merged

Git-on-my-level merged 9 commits into
mainfrom
lane/adm4

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

2026-10-24 17:13:37 UTC — NOT SHIP / blocked handoff. Published head 2f364978ca1b7a786e62bb8217cdb79d795e5813 has495focused 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_ENABLED ships 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_total retains error_class and adds normalized reason=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):

  • Parakeet: 21 selection trips across 19 listener pods, all provider_5xx. /v1/transcribe ILB 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: four modulate_serve_error frames 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.
  • Extended24-hour check at the same cutoff: the backend-listen-metrics job 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:

  • Published head 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.
  • Every normal push gate passed:36shared preflight checks(1078.76seconds), enforced Pyright0errors(167seconds),19runtime-image closures(235seconds), and306selected unit tests(86seconds). No suppression, size exception, guard threshold, allowlist or skip flag changed.
  • Exact-head GitHub Hermetic Backend E2E and Backend unit guardrails succeeded. The six unit shards and aggregate failed before pytest at the same five Pyright diagnostics in main-side retrieval/Wrapped changes outside this PR. CI checked merge1d882247f6(2f intoe86cda5). Producer changes are#23433/fix(backend): harden goal suggestions, filter locked Wrapped 2025 items, and strip BLE firmware padding (#21871) #23434; CI run40113372612 contains the exact diagnostics. CI is NOT green; no blind rerun or skip exception was used.
  • Both authorized read-only review rounds completed. Round2 identified the first-text callback ordering above, corrected in2f with red/green proof. The review cap requires a scoped lead ruling for further review; no third round or independent SHIP verdict for2f is claimed. The automated review threads have implementation/test replies and are resolved; overall approval remains blocked.
  • Earlier pressure/metrics seam testing with adm2localfe563c1 passed532; it is not qualification of the latest combined train. The read-only merge-tree of4009 with fetchedmain70a78b3 was clean. The lead owns combined-train/live acceptance and next release disposition; the13:00Z T3 freeze was missed.

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

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-24T20:45:10.312886Z 41dff86 New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread backend/utils/stt/parakeet_window.py Resolved
Comment thread backend/utils/stt/parakeet_window.py Resolved
Comment thread backend/utils/stt/window_replicas.py Resolved
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.
@Git-on-my-level
Git-on-my-level merged commit 18fc1d6 into main Oct 24, 2026
57 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/adm4 branch October 24, 2026 20:59
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