Repository navigation
chore(flags): retire approved November 9 controls - #24977
Conversation
…container Review follow-ups for the November 9 retirement: - summary_guarantee.enabled no longer consults the removed first-summary membership cohort (always false once it left COHORT_ENVS); admission is the percentage bucket, which production serves at 100 on every reader. - FIRST_SUMMARY_UID_ALLOWLIST leaves the live-managed drift exemptions and the runbook / pipeline docs; drift tests use FAIR_USE_EXEMPT_UIDS as the sample allowlisted sensitive key. - KNOWN_DYNAMIC_FEATURE_SITES drops the llm_input_dedupe get_route_ref site this PR removed (CI shard 1 failure). - rollout_cohort_migration.read_live picks the Cloud Run ingress container (the only one declaring ports) so a collector sidecar no longer makes --verify-live fail with 'ambiguous serving container'. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
The worker_reservation fixture turned execution admission on through the retired ladder-only path (STT_CAP_DISPATCH_ENFORCEMENT=false with LADDER_V1_BUDGET_ENFORCEMENT_ENABLED=true). That configuration no longer exists, so live selection never ran and the refund/selection scenarios failed (CI backend unit shard 2). Admission now comes from STT_CAP_DISPATCH_ENFORCEMENT=true, as on the prod live hosts; the scenarios and their expected accounting are unchanged. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
…paths CI shards 2/3/6 at a909a2e: - test_live_capture_coverage_simulation compared LIVE_CAPTURE_WINDOW_RETENTION on vs off; retention is now fixed off (the prod value), so the simulation runs once and asserts the fixed limits (pressure-evicted finals stay unknown) plus the unchanged merge-preservation result. - test_cross_service_deploy_contract used the retired key as its named-set boolean example; LIVE_CAPTURE_WINDOW_MERGE_UNION is read the same way and is still deployed. - sync_legacy_import_baseline.json drops the minimal_redrive -> empty_recovery edge that the SYNC_EMPTY_MULTILINGUAL_RECOVERY_ENABLED retirement removed (regenerated with the ratchet's --write). All 70 unit files that mention a retired key pass through test.sh. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d8de36de9d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| #!/usr/bin/env python3 | ||
| """Paired run gating ``BATCH_PIPELINE_SHORT_SPEECH_SINGLE_ENABLED`` (#22358). |
There was a problem hiding this comment.
Retire the staging Job arm alongside its deleted harness
Running the documented RUN=short-speech staging Job now invokes a deleted script: backend/testing/quality_corpus/k8s/paired-run-job.yaml:73 still executes testing/quality_corpus/paired_short_speech.py. The Job builds its script ConfigMap from the source directory, and a repository-wide search found no replacement or generated copy. Consequently, this arm allocates an L4 and fetches/builds the corpus before failing without a qualification receipt, then retains the GPU for the one-hour copy window. Remove the retired arm and its advertised invocation together with the harness.
AGENTS.md reference: AGENTS.md:L34-L34
Useful? React with 👍 / 👎.
Only the rendered backend/docs/feature-flag-registry.md conflicted; it is regenerated (as-of 2026-11-05). The registry checker passes, runtime_env.yaml composes up to date, and the composed env still differs from main only by dropping the declarations of 11 retired keys (142 paths removed, 0 added, 0 changed). Merged and pushed on m1-mac-studio (lead2 ruling 50b61f). Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ptions CI shard 7 at 21a2b8e plus a full backend unit run on m1-mac-studio: - test_jev_client and test_recorded_span patched repeat_work_metrics.revision_reuse, which left with REPEAT_WORK_REVISION_ENABLED; Phase A call measurement is unconditional and the legacy CALLS counter stays off, so the assertions hold without the patch. - background_task_baseline.json: shadow_intake.offer_upload now starts 3 background tasks, not 4 (BATCH_PIPELINE_SHADOW_LANGUAGE_ONLY retired). - lifecycle_writer_inventory: the dream_agent elided-tool-result payload site left with DREAM_HISTORY_COMPACT_MODE. The full unit suite on m1 otherwise passes; test_empty_capture_recovery needs the native Opus library, which m1 lacks (CI has it and passed that file). Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
## What changed and why Retires `LIVE_CAPTURE_WINDOW_MERGE_PRESERVATION` at the false value served by production. This closes the follow-up deferred from #24977 under the November 17 retirement docket (#25571). The planner keeps its current text repair, manual speaker protections and accepted-send window union. No migration or stored record rewrite is required. The read-only production check on November 22 found the switch false on the five serving backend Cloud Run revisions and on all 22 Ready listener and 18 Ready pusher pods sampled. The sampled batch workers had no binding and both boolean parsers default to false. The change removes the private Python parameter, its enabled-only branches and the rollout declarations. The public transcript payload and stored schema stay compatible with released clients. ## Verification - All 413 tests passed across eight modules covering capture retention, merge union, timeline parity, deployment settings and pusher chart contracts. - Replayed the existing Deepgram, Soniox and Modulate fixtures on the base and candidate. Stored payloads and metric deltas matched byte for byte (SHA-256 `2a02e917984962f7195058c133cf70848275d35ab605d976910cc50ad55cff2a`). - Rebuilt the deployment manifest and registry documentation. The November 22 registry check passed. ## Product invariants affected INV-MEM-4. This retirement changes neither promotion authority nor the evidence that reaches storage under the incumbent behavior. UI-Evidence: none — internal backend cleanup. Failure-Class: none <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/26011?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Requested by David
Retires 33 flags under David's 2026-11-09 flag docket (rulings 2 and 4) and lead2 ad1268; production behaviour unchanged: each removed read is fixed to the value prod served at 2026-11-09 03:20Z. This includes the two earlier retirements and one configuration key used only by the retired revision path. No production access or runtime rollout is part of this PR.
AUDIO_ARCHIVE_UID_ALLOWLISTbackend/config/rollout_cohorts.py,backend/scripts/rollout_cohort_migration.pyAUDIO_CANONICAL_PACKING_ENABLEDbackend/utils/other/audio_packs.pyBATCH_PIPELINE_SHADOW_LANGUAGE_ONLYbackend/config/batch_pipeline_shadow.pyBATCH_PIPELINE_SHORT_SPEECH_SINGLE_ENABLEDbackend/config/batch_pipeline_gpu_skip.py,backend/scripts/diarization_eval/inference_archive.py,backend/testing/batch_replay/runner.py,backend/testing/quality_corpus/chain.pyCAPTURE_SHARED_SPEECH_MODEbackend/config/capture_shared_speech.pyCAPTURE_SHARED_SPEECH_PERCENTbackend/config/capture_shared_speech.pyCAPTURE_SHARED_SPEECH_UID_ALLOWLISTbackend/config/capture_shared_speech.pyCONVERSATION_NOTES_AGENT_UID_ALLOWLISTbackend/utils/llm/notes_agent_policy.pyDREAM_HISTORY_COMPACT_MODEbackend/config/dream_levers.pyDREAM_HISTORY_COMPACT_MODE_SERVE_PERCENTbackend/config/dream_levers.pyDREAM_LIBERAL_VERIFIER_MODEbackend/config/dream_levers.pyDREAM_LIBERAL_VERIFIER_MODE_SERVE_PERCENTbackend/config/dream_levers.pyFIRST_SUMMARY_UID_ALLOWLISTbackend/config/policy/stages.py,backend/config/rollout_cohorts.py,backend/scripts/check_cloud_run_env_drift.py,backend/scripts/rollout_cohort_migration.pyLADDER_V1_BUDGET_ENFORCEMENT_ENABLEDbackend/config/ladder_v1.py,backend/config/stt_cap_dispatch.py,backend/routers/listen/runtime.py,backend/utils/storefront.pyLIVE_CAPTURE_WINDOW_RETENTIONbackend/config/audio_timeline.pyLIVE_CAPTURE_WINDOW_STRICT_PROJECTIONbackend/config/audio_timeline.pyMEETING_NOTES_EPISODE_C6_TIMEOUT_SECONDSbackend/config/episode_writer.pyMEETING_NOTES_EPISODE_CLAIMS_ENABLEDbackend/config/episode_writer.pyMEETING_NOTES_EPISODE_TIERED_ENABLEDbackend/config/episode_writer.pyMEETING_NOTES_EPISODE_TIER_MIN_SOURCE_KINDSbackend/config/episode_writer.pyMEETING_NOTES_EPISODE_TIER_MIN_WORDSbackend/config/episode_writer.pyMEETING_NOTES_EPISODE_WRITER_TIMEOUT_SECONDSbackend/config/episode_writer.pyMEMORY_L1_OWNER_NEUTRAL_PREFIX_ENABLEDbackend/config/llm_spend.pyMOBILE_STANDARD_BATCH_UIDSbackend/config/rollout_cohorts.py,backend/scripts/rollout_cohort_migration.py,backend/scripts/verify_pusher_cohost_env_diff.pyPARAKEET_WINDOW_DEADLINE_CUT_ENABLEDbackend/scripts/verify_pusher_cohost_env_diff.py,backend/utils/stt/parakeet_window.pyREPEAT_WORK_LLM_VERSIONbackend/utils/conversations/llm_input_dedupe.pyREPEAT_WORK_REVISION_ENABLEDbackend/config/repeat_work.pySPEAKER_GROUPING_MODEbackend/config/speaker_grouping.pySTT_LANGUAGE_HINTS_MODEbackend/utils/stt/language_policy.pySTT_LANGUAGE_HINTS_MODE_SERVE_PERCENTbackend/utils/stt/language_policy.pySTT_LANGUAGE_HINTS_MODE_SERVE_UID_SHA256Sbackend/utils/stt/language_policy.pySTT_MULTI_LANGUAGE_HINTSbackend/config/policy/listen.py,backend/scripts/verify_pusher_cohost_env_diff.py,backend/utils/stt/language_policy.py,backend/utils/stt/soniox.pySYNC_EMPTY_MULTILINGUAL_RECOVERY_ENABLEDbackend/utils/sync/empty_recovery.py,backend/utils/sync/empty_success_guard.pyDeploy precondition (met 2026-11-09 11:04Z)
mobile-standard-batchis seeded. cl2-deploy wrote it under lead2 go 9aab5a and read it back at 10:25Z: Firestore 1 matches live 1.FIRST_SUMMARY_UID_ALLOWLISTis unset on backend-sync, backend-sync-backfill and backend-integration. cl2-deploy made the change from 10:39Z to 10:44Z under lead2 go 9b944d, and 5xx stayed flat for 15 minutes. The prod percent is 100, so admission is unchanged. This PR removes the key's drift exemption, which matches the live state.audio-archiveneeds no seeding. A read-only ro-prod read at 10:40Z, filtered to this key, foundAUDIO_ARCHIVE_UID_ALLOWLISTas a literal with 0 members on all six readers (the four Cloud Run app containers, backend-listen and pusher). Firestore holds 0. The<ref>in the 03:20Z snapshot was a redaction marker, not a member.rollout_cohort_migration --verify-livenow reads the Cloud Run ingress container, so the documented check runs despite the collector sidecar. The lead's read-only 04:15Z check found no canonical-audio bucket and no BUCKET_CANONICAL_AUDIO binding.Skipped
ACCOUNT_CUTOVER_COHORT: Authentication fences and force-enforced operator paths share the same config; safely removing the foundation requires a separate auth review.ACCOUNT_CUTOVER_ENFORCEMENT: Authentication fences and force-enforced operator paths share the same config; safely removing the foundation requires a separate auth review.EPISODE_BOUNDARIES_MODE: Shadow boundary code also controls durable membership/review policy and live polling; removing this family exceeds the permitted client/lifecycle change without a parity readout.EPISODE_BOUNDARIES_MODE_SERVE_PERCENT: Shadow boundary code also controls durable membership/review policy and live polling; removing this family exceeds the permitted client/lifecycle change without a parity readout.EPISODE_BOUNDARIES_MODE_SERVE_UID_SHA256S: Shadow boundary code also controls durable membership/review policy and live polling; removing this family exceeds the permitted client/lifecycle change without a parity readout.EPISODE_BOUNDARIES_MODE_SHADOW_PERCENT: Shadow boundary code also controls durable membership/review policy and live polling; removing this family exceeds the permitted client/lifecycle change without a parity readout.LIVE_CAPTURE_WINDOW_MERGE_PRESERVATION(follow-up: it serves false on every reader, so retiring it at false preserves behaviour; deferred to keep this PR's reviewed scope; registry review_by 2026-11-17, extension until 2026-11-22, owner auditfix): Union coverage does not prove equivalent preservation: this flag keeps provider pieces during text repair, while union joins observed windows. The required coverage equivalence is unproven.MEDIA_NOISE_MODE: Mixed serving: recorded production SHA-256 pilot admits one account even while parent mode is shadow; removing it would change visible classification.MEDIA_NOISE_MODE_SERVE_PERCENT: Mixed serving: recorded production SHA-256 pilot admits one account even while parent mode is shadow; removing it would change visible classification.MEDIA_NOISE_MODE_SERVE_UID_SHA256S: Mixed serving: recorded production SHA-256 pilot admits one account even while parent mode is shadow; removing it would change visible classification.MEDIA_NOISE_MODE_SHADOW_PERCENT: Mixed serving: recorded production SHA-256 pilot admits one account even while parent mode is shadow; removing it would change visible classification.EDGE_SHADOW_PERCENT(follow-up: it serves 0 and gates only outbound mirroring, separate from EDGE_SHADOW_TOKEN authentication, so retiring it at 0 is safe; deferred to keep this PR's reviewed scope; registry review_by 2026-11-20, owner auditfix): Retained with its transport controls: EDGE_SHADOW_TOKEN also gates authentication in backend/edge/src/config.rs and shadow.rs. Retiring only the Python transport metadata would orphan a live native auth reader; this needs a cross-component auth review.Kept for the 11-16 readout: CALLS_RECAP_MODE_SERVE_, ACTION_ITEMS_V2_MODE_SERVE_.
Validation
All checks ran through
omi-heavy run --.Module unit verification: 7,405 passed, 0 skipped in 124 files (2026-11-09 04:53:11–05:03:26 UTC). The two updated offline test files then passed 17 tests on the final cleanup head (05:12:02–05:12:07 UTC).
After retaining the edge family for native auth, the eight affected edge/registry/runtime suites passed 443 tests, 2026-11-09T06:05:22.818182+00:00–2026-11-09T06:08:11.833059+00:00.
python3 scripts/check_feature_flag_registry.py: 0 errors; the generated registry retains its 2026-11-05 as-of date.Source contract comparison pins 16 unchanged custody/delete, expiry and independent STT-admission functions. The composed runtime-env diff contains only retired-key removals, with no additions or value changes.
Final guarded push (
25bf96ae7ae5):OMI_PR_BODY_FILE=<this body> scripts/pr-preflight --lane localpassed 54 checks; backend type checking passed with 0 errors; boundedbackend/test.shpassed 1,710 tests in 40 files, 0 skipped. App-client OpenAPI compatibility passed and committed OpenAPI documents were current. Measured push command window: 2026-11-09 09:16:21–10:04:43 UTC, including push-pool admission wait.After rebasing the current lifecycle and duplicate-source consolidation, the focused budget/source/docket/overage/shadow-usage run passed 167 tests in five files, 0 skipped, 2026-11-09 09:12:42–09:13:15 UTC (head
25bf96ae7ae5).The seeded flag budget falls 165 → 161: four seeded/replacement slots and one separately owned name leave its inventory. Registry retirements outside that seeded surface do not consume its slots. The four November 16 readout selectors retain main's registry rows, reads and tests. Unrelated live UID bindings stay unchanged; this diff removes only retired-key runtime bindings.
Product invariants
INV-MEM-4: canonical promotion remains the sole Long-term admission authority. Retirement introduces no promotion writer and does not rewrite stored output.
Push host: the pre-push hook for d8de36d ran on m1-mac-studio (lead2 ruling 50b61f) with the same hook, budgets and no skips. m5-mbp was at load 100+, and there the Firestore guard file exceeded its per-file wall after all of its tests had passed.
Failure-Class: none
🤖 Generated with Claude Code.