Repository navigation
fix(margin-20): address Luna blocks on #24596 (floors, backfill concurrency, memory lever) - #24601
Merged
Merged
Conversation
…oors, backfill concurrency, memory lever) Reverts the parts of #24596 that Luna blocked, keeping the cleared Cloud Run backend 8->4Gi and GMP 60s changes: - listen minReplicas back to 20, pusher back to 12 (P1: scale-in and the roll can drop live sockets without the qualified admission drain) - batch-pipeline-worker replicaCount/minReplicas back to 6 (P1: capacity runbook) - backfill keeps 2Gi but concurrency back to 6 (P2: 2Gi qualified only at 6) - FIRESTORE_READ_LEVERS memory_list_index_window back to 0 everywhere (P2: no cohort readout); listen/pusher env identical to pre-#24596 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. |
Git-on-my-level
added a commit
that referenced
this pull request
Nov 4, 2026
…; memory_list_index_window 25 (#24639) ## What Config only, one batched lever change: | Key | Change | Why | |---|---|---| | `FSR_SUBSCRIPTION_TTL_SECONDS` | 60 -> 55 (all services) | cl2-replay's verified privacy replay (1,049 faulted transitions, 2026-11-04 20:12Z) found that, with both invalidations lost, the Redis `EX 60` subscription/BYOK entry is still served at exactly +60.000s: 37 mismatches at 0s margin. 55s gives 0 with 5s margin. | | `action_items_ttl120` | 0 -> 5 | Ordinary lever from #24624: the version-bumped action-item page cache reuses pages for at least 120s instead of the deployed 30s. | | `memory_list_index_window` | 0 -> 25 | Back to the cohort that soaked 48h clean (#23536). The #24596/#24601 revert objected to the 0->100 jump, not the lever. | | `backend/docs/runbooks/external-list-reads.md` | wording | States the live 5% polling-cache cohort from #24623 (Luna r1 minor on #24623). | Luna r1 removed `lifecycle_record_pending_head` from this change: it cohorts on a single namespace key, so 5% would be off on every replica. A follow-up keys it per replica. This also satisfies lead2's enforce requirement for #24622 (`1104-b059ba`): the subscription TTL becomes 55s. The new privacy caches already use a strict `< 60.000s` bound. ## Rollout David's 2026-11-04 policy for ordinary read levers: 5% for 1-2h with the firestore-reads 5xx/latency guards, then 100% the same day in a follow-up. Rollback: set any key back to its previous value. ## Verification - `pytest tests/unit/test_render_backend_runtime_env.py tests/unit/test_verify_pusher_config_references.py tests/unit/test_firestore_read_levers.py tests/unit/test_backend_runtime_env_validator.py`: 294 passed. - `pytest tests/unit/test_fsr_s4_caches.py`: passes (TTL ceiling 60 unchanged; 55 is within it). - Local push gate ran with `BACKEND_UNIT_FILE_BUDGET_SECONDS=900` (host load ~50); CI keeps its own 300s budget. ## Product invariants affected - INV-MEM-4 (path match on `backend/deploy/runtime_env.yaml` only; no memory promotion behavior changes) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kriegcloud
pushed a commit
to kriegcloud/omi
that referenced
this pull request
Nov 5, 2026
…ing_head 5, memory_list_index_window 0 -> 25 Ordinary read levers under David's 2026-11-04 policy (5% for 1-2h, then 100): - action_items_ttl120 / lifecycle_record_pending_head (code BasedHardware#24624) start at 5%. - memory_list_index_window returns to 25, where it soaked 48h clean before the BasedHardware#24596/BasedHardware#24601 revert; that revert objected to the 0->100 jump, not the lever. Rollback: set any key back to 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Nov 8, 2026
…4943) <!-- claude-projects-attribution: {"github_login":"Git-on-my-level"} --> _Requested by **David**_ ## What changes Retro P6 adds `batch-pipeline-tuning-disclosure` to the shared manifest in both local and CI lanes. Numeric capacity assignments and concurrency environment defaults in the batch config, pipeline source, worker/pusher charts, and `backend/utils/pusher_*.py` require numeric disclosures in one PR-body section naming a matched knob: before/after, from/to, or a nearby numeric arrow (`6 -> 4` or `6 → 4`). A knob with no removed numeric assignment may instead use `new: <num>` or `initial <num>`. Newly added literals directly assigned or compared to state-like names, or passed as state/status/phase/disposition/outcome/reason kwargs, must name an exit, terminal, dead-letter, re-entry, clear, or recovery path; literals already anywhere in the merge-base tree are exempt. `Numbers-waived: <reason>` and `State-exit-waived: <reason>` waive their respective requirement and echo the reason. HTML comments, fenced code blocks and inline code are stripped before validating disclosures, state exits or waivers. Logging arguments and literals merely near state-related words do not count as new states. The same single manifest entry runs hermetic regression tests before checking the body. Only changed lines trigger detection; flags, comment-only lines, and unchanged context do not count. The detector deliberately misses indirect/formula tuning: this is a disclosure ratchet. David approved this exact manifest and script/test change on **2026-11-08 at 16:13Z**. No workflow file changed. The change is limited to `.github/checks-manifest.yaml` and the two P6 files under `.github/scripts/`. ## Why this check The retro's #24481 HPA retune is the design precedent; the sweep below exercises HPA bounds changes such as #24742. Its from/to wording is supported, but its knob names are only in inline code, which the requested prose-only rule excludes. Existing product-invariant and failure-class checks validate different author declarations; neither detects capacity knobs or new lifecycle literals. This check reuses the manifest's existing diff/metadata plumbing without changing workflow wiring or inventing another PR orchestration layer. ## Product invariants affected none Failure-Class: none ## Merged-PR false-positive sweep (2026-11-08T20:01:42.025036+00:00) **200 merged PRs screened; 69 trigger-touching diffs checked; 16 would fail and 53 would pass.** 14 failing PRs require numeric disclosures; 2 require state declarations (3 state literals total). The prior sweep reported 18 failures; the refreshed capped corpus also advances its merge cutoff. Method: `gh pr list --repo BasedHardware/omi --state merged --search 'merged:>=2026-10-09' --limit 200 --json number,title,body,mergeCommit,mergedAt,files`, followed by `gh pr diff <number> --repo BasedHardware/omi` for matching paths. Full paginated file lists were checked whenever the initial listing reached 100 files. Each diff was checked against its PR body and reconstructed PR merge-base: merge-parent merge-base for normal merges; PR-head/merge-parent merge-base cross-checked with the recorded PR base for one-parent merges. State candidates use a whole-tree lookup at that merge-base. The capped corpus spans **2026-11-04T12:58:21Z through 2026-11-08T19:20:24Z**: a sample within the requested 30-day window, not full-month coverage. No production reads or GCP tier were used. The stricter state association passes #24743 (the prior proximity-only candidate). #24733 and #24729 now pass the expanded numeric wording. The required inline-code stripping means #24742 still fails: its from/to numbers are supported, but its matched knob names appear only in inline code. #24884 and #24725 also fail when their state names are excluded as inline code. These are explicit effects of the requested prose-only policy, not claims that those historical PRs omitted all semantic explanation. Sample of would-fail PRs: | PR | Detected change | Missing disclosure | | --- | --- | --- | | [#24889](#24889) | Tuning: `max_count` | Initial/new numeric value naming a matched knob in prose, before/after disclosure, or Numbers-waived | | [#24884](#24884) | New state: `record_barrier_aged` | State literal and exit declaration in prose, or State-exit-waived (inline code is excluded) | | [#24799](#24799) | Tuning: `MIN_STORAGE_PCM_BUDGET_MB` | Initial/new numeric value naming a matched knob in prose, before/after disclosure, or Numbers-waived | | [#24742](#24742) | Tuning: `maxReplicas`, `minReplicas` | Matched knob name in prose alongside the existing from/to numbers | | [#24736](#24736) | Tuning: `PAGE_SIZE` | Initial/new numeric value naming a matched knob in prose, before/after disclosure, or Numbers-waived | | [#24725](#24725) | New state: `marker_retry_overflow`, `marker_write_failed` | State literal and exit declaration in prose, or State-exit-waived (inline code is excluded) | | [#24716](#24716) | Tuning: `limit` | Initial/new numeric value naming a matched knob in prose, before/after disclosure, or Numbers-waived | | [#24712](#24712) | Tuning: `MAX_OWNER_DRAINS` | Numeric before/after, from/to or arrow disclosure naming a matched knob in prose, or Numbers-waived | | [#24710](#24710) | Tuning: `MAX_DELAYED_OWNERS` | Initial/new numeric value naming a matched knob in prose, before/after disclosure, or Numbers-waived | | [#24707](#24707) | Tuning: `MAX_HEAD_REQUEUES` | Numeric before/after, from/to or arrow disclosure naming a matched knob in prose, or Numbers-waived | All would-fail PRs: #24889, #24884, #24799, #24742, #24736, #24725, #24716, #24712, #24710, #24707, #24703, #24697, #24689, #24680, #24643, #24601. ## Validation - **26 focused regression tests passed** on head `1788dd10315e7a709dcaf6150838907638386ad0`, covering fenced/inline examples, direct state association (including the logging regression), from/to and arrows, and first-time versus changed numeric values. - **`make preflight` passed all 14 selected local checks**, including 26 P6 tests and 78 manifest-contract tests, with `OMI_PR_BODY_FILE` and `BACKEND_UNIT_FILE_BUDGET_SECONDS=900`. The normal bounded pre-push gate also passed all 14 checks using the final body and the same budget, with `GOOGLE_APPLICATION_CREDENTIALS` and every `CLOUDSDK_*` variable removed. - `scripts/pr-preflight --suggest` required no invariant citations; `Failure-Class: none` is declared above. - No workflow file changed; only the manifest and two P6 scripts differ from the merge base. - No production reads or GCP tier used. Full-month coverage beyond the 200-PR cap, indirect/formula tuning and product/runtime behavior are not established by this check. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.
Follow-up to #24596 (merged df8d613 over a Luna BLOCK). It addresses the blocking findings by reverting the blocked slices, and keeps the parts Luna cleared.
Authorization: David, 2026-11-04 ~12:55Z, in chat: skip pre-push and CI to ship ASAP.
Changes
minReplicas12 -> 20, pusher 8 -> 12; listen/pusherFIRESTORE_READ_LEVERSenv identical to pre-#24596, so a prod roll from main matches the pre-#24596 shapereplicaCountand HPAminReplicasback to 6Kept as merged (Luna cleared them): backend Cloud Run 8Gi -> 4Gi, and the GMP shared-profile scrape at 60s.
Deferred savings: the listen/pusher floor cuts (~part of the $43–70/d estimate) need the audio-fleet runbook's qualified admission drain and a socket-safe scale-in path first. The batch floor needs a fresh capacity qualification. The memory lever needs a staged cohort readout.
Verification
bin/omi-heavy run -- pytest): listen helm defaults, batch chart, HPA capacity replay, Cloud Run rightsizing pins, drift check, render runtime env, sync two-lane, GMP sidecar, cross-service deploy contract, firestore read levers, flag budget. Result: 475 passed, 3 skipped.🤖 Generated with Claude Code