Skip to content

config: enable memory levers at 5% (memory_list_index_window, mcp_conversation_cards_cache, canonical_statuses_dedupe) - #23035

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/firestore-reads-memory-levers-5pct
Oct 21, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/firestore-reads-memory-levers-5pct

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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_window 0 → 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_cache 0 → 5: mcp conversation cards exact-size refills with read cap (FSR_MCP_CARDS_MAX_READS, default 1501).
  • canonical_statuses_dedupe 0 → 5: canonical-status pairs read via <=30-ID __name__ IN reference 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_loops 25 → 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 + regenerated runtime_env.yaml, listen/pusher dev+prod values, flag registry, and the two pinned contract tests (121 passed locally).

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_verify_pusher_config_references.py + backend/tests/unit/test_render_backend_runtime_env.py: 121 passed on this branch.
  • Post-merge watch: verify.py per-lever gates + backend/backend-sync 5xx rates at the 5% cohort (no lever-specific guard exemption requested).

Rollout

  1. Train order listen → pusher → Cloud Run (FIRESTORE_READ_LEVERS order; Cloud Run candidate check compares GKE env against main's runtime_env).
  2. Handoff to the two-lane lead via bus after merge (URGENT not required — no guard breach); ramp clock starts at the served revision carrying this literal.
  3. Ramp rule: 5% ≥ 3h with verify PASS (no lever UNSAFE/FALSIFIED) → config PR to 100% for SUPPORTED levers; 0 for FALSIFIED/UNSAFE.

View guided diff Turn on auto-fix

…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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T12:11:53.465980Z 7d3e0a0 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 e655115 into main Oct 21, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/firestore-reads-memory-levers-5pct branch October 21, 2026 16:49
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