Repository navigation
config(firestore-reads): polling cache, action_items_ttl120, memory_list_index_window -> 100; record_pending_head 5% - #24648
Conversation
…5 -> 100, memory_list_index_window 25 -> 100, lifecycle_record_pending_head 0 -> 5 Ordinary read levers under David's 2026-11-04 policy (1-2h at 5% with guards, then 100% the same day): the polling cache has been at 5% since 20:52Z (#24623) and action_items_ttl120 / memory_list_index_window at 5/25 since 22:13Z (#24639). lifecycle_record_pending_head starts its 5% canary now that it cohorts per replica (#24640). Rollback: previous values. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
There was a problem hiding this comment.
1 issue found across 11 files
Confidence score: 5/5
backend/docs/feature-flag-registry.mdstill tells operators to use and verify the old 5% rollout, while the registry records the polling cache at 100%. Update the runbook’s configuration, rollback, and verification guidance to match.
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:293">
P3: The registry now records the polling cache at 100%, but the external-list runbook still instructs operators to use and verify the old 5% rollout. Update the runbook’s current configuration and rollback/verification guidance with this change.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| | `NOTES_TIER_ESCALATION_ENABLED` | Escalate shaped notes to xhigh effort for long meetings with at least five screen frames; enabled on the 1 percent episode cohort (2026-10-09) | backend | env | closed | — | — | true (backend-listen (chart), cloud_run/backend, cloud_run/backend-sync, cloud_run/backend-sync-backfill, gke/backend-listen, gke/pusher, pusher (chart)) | — | pending | undecided | 2026-11-08 | dazheng | | ||
| | `OMI_EXTERNAL_LIST_POLLING_CACHE_ENABLED` | Default false; opt into per-key/query adaptive developer list TTL and ten-second item-absence caching | backend | env | closed | {value: 'true', category: rollout} | {value: 'true', category: rollout} | {value: 'true', category: rollout} | — | pending | on | 2026-11-09 | infracost | | ||
| | `OMI_EXTERNAL_LIST_POLLING_CACHE_PERCENT` | Default zero; deterministic API-key share admitted to developer polling read cuts | backend | env | closed | {value: '5', category: rollout} | {value: '5', category: rollout} | {value: '5', category: rollout} | — | pending | on | 2026-11-09 | infracost | | ||
| | `OMI_EXTERNAL_LIST_POLLING_CACHE_PERCENT` | Default zero; deterministic API-key share admitted to developer polling read cuts | backend | env | closed | {value: '100', category: rollout} | {value: '100', category: rollout} | {value: '100', category: rollout} | — | pending | on | 2026-11-09 | infracost | |
There was a problem hiding this comment.
P3: The registry now records the polling cache at 100%, but the external-list runbook still instructs operators to use and verify the old 5% rollout. Update the runbook’s current configuration and rollback/verification guidance with this change.
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 293:
<comment>The registry now records the polling cache at 100%, but the external-list runbook still instructs operators to use and verify the old 5% rollout. Update the runbook’s current configuration and rollback/verification guidance with this change.</comment>
<file context>
@@ -290,7 +290,7 @@ and an explicit empty literal renders as `''`.
| `NOTES_TIER_ESCALATION_ENABLED` | Escalate shaped notes to xhigh effort for long meetings with at least five screen frames; enabled on the 1 percent episode cohort (2026-10-09) | backend | env | closed | — | — | true (backend-listen (chart), cloud_run/backend, cloud_run/backend-sync, cloud_run/backend-sync-backfill, gke/backend-listen, gke/pusher, pusher (chart)) | — | pending | undecided | 2026-11-08 | dazheng |
| `OMI_EXTERNAL_LIST_POLLING_CACHE_ENABLED` | Default false; opt into per-key/query adaptive developer list TTL and ten-second item-absence caching | backend | env | closed | {value: 'true', category: rollout} | {value: 'true', category: rollout} | {value: 'true', category: rollout} | — | pending | on | 2026-11-09 | infracost |
-| `OMI_EXTERNAL_LIST_POLLING_CACHE_PERCENT` | Default zero; deterministic API-key share admitted to developer polling read cuts | backend | env | closed | {value: '5', category: rollout} | {value: '5', category: rollout} | {value: '5', category: rollout} | — | pending | on | 2026-11-09 | infracost |
+| `OMI_EXTERNAL_LIST_POLLING_CACHE_PERCENT` | Default zero; deterministic API-key share admitted to developer polling read cuts | backend | env | closed | {value: '100', category: rollout} | {value: '100', category: rollout} | {value: '100', category: rollout} | — | pending | on | 2026-11-09 | infracost |
| `OMI_FLAGS_SOURCE` | Default posthog; dual serves PostHog and counts Omi-store agreement, omi serves server flags (proactivity_v2) from the Omi flag store | backend, llm-gateway | env | closed | — | — | dual (backend-listen (chart), pusher (chart)); omi (llm-gateway (chart)); {value: dual, category: rollout} (cloud_run/backend, cloud_run/backend-sync, desktop-backend, gke/backend-listen, gke/pusher) | — | pending | on | 2026-11-12 | dazheng |
| `OMI_IMESSAGE_CONTACT_CARD` | Default-off sharing of a preconfigured Linq contact card. | backend | env | closed | — | — | — | — | keep | keep | 2026-11-09 | dazheng |
</file context>
What
Config only. Ordinary read levers from 5% to 100% after their soak, plus one new 5% canary:
OMI_EXTERNAL_LIST_POLLING_CACHE_PERCENT(Cloud Run backend)action_items_ttl120memory_list_index_windowlifecycle_record_pending_headWhy
These follow David's 2026-11-04 soak policy for ordinary read levers: 1-2h at 5% with the 5xx/latency guards, then 100% the same day.
Guard evidence comes from the firestore-reads 23:00Z tick, window 22Z. The
backendservice, where these levers act, had 725 5xx out of 1.24M requests (0.06%), against 425 out of 700k (0.06%) the previous week, so it's clean. The tick's overall FAIL is the knownbackend-syncfalse positive:measure.py'ssync_local_filesexclusion count got HTTP 429 from Logging, so the lead-ruled/v2/sync-local-files503 wave went unsubtracted. That disposal is recorded indata/run-2026-11-04-infracost/guard-5xx-attrib-2026-11-04T22Z.mdin omi-workspace.backend-integration5xx since 22:00Z are MCP SSE/list timeouts and enrichment 500s; they predate the 22:13Z serve and sit on paths these levers don't touch.Rollout
Next Cloud Run train, plus the listen/pusher legs for the shared literal. Rollback: previous values.
Verification
pytest tests/unit/test_render_backend_runtime_env.py tests/unit/test_verify_pusher_config_references.py tests/unit/test_backend_runtime_env_validator.py tests/unit/test_firestore_read_levers.py: 294 passed. Local push gate ran withBACKEND_UNIT_FILE_BUDGET_SECONDS=900; CI keeps its own 300s.Product invariants affected
backend/deploy/runtime_env.yamlonly; no memory promotion behavior changes)🤖 Generated with Claude Code