Skip to content

SCA-5315: clear stage-1 shadow residuals (transcription percent/allowlists, speaker-grouping allowlists) - #26828

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/sca5315-stage1-residuals
Dec 1, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/sca5315-stage1-residuals

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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)

File Key Before → after
backend/deploy/runtime_env/prod.overlay.yaml (+ regenerated runtime_env.yaml) TRANSCRIPTION_SHADOW_PERCENT (pusher, backend, backend-sync, backend-sync-backfill) '5' → '0'
same TRANSCRIPTION_SHADOW_UID_ALLOWLIST (pusher) the allowlisted UID → ''
same SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST (listen, pusher) the allowlisted UID → ''
backend/charts/pusher/prod_omi_pusher_values.yaml TRANSCRIPTION_SHADOW_PERCENT "5" → "0"
same TRANSCRIPTION_SHADOW_UID_ALLOWLIST the allowlisted UID → ""
same SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST the allowlisted UID → ""
backend/charts/backend-listen/prod_omi_backend_listen_values.yaml SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST the allowlisted UID → ""
backend/deploy/ops/live_only.yaml SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST, TRANSCRIPTION_SHADOW_UID_ALLOWLIST entries removed
backend/deploy/cross_service_known_gaps.json no-uid-literals gaps for listen/pusher SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST and pusher TRANSCRIPTION_SHADOW_UID_ALLOWLIST removed (no UID literal remains)
config/diarization-cohort-stages.json stage F (retired shadow) TRANSCRIPTION_SHADOW_PERCENT, TRANSCRIPTION_SHADOW_UID_ALLOWLIST "5" → "0", the allowlisted UID → ""
backend/docs/feature-flag-registry.md regenerated by scripts/render_feature_flag_registry.py prod values follow the config
backend/tests/unit/test_diarizer_david_cohort.py retired stage F: shadow percent 0 and empty shadow allowlist; final-pass assertions unchanged

The reviewed stage F in config/diarization-cohort-stages.json is 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 Sync RECORD_WAL_DUPLICATE_SHADOW_* settings, the Calls Recap and Notes Packet frozen legacy rows, DEMAND_PROCESSING_UID_ALLOWLIST, the BATCH_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:

  • a full pusher deploy (GKE);
  • the next Cloud Run train (backend, backend-sync, backend-sync-backfill);
  • removal of the live-only SPEAKER_GROUPING_SHADOW_UID_ALLOWLIST / TRANSCRIPTION_SHADOW_UID_ALLOWLIST env 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.py regenerated runtime_env.yaml; check_runtime_env_compose.sh reports it up to date.
  • bash test.sh (changed-files selection, 97 files) passed, including test_render_backend_runtime_env.py, test_backend_runtime_env_validator.py, test_verify_pusher_cohost_env_diff.py, test_sync_two_lane.py and test_diarizer_david_cohort.py.
  • backend/scripts/pre-deploy-check.sh (hermetic: validate-backend-runtime-env.py --env dev|prod --check-workflows plus 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-invariants passed after naming INV-MEM-4 below.

Product invariants affected

  • INV-MEM-4 — named because backend/deploy/runtime_env.yaml is 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

View guided diff Turn on auto-fix

…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]>
@Git-on-my-level
Git-on-my-level merged commit 197be62 into main Dec 1, 2026
73 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/sca5315-stage1-residuals branch December 1, 2026 00:24
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant