Skip to content

config(firestore-reads): polling cache, action_items_ttl120, memory_list_index_window -> 100; record_pending_head 5% - #24648

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/cl2-levers3
Nov 4, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/cl2-levers3

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

What

Config only. Ordinary read levers from 5% to 100% after their soak, plus one new 5% canary:

Key Change Serving at the lower step since
OMI_EXTERNAL_LIST_POLLING_CACHE_PERCENT (Cloud Run backend) 5 -> 100 2026-11-04 20:52Z (#24623)
action_items_ttl120 5 -> 100 22:13Z (#24639)
memory_list_index_window 25 -> 100 22:13Z (#24639; 48h clean at 25 earlier, #23536)
lifecycle_record_pending_head 0 -> 5 new canary; per-replica cohort since #24640

Why

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 backend service, 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 known backend-sync false positive: measure.py's sync_local_files exclusion count got HTTP 429 from Logging, so the lead-ruled /v2/sync-local-files 503 wave went unsubtracted. That disposal is recorded in data/run-2026-11-04-infracost/guard-5xx-attrib-2026-11-04T22Z.md in omi-workspace. backend-integration 5xx 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 with BACKEND_UNIT_FILE_BUDGET_SECONDS=900; CI keeps its own 300s.

Product invariants affected

  • INV-MEM-4 (path match on backend/deploy/runtime_env.yaml only; no memory promotion behavior changes)

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

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

chatgpt-codex-connector Bot commented Nov 4, 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-11-04T23:07:48.887772Z 38033d9 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.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 11 files

Confidence score: 5/5

  • backend/docs/feature-flag-registry.md still 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 |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@Git-on-my-level
Git-on-my-level merged commit 201e2ba into main Nov 4, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/cl2-levers3 branch November 4, 2026 23:17
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