Repository navigation
Description
Incident
During the 2026-07-18 transcription incident, #9936 retired hosted Deepgram but also made parakeet,modulate-velma-2 the default real-time provider order. A production GKE rollout consequently sent the mobile fleet to a single Parakeet GPU pod with practical capacity around 25–30 concurrent streams; observed active streams exceeded 100.
The deploy workflow subsequently failed a Cloud Run runtime-env validation, but it did not roll back the completed GKE routing mutation.
Problem
Provider enablement, provider ordering, and provider traffic allocation are conflated. An ordered STT provider list answers which provider one request chooses; it does not constrain how much production traffic that provider may receive.
Retiring Omi-paid hosted Deepgram must not silently become a production routing migration or a capacity experiment.
Scope
Create a durable live-STT routing policy that treats these as independent controls:
- provider enabled/retired status;
- per-surface capability (language, codec, streaming vs prerecorded vs PTT);
- explicit primary/fallback provider;
- bounded provider admission/capacity budget;
- rollout allocation for a provider, separate from eligibility;
- health/circuit state that immediately falls back to Modulate when Parakeet is saturated or unhealthy.
Provider retirement must be subtractive: removing a provider must preserve the incumbent explicitly approved route, or fail deployment if no approved route remains. It must not implicitly promote another eligible provider to 100%.
Acceptance criteria
- Routing policy has separate representations for provider eligibility, default route, fallback route, rollout allocation, and capacity/admission limits.
- Parakeet has an enforced live-stream capacity budget below tested safe capacity; excess or unavailable requests fall back to Modulate without queueing indefinitely.
- The capacity/fallback decision is emitted through the shared fallback telemetry with bounded labels and is visible in the resilience dashboard.
- Changing a real-traffic default provider, increasing a provider allocation, removing its fallback, or changing a provider capacity limit is classified as a traffic migration and requires explicit rollout evidence.
- Retiring hosted Deepgram alone cannot change the production primary provider.
- Contract tests cover: retired-primary behavior, capacity exhaustion, provider-health failure, multilingual capability mismatch, and a 0%/canary/100% allocation transition.
- A real traffic or production-like beta exercise proves fallback under saturation before Parakeet can receive non-zero broad production allocation.
- The runbook documents immediate traffic-only mitigation (set allocation to 0 / force Modulate) without a code deploy.
Non-goals
- Replacing or renegotiating Modulate in this issue.
- Increasing Parakeet GPU fleet capacity without the routing guardrails above.
- Redesigning the entire backend release system (tracked separately).
Evidence
- PR chore(backend): disable hosted Deepgram serving #9936: chore(backend): disable hosted Deepgram serving #9936
- Partial prod deploy that successfully rolled out GKE
backend-listenbefore later failing validation: https://github.com/BasedHardware/omi/actions/runs/29641667073
Activity
fix(listen): enforce durable live-STT routing policy with Parakeet ad…
fix(listen): enforce durable live-STT routing policy with Parakeet ad…
Git-on-my-level commentedon Jul 23, 2026
Live + main verification (2026-07-23) — leaving open
Durable policy work landed on
mainvia #10070 (f0b42e26, merged 2026-07-20), but production GKE has not absorbed it, so acceptance is not met.What landed on
main(code/tests)origin/mainbackend/config/stt_provider_policy.pyowns enablement +DEFAULT_MODELS_BY_SURFACE(modulate-velma-2,parakeet); Deepgram cloud retired (PROVIDER_SERVING_SURFACES[deepgram_cloud]=∅)PARAKEET_STREAM_CAPACITY/PARAKEET_STREAM_ALLOCATION_PERCENTin Parakeet Helm +backend/parakeet/admission.pyrecord_fallbackon Parakeet→Modulate path inutils/stt/streaming.py; circuit inprovider_resilience.pyconfig/deployment-setting-classification.json; no dedicated “traffic migration evidence” gate beyond normal deploybackend/docs/runbooks/parakeet-stream-capacity.mdsays changing capacity/allocation requires a Parakeet Helm rollout (“not a live runtime switch”)Live prod (
prod-omi-gke/prod-omi-backend) — still unsafe/staleNotes:
modulate-velma-2,parakeet, but the live Deployment does not.b0b1b69is before fix(listen): enforce globally bounded Parakeet routing and fallback #10070 (f0b42e26); Parakeet image predates admission entirely.Remaining to close this issue
admission.py).STT_SERVICE_MODELS=modulate-velma-2,parakeet(and matching prerecorded order).0or Modulate-forced) without waiting on a full code rebuild — or explicitly rewrite that AC if Helm-only is the intended hatch.Leaving open until prod config matches the separated controls and the soak/runbook gaps above are closed.
aryanorastar commentedon Aug 6, 2026
VERIFY — MAINTAINER-OPS / prod absorb (no contributor PR)
Re-checked 2026-08-06 against David's 2026-07-23 leave-open note and current
main.Already on
main(via #10070):backend/config/stt_provider_policy.py— eligibility vs defaults (Deepgram cloud retired; primary order modulate-first)backend/parakeet/admission.py+ HelmPARAKEET_STREAM_CAPACITY/PARAKEET_STREAM_ALLOCATION_PERCENTbackend/docs/runbooks/parakeet-stream-capacity.md(Helm-gated mitigation, not a live runtime switch)Still open by design (not a safe fork PR):
backend-listenon prod GKE so live env matches the separated controls (David's check showed listen still on pre-fix(listen): enforce globally bounded Parakeet routing and fallback #10070 image / staleSTT_SERVICE_MODELS, Parakeet missing capacity env).I'm not opening a parallel routing PR: the durable policy already landed; remaining acceptance is deploy/ops + soak under maintainer ownership. Happy to help on a maintainer-requested follow-up (e.g. runbook AC rewrite or contract-test matrix) if that's useful.
undivisible commentedon Oct 15, 2026
Already fixed on main: PR #10070 establishes Modulate primary, bounded Parakeet admission, fallback/circuit handling; main’s STT policy, tests, telemetry, and runbook preserve those separate controls.
Closing. Reopen if you still see it on the latest build.