Repository navigation
config(firestore-reads): guard flag-off 7 levers 100->0 (backend-sync 5xx re-escalation, WQ31) - #24194
Merged
Conversation
…nc 5xx re-escalation (WQ31) verify FAIL x5 ticks post-fix-serve (17Z-21Z 10-31, backend-sync 5xx 0.0035-0.0036 vs ref 0.0014, flat after lead train 14d7e31 served 15:18Z, 5h train-quiet): armed WQ30 re-escalation fires. Flag off singleton_loops, usage_month_cache, backfill_task_reads, historical_scan_memo, ledger_purge_coalesce, queue_age_sample_budget, usage_month_total (CR override 100->0, epoch kept); finjob_candidate_queries stays 5. Discriminating experiment per runbook: 5xx persisting at 0 exonerates the cohort; dropping implicates it.
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. |
…ff (review P2-1/P2-2) prod.overlay 4 sites + monthly-usage-totals.md table: umt is 0 under the guard flag-off with epoch c2fs_20261026_r1 preserved for re-enable; comments said 100.
Git-on-my-level
added a commit
that referenced
this pull request
Nov 1, 2026
… (WQ32) (#24207) ## Summary Firestore read lever config — guard flag-off: `finjob_candidate_queries` 5 -> 0. Complete 20-key literal, delta vs main only in that one key. This completes the WQ31 discrimination cohort: every guard-flagged lever is now fully off. Reason: the hourly tick at 2026-11-01T02:00:36Z raised `flag_off: finjob_candidate_queries` (verify verdict UNSAFE at 5%: backend-sync 5xx rate 0.0035, 1423 err/h excl 4 audio-merge, vs ref 0.0014 — same flat band as the 17Z-21Z ticks that triggered #24194's 7-lever flag-off). finjob was deliberately left at 5 in #24194 to ride its own WQ13 ramp; with the tick now grading it UNSAFE on the same service-scope why, the runbook pending-action rule applies (flag off on breach; ambiguous evidence flags off anyway, re-enable at 5% if the rate persists at levers 0 — that exonerates the cohort). Reads impact ~0 (lever was at 5%); the change is diagnostic + guard-contract compliance. ## Product invariants affected - INV-FSR-LEVERS — replace-mode literal rule respected; all 20 keys present; absent keys remain off by default; KNOWN_LEVERS unchanged. - INV-MEM-4 — required by the `backend/deploy/runtime_env.yaml` generated-manifest lock; the change is the rendered FIRESTORE_READ_LEVERS literal only. - INV-DATA-1 — lever-off restores the legacy un-memoized candidate-query path (safe default, previously serving pre-ramp). Failure-Class: none ## Verification - `set_levers.py` REPLACE-mode with the complete 20-key finjob:0 literal; `prod.overlay.yaml` hand-patched at its 4 inline-literal CR-override sites (set_levers does not match that form — same hand-patch #24194 needed); `compose_runtime_env.py` + `render_feature_flag_registry.py` re-run; rendered audit: zero hosts with finjob != 0. - Contract-pinned `expected` dict in `test_render_backend_runtime_env.py` updated finjob 5 -> 0 (the pin set_levers does not reach). - Diff audit: 44 changed-literal sites (36 via set_levers + 4 overlay + rendered twins), every `+` side equals the new 20-key literal exactly; every other lever key byte-identical. - Contract tests: 119 passed (test_render_backend_runtime_env.py + test_verify_pusher_config_references.py, lane venv). - Full CI: on this head. ## Lead-owned ship plan URGENT: deploy needed listen -> pusher -> Cloud Run (FIRESTORE_READ_LEVERS train order). Bus handoff posted to the lead; completes the levers-0 5xx discrimination watch started with #24194. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24207?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> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/24207?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24207&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
YinkaAdepoju
pushed a commit
to YinkaAdepoju/omi
that referenced
this pull request
Nov 1, 2026
Hourly tick 2026-11-01T02:00:36Z raised flag_off: finjob UNSAFE at 5% (backend-sync 5xx 0.0035 vs ref 0.0014, same flat band as the WQ30/WQ31 re-escalation ticks). Completes the levers-0 discrimination cohort from BasedHardware#24194. Complete 20-key literal; overlay CR-override sites hand-patched; contract expected dict updated; 119 contract tests pass.
Git-on-my-level
added a commit
that referenced
this pull request
Nov 1, 2026
…eep #24210 backend-sync usage_month exception) (#24238) ## Summary Firestore reads loop **restoration config** (guard cohort re-enable): five `FIRESTORE_READ_LEVERS` values 0 → **100**, everything else byte-identical to main. This is the exoneration follow-up to #24194 (guard flag-off, WQ31/WQ32). - Discriminating experiment result (levers at 0 since #24207/#24210 served ~04:44Z 2026-11-01): backend-sync 5xx stayed **flat-to-higher** at 0.0041–0.0044 (1522–1639 err/h, ticks 05Z/06Z/07Z) vs 0.0035–0.0036 at levers 100 and ref 0.0014 — per the loop's own rule, the flagged cohort is **EXONERATED** (exogenous). The lead's independent RCAs agree (`admitscope-2026-11-01.md` §5 "After the flag-off, 5xx rose, so per the runbook's own discriminating rule the flagged cohort is exonerated"; `syncwall-2026-11-01.md` attributes the 5xx mass to deliberate nonterminal_ack + legacy file retries). - Restored to 100: `singleton_loops`, `backfill_task_reads`, `historical_scan_memo`, `ledger_purge_coalesce`, `queue_age_sample_budget`. Measured give-back at 0 (cohort-union of needle callers, snapshot 2026-11-01T05Z/07Z vs pre-flag-off 10-31T19Z/21Z): ~29–44M reads/day ≈ **$14–21/day**; at 0 the flag-off also re-added the batch-admission latency class documented in admitscope. - **Kept at #24210 scope on purpose (lead instruction 6be508/5bd7df/c38004):** `usage_month_cache` / `usage_month_total` stay 0 everywhere except the `cloud_run/backend-sync` exception (100/100, `FSR_USAGE_MONTH_TOTAL_EPOCH` unchanged). The GKE charts keep the Cloud Run-only `usage_month_total` split (GKE = 0). `finjob_candidate_queries` stays 0 (its own 02Z UNSAFE gate; callers ~0). `batch_privacy_memoize`, `memory_list_index_window`, `people_scan_dedupe` stay 0 (graded WEAK/FALSIFIED). Config only, generated with `avo/firestore-reads/set_levers.py` + the prod.overlay inline sites (5 keys only); audited at 19 literal sites: the 5 restored keys = 100 everywhere, `usage_month_cache`/`usage_month_total` = 0 everywhere except the backend-sync Cloud Run site. Regenerated `runtime_env.yaml` + flag registry; the two pinned contract tests updated (119/119 pass on the lane venv). Per the lead: **this PR is NOT to be merged by the loop** — it is staged for the single off-peak lead train before 13:00Z. ## Product invariants affected - INV-MEM-4 — config-only lever rollout; no data-path, promotion or authority change; every restored lever reverts to flag-off behavior at 0. - INV-DATA-1 — no routing or ownership change; value-only edit of the existing `FIRESTORE_READ_LEVERS` key. ## Test plan - `backend/tests/unit/test_render_backend_runtime_env.py` + `backend/tests/unit/test_verify_pusher_config_references.py`: 119/119 pass on the lane venv. - Literal audit: 19 sites JSON-parsed; 5 restored keys = 100 at every site; umc/umt = 0 everywhere except `prod.overlay` backend-sync (100/100, #24210 exception preserved); finjob/bpm/mliw/people = 0 at every site. ## Rollout 1. Lead-owned single off-peak train before 13:00Z, order **listen → pusher → cloud-run** (FIRESTORE_READ_LEVERS order). The loop does not merge, dispatch, or approve anything here. 2. Post-train: tick verify continues; ramp-clock/grade bookkeeping per runbook; re-baseline after serve. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24238?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> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/24238?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24238&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Git-on-my-level
added a commit
that referenced
this pull request
Nov 2, 2026
…/ledger_purge 100->0 (backend-sync 5xx 0.0134 vs ref 0.0073) (#24348) # Firestore reads loop guard flag-off — 2026-11-02 (singleton/backfill/historical/ledger_purge 100→0) ## Summary Firestore reads loop **URGENT guard flag-off** (autonomous, loop RUNBOOK step 1): four `FIRESTORE_READ_LEVERS` values 100 → **0**, everything else byte-identical to main. Response to verify tick 2026-11-02T05:00:20Z FAIL (pending-actions `flag_off`: singleton_loops, usage_month_cache, backfill_task_reads, historical_scan_memo, ledger_purge_coalesce). - Breach: backend-sync 5xx 3652/271872 = **0.0134** (audio-merge excluded in both windows) vs ref (prev-week same window, excl audio-merge) 1805/248696 = **0.0073**. Hourly trajectory: 0.0041 (22Z) → 0.0048 (23Z–00Z; restoration #24238 served 23:52Z) → 0.0062 (01Z) → 0.0082 (02Z) → 0.0078 (03Z) → 0.0076 (04Z) → **0.0134 (05Z)**. Evidence is ambiguous (smooth multi-hour rise, no clean step at the serve hour), so per the runbook ("flag off on breach anyway when the evidence is ambiguous") the flag-off proceeds as the discriminating experiment: rate falls at 0 → restoration cohort implicated (stays 0); rate stays >ref at 0 → exogenous again (#23739 / lead RCA e54718 precedent), restoration re-planned with the lead. - Flagged off everywhere (base ×11 sites, four Cloud Run overlay sites, listen/pusher dev+prod charts): `singleton_loops`, `backfill_task_reads`, `historical_scan_memo`, `ledger_purge_coalesce` 100 → 0. `usage_month_cache` base stays 0 (it was already 0 off the #24210 exception scope). - **Kept on purpose: `prod.overlay` backend-sync `usage_month_cache`/`usage_month_total` = 100** — the #24210 compute-admission exception. Admission calls backend-sync `/authorize-compute` with a 5-second client timeout; zeroing these re-breaks admission (admission stage mean ~5.1s, unevaluated deferrals ~3.7/s — the exact incident #24210 fixed under lead ruling dde240). The 05Z tick's `usage_month_cache` UNSAFE carries the shared service-scope why (WQ30 precedent: same-why proves service-scope), and `usage_month_total` was not flagged at all. If post-flag-off discrimination implicates umc specifically, zeroing the exception is #24210's documented rollback (admission impact accepted; lead decides). - `queue_age_sample_budget` stays 100 (not flagged; its needle callers read ~0 since the budget lever — readout 402.5M → 0.0M/day). All other keys unchanged. Config only, generated with `avo/firestore-reads/set_levers.py` (replace-mode, complete 20-key literal) plus the four prod.overlay inline sites hand-patched (flagged keys only) and the third pinned `expected` dict in `test_firestore_train_preserves_monthly_reader_scope_and_cloud_run_overrides` updated (set_levers' regexes do not cover it). Stale #24194-era comment blocks refreshed to the current scope. Regenerated `runtime_env.yaml` + feature-flag registry. ## Product invariants affected - INV-MEM-4 — config-only lever rollout; no data-path, promotion or authority change; every flagged lever reverts to flag-off behavior at 0; the #24210 admission exception is unchanged (epoch c2fs_20261026_r1 preserved). - INV-DATA-1 — no routing or ownership change; value-only edit of the existing `FIRESTORE_READ_LEVERS` key. ## Test plan - `backend/tests/unit/test_render_backend_runtime_env.py` + `backend/tests/unit/test_verify_pusher_config_references.py`: **119/119 pass** on the lane venv (`backend/.venv` freshly synced from pylock.macos.toml via `make setup-backend`). - Literal audit: 26 deploy value sites JSON-parsed — the 4 flagged keys = 0 at every site; `usage_month_cache`/ `usage_month_total` = 100 only at the prod.overlay + rendered backend-sync exception; `queue_age_sample_budget` = 100 everywhere; finjob/bpm/mliw/people = 0 everywhere. ## Rollout 1. **URGENT**: lead-owned train, order **listen → pusher → cloud-run** (FIRESTORE_READ_LEVERS order). The loop does not dispatch deploys or approve gates. 2. Post-serve: hourly tick verify runs the discrimination (2 clean ticks at 0 → cohort implicated, stays 0; flat >ref → exogenous, restoration re-plan with the lead). Re-baseline after the served revision changes. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24348?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> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/24348?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24348&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Git-on-my-level
added a commit
that referenced
this pull request
Nov 14, 2026
…25318) ## Why SCA-1750 is meant to close free-tier allowance leaks. Its watch-only counter (#25155) is serving in production, but a 24h GMP read (ro-prod, aggregates only, to about 2026-11-15T01:40Z) showed it can't judge most free spend: | Path | 24h observations | Problem | |---|---|---| | `live_open` | 8,022 `would_allow`, **5,334 `usage_unavailable`** | about 40% of free live opens can't read usage | | `prerecorded` | **3,055 `would_refuse`**, all reason `identity_unavailable` | none of these are allowance refusals | | batch / upload / sync | **none** | counters are emitted, then dropped before GMP | No enforcement decision can be made until the counter sees these routes. David ruled on 2026-11-15 that the counter is validated by sampling free users, and this fix comes first. ## What changes 1. **Usage epoch on prod listen and pusher.** The Cloud Run billing gate rebuilds and trusts `monthly_usage_totals` docs under `c2fs_20261026_r1` (#24194, 0d18df1). Prod `backend-listen` and `pusher` read the same doc with `v1`, so the watch raised `ValueError('unverified monthly usage')` and reported `usage_unavailable`. - The epoch is now aligned in the prod overlay, the regenerated `runtime_env.yaml` and both prod chart values. - `FIRESTORE_READ_LEVERS` stays at `usage_month_*=0` on GKE, so no legacy reader starts trusting monthly totals. - Dev, jobs and desktop-backend are unchanged. - The served-defaults snapshot and the render test record the new pair. 2. **`unbound` decision.** `observe_unbound` used to emit `would_refuse` when the call had no uid: speaker-sample verification, recovery recognizers and the transcription shadow. It now emits `unbound`. Lease reason `identity_unavailable` is unchanged. - Calls that have a uid but no bound operation still emit `would_refuse` / `billing_scope_unavailable`. - Threading the uid into those callers is required before enforcement, and is left for a follow-up. 3. **Metrics reach GMP.** - `omi_free_allowance_.*` is added to the explicit keep rule in `cloud_run_gmp_sync.yaml` (backend-sync, backend-sync-backfill, backend-integration). - The batch worker's private `/metrics` registry now registers the four allowance collectors, so `batch_gpu` observations are exported. There is no change to serving admission, prices, plans or user-visible behaviour, and no data is deleted. ## Rollback Revert this PR, or delete the two overlay lines and restore `v1` in the two prod chart values, then regenerate. The observer kill switch, `STT_FREE_ALLOWANCE_WATCH_ENABLED=false`, is unchanged. ## Verification - From `backend/`: `pytest tests/unit/test_free_allowance_metrics_are_scraped.py test_free_allowance_session.py test_free_allowance_watch.py test_free_allowance_leases.py test_qualify_usage_month.py test_backend_runtime_env_validator.py test_render_backend_runtime_env.py test_verify_pusher_config_references.py test_batch_pipeline_runtime.py test_quiet_check_metrics_are_scraped.py test_attach_cloud_run_gmp_sidecar.py test_monthly_usage_totals.py test_fsr_s4_caches.py`: 876 passed. - `scripts/check_feature_flag_registry.py`: OK, after regenerating the registry doc. - After serving, readback is the same GMP query: `usage_unavailable` on `live_open` should fall sharply, `unbound` should replace the prerecorded `would_refuse`, and `batch_gpu`, `sync` and `batch_provider` series should appear. ## Product invariants affected - INV-MEM-4: not affected. This change touches no memory promotion path. The citation is only path-triggered (backend Python). ## Failure class (fixes) Failure-Class: FC-metric-dropped-by-scrape-allowlist 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/25318?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> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/25318?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25318&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
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
Firestore read lever config — guard flag-off: 7 levers 100 -> 0 (
singleton_loops,usage_month_cache,backfill_task_reads,historical_scan_memo,ledger_purge_coalesce,queue_age_sample_budget,usage_month_total). Complete 20-key literal, delta vs main only in those 7 keys;finjob_candidate_queriesstays 5 (its own gate). Theusage_month_totalCloud Run-only override inprod.overlay.yamlgoes 100 -> 0 with this flag-off — umt is itself guard-flagged; #23739 (4f7e485) set the precedent of flagging umt to 0 and removing the wanted-line CR term while keepingFSR_USAGE_MONTH_TOTAL_EPOCHrecorded.Reason: backend-sync 5xx guard re-escalation fired per the armed WQ30 plan. verify graded the flagged levers UNSAFE on 5 consecutive ticks (17Z-21Z 2026-10-31: rate 0.0035-0.0036, 1550-1600 err/h excl audio-merge, vs ref 0.0014). The 17:15Z run disposed the first raise as exogenous (route attribution: /v2/sync-jobs/run + audio-merge retry noise under 2x WoW traffic) and armed re-escalation: "flag off next run if verify still FAIL post-fix-serve with 2h train-quiet tail, or on any lever-specific why". The lead's fix train (14d7e31 carrying #24161, #24164, #24175) went live 15:18Z on backend / backend-sync / backend-integration (lead bus post); no train since (5h+ quiet tail); verify still FAILs with a FLAT rate and unchanged error counts. No lever-specific why (finjob at 5% carries the same service-scope why). Per the runbook judgment rule, flag-off is the discriminating experiment: if the 5xx rate persists at levers 0, the cohort is exonerated (cause exogenous) and re-enables at 5%; if it drops, the cohort is implicated.
Product invariants affected
backend/deploy/runtime_env.yamlgenerated-manifest lock; the change is the rendered FIRESTORE_READ_LEVERS literal only.Failure-Class: none
Verification
set_levers.pyREPLACE-mode with the complete 20-key umt:0 literal (6 keys 100 -> 0 in base/charts/pins);prod.overlay.yamlhand-patched umt 100 -> 0 plus the same 6 keys (4 sites, set_levers does not match its inline literal form);compose_runtime_env.py+render_feature_flag_registry.pyre-run.test_render_backend_runtime_env.pyupdated per config(firestore-reads): ramp conversation_list_cursor 5->100 (WQ4 step 2) #24134/Revert "config: flag off 8 FIRESTORE_READ_LEVERS to 0" (#23731) #23739 convention (6 keys 100 -> 0; thewantedCR-override term removed while umt is off, epoch assertion unchanged).+side equals the new 20-key literal exactly; zero residual sites with any flagged lever > 0;finjob_candidate_queries= 5 everywhere.test_render_backend_runtime_env.py91 passed +test_verify_pusher_config_references.py28 passed (lane venv).Lead-owned ship plan
URGENT: deploy needed listen -> pusher -> Cloud Run (FIRESTORE_READ_LEVERS train order). Bus handoff posted to the lead; ride the next train rather than batching.