Repository navigation
fix(listen): enforce globally bounded Parakeet routing and fallback - #10070
Merged
Git-on-my-level merged 2 commits intoJul 20, 2026
Merged
Git-on-my-level merged 2 commits into
Git-on-my-level merged 2 commits into
Conversation
Git-on-my-level
force-pushed
the
fix/parakeet-routing-admission
branch
from
July 20, 2026 01:26
70a140e to
93c1df3
Compare
…mission control (BasedHardware#10048) Failure-Class: none Modulate Velma-2 is the explicit safe primary for all STT surfaces (streaming, pre-recorded, PTT). Parakeet is the bounded-capacity secondary, gated by a new admission controller before connection attempt. Changes: - Reorder DEFAULT_MODELS_BY_SURFACE: modulate-velma-2 first, parakeet second - Add config/parakeet_admission.py: try_admit/release with concurrent cap (PARAKEET_MAX_CONCURRENT, default 30) and allocation percentage (PARAKEET_ALLOCATION_PCT, default 100, read at request time) - Wire admission gate in get_stt_service_for_language; denied requests fall through to Modulate with low-cardinality fallback telemetry - Add capacity_full/allocation_zero/allocation_rejected to ALLOWED_REASONS - Call release() in both ParakeetStreamingSocket.drain_and_close and ParakeetWebSocketSocket.drain_and_close for counter safety - Add 24 focused unit tests covering: retired-provider safety, capability mismatch, allocation states (0/canary/100), capacity exhaustion, config-incomplete health fallback, and telemetry reason validity - Update existing Deepgram serving-disabled and backoff tests for new Modulate-primary ordering - Add traffic-only mitigation runbook (docs/runbooks/) Verification: 103 tests passed in 0.96s (test_parakeet_admission + test_deepgram_serving_disabled + test_streaming_deepgram_backoff) make preflight: 9/9 checks passed No new orphaned TODO/FIXME markers
Git-on-my-level
force-pushed
the
fix/parakeet-routing-admission
branch
from
July 20, 2026 04:28
943c97f to
1d59063
Compare
Move live-stream admission to the Parakeet GPU owner, make the deployed Modulate-first route deterministic, and cover construction fallback plus teardown ownership across listen and PTT paths. Failure-Class: FC-split-mutation-authority
Git-on-my-level
force-pushed
the
fix/parakeet-routing-admission
branch
from
July 20, 2026 04:37
1d59063 to
093b880
Compare
Member
Author
|
Rebased onto latest main and fixed all three previously failing checks.
All CI checks now pass: Backend unit suite, Hermetic Backend E2E, Listen Pusher Stack Gauntlet, Sync Cloud Tasks Stack Gauntlet, Hygiene, Desktop Swift CI. |
Closed
8 tasks
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
Supersedes the accidental off-scope PR head and repairs the live-transcription routing incident at the provider boundary.
Root cause and durable guard
Parakeet became the global first-choice STT provider while it could safely serve only one bounded GPU pool. Per-listener admission could not protect that shared pool. The durable owner is now the Parakeet service itself: it enforces the global service cap before constructing a stream, and clients fail over to Modulate when admission or connection fails.
Verification
Failure class
Failure-Class: FC-split-mutation-authority
Follow-up / rollout
This PR changes source and deployment contracts only. It does not deploy or merge automatically. Before a production rollout, validate bounded real traffic: capacity denial and unhealthy Parakeet must route to Modulate, and the active-stream cap must remain below the configured Parakeet service capacity.