Repository navigation
config(firestore-reads): guard flag-off singleton/backfill/historical/ledger_purge 100->0 (backend-sync 5xx 0.0134 vs ref 0.0073) - #24348
Merged
Conversation
…/ledger_purge 100->0 (backend-sync 5xx 0.0134 vs ref 0.0073, 05Z tick; #24210 admission exception kept)
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Git-on-my-level
added a commit
that referenced
this pull request
Nov 2, 2026
Reverts #24348 (merge d963454) to restore singleton, backfill, historical and ledger-purge read levers to 100. The upload503 investigation attributes the sync 503 rise to sampled-language admission; the lead requested this exact revert before the next train. Product invariants: INV-MEM-4, INV-DATA-1. Configuration-only restoration; preserve monthly usage exception and epochs. Lead owns merge and deployment. Validation: exact inverse-patch roundtrip reproduces the base tree; all 41 deploy literals equal pre-#24348 values. 119 runtime-env/pusher tests plus 265 deploy-safety tests passed through backend/test.sh; make preflight and hermetic deploy validators passed. Luna review and CI results will be handed to the lead. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24368?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/24368?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24368&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. -->
MichaelC001
pushed a commit
to MichaelC001/omi
that referenced
this pull request
Nov 3, 2026
…storical/ledger_purge 100->0" This reverts commit d963454, reversing changes made to a253523. The upload503 investigation attributes sync upload 503s to sampled-language admission. Restore the exact pre-BasedHardware#24348 lever configuration for the lead's next train.
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.
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_LEVERSvalues 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).
same window, excl audio-merge) 1805/248696 = 0.0073. Hourly trajectory: 0.0041 (22Z) → 0.0048 (23Z–00Z;
restoration config(firestore-reads): restore exonerated cohort 5 levers 0->100 (keep #24210 backend-sync usage_month exception) #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
(Revert "config: flag off 8 FIRESTORE_READ_LEVERS to 0" (#23731) #23739 / lead RCA e54718 precedent), restoration re-planned with the lead.
singleton_loops,backfill_task_reads,historical_scan_memo,ledger_purge_coalesce100 → 0.usage_month_cachebase stays 0 (it was already 0 off the fix(backend): restore monthly usage reads only for sync admission #24210 exception scope).prod.overlaybackend-syncusage_month_cache/usage_month_total= 100 — the fix(backend): restore monthly usage reads only for sync admission #24210compute-admission exception. Admission calls backend-sync
/authorize-computewith a 5-second client timeout;zeroing these re-breaks admission (admission stage mean ~5.1s, unevaluated deferrals ~3.7/s — the exact incident
fix(backend): restore monthly usage reads only for sync admission #24210 fixed under lead ruling dde240). The 05Z tick's
usage_month_cacheUNSAFE carries the sharedservice-scope why (WQ30 precedent: same-why proves service-scope), and
usage_month_totalwas not flagged atall. If post-flag-off discrimination implicates umc specifically, zeroing the exception is fix(backend): restore monthly usage reads only for sync admission #24210's documented
rollback (admission impact accepted; lead decides).
queue_age_sample_budgetstays 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 thefour prod.overlay inline sites hand-patched (flagged keys only) and the third pinned
expecteddict intest_firestore_train_preserves_monthly_reader_scope_and_cloud_run_overridesupdated (set_levers' regexes do notcover it). Stale #24194-era comment blocks refreshed to the current scope. Regenerated
runtime_env.yaml+feature-flag registry.
Product invariants affected
to flag-off behavior at 0; the fix(backend): restore monthly usage reads only for sync admission #24210 admission exception is unchanged (epoch c2fs_20261026_r1 preserved).
FIRESTORE_READ_LEVERSkey.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/.venvfreshly synced from pylock.macos.toml viamake setup-backend).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
does not dispatch deploys or approve gates.
flat >ref → exogenous, restoration re-plan with the lead). Re-baseline after the served revision changes.