Repository navigation
feat(batch): C8 provider-STT stage core (lane 8 slice 1, behaviour-neutral) - #22433
Merged
Merged
Conversation
…utral) Adds the batch provider-STT stage for languages Parakeet cannot serve, so batch never needs the legacy fallback for them: - resolve_route(): admission-time stt_route/provider_reason/provider_service (contract (c) fields). Unknown language is 'multi' -> Parakeet, as legacy. BYOK never changes the STT route (sync prerecorded never used BYOK keys). - enqueue_in_transaction(): writes a provider unit as provider_pending with merge_pending set, outside the GPU DRR ring, keeping the owner revision fence and late-capture watermark. Intended for an admit() enqueue hook. - ProviderSttStore/ProviderSttStage: paid-once job-row intent (pending -> running CAS mints the token), one Modulate call with client retries disabled, deterministic per-token result object, settle to the same result_ready transition Scheduler.complete performs. Redelivery reconciles, never re-spends; vendor failure and abandoned intents settle failed_held (never 'held', so quarantine recovery cannot pay twice). Nothing imports the new module yet: intake wiring, the queue consumer and the router follow once the lane-1 stubs and the admit() hook land. Expected C8 traces are pinned under pipeline_sim_goldens_pending/ with a strict xfail until the sim configs exist. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…stt.resolve_route Behaviour-neutral at legacy_sync 'on': unknown and 'multi' languages keep today's legacy fallback explicitly, and a parametrized test pins the old and new conditions equal for every language class with and without BYOK. This is the seam the C8 provider route replaces in draining/dark. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…U budget Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Lane 8 (admission completeness), slice 1 of C8: the batch provider-STT stage core. Behaviour-neutral: nothing schedules or serves a provider unit yet.
What
utils/batch_pipeline/provider_stt.py(new):resolve_route(): admission-timestt_route/provider_reason/provider_service(contract (c) fields). Unknown language ismulti, so it routes to Parakeet as legacy does. BYOK never changes the STT route, because sync pre-recorded STT has never used a BYOK key (only Modulate and Parakeet serve it).enqueue_in_transaction(): writes aprovider_pendingunit withmerge_pending=True, outside the GPU DRR ring, so no GPU pull can lease it. OrderedMerge still holds the owner's later captures behind it. It keeps the owner revision fence and the late-capture watermark. It is written for anenqueue=hook inadmit(), which has been requested from E1.ProviderSttStore/ProviderSttStage:pending → runningmints the paid-once intent token.attempts=2), as in quarantine recovery, and the result is written to a deterministic per-token object.result_readytransition thatScheduler.completeperforms.failed_held, neverheld, so quarantine recovery cannot pay a second time.utils/batch_pipeline/intake.py: the language-fallback decision now goes throughresolve_route. Atlegacy_sync='on'it is the same condition, pinned by a parametrized equivalence test.tests/unit/fixtures/pipeline_sim_goldens_pending/. They have a strict-xfail sim comparison until the sim configs exist.test_pipeline_characterizationrequires every file inpipeline_sim_goldens/to have a config, which is why they sit in a separate directory for now.Verification (local, m5, targeted, serial)
pytest tests/unit/test_batch_provider_stt.py tests/unit/test_batch_pipeline_intake.py tests/unit/test_sync_live_stub_intake.py tests/unit/test_pipeline_characterization.py: all pass, plus 3 strict xfails.admit()transaction, the realScheduler,OrderedMergeandRecoveryStorefences, and the privacy fence, ontesting.pipeline_sim.store.SimStore.scripts/typecheck.shreports 0 errors.Not in this slice (next)
/v2/batch-pipeline/provider-stt/run. These wait for the lane-1 stubs.live_uploadowner choice.merge.pystampingrecovery_versionfor provider units.Design note and contract issues: in the swarm run dir (lane 8).
🤖 Generated with Claude Code