Skip to content

config(firestore-reads): ramp conversation_list_cursor 5->100 (WQ4 step 2) - #24134

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/firestore-reads-clc-100-1030
Oct 30, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/firestore-reads-clc-100-1030

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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.

View guided diff Turn on auto-fix

…ep 2, umt split preserved)

ramp5 clock >10h (served ~10-30T08:08Z, backend-5a1ad64-41024460998-1); verify PASS x4 ticks 15Z-18Z after the 14Z sync-backfill 5xx storm cleared (attributed to code train 4cd3c77, literal byte-identical). Single-key delta, 20-key literal, usage_month_total split preserved (0 base/charts/pins, 100 prod.overlay). 119/119 contract tests. Loop: firestore-reads.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T19:44:45.922148Z a3d0584 PR opened
ℹ️ 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" or "@codex security review".

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
Git-on-my-level merged commit c532e20 into main Oct 30, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/firestore-reads-clc-100-1030 branch October 30, 2026 19:55
Git-on-my-level added a commit that referenced this pull request Oct 31, 2026
… 5xx re-escalation, WQ31) (#24194)

## 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_queries`
stays 5 (its own gate). The `usage_month_total` Cloud Run-only override
in `prod.overlay.yaml` goes 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 keeping
`FSR_USAGE_MONTH_TOTAL_EPOCH` recorded.

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

- 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 legacy un-memoized paths (safe
defaults, all previously serving pre-ramp).

Failure-Class: none

## Verification

- `set_levers.py` REPLACE-mode with the complete 20-key umt:0 literal (6
keys 100 -> 0 in base/charts/pins); `prod.overlay.yaml` hand-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.py` re-run.
- Contract-pinned expected dict in `test_render_backend_runtime_env.py`
updated per #24134/#23739 convention (6 keys 100 -> 0; the `wanted`
CR-override term removed while umt is off, epoch assertion unchanged).
- Diff audit: 43 changed-literal sites, every `+` side equals the new
20-key literal exactly; zero residual sites with any flagged lever > 0;
`finjob_candidate_queries` = 5 everywhere.
- Contract tests: `test_render_backend_runtime_env.py` 91 passed +
`test_verify_pusher_config_references.py` 28 passed (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;
ride the next train rather than batching.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/24194?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/24194?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24194&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. -->
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