Repository navigation
fix(ops): pin permanent enrichment queue capacity - #25027
Git-on-my-level wants to merge 5 commits into
Conversation
Raise enrichment-fresh from 5/2 to 60/10 for first-summary backlog catch-up and reconcile enrichment with its live 300/25 setting. Failure-Class: none
The live owner reduced enrichment-fresh from the proposed 60 concurrent to 30 before PR creation; keep 10/s and make source match the current live value. Failure-Class: none
The pre-PR live read moved enrichment-fresh to 15 concurrent at 10/s; keep source and the config-train assertion aligned with that observed value. Failure-Class: none
Codex Review Summary: ✅ CompletedThis 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. |
|
Reopen to rebind the PR to the already-pushed branch head (lead2 ae580c); no history change. |
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
…25067) ## What and why Publish the already-reviewed #25027 queue-config patch as one replacement on current main. Supersedes #25027 because main churn after #25019/#25021 left the old PR DIRTY and its two-push limit is exhausted. Do not push the old branch again; leave #25027 open for merge-desk to close after the replacement is green. Permanent production values remain `enrichment-fresh` 30 concurrent / 10 dispatches/s and primary `enrichment` 300 concurrent / 25 dispatches/s, per lead2 ruling `008024` (2026-11-10). Independent config hunks preserve primary capacity during a fresh-only rollback. Named, asserted intentional staging divergences retain primary 50/25 and fresh 5/2. This publication adds no behavior or scope beyond the reviewed candidate; retry and admission policy are unchanged. The existing operational Firestore-pressure guard may temporarily lower live fresh concurrency to 15 while retaining 10 dispatches/s; Git remains 30/10. Re-evaluate the 168h age gate after the backlog drains. Only `cl2-deploy` applies production configuration; this work applied none. ## Refs and prior verdict - Previous published candidate: `44e120beae04e94153c263a8201f04cfeafb6c2b` on #25027. [Earlier review verdict](#25027 (comment)): Codex review completed at that exact head with no findings (2026-11-10 17:12:31 UTC). This is historical evidence, not a replacement-head CI or review verdict. - Reviewed local candidate carried here: `909a2e8bd516380bf9a6a3d698fa117e501d6216`, based on `720f078b33dde3872f5156fb87a961ffec2300c7`; its recorded result was 1,079 focused tests and 37 preflight checks green. - Replacement base: `9fc3d64dc2e62c14acbfe4e77d33344cb13fdda0` (`origin/main`, fetched 2026-11-10). - Replacement head: `a69af6cd4bf075b0780e561d9c63cfea25017447` (replacement push 1/2). - Branch: `lane/pipeline-25027-replacement`. - Diff against base: 5 files, +53/-15; 40 changed lines outside tests, below the 500-line cap. The candidate merge commit was cherry-picked relative to its second parent (`git cherry-pick -m 2 909a2e8`) onto current main. It applied cleanly. The stable patch ID is identical for the reviewed diff and replacement diff: `8839886f923ca8e0a10ee366e7ab8fe630318db8`. No rebase, force push, or additional PR merge. #25019 (`720f078b33dde3872f5156fb87a961ffec2300c7`) and #25021 (`9fc3d64dc2e62c14acbfe4e77d33344cb13fdda0`) are already merged in this base. #25019's production repair admission limit of 8, service-env spend-cap assertions, and debt ordering are preserved exactly as merged. #25021's pending-first-summary admission is preserved. Query/index/registry, repair service, summary config, and runtime manifests remain identical to this base; only the five reviewed files differ. Plan row: L3 notes queue bundle, replacement of #25027 -> #25032 -> #25020. #25021 and #25019 are already merged. Stop after publication for fresh CI and delta-only Luna review; no deploy or merge. ## Verification Repository: `BasedHardware/omi`, replacement worktree on m1. Evidence layer: local source/config/docs contracts and pre-push checks; no live production measurement. All checks use the worktree-owned `backend/.venv` through `bin/omi-heavy run --`, with GCP credentials unset: ```bash env -u GOOGLE_APPLICATION_CREDENTIALS -u GOOGLE_CLOUD_PROJECT -u GCLOUD_PROJECT -u CLOUDSDK_CONFIG -u CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE -u SERVICE_ACCOUNT_JSON -u FIREBASE_AUTH_CREDENTIALS_PATH -u GCP_AGENT_TIER -u CLOUDSDK_CORE_PROJECT -u CLOUDSDK_PYTHON /Users/david/workspace/omi-workspace/bin/omi-heavy run -- bash -c 'set -euo pipefail backend/.venv/bin/python -m pytest backend/tests/unit/test_config_train.py -q backend/.venv/bin/python -m pytest backend/tests/unit/test_cloud_run_rightsizing_pins.py backend/tests/unit/test_sync_two_lane.py -q backend/.venv/bin/python -m pytest backend/tests/unit/test_drift_check.py -q for suite in test_summary_delivery test_summary_repair_limits test_firestore_query_shapes test_firestore_outside_query_contract test_firestore_caller_witnesses test_firestore_runtime_witnesses test_firestore_index_rules test_firestore_query_contract test_firestore_field_indexes test_vad_cache_ttl_config; do backend/.venv/bin/python -m pytest "backend/tests/unit/${suite}.py" -q done' ``` | Contract | Result | | --- | --- | | Config-train (spend cap + queue/staging assertions) | 52 passed | | Cloud Run rightsizing + sync two-lane | 52 passed | | Drift check | 32 passed | | Summary delivery | 63 passed | | Summary repair limits | 35 passed | | Firestore query shapes | 560 passed | | Outside-query contract | 31 passed | | Firestore caller witnesses | 40 passed | | Firestore runtime witnesses | 25 passed | | Firestore index rules | 96 passed | | Firestore query/registry contract | 50 passed | | Firestore field indexes | 41 passed | | Existing pipeline-doc config contract | 2 passed | All 1,079 focused tests passed on this exact head, including all seven canonical Firestore index-guard suites (843 tests). PR-body preflight: 37 checks passed (43.74s). Normal full pre-push: passed, including backend type checking, the selected 52-test config-train suite, and pinned Python formatting. Replacement push 1/2 was accepted; no skip hatch. Local logs: `.agent-brief/replacement-focused.log`, `.agent-brief/replacement-preflight.log`, `.agent-brief/replacement-push.log`. No skip hatch. Product invariants: none — ops capacity, contract assertions, and existing operational docs only. UI-Evidence: none — backend configuration only. Failure-Class: none ## Rollback and success metric Use a targeted fresh-value config edit to 15 concurrent / 10 dispatches/s, applied by `cl2-deploy`; primary stays 300/25 and summary-debt repair admission is preserved. Never fully revert to primary 50/25 plus fresh 5/2 during backlog. The operational fallback is temporary and leaves the permanent Git target at 30/10. Keep both queues running to drain admitted obligations; never delete or purge their tasks. Acceptance metric: owed first summaries older than 15 minutes < 1%. This is the owed success metric, not a new measured result or alert. Check handler 5xx, 409 delivery-budget cuts, executor wait, LLM request latency/errors, and title age before subsequent capacity decisions. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/25067?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/25067?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25067&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
What and why
Finish L3a with permanent production
enrichment-fresh30 concurrent / 10 dispatches/s and primaryenrichment300 concurrent / 25 dispatches/s, per ruling 008024 (2026-11-10). The primary live-drift reconciliation and fresh capacity are separate config hunks. Named, asserted intentional staging divergences retain primary 50/25 and fresh 5/2. Retry policy and admission code are unchanged.The permanent values follow the decided catch-up capacity, rather than whichever temporary setting is live. The operational Firestore-pressure guard may temporarily reduce live fresh concurrency to 15, keeping its rate at 10; Git remains 30/10. Re-evaluate the 168h age gate after the backlog drains. This PR adds no alert, queue, flag, scheduler change, or measurement. Only the production deployment owner applies production configuration; no production configuration was applied by this work.
Refs and compatibility
Base:
986386ba0e480dd6963f0677a30cfbc7e5294580(origin/main, fetched 2026-11-10).Head:
44e120beae04e94153c263a8201f04cfeafb6c2b.Merged current main normally, including #25037 (
d24d101cae0239838413bf537a80d5d68cf52018, revert of #25013). No rebase or force push. #25019 was inspected, not merged; preserve its service-env spend-cap assertions alongside these queue-capacity assertions when integrating.Verification
All local verification uses the worktree's
backend/.venv, through/Users/david/workspace/omi-workspace/bin/omi-heavy run --, with GCP credential variables unset:Focused results: config-train 52 passed; rightsizing + two-lane 52 passed; drift-check 32 passed; pipeline-doc contract 2 passed. PR preflight 37 checks passed (47.50s). Normal full pre-push passed, including the selected 52-test config-train suite and pinned Python formatting. The single final push succeeded; no skip hatches. Exact-head GitHub checks are all green at
44e120beae04e94153c263a8201f04cfeafb6c2b.An earlier development head's Listen Pusher Stack Gauntlet red was traced by the collected test review to its 15s client timeout during four-way finalization contention; the consequential Backend Hermetic Merge Gate was also red. This config-only change does not reach that path. No test or product timeout was changed. The corrected exact head has passed all required checks.
Product invariants: none — ops capacity, contract assertions, and existing operational docs only.
UI-Evidence: none — backend configuration only.
Failure-Class: none
Rollback and success metric
Use a targeted fresh config edit to 15 concurrent / 10 dispatches/s, with application by the production deployment owner; keep primary at 300/25. Do not fully revert this PR: that would restore primary 50/25 and fresh 5/2 during backlog. The operational fallback is temporary and does not change the permanent Git target. Keep both queues running so admitted obligations drain; never delete or purge their tasks.
Success criterion: owed first summaries older than 15 minutes stay below 1%. This is the acceptance metric, not a new measured result. Check handler 5xx, 409 delivery-budget cuts, executor wait, LLM request latency/errors and title age before subsequent capacity decisions.