Repository navigation
fsr(wq39): enable people_scan_dedupe + finjob_candidate_queries at 5% (post-#24422 re-pin) - #24504
Conversation
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. |
There was a problem hiding this comment.
2 issues found across 10 files
Confidence score: 4/5
backend/docs/feature-flag-registry.mdsets the people-scan lever to 5%, butbackend/docs/runbooks/people-scan-reuse.mdstill says it is 0 and requires a future config PR. Update the runbook to match this ramp.backend/deploy/runtime_env/prod.overlay.yamlenables bothFIRESTORE_READ_LEVERSat 5%, whilebackend/deploy/runtime_env/README.mddocuments them as off at 0. Update the runtime-manifest documentation so operators have the current values.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="backend/docs/feature-flag-registry.md">
<violation number="1" location="backend/docs/feature-flag-registry.md:700">
P2: This 5% manifest conflicts with the current people-scan runbook, which still says the lever remains 0 and that a future 5% config PR is required. Update `backend/docs/runbooks/people-scan-reuse.md` in this ramp so operators do not follow obsolete dark-deploy guidance.</violation>
</file>
<file name="backend/deploy/runtime_env/prod.overlay.yaml">
<violation number="1" location="backend/deploy/runtime_env/prod.overlay.yaml:540">
P3: `FIRESTORE_READ_LEVERS` now enables both levers at 5%, but `backend/deploy/runtime_env/README.md:74` still documents them as guard flag-offs at 0. Update that runtime-manifest documentation so operators do not treat this intended rollout as an invalid or stale configuration.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| | `EPISODES_UID_ALLOWLIST` | Comma-separated uids always admitted to episodes while EPISODES_ENABLED is on; empty admits nobody extra | backend | env | closed | — | — | — | — | keep | keep | — | dazheng | | ||
| | `FIRESTORE_CACHE_ENABLED` | Enable Firestore response cache | backend | env | closed | — | — | — | — | keep | keep | — | unowned | | ||
| | `FIRESTORE_READ_LEVERS` | Permanent default-off percentage gates for Firestore read reductions; all levers stay off unless explicitly assigned a cohort percentage | backend, web-admin | env | closed | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync, cloud_run/backend-sync-backfill, desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)) | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout} (cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync-backfill); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":100,"usage_month_total":100}', category: rollout} (cloud_run/backend-sync) | — | keep | keep | — | dazheng | | ||
| | `FIRESTORE_READ_LEVERS` | Permanent default-off percentage gates for Firestore read reductions; all levers stay off unless explicitly assigned a cohort percentage | backend, web-admin | env | closed | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync, cloud_run/backend-sync-backfill, desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)) | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout} (cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync-backfill); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":100,"usage_month_total":100}', category: rollout} (cloud_run/backend-sync) | — | keep | keep | — | dazheng | |
There was a problem hiding this comment.
P2: This 5% manifest conflicts with the current people-scan runbook, which still says the lever remains 0 and that a future 5% config PR is required. Update backend/docs/runbooks/people-scan-reuse.md in this ramp so operators do not follow obsolete dark-deploy guidance.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/docs/feature-flag-registry.md, line 700:
<comment>This 5% manifest conflicts with the current people-scan runbook, which still says the lever remains 0 and that a future 5% config PR is required. Update `backend/docs/runbooks/people-scan-reuse.md` in this ramp so operators do not follow obsolete dark-deploy guidance.</comment>
<file context>
@@ -697,7 +697,7 @@ and an explicit empty literal renders as `''`.
| `EPISODES_UID_ALLOWLIST` | Comma-separated uids always admitted to episodes while EPISODES_ENABLED is on; empty admits nobody extra | backend | env | closed | — | — | — | — | keep | keep | — | dazheng |
| `FIRESTORE_CACHE_ENABLED` | Enable Firestore response cache | backend | env | closed | — | — | — | — | keep | keep | — | unowned |
-| `FIRESTORE_READ_LEVERS` | Permanent default-off percentage gates for Firestore read reductions; all levers stay off unless explicitly assigned a cohort percentage | backend, web-admin | env | closed | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync, cloud_run/backend-sync-backfill, desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)) | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout} (cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync-backfill); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":100,"usage_month_total":100}', category: rollout} (cloud_run/backend-sync) | — | keep | keep | — | dazheng |
+| `FIRESTORE_READ_LEVERS` | Permanent default-off percentage gates for Firestore read reductions; all levers stay off unless explicitly assigned a cohort percentage | backend, web-admin | env | closed | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync, cloud_run/backend-sync-backfill, desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)) | {"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0} (backend-listen (chart), desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout} (cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync-backfill); {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":100,"usage_month_total":100}', category: rollout} (cloud_run/backend-sync) | — | keep | keep | — | dazheng |
| `FIRST_SUMMARY_DEADLINE_SECONDS` | First required summary dispatch budget; default 120 seconds, bounded 60 to 120 | backend | env | closed | — | — | — | — | keep | keep | — | dazheng |
| `FSR_USAGE_MONTH_TOTAL_EPOCH` | Monthly total reconstruction epoch, default v1; invalid values retain hourly reads | backend | env | closed | v1 | v1 (backend-listen (chart), cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync, cloud_run/backend-sync-backfill, desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)) | v1 (backend-listen (chart), desktop-backend, gke/backend-listen, gke/pusher, job/day3-reengagement-email-job, job/frame-request-retention-job, job/notifications-job, job/x-connector-sync-job, pusher (chart)); {value: c2fs_20261026_r1, category: rollout} (cloud_run/backend, cloud_run/backend-integration, cloud_run/backend-sync, cloud_run/backend-sync-backfill) | — | keep | keep | — | dazheng |
</file context>
| # carries people=5, memory=0, privacy=0 (finjob=5). | ||
| # Lead train: listen -> pusher -> Cloud Run; do not enable additional monthly readers here. | ||
| FIRESTORE_READ_LEVERS: {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout} | ||
| FIRESTORE_READ_LEVERS: {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout} |
There was a problem hiding this comment.
P3: FIRESTORE_READ_LEVERS now enables both levers at 5%, but backend/deploy/runtime_env/README.md:74 still documents them as guard flag-offs at 0. Update that runtime-manifest documentation so operators do not treat this intended rollout as an invalid or stale configuration.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At backend/deploy/runtime_env/prod.overlay.yaml, line 540:
<comment>`FIRESTORE_READ_LEVERS` now enables both levers at 5%, but `backend/deploy/runtime_env/README.md:74` still documents them as guard flag-offs at 0. Update that runtime-manifest documentation so operators do not treat this intended rollout as an invalid or stale configuration.</comment>
<file context>
@@ -537,7 +537,7 @@ overlay:
# carries people=5, memory=0, privacy=0 (finjob=5).
# Lead train: listen -> pusher -> Cloud Run; do not enable additional monthly readers here.
- FIRESTORE_READ_LEVERS: {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":0,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":0,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout}
+ FIRESTORE_READ_LEVERS: {value: '{"action_items_page":100,"backfill_task_reads":100,"batch_privacy_memoize":0,"bpp_generation_memo":100,"candidates_page":100,"canonical_statuses_dedupe":100,"conversation_list_cursor":100,"deletion_marker_cache":100,"finjob_candidate_queries":5,"historical_scan_memo":100,"ledger_purge_coalesce":100,"mcp_conversation_cards_cache":100,"memory_list_index_window":0,"people_scan_dedupe":5,"queue_age_sample_budget":100,"request_read_dedupe":100,"serving_config_cache":100,"singleton_loops":100,"subscription_cache":100,"sync_snapshot_resolve_cache":5,"usage_month_cache":0,"usage_month_total":0}', category: rollout}
FSR_USAGE_MONTH_TOTAL_EPOCH: {value: c2fs_20261026_r1, category: rollout}
# Batch ladder 2026-10-29 (lead ruling 12:15Z): pin shadow 25 so a Cloud Run deploy
</file context>
De-flakes the main-side flake `backend/tests/unit/test_batch_pipeline_live.py::test_drain_joins_workers_before_propagating_store_failure` (Backend Unit shard 4/6). Evidence: attempts 3/4 of run 41638508738 (config-only PR #24504, zero file overlap) failed with `AttributeError: 'NoneType' object has no attribute 'get'` ~line 91; attempt 6 (job 126347126042) hung past the 25m job cap instead. #24503 (merged as 81a8677) already guards the void-deferral None.get mode on main; the remaining race is that observing the slow worker start did not establish the store failure had occurred before releasing the worker. Test-only change to `backend/tests/unit/test_batch_pipeline_live.py` (+16/-2): fake DB calls resolve inline, failure observation is explicit before worker release, assertions verify worker completion and deferral, and a bounded wait keeps the test from hanging. Both param orders still assert the joins-before-propagate guarantee and reject an early-propagation mutation. Production code is untouched. Validation: 10/10 focused runs (both param values, 20/20 outcomes) and full file 89 passed on the lane venv; independently reproduced by the zcode glm-5.3 review (exec-genre-siege-beach-moon-category-trade, VERDICT: APPROVE), which also confirmed mutation sensitivity (early-propagation mutation of the drain gather fails at the target assertion; reverted clean). ## Product invariants affected - INV-FSR-LEVERS: not affected. Test-only change; no deploy manifest, runtime_env, or FIRESTORE_READ_LEVERS site touched. - INV-MEM-4: not affected. Memory intake and promotion routes untouched. Failure-Class: none ## Verification - 10x single-test (both param values) + full file 89 passed on the worktree backend/.venv (loop run; re-verified 5/5 by the driving loop). - Mutation check: early-propagation mutation of `utils/batch_pipeline/live.py` drain gather fails at the target assertion (review-verified, worktree left clean). - CI on this PR is expected green on shard 4/6 with the deterministic ordering + bounded wait. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/24567?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/24567?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F24567&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. -->
CI: run 41638508738, attempts 3 and 4, Backend Unit shard 4/6 (PR BasedHardware#24504). Local: reported failures 2-5/5; current guarded baseline 0/5 failures. Validation: 10/10 focused runs (both orders), full file 89 passed; early-propagation mutation rejected.
What
FIRESTORE_READ_LEVERS config-only change on top of #24455's 22-key manifest:
people_scan_dedupe0 -> 5: the perf(people): reuse generation-fenced scans at name and sync callers #24422 rewrite has served dark since 2026-11-03T02:49Z. Its pre-ramp base is re-pinned from a post-dark-deploy snapshot as the PR asked (baseline-2026-11-03T12Z-post24422.json: list_people 261,561/h + read_people_generation 0 rows in top_1h ~= 6.28M/day at 1hx24; the old ~15.1M/day pin predates the dark deploy).finjob_candidate_queries0 -> 5: flagged off 2026-11-01 during the exogenous/v2/sync-jobs/run+/v2/sync-local-files5xx waves. Both routes are now named guard exclusions until 2026-11-09 (workspace main fb748d571f7 + 852e2fb0cb3, lead rulings bus 01:18Z and b33168 03:55Z), the guard flag_off has been quiet since 09Z, and verify 2026-11-03T12Z is PASS.Everything else is byte-identical to the origin/main manifest, including
bpp_generation_memo:100andsync_snapshot_resolve_cache:5and the #24210 backend-syncusage_month_cache/usage_month_total=100 exception.Product invariants affected
Failure-Class: none
Verification
set_levers.pyREPLACE-mode with the full 22-key literal;compose_runtime_env.pyandrender_feature_flag_registry.pyregenerated outputs; diff audit shows only the two keys changed across all literal sites (the fix(backend): restore monthly usage reads only for sync admission #24210 backend-sync exception preserved).test_render_backend_runtime_env.pyincl. thetest_firestore_train_preserves_monthly_reader_scope_and_cloud_run_overridesexpected-literal updated to the new values;test_verify_pusher_config_references.py). fix(backend): restore monthly usage reads only for sync admission #24210 backend-syncusage_month_cache/usage_month_total=100 override site preserved (rendered line 3401).Lead-owned ship plan
Deploy needed: listen -> pusher -> Cloud Run (+ desktop-backend + jobs ride runtime_env) — FIRESTORE_READ_LEVERS train order per the two-lane split. Config rides the next routine trains; no new train requested.