Skip to content

fix(ops): pin permanent enrichment queue capacity (replaces #25027) - #25067

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/pipeline-25027-replacement
Nov 10, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/pipeline-25027-replacement

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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 fix(ops): pin permanent enrichment queue capacity #25027. Earlier review verdict: 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 909a2e8b) 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:

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.

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T18:23:44.552564Z a69af6c 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 46706e6 into main Nov 10, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/pipeline-25027-replacement branch November 10, 2026 18:44
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