Skip to content

fix(stt): type unclassifiable dial/reopen failure reasons instead of the other bucket - #23248

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/p59-soniox-reason-other
Oct 22, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/p59-soniox-reason-other

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Soniox leg deaths with reason=other rose from 0.5 to 37.5/h after #23147's
live-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 transport
failure and no drain timeout behind it.

Root cause: 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 carrying that latch reported reason=other on every later
failover hop. The emitting code is unchanged since before the catch-up train;
the catch-up removed the send_queue_full deaths (~123/h) that used to end
those 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:

  • A RejectedStream is our own refusal of a dial: a reason the live
    vocabulary cannot name (a selection sentinel raised through a nested chain,
    any unclassified token) now types as config_incomplete, censored for
    provider evidence exactly like the other bucket it replaces
    (dial_failure_reason in live_chain.py).
  • The idle wrapper's unclassifiable reopen failures degrade to
    connection_lost, matching the documented rule for unknown provider shapes
    (soniox_idle.py).
  • normalize_live_stt_reason never returns the other token as a default;
    the bucket stays reserved for record_fallback's own label bounding.
  • failure_reason no longer forwards a wrapper's untyped startup latch
    verbatim (defensive: an unlatched ParakeetConnectionError maps to
    provider_5xx).

No new metric cardinality: config_incomplete and connection_lost are
existing labels in both vocabularies. Provider benching semantics are
unchanged — both replacement tokens are censored for provider evidence, like
other was.

User-visible impact

None from these hops. All observed events were outcome=degraded inside a
recovery walk that continued and adopted a successor; no
reason=other outcome=exhausted events occurred after the rollout. The
catch-up change itself worked as intended (send_queue_full 123 -> 0.9/h,
replay_ring_overflow 35 -> 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-reason
    matrix (selection sentinels, unclassified tokens, provider classes), the
    normalize_live_stt_reason guard, and a chain-level test asserting a
    sentinel-fed dial failure emits typed hops with no other anywhere.
  • tests/unit/test_soniox_idle_close.py: a failed reopen latches a typed
    death reason, never other.
  • Regression sweep via 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.

View guided diff Turn on auto-fix

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

chatgpt-codex-connector Bot commented Oct 22, 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 ✅ Completed 2026-10-22T06:14:51.294480Z 280ac21 PR opened
ℹ️ 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.

@Git-on-my-level
Git-on-my-level merged commit 22dbce3 into main Oct 22, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/p59-soniox-reason-other branch October 22, 2026 06:18
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