Repository navigation
fix(stt): type unclassifiable dial/reopen failure reasons instead of the other bucket - #23248
Merged
Merged
Conversation
…the other bucket The candidate-dial handlers in connect_configured_chain and the Soniox idle-reopen latch normalized failures they could not classify with default='other', latching the fallback metric's bucket token onto leg outcomes. A leg that later died carried reason=other into every failover hop. After #23147's live-tail catch-up removed the send-queue-full deaths that used to end those sessions first, the untyped latches became the largest Soniox death family (P59, 2026-10-22 train 72936c9: omi_fallback_event component=stt_live_session from=soniox to=soniox reason=other outcome=degraded rose 0.5 -> 37.5/h, with no vendor error frame or transport failure behind any of them). A RejectedStream is our own refusal of a dial, so a reason the live vocabulary cannot name now types as config_incomplete - censored for provider evidence exactly like the other bucket it replaces. The idle wrapper's unclassifiable reopen failures degrade to connection_lost, matching the documented rule for unknown provider shapes. normalize_live_stt_reason itself never returns the other token as a default, and failure_reason no longer forwards a wrapper's untyped startup latch verbatim. Delivery was not impaired: every observed hop was outcome=degraded inside a recovery walk that continued and adopted a successor. ## Failure class (fixes) Failure-Class: FC-typed-failure-collapsed-to-generic Product invariants affected: none
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.
Summary
Soniox leg deaths with
reason=otherrose from 0.5 to 37.5/h after #23147'slive-tail catch-up went live (train 72936c9, all 40 listen pods, 2026-10-22
03:26Z) and became the largest Soniox death family. Every event is the same
shape:
omi_fallback_event component=stt_live_session from=soniox to=soniox reason=other outcome=degraded, with no vendor error frame, no transportfailure and no drain timeout behind it.
Root cause: the candidate-dial handlers in
connect_configured_chainand theSoniox idle-reopen latch normalized failures they could not classify with
default='other', latching the fallback metric's bucket token onto legoutcomes. A leg carrying that latch reported
reason=otheron every laterfailover hop. The emitting code is unchanged since before the catch-up train;
the catch-up removed the
send_queue_fulldeaths (~123/h) that used to endthose sessions first, so the same sessions now walk deep enough to surface the
untyped latch (~8x amplification of a pre-existing path).
Fix — the untyped closes get typed reasons:
RejectedStreamis our own refusal of a dial: a reason the livevocabulary cannot name (a selection sentinel raised through a nested chain,
any unclassified token) now types as
config_incomplete, censored forprovider evidence exactly like the
otherbucket it replaces(
dial_failure_reasoninlive_chain.py).connection_lost, matching the documented rule for unknown provider shapes(
soniox_idle.py).normalize_live_stt_reasonnever returns theothertoken as a default;the bucket stays reserved for
record_fallback's own label bounding.failure_reasonno longer forwards a wrapper's untyped startup latchverbatim (defensive: an unlatched
ParakeetConnectionErrormaps toprovider_5xx).No new metric cardinality:
config_incompleteandconnection_lostareexisting labels in both vocabularies. Provider benching semantics are
unchanged — both replacement tokens are censored for provider evidence, like
otherwas.User-visible impact
None from these hops. All observed events were
outcome=degradedinside arecovery walk that continued and adopted a successor; no
reason=other outcome=exhaustedevents occurred after the rollout. Thecatch-up change itself worked as intended (
send_queue_full123 -> 0.9/h,replay_ring_overflow35 -> 3.8/h, chain exhaustion ~96 -> 4.7/h).Failure class (fixes)
Failure-Class: FC-typed-failure-collapsed-to-generic
Product invariants affected: none
Test plan
tests/unit/test_live_dial_failure_reason_typing.py(new): dial-reasonmatrix (selection sentinels, unclassified tokens, provider classes), the
normalize_live_stt_reasonguard, and a chain-level test asserting asentinel-fed dial failure emits typed hops with no
otheranywhere.tests/unit/test_soniox_idle_close.py: a failed reopen latches a typeddeath reason, never
other.BACKEND_UNIT_TEST_FILE_LIST+test.sh(nice -n 19): 127 tests across 23 affected files
(live chain, selection skips, resilient stream, replay delivery, fallback
observability, reason enums, recovery matrix, soniox idle/capture-axis,
reconnect budget/continuity) — all green.