Repository navigation
lane 8: STT route in the admission policy; BYOK funded once; C8 sim goldens - #22536
Merged
Merged
Conversation
…d once; C8 sim goldens
- BatchUnitPolicy gains contract (c)'s lane-8 fields stt_route / provider_reason /
provider_service (defaults parakeet/none/none, closed validation; a malformed
stored route reads as the default, i.e. no BYOK funding claim).
- intake.accept_upload stamps the route it actually takes (provider units: the
provider route; Parakeet units keep only the BYOK funding decision).
- admission.admitted_as_byok reads job['policy'] (E1 never writes policy into
projection_binding), so a BYOK GPU unit is no longer re-held by the keyless
dispatch re-check. Lane 6 signed off (bus 10-19 14:08Z).
- pipeline_sim runs the real C8 route, admission enqueue hook and
ProviderSttStage (SimConfig language/byok/legacy_sync); GOLDEN_CONFIGS
provider_stt_{ja,unsupported,byok} replace the hand-authored pending traces
and the strict xfail. role_policy golden changes only by the three new
fields and policy_id.
- Lane 6's end-to-end test: real intake -> real admit -> pull -> authorize.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
… the STT route fields The route fields enter BatchUnitPolicy's identity only when non-default, so a row stamped before #22536 recomputes its stored policy_id and default-route policies hash exactly like the 4f43b2d shape. A frozen 4f43b2d reader fixture proves a revert ignores the new keys and keeps admission decisions. (Lead + Sol conditions on #22536.) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lr/08-byok-policy
Git-on-my-level
added a commit
that referenced
this pull request
Oct 20, 2026
…2842 Main #22842 (fresh uploads within 2 min) added fresh_capture to final jobs and moves admission priority 0 -> 1, and regenerated main's goldens. Integration's provider_stt_{byok,ja,unsupported} goldens (lane 8, #22536) predate it. The diff is only those two fields (21 priority 0->1, 7 fresh_capture), the same pattern as main's own regeneration. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
BatchUnitPolicygains contract (c)'s lane-8 fieldsstt_route/provider_reason/provider_service(defaultsparakeet/none/none; closed validation; a malformed stored route reads as the default = no BYOK funding claim, fail closed).intake.accept_uploadstamps the route it actually takes (dataclasses.replace, sopolicy_idcovers it). Provider units record the provider route; Parakeet units keep only the BYOK funding decision.admission.admitted_as_byokreadsjob['policy']. E1 (E1: batch pipeline policy snapshot #22448) never writes policy intoprojection_binding, so today's check could never seebyokand BYOK GPU units were re-held every lease when cap dispatch enforcement is on.pipeline_simruns the real C8 route, admissionenqueuehook andProviderSttStage(SimConfig.language/byok/legacy_sync).GOLDEN_CONFIGSprovider_stt_{ja,unsupported,byok}replace the hand-authored pending traces and the strict xfail.Branch
lr/08-byok-policyintointegration/legacy-retire.Lane / contract
Lane 08, contract (c) (lane-8 policy fields), (f) n/a. Owner sign-offs for edits to other lanes' files:
utils/batch_pipeline/admission.py+tests/unit/test_batch_pipeline_admission.py(bus 10-19 14:08Z).config/policy/batch.py(Sol/E1, S4): additive contract (c) fields Sol was asked to add in E1: batch pipeline policy snapshot #22448 (lane 6 plan, lead relay); posted to lead as PROCEED-unless-objection 13:56Z, no objection.role_policy.json(E1 golden): changes only by the three new fields andpolicy_id.Product invariants affected
This change does not alter the Firebase/Firestore project or serving endpoints.
Lead + Sol conditions (15:52Z)
test_a_pre_field_row_keeps_its_stored_policy_id_and_decisionspins a verbatim 4f43b2d-stamped row and its literal id; default-route policies hash exactly like the old shape (parametrized).role_policy.jsonnow changes only by the three default-valued keys (no policy_id change).from_dict(old_row)to the frozen old reader's result.tests/unit/fixtures/pre_lane8_batch_unit_policy.pyfreezes the 4f43b2dPolicyPart+BatchUnitPolicy(identical on integration a5cee32). It reads rows lane 8: STT route in the admission policy; BYOK funded once; C8 sim goldens #22536 writes, ignores the new keys, keeps the admission decisions and recomputes the same id for default-route rows.resolve_route(language, byok)(stored language plus the request's BYOK header). So nothing is added to the guard's owned-key set.Verification
Unit layer, m5, serial through omi-heavy, at bb3541b on integration a5cee32:
test_batch_provider_stt 78 (incl. route-field validation, intake stamp x6, lane 6's e2e: real intake -> real admit -> pull -> authorize with enforcement on and sync_allowed=False: BYOK allowed and gate not called; non-BYOK control held 60s; the e2e fails against the old binding read), test_batch_pipeline_admission 17, test_pipeline_characterization 20, test_batch_unit_policy 59 (incl. env/resolution guard), test_batch_stage_policy 18, pipeline_sim/scenarios/revision + batch_pipeline_intake + cap_hold_batch_admission + record_admission_review_fixes + legacy_dark 136 (legacy_dark's counter test is order-polluted only in a combined multi-file run; 43/43 alone).
Not run locally: full suite (CI / m1).
Behaviour
onnothing routes differently; the only behaviour change is that BYOK GPU units are no longer re-held by the keyless dispatch re-check (David 10-19: BYOK routes like everyone). Non-BYOK units keep today's re-check.draininganywhere; the ladder-budget debit precondition (lane 6) is unchanged.Rollback
Revert the commit. Stored rows with the new fields stay readable by the pre-PR code (from_dict ignores unknown fields).
Failure-Class: none
Line-Count-Exception: backend/routers/sync.py | 3820 -> 3857 | lane 08: not touched by this PR; growth comes from integration vs main base
🤖 Generated with Claude Code