Repository navigation
config: enable memory levers at 5% (memory_list_index_window, mcp_conversation_cards_cache, canonical_statuses_dedupe) - #23035
Merged
Conversation
…versation_cards_cache, canonical_statuses_dedupe) Firestore reads loop: #22856 landed with the three memory levers absent from FIRESTORE_READ_LEVERS (= OFF per default). Turn them on at the observational 5% cohort; all other keys unchanged from the served flag-off literal (18f90e1). set_levers.py replace-mode, complete 16-key literal; contract tests 121 green. Loop: firestore-reads; ramp clock starts at the served revision.
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. |
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: enable the three merged-but-dark memory levers (#22856) at 5% each. All other 13 keys unchanged from the served flag-off literal (18f90e1, train K
backend-f162bdb-39590246432-1/ listen 0bbf473 / pusher f162bdb):memory_list_index_window0 → 5: caps per-request index-window reads in memories list streams via caller-carried opaque cursor; invalid cursor falls back to legacy behavior.mcp_conversation_cards_cache0 → 5: mcp conversation cards exact-size refills with read cap (FSR_MCP_CARDS_MAX_READS, default 1501).canonical_statuses_dedupe0 → 5: canonical-status pairs read via<=30-ID__name__ INreference queries instead of two full-collection status reads.Predicted (levers.json, measured at 100% equivalents 10-20, snapshot 2026-10-21T11:00:46Z origins):
memories:_stream_memory_list_index_window,mcp_conversation_pages:get_mcp_conversation_cards,memory_service:canonical_statuses— per-caller reads to be measured by the ramp readout; per-loop rules the 5% window is observational (guard + expected-signal check), no savings claimed until 100% + readout.Rationale: #22856 served yesterday inside train windows with the three keys absent (= OFF per
firestore_read_levers.py), so the levers are merged-but-dark (runbook 2026-10-20 lesson: merged-but-dark is not progress). One config change in flight per loop phase rules;singleton_loops25 → 100 stays deferred pending the lease-rework evidence (WQ1).Config only, generated with
avo/firestore-reads/set_levers.py(REPLACE-mode, complete 16-key literal at all sites):_base.yaml+ regeneratedruntime_env.yaml, listen/pusher dev+prod values, flag registry, and the two pinned contract tests (121 passed locally).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.Rollout