Repository navigation
config(firestore-reads): enable conversation_list_cursor 0->5 (single-key delta, umt split preserved) - #24088
Merged
Conversation
…-key delta, umt split preserved) WQ4 enable step: cursor code merged-dark in #22450, KNOWN_LEVERS registration on main. 20-key literal; usage_month_total split preserved (0 base/charts/pins, 100 prod.overlay). Contract tests 174/174 (lane venv). Loop: firestore-reads.
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. |
Git-on-my-level
added a commit
that referenced
this pull request
Oct 30, 2026
…ep 2) (#24134) ## Summary Firestore read lever config — ramp `conversation_list_cursor` 5 -> 100 (step 2 of the WQ4 enable, #24088 took it 0 -> 5). Single-key delta on main's 20-key literal; every other key byte-identical, including the `usage_month_total` split (0 base/charts + pins / 100 prod.overlay Cloud Run-only, `FSR_USAGE_MONTH_TOTAL_EPOCH` epochs unchanged). Reason: the 5% cohort was served ~2026-10-30T08:08Z (Cloud Run backend-5a1ad64-41024460998-1 literal gcloud-verified; GKE legs by helm run 41011499632), the ramp5 clock is >10h, and verify has PASSed 4 consecutive ticks (15Z, 16Z, 17Z, 18Z 2026-10-30) after the 14Z backend-sync-backfill 5xx storm cleared — that storm was attributed to the same-day 13:52Z code train (4cd3c77), not to levers (literal byte-identical 11Z-14Z), so no lever regressed. Savings land as clients adopt the opaque cursor; 100% maximizes the server-side capability cohort. ## Product invariants affected - INV-FSR-LEVERS (replace-mode literal rule respected; key already in KNOWN_LEVERS, default-off sites unchanged) - INV-READ-BUDGET (cursor pages charge only rows actually streamed; list reads stay under the ListReadBudget) - INV-CONTRACT-LIST-PAGE (offset behavior unchanged; `page_envelope=True` + lever-on is the only path that returns `next_cursor`; cohort 5% -> 100%) - INV-MEM-4 (required by the `backend/deploy/runtime_env.yaml` generated-manifest lock; the change is the rendered FIRESTORE_READ_LEVERS literal only — no intake, promotion, or authority-path semantics) Failure-Class: none ## Verification - `set_levers.py` REPLACE-mode with the full 20-key literal (umt:0 variant for base/charts/pins); `prod.overlay.yaml` hand-patched (set_levers does not match its inline literal form) to keep the `usage_month_total` Cloud Run-only 100 override; `compose_runtime_env.py` + `render_feature_flag_registry.py` re-run. - Diff audit: every changed literal differs ONLY in `conversation_list_cursor` (5 -> 100); value-multiset invariant check vs HEAD green for all other lever keys across all 10 touched files (46 literal sites); `usage_month_total` split preserved. - Contract tests: 119/119 pass on the branch (`test_render_backend_runtime_env.py` + `test_verify_pusher_config_references.py`, lane venv). - Full CI: running on this head. ## Lead-owned ship plan Deploy needed: listen -> pusher -> Cloud Run (train order per RUNBOOK). Config rides the next routine trains; no new train requested. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24134?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/24134?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24134&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 — enable
conversation_list_cursor0 -> 5. Single-key delta on main's 19-key literal (20-key result); every other key byte-identical, including theusage_month_totalsplit (0 base/charts + pins / 100 prod.overlay Cloud Run-only,FSR_USAGE_MONTH_TOTAL_EPOCHepochs unchanged).Reason: the cursor code path is merged-dark since #22450 (WQ4) and its
KNOWN_LEVERSregistration landed with WQ15; the enable path has been unblocked since WQ13 shipped.conversations:_collect_visible_conversation_pageis the top surviving lane-owned origin (~1.27M reads/h backend, snapshot 2026-10-30T05:00:17Z, ~30M/day at 1hx24). Server-side enable is capability-only — savings land when clients adopt the opaque cursor — so the ramp is expected to run dark (verify WEAK) until then; 5% now starts that clock.Product invariants affected
page_envelope=True+ lever-on is the only path that returnsnext_cursor; 5% cohort only)backend/deploy/runtime_env.yamlgenerated-manifest lock; the change is the rendered FIRESTORE_READ_LEVERS literal only — no intake, promotion, or authority-path semantics)Failure-Class: none
Verification
set_levers.pyREPLACE-mode with the full 20-key literal;prod.overlay.yamlhand-patched (set_levers does not match its inline literal form) to keep theusage_month_totalCloud Run-only 100 override;compose_runtime_env.py+render_feature_flag_registry.pyre-run.conversation_list_cursor(0 -> 5); value-multiset invariant check vs HEAD green for all other lever keys across all 10 touched files;usage_month_totalsplit preserved.test_render_backend_runtime_env.py+test_verify_pusher_config_references.py+test_fsr_wq4_cursor.py+test_firestore_read_levers.py, lane venv 3.11.15).Lead-owned ship plan
Deploy needed: listen -> pusher -> Cloud Run (train order per RUNBOOK). Config rides the next routine trains; GKE legs additionally still owe the #23939 people:0 roll — this key joins the same catch-up train, not a new one.