Repository navigation
SCA-3691: retire the separate audio merge worker phase - #26026
Merged
Git-on-my-level merged 7 commits intoNov 22, 2026
Merged
Conversation
AUDIO_ARCHIVE_SEPARATE_MERGE_ENABLED and AUDIO_MERGE_WORKER_URL are kill rows in the flag registry (David's 2026-11-17 bulk ruling): dark for five weeks, no separate merge worker was ever provisioned, and the worker URL is empty on every serving surface (Cloud Run manifest and the prod/dev listen and pusher charts), so the dispatch always resolved to AUDIO_MERGE_HANDLER_URL and the inbound OIDC audience list always collapsed to that single handler URL. Deleting the phase is serving-neutral: queued deliveries carry handler-URL audience tokens that the verifier still accepts, and no enqueuer can mint a worker-audience token anymore. Removes the SEPARATE_MERGE phase admission, the per-uid worker dispatch branch, and the extra audience entry; keeps the merge handler URL as the sole dispatch target and OIDC audience. Drops the env from the composed runtime manifest (regenerated via compose_runtime_env.py), the four chart values files, the deployment classification, both registry rows (doc regenerated), the runbook phase row and its never-used worker provisioning paragraph, and the two phase-specific tests.
Panel review round 1 fixes. Move both rows into the registry's retired list so the checker fails on reintroduction (doc re-rendered), add the listen/pusher change note the backend guide requires for audio changes, drop the runbook's remaining separate-worker cost row and deletion mention, and remove the import the deleted tests left behind. Add a regression test: with a leftover worker URL and the retired enable flag set, the phase stays unadmitted and both dispatch and the OIDC audience remain the single handler URL string.
Panel review round 2. The verifier docstring still said the token is minted for a "merge worker"; the handler is the only acceptor now. The change note also records why the phase was dark in prod: AUDIO_ARCHIVE_PERCENT is 100 there, so the enable flag alone gated admission.
Panel review round 3. The guard only asserted the audience argument; it now feeds a token whose audience is the retired worker URL through the real verifier and observes the 403. Restoring the old list-audience verifier fails both guards. The change note also says that dispatch needed a non-empty worker URL as well as the flag.
Git-on-my-level
force-pushed
the
agent/m1-studio-zcode-glm-5-3/b934d4030ea3
branch
from
November 22, 2026 08:01
e7e2161 to
507018b
Compare
…stry #26007 (SCA-3683) landed first and conflicted on the generated registry doc. Resolved by re-rendering backend/docs/feature-flag-registry.md and re-composing backend/deploy/runtime_env.yaml. For all 17 files of this PR the patch against main is line for line the patch reviewed at 507018b; the four reviewed commits are unchanged.
…-glm-5-3/b934d4030ea3
…-glm-5-3/b934d4030ea3
Git-on-my-level
deleted the
agent/m1-studio-zcode-glm-5-3/b934d4030ea3
branch
November 22, 2026 14:03
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
Retires the never-provisioned separate audio-merge worker phase:
AUDIO_ARCHIVE_SEPARATE_MERGE_ENABLEDandAUDIO_MERGE_WORKER_URLare kill rows in the flag registry (David's 2026-11-17 quality-ladder docket ruling, recorded on SCA-3682; delivery tracked as SCA-3691 under SCA-3684). Dark for five weeks; no merge worker exists; the handler URL already covers dispatch.Current head:
6ff7b8dea9d7ffc525f1e095437d5e83ac160be4507018b2c9(independentVERDICT: SHIP, panel round 4 SHIP) and its three ancestors have the same SHAs.63214b77cba. The first resolves the conflict that SCA-3683: Relabel retained flags and clear November registry exceptions #26007 (SCA-3683) left in the generated registry doc when it landed first at 09:00:51Z, and regeneratesbackend/docs/feature-flag-registry.mdandbackend/deploy/runtime_env.yaml. The second is a clean merge of three later main commits that touch none of this PR's files. The third (6ff7b8dea9, after SCA-3555: preserve backend flags for the code roll #26034/SCA-3773: Reserve seven retired Episode and STT flag names #26037/fix(mobile-release): self-heal Play review mode for Android internal publishing #26040 moved main under the branch) resolves the retirement-stack overlap: it unions theretired:list inconfig/feature-flags.yaml(this PR's two entries plus the seven that SCA-3692: Retire the episode boundary experiment #26010 and SCA-3688: Retire three inactive live STT controls #26014 added and SCA-3773: Reserve seven retired Episode and STT flag names #26037 reserved) and re-renders the doc; everything else auto-merged, andcompose_runtime_env.py --checkconfirmsbackend/deploy/runtime_env.yamlis current.507018b2c9(same removed and added lines, same order), including the two regenerated files — mechanically re-verified at6ff7b8dea9. A fresh render and compose on the head produce no diff.flags:and both present inretired:with text identical to the reviewed head.Serving neutrality, verified on every committed surface before deletion:
_audio_merge_handler_urlresolved toAUDIO_MERGE_WORKER_URLonly when the SEPARATE_MERGE phase admitted a uid. The enable flag isfalseon every surface, so dispatch always resolved toAUDIO_MERGE_HANDLER_URL. After this PR it still does, unconditionally. Note the enable flag was the only cohort gate in prod:AUDIO_ARCHIVE_PERCENT(shared with COALESCE) is100on every prod surface and0on dev, so setting the flag would have admitted every owner with no ramp. Dispatch would have moved to the worker only onceAUDIO_MERGE_WORKER_URLwas also set, and it was empty on every surface. Two regression tests pin this: one sets the prod condition (percent100, flagtrue, worker URL set) and asserts the phase stays unadmitted and dispatch/audience stay on the handler URL; the other feeds a token whose audience is the worker URL through the real verifier and observes the 403. Both fail when the old list-audience verifier is restored (mutation-checked).verify_audio_merge_cloud_tasks_oidcaccepted[handler_url, worker_url]; the worker URL is empty on every surface, so the effective audience was always the single handler-URL string. After this PR the audience is exactly that string.audio-mergequeue was enqueued with the handler URL as its OIDC audience, so the token Cloud Tasks mints at delivery is one the handler still accepts. No enqueuer can request a worker-audience token anymore. This is established by code reading and the two unit tests, not by observing a live delivery; a real one needs a production enqueue, which is outside this change's authorization.Serving state, from two sources:
4119fa3a78: the flagfalseand the worker URL''on all 13 composed-manifest surfaces, in the base source, and on all four prod/dev listen and pusher chart values files. No overlay names either key.ro-prodsample at about 08:20Z: the flag isfalseon the traffic-serving revisions ofbackend,backend-integration,backend-projection-pump,backend-syncandbackend-sync-backfill, with the worker URL present and empty; both keys are absent ondesktop-backendandomi-enterprise-backend; and all 20 Readyprod-omi-backend-listenpods and all 18 Readyprod-omi-pusherpods have the flagfalseand the worker URL present with an empty value (the API omits an emptyvalue; the deployed chart rendersvalue: ""). I did not exec into pods to read the process environment.Changes
backend/config/audio_archive.py: remove theSEPARATE_MERGEphase branch (unknown phases still fail closed via the finalreturn False).backend/utils/cloud_tasks.py:_audio_merge_handler_url()drops the uid/worker branch; both enqueue paths and the audio-merge OIDC verifier use the plain handler URL.backend/deploy/runtime_env/_base.yaml;backend/deploy/runtime_env.yamlregenerated withcompose_runtime_env.py(13 surfaces × 2 keys, allfalse/''); removed from the prod/dev listen and pusher chart values; removed fromconfig/deployment-setting-classification.json.flags:to the2026-11-22group inretired:(reintroduction guard);backend/docs/feature-flag-registry.mdregenerated against main, most recently63214b77cba.sync-ingest-archive.md: drop the phase row, the never-used separate-worker provisioning paragraph, the separate-worker cost row, and the stale "worker" mentions.backend/docs/listen_pusher_pipeline/changes/2026-11-22-separate-merge-retirement.md(required bybackend/AGENTS.mdfor audio changes).Coordination
AUDIO_CUSTODY_FRAMED_PERCENTrow sits next to theAUDIO_MERGE_WORKER_URLrow this PR removes, which conflicted the generated doc. Resolved here by re-rendering. This PR only moves its own two rows inconfig/feature-flags.yaml; every other row is byte-identical to main, including SCA-3683: Relabel retained flags and clear November registry exceptions #26007's relabels.TRANSCRIPTION_FINAL_PASS_VAD_COMPACTION_ENABLEDthe same day; SCA-3692: Retire the episode boundary experiment #26010 and SCA-3688: Retire three inactive live STT controls #26014 retired seven more names (reserved by SCA-3773: Reserve seven retired Episode and STT flag names #26037) after the earlier head. The2026-11-22group inretired:is the alphabetical union:AUDIO_ARCHIVE_SEPARATE_MERGE_ENABLED,AUDIO_MERGE_WORKER_URL, the fourEPISODE_BOUNDARIES_*keys,PARAKEET_WINDOW_DIARIZATION,SONIOX_ELAPSED_AXIS,STT_RESILIENT_RECONNECT,TRANSCRIPTION_FINAL_PASS_VAD_COMPACTION_ENABLED.retired name reintroduced, and the tree without it reportsfeature-flag registry: OK. With SCA-3683: Relabel retained flags and clear November registry exceptions #26007 landed, the 18 Nov-29ops_killexceptions no longer cut the check short, so this holds for the forward-dated run too: with--as-of 2026-11-30, this head's failure list is main's list minus exactly these two keys.AUDIO_ARCHIVE_PERCENTrow's notes still mention SEPARATE_MERGE. That is the verbatim 2026-11-09 ruling text on a pending row owned by lead2 (disposition with SCA-3685), and "(SEPARATE_MERGE is already being retired)" stays accurate, so it is deliberately left for that lane.Testing (bounded, on head
6ff7b8dea9; suites re-run after the third merge)test_audio_merge_tasks,test_audio_merge_destructive_deferral,test_audio_placement_merge,test_audio_chunk_archive_listing): 41 passed.test_backend_runtime_env_validator,test_verify_pusher_config_references): 680 passed.scripts/test_check_feature_flag_registry.py: 110 passed.python3 scripts/check_feature_flag_registry.py:feature-flag registry: OK;python3 backend/deploy/compose_runtime_env.py --check:runtime_env.yamlis up to date. Both re-run at this head; the reintroduction guard for the two names is active in the checker run.OMI_PR_BODY_FILEfor invariant discovery).test_sync_v2.py193; the othercloud_tasksconsumer files per file or in small groups). The merge after that head touches none of this PR's files, and the patch-vs-main is line-for-line identical, so those runs carry.test_sync_transcription_prefs.pyerrors 59/59 identically on a pristine base.Panel review
omi-panel reviewround 1 (review-20261122t062934-a741: luna + deepseek completed, glm-flash launch failed) returned FIX-FIRST with 6 findings. F1–F5 accepted and fixed in this PR (retired-list entries, change note, runbook worker mentions, inert-env regression test, unused import); F6 rejected as another lane's ruling record. Round 2 (review-20261122t070503-ff43, same two models) returned SHIP with 3 findings, all mine to fix. My PR body wrongly said the cohort percent was 0 everywhere and wrongly called the reintroduction guard latent, and a docstring still said "merge worker". Round 3 (review-20261122t072621-21a2) returned SHIP with 2 nits. The change note overstated that the flag alone would have moved dispatch, and the guard now observes a worker-audience token being refused. Round 4 (review-20261122t080133-6456) on507018b2c9returned SHIP with 1 nit and no change required: theAUDIO_ARCHIVE_PERCENTrow note, left for its owning lane. Every round ran on two of three models (luna and deepseek); glm-flash failed to launch each time.No fresh panel round was run on the three merge commits; their diff against main is line for line the round-4 diff. Luna recorded carry-forward SHIP verdicts on SCA-3691 — first at the earlier head (10:05Z), then at the current head
6ff7b8dea9.Product invariants affected