Repository navigation
SCA-5315: clear stage-1 shadow residuals (transcription percent/allowlists, speaker-grouping allowlists) - #26828
Merged
Merged
Conversation
…lists, speaker-grouping allowlists) Killed-flags audit residuals, rows 7-12 of Ship's matrix on SCA-5315. - prod overlay + regenerated runtime_env.yaml: TRANSCRIPTION_SHADOW_PERCENT 5 -> 0 (pusher, backend, backend-sync, backend-sync-backfill); pusher TRANSCRIPTION_SHADOW_UID_ALLOWLIST and listen/pusher SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST cleared (the allowlisted UID -> ''). - prod pusher and listen charts: same values. - live_only.yaml: drop the two shadow allowlist entries. - cross_service_known_gaps.json: drop the three no-uid-literals gaps that referred to those allowlists. - diarization-cohort-stages.json: retired stage F now carries 0% and an empty shadow allowlist; final-pass scope unchanged. Cohort test follows. - feature-flag-registry.md regenerated. Rollback: revert this commit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nizarius
added a commit
that referenced
this pull request
Dec 1, 2026
…in shard 8/8 red since #26828) (#26853) ## What changed and why `tests/unit/test_rollout_cohort_deploy.py::test_helm_retains_legacy_fallbacks[prod-backend-listen]` and `[prod-pusher]` have been red on main since `197be6283a` (#26828), which is why "Backend unit shard 8/8" fails on main and on every PR that merges it. The test holds the listen and pusher charts' allow-lists in place "until a later removal PR". #26828 was that removal for `SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST` (the retired speaker-grouping shadow: prod serves `SPEAKER_GROUPING_SHADOW: off`), and set the key to `""` in both prod charts. The test still asserted the key is non-empty. #26828's own CI was green because a chart edit does not select this test file. One line: the assertion now pins the cleared value. The key must still be present, and the other fallbacks (`DREAM_AGENT_UID_ALLOWLIST`, and for listen `SYNC_LINEAGE_RESOLVE_UID_ALLOWLIST` and `STT_LIVE_DEMAND_UID_ALLOWLIST`) are asserted non-empty as before. No chart or config file is touched. Not in this PR: mapping the listen and pusher chart paths to this test in `backend/scripts/select_backend_unit_tests.py`, so the next removal fails on its own PR. Say if you want it here. The other two red tests on main are separate: `test_flag_budget.py` (review dates of 2026-11-30, #26600) and `test_listen_overlay_workflow.py` (the evidence scripts pin, #26839). ## Product invariants affected none ## How it was verified `cd backend && .venv/bin/python -m pytest tests/unit/test_rollout_cohort_deploy.py -q` on main `0d04614136`: 2 failed before (the two prod parameters, `assert ''`), 10 passed after. ## Tests The changed test is the regression test. No product code changed. ## UI evidence UI-Evidence: none -- test only ## Failure class (fixes) Failure-Class: none 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Git-on-my-level
pushed a commit
to Git-on-my-level/omi
that referenced
this pull request
Dec 1, 2026
…the prod charts BasedHardware#26828 set SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST to an empty string in the prod listen and pusher charts (the shadow is retired) and left this test asserting a non-empty value, so shard 8/8 has been red on main since then. The key must still be present; its value is now pinned empty. The other fallbacks are asserted as before. Co-Authored-By: Claude Fable 5.2 <[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.
Why
SCA-5315: clears the residual config left after stage 1 of the shadow settlement (#26582, merged as
27ee3e849fb4). The killed-flags audit found these residuals; they are rows 7–12 of Ship's matrix on SCA-5315. Stage 1 already serves both shadows off (transcription shadow kill switch on; speaker grouping shadow off), but the percent and the allowlisted UID still sat in prod config. This PR clears them so the retired shadows carry no live cohort.Changes (prod only)
backend/deploy/runtime_env/prod.overlay.yaml(+ regeneratedruntime_env.yaml)TRANSCRIPTION_SHADOW_PERCENT(pusher, backend, backend-sync, backend-sync-backfill)'5'→'0'TRANSCRIPTION_SHADOW_UID_ALLOWLIST(pusher)''SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST(listen, pusher)''backend/charts/pusher/prod_omi_pusher_values.yamlTRANSCRIPTION_SHADOW_PERCENT"5"→"0"TRANSCRIPTION_SHADOW_UID_ALLOWLIST""SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST""backend/charts/backend-listen/prod_omi_backend_listen_values.yamlSPEAKER_GROUPING_SHADOW_UID_ALLOWLIST""backend/deploy/ops/live_only.yamlSPEAKER_GROUPING_SHADOW_UID_ALLOWLIST,TRANSCRIPTION_SHADOW_UID_ALLOWLISTbackend/deploy/cross_service_known_gaps.jsonno-uid-literalsgaps for listen/pusherSPEAKER_GROUPING_SHADOW_UID_ALLOWLISTand pusherTRANSCRIPTION_SHADOW_UID_ALLOWLISTconfig/diarization-cohort-stages.jsonTRANSCRIPTION_SHADOW_PERCENT,TRANSCRIPTION_SHADOW_UID_ALLOWLIST"5"→"0", the allowlisted UID →""backend/docs/feature-flag-registry.mdscripts/render_feature_flag_registry.pybackend/tests/unit/test_diarizer_david_cohort.pyThe reviewed stage F in
config/diarization-cohort-stages.jsonis the stage the prod pusher/Cloud Run bindings must match (validator, cohost gate and cohort tests), so it moves with the config. Every other stage and every final-pass value is unchanged.Not touched:
MEDIA_NOISE_MODE_SERVE_UID_SHA256S, the SyncRECORD_WAL_DUPLICATE_SHADOW_*settings, the Calls Recap and Notes Packet frozen legacy rows,DEMAND_PROCESSING_UID_ALLOWLIST, theBATCH_PIPELINE_*recovery and UID allowlists,TRANSCRIPTION_FINAL_PASS_*, and any stage-2 rows.Serving
Merging changes no serving state. The change reaches production only through Release deploys:
SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST/TRANSCRIPTION_SHADOW_UID_ALLOWLISTenv from the Cloud Run services that carry it by name (backend, backend-integration, backend-sync, backend-sync-backfill), since they are no longer declared live-only.Verification
compose_runtime_env.pyregeneratedruntime_env.yaml;check_runtime_env_compose.shreports it up to date.bash test.sh(changed-files selection, 97 files) passed, includingtest_render_backend_runtime_env.py,test_backend_runtime_env_validator.py,test_verify_pusher_cohost_env_diff.py,test_sync_two_lane.pyandtest_diarizer_david_cohort.py.backend/scripts/pre-deploy-check.sh(hermetic:validate-backend-runtime-env.py --env dev|prod --check-workflowsplus deploy-safety tests, 710 passed).scripts/check_feature_flag_registry.py: no drift.scripts/pr-preflight --all: 52 gates; 51 passed on the first run,product-invariantspassed after naming INV-MEM-4 below.Product invariants affected
backend/deploy/runtime_env.yamlis under its locked glob. This PR changes no memory setting: only the transcription and speaker-grouping shadow keys listed above.Rollback
Revert this commit.
🤖 Generated with Claude Code