Repository navigation
config(fsr): graduate usage_month_cache, backfill_task_reads, historical_scan_memo, ledger_purge_coalesce 0->100 - #23179
Merged
Conversation
…cal_scan_memo, ledger_purge_coalesce 0->100 Ramp rules met 2026-10-22T01:45Z: - usage_month_cache: ramp5 since 2026-10-20T05:00Z (ref 39368136637); 100% served 10-20 with SUPPORTED readout; flag-off exoneration stands (backend-sync 5xx in band 0.09-0.20%/h on 10-21 11Z-19Z and 0.13-0.15%/h 22Z-01Z with the lever at 0). - backfill_task_reads + historical_scan_memo + ledger_purge_coalesce: ramp5 since 2026-10-20T05:00Z (ref 39368136637); verify PASS on 4 consecutive ticks (22Z-01Z, zero UNSAFE/FALSIFIED). WQ11 exoneration cycle closed: five levers at 0 for 24h+ with backend-sync 5xx in band. - Literal otherwise identical to the served 16-key literal (d90643d); three memory levers stay at 5 (independent ramp5 clocks); singleton_loops stays 25 (WQ1 lease rework outstanding); queue_age_sample_budget stays 0. - Contract tests: 121 passed (test_verify_pusher_config_references + test_render_backend_runtime_env).
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. |
Member
Author
|
zcode glm-5.3 review (exec-clay-siege-client-away-fine-onion): SAFE — all 45 literal sites byte-identical with exactly the four graduations; contract tests 121 passed re-run by reviewer; runtime_env regeneration byte-identical (compose --check); flag registry re-render clean; scope verified config-only (no code-path change, firestore_read_levers.py untouched). Full verdict: PR-REVIEW-23179.md. |
Git-on-my-level
added a commit
that referenced
this pull request
Oct 25, 2026
## Summary Firestore reads loop config: graduate the six runbook-ramped levers 5 → 100 in one literal (17 keys, generated with `avo/firestore-reads/set_levers.py`, REPLACE-mode, byte-identical at all 43 declaration sites): - `singleton_loops`, `usage_month_cache`, `backfill_task_reads`, `historical_scan_memo`, `ledger_purge_coalesce`, `queue_age_sample_budget`: 5 → 100. - Unchanged: `batch_privacy_memoize` 100, `memory_list_index_window` 25, `people_scan_dedupe` 0, all graduates at 100. Gate evidence (runbook ramp5 rule): the 5% literal has been served on all four Cloud Run services since **2026-10-25T17:56:02Z** (#23599 c304e3a, backend-f3e669f-40214727824-1, literal verified); by merge the 3h soak holds. verify PASS on the 19:00Z and 20:00Z ticks (2 consecutive post-serve) with no UNSAFE/FALSIFIED lever and `flag_off: []`. `singleton_loops` lease gate: `lease_1h` non-empty in snapshot 2026-10-25T19:00:28Z (publish_all_queue_oldest_ready_ages acquired 12, reconcile_abandoned_byok 58; lease_gke_ok true). Levers INCONCLUSIVE at 5% follow the loop's graduation precedent (WQ2 batch, #23179): the absolute readout at 100% decides. Why now: the six levers' caller pools are the top remaining Firestore read hotspots — `conversation_finalization_jobs` scans ~29M reads/h and `durable_queue_age` sampling ~21.5M reads/h in the 17–18Z hour (snapshot 2026-10-25T19:00:28Z, pre-serve baseline). Config only; no code paths change. Off-path for every lever is the current served behavior. ## Product invariants affected - INV-MEM-4 — config-only rollout of default-off code-path levers; every lever reverts at 0 with no data-path or authority change. - INV-DATA-1 — value-only edit of the existing `FIRESTORE_READ_LEVERS` key; no routing or ownership change. ## Test plan - `backend/tests/unit/test_render_backend_runtime_env.py` (93) + `backend/tests/unit/test_verify_pusher_config_references.py` (28): 121 passed on this branch (2026-10-25). - Literal verified byte-identical at all 43 sites; regenerated `runtime_env.yaml`, flag registry, and both pinned contract tests. - Post-merge watch: verify.py per-lever gates + backend/backend-sync/backend-sync-backfill 5xx rates hourly; any UNSAFE/FALSIFIED lever flags off via config PR. The backend-sync 5xx exoneration probe (rate 0.0120 pre-serve 17Z vs ref 0.0078, with bpm at 100) stays live until the rate holds under ref for 24h. ## Rollout 1. Train order **listen → pusher → Cloud Run** (FIRESTORE_READ_LEVERS order; the Cloud Run candidate check compares GKE env against main's runtime_env). GKE listen/pusher still carry the pre-#23575 literal; this train also brings them current. 2. Handoff to the two-lane lead via bus after merge; ramp clocks start at the served revision carrying this literal. 3. D+2 absolute readout per lever vs a fresh post-serve baseline; 0 for any FALSIFIED/UNSAFE.
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 reads loop config: graduate four exonerated ramp5 levers to 100% (
usage_month_cache,backfill_task_reads,historical_scan_memo,ledger_purge_coalesce, each 0 → 100). All other 12 keys unchanged from the served train-P literal (d90643d,backend-02083-stk, verified via gcloud 01:20Z):usage_month_cache0 → 100: ramp5 since 2026-10-20T05:00Z (ref 39368136637); served at 100 on 10-20 with SUPPORTED absolute readout (50.7M → 4.9M/day, readout-2026-10-17T20Z-absolute.json era); WQ11 flag-off exoneration stands — backend-sync 5xx in band 0.09–0.20%/h on 10-21 11Z–19Z and 0.13–0.15%/h 22Z–01Z with the lever at 0.backfill_task_reads+historical_scan_memo+ledger_purge_coalesce0 → 100: ramp5 since 2026-10-20T05:00Z (ref 39368136637); verify PASS on 4 consecutive ticks (22Z/23Z/00Z/01Z, zero UNSAFE/FALSIFIED, verify-latest + snapshot .verify.json files). The WQ11 exoneration cycle is closed: five levers at 0 for 24h+ with backend-sync 5xx in band — the 5xx driver was sequencer rework, not the levers.Not changed:
memory_list_index_window/mcp_conversation_cards_cache/canonical_statuses_dedupestay at 5 (own ramp5 clocks, started 2026-10-22T~23Z when train P served d90643d);singleton_loopsstays 25 (WQ1 lease rework not yet ramped);queue_age_sample_budgetstays 0;people_scan_dedupestays 0 (no qualifying call site).Config only, generated with
avo/firestore-reads/set_levers.py(REPLACE-mode, complete 16-key literal at all sites):backend/deploy/runtime_env/_base.yaml+ regeneratedruntime_env.yaml, listen/pusher dev+prod values, flag registry, and the two pinned contract tests.Product invariants affected
FIRESTORE_READ_LEVERSkey; no routing or ownership change.Test plan
backend/tests/unit/test_verify_pusher_config_references.py+backend/tests/unit/test_render_backend_runtime_env.py: 121 passed on this branch (d33563d).Rollout