Skip to content

chore(charts): serve listen from velma, then soniox, then deepgram - #12462

Merged
mdmohsin7 merged 11 commits into
mainfrom
rex/chart-stt-order
Aug 31, 2026
Merged

mdmohsin7 merged 11 commits into
mainfrom
rex/chart-stt-order

Conversation

@mdmohsin7

@mdmohsin7 mdmohsin7 commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Problem

The serving order was pinned to Deepgram-first in nine places:

dg-nova-3,modulate-velma-2,parakeet

That no longer matches how production runs, and the next helm upgrade or Cloud Run
deploy would silently revert live serving to Deepgram-primary.

The chart values are not the source of truth — DEFAULT_MODELS_BY_SURFACE in
config/stt_provider_policy.py is, and both test_backend_listen_helm_defaults.py and
validate-backend-runtime-env.py assert every deployment matches it. Changing the charts
alone fails those contracts, so this changes the policy and propagates it everywhere.

New order

modulate-velma-2,soniox,dg-nova-3,parakeet
  • Velma primary — lowest cost per hour of audio.
  • Soniox second — with mid-session failover (fix(listen): fail a live STT session over to the next provider #12459) merged, a Velma error frame now
    hands the stream to Soniox instead of ending the session. This slot is what that fix
    relies on.
  • Deepgram last — kept deliberately. Selection requires a dg-* entry in the list, so
    removing it would strip BYOK users of Deepgram entirely.
  • Parakeet dropped — streaming Parakeet is English-only and live sessions are
    overwhelmingly auto-detect, so it was never selected on this surface.

Everything updated

file role
config/stt_provider_policy.py policy source of truth
charts/backend-listen/{prod,dev} live listen serving
charts/pusher/{prod,dev} pusher serving
deploy/runtime_env/{_base,dev.overlay,prod.overlay}.yaml deploy sources
deploy/runtime_env.yaml regenerated via compose_runtime_env.py
deploy/_generate_runtime_env_sources.py generator default
.github/workflows/gcp_backend_pusher.yml pusher deploy workflow
4 unit test files expectations that hardcoded the old order

validate-backend-runtime-env.py --env prod and --env dev both pass, and the affected
contract tests pass under test.sh.

Parakeet stays last

Dropping Parakeet broke the explicit client route: /v4/listen?stt_service=parakeet
is honored only while Parakeet is present in the model list, so removing it silently
disabled that route. The hermetic e2e wire-contract test caught this. It is now last in
the chain — never selected by default (streaming Parakeet is English-only and live
sessions are overwhelmingly auto-detect), but still reachable on request.

Pusher

Included because the validator requires every GKE workload's STT_SERVICE_MODELS to
equal the streaming policy. Its DEEPGRAM_SELF_HOSTED_ENABLED=true /
DEEPGRAM_SELF_HOSTED_URL=https://dg.omi.me settings are stale: there is no
deepgram-self-hosted deployment in the cluster, the endpoint does not accept
connections, and pusher logs show no Deepgram traffic. Nothing is lost by reordering it.

Failure-Class: none

The fix: commit in this branch repairs a regression introduced earlier in the same
branch (dropping Parakeet disabled the explicit ?stt_service=parakeet route) and caught
by the hermetic e2e wire contract before merge. No shipped behaviour ever carried the
defect, so there is no production failure class to record.

Product invariants affected

  • INV-DATA-1 — production-family customer data-plane continuity. Unaffected: this
    changes STT provider ordering only. No Firebase project, Firestore database, account
    universe, or serving endpoint changes; every environment keeps the plane it already had.
  • INV-MEM-4 — canonical promotion is the sole Long-term authority. Unaffected: no
    intake, consolidation, or promotion path is touched. Transcript content reaches memory
    by the same route regardless of which provider produced it.

@mdmohsin7
mdmohsin7 merged commit f125bb8 into main Aug 31, 2026
37 checks passed
@mdmohsin7
mdmohsin7 deleted the rex/chart-stt-order branch August 31, 2026 07:36
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