Skip to content

config(firestore-reads): flag off people_scan_dedupe (FALSIFIED at 100%) - #23939

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/firestore-reads-flagoff-people-1029
Oct 29, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/firestore-reads-flagoff-people-1029

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Firestore read lever config — flag off people_scan_dedupe 100 -> 0. Single-key delta on the served 19-key literal (verified live on backend-62c645a-40804413803-1 at 2026-10-29T0xZ under ro-prod); every other key byte-identical, including the usage_month_total split (0 base / 100 Cloud Run-only, epochs unchanged).

Reason: people_scan_dedupe is FALSIFIED at 100% and the falsification is real, not a baseline artifact:

  • verify.py graded it FALSIFIED on 4 consecutive ticks (00Z-03Z, 2026-10-29): share 0.0484 -> 0.0359-0.0458, implied drop 1.4-6.6M/day vs need >= 7.5M/day (prediction 15M/day, levers.json).
  • Absolute needle check (person_aliases:list_people, snapshots 2026-10-28T00Z..04Z at lever 0 vs 2026-10-29T00Z..03Z at lever 100, same diurnal hours): 865k->1043k, 741k->829k, 659k->1094k, 577k->903k reads/h — the needle is 12-66% HIGHER at 100% than at 0% on the same hours. 12h-smoothed now-band ~1.07M/h (~25.7M/day) vs the pre-enable band ~0.55-0.65M/h (~13-16M/day): no saving; growth is exogenous (fleet/batch-pipeline growth, fast_ratio 0.7198, fleet gate PASS).
  • Mechanism note: the shipped WQ20 scope (sync: owner-generation fencing for people_scan_dedupe (lever stays 0) #23733) wired the known_spellings._people_spellings memo only; the find_person_by_name miss-fallback full scan and the sync-side list_people callers were deliberately out of scope (WQ20 sol report), so the 15M/day prediction is unreachable by the shipped code path.

All other levers on this literal graded SUPPORTED/INCONCLUSIVE by verify 2026-10-29T03:00:07Z (fleet gate PASS, give_back empty, coverage clean). Flagging people off restores overall verify PASS for the restored cohort.

Product invariants affected

  • INV-MEM-4 — people/privacy authority checks unchanged; lever-off restores the legacy un-memoized scan path (safe default, previously serving before 2026-10-28).
  • INV-DATA-1 — existing configuration keys and data planes; no routing or ownership change.

Verification

  • set_levers.py REPLACE-mode from the live-served 19-key literal (gcloud revision describe backend-62c645a-40804413803-1, ro-prod) with the single delta people_scan_dedupe: 100 -> 0; prod.overlay.yaml hand-patched to keep the usage_month_total Cloud Run-only 100 override (set_levers does not touch overlays); compose_runtime_env.py + render_feature_flag_registry.py re-run.
  • Diff audit: 44 literal lines changed, every one differs ONLY in people_scan_dedupe (100->0); key count 19 everywhere; people_scan_dedupe:100 count 0 across all 11 touched files; usage_month_total split preserved (11x0 base/charts + 4x100 prod.overlay).
  • 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). Flag-off is a safety-neutral cost revert (lever off = legacy path, previously the serving state before 2026-10-28); URGENT only in the sense that verify stays FAIL until served.

View guided diff Turn on auto-fix

Single-key delta on the served 19-key FIRESTORE_READ_LEVERS literal:
people_scan_dedupe 100 -> 0. verify.py FALSIFIED x4 ticks (00Z-03Z 10-29,
share 0.0484 -> 0.0359-0.0458, implied drop 1.4-6.6M/day vs need 7.5M/day);
absolute needle check at same diurnal hours shows person_aliases:list_people
12-66% HIGHER at 100% than at 0% (lever scope shipped in #23733 covers only
known_spellings; sync-side list_people callers unwired). usage_month_total
split (0 base / 100 Cloud Run-only) preserved; 119/119 contract tests pass.

Loop: avo/firestore-reads (firestore-reads loop, WQ29).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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 🔄 Running since 2026-10-29T04:08:24.462008Z c18c730 New commits
ℹ️ 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.

…-inherited CI red: test_app_client_schema_inventory fails at base 3f4c98d, proven in clean worktree; disjoint files)
…e/firestore-reads-flagoff-people-1029: the shard-5/6 red is the main-side inventory break between #23873/#23897 and #23936 per its own commit message; fixes the failing test on our base
@Git-on-my-level
Git-on-my-level merged commit 3c377bd into main Oct 29, 2026
56 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/firestore-reads-flagoff-people-1029 branch October 29, 2026 04:20
Git-on-my-level added a commit that referenced this pull request Oct 30, 2026
…-key delta, umt split preserved) (#24088)

## Summary

Firestore read lever config — enable `conversation_list_cursor` 0 -> 5.
Single-key delta on main's 19-key literal (20-key result); 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 cursor code path is merged-dark since #22450 (WQ4) and its
`KNOWN_LEVERS` registration landed with WQ15; the enable path has been
unblocked since WQ13 shipped.
`conversations:_collect_visible_conversation_page` is 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

- INV-FSR-LEVERS (replace-mode literal rule respected; the new key rides
KNOWN_LEVERS already on main, 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`; 5% cohort only)
- 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;
`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` (0 -> 5); value-multiset invariant check vs
HEAD green for all other lever keys across all 10 touched files;
`usage_month_total` split preserved.
- Contract tests: 174/174 pass on the branch
(`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).
- 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; GKE legs additionally still owe
the #23939 people:0 roll — this key joins the same catch-up train, not a
new one.


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