Repository navigation
M3 prep: final main merge (b859b78f) into integration + ci-budget/dead-code cleanups - #23068
Conversation
Fast-forwarding a branch to a SHA that GitHub CI already certified re-ran the whole local pre-push suite against an unchanged tree (about 55 minutes on each rollout sync). scripts/pre-push now asks GitHub about every pushed SHA first and exits early only when each one has GitHub's tree equal to the local tree, at least one successful CI workflow run (push / pull_request / merge_group) and every CI run on it terminal and green, and no red commit status. Deployment writers from the LOCK_CONTRACTS registry neither certify nor block. Not a skip hatch: the check reads no environment, fails closed on any error, timeout, unknown SHA or non-GitHub remote, and logs every verdict to <git-common-dir>/omi-pre-push-ci-verified.log. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nders Every Cloud Run train reset four ops values that the lead then restored by hand, because the prod overlay pinned their old values. Record today's live values (read with the ro-prod tier): - BATCH_PIPELINE_SPEECH_EMPTY_MULTILINGUAL_ENABLED=true on backend, backend-sync and backend-sync-backfill (integration already true) - SUMMARY_DEBT_REPAIR_ENABLED=false on backend-sync - BATCH_PIPELINE_RECOVERY_ALL_ADMITTED=true on backend-integration render_backend_runtime_env.py now fails the deploy before any output is emitted when a manifest env key does not come back out of the exact text handed to deploy-cloudrun (missing, duplicated, changed value) or is also named for removal in the same deploy. Provisional keys without a supplied value keep their documented preserve-live omission. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… statuses The deploy-writer registry decides which workflow runs the CI-verified check ignores, so reading it from the working tree let a local edit widen that set. The hook now passes its base ref and the registry is read with git show at that ref. A combined commit status now has to be success whenever any status exists; only GitHub's pending-with-zero-statuses answer is neutral. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… review Grok review of #22978 (FIX-FIRST): - pull_request runs test the PR merge ref, whose tree differs from the head whenever the branch is behind main, so they no longer certify a SHA; they still block when not terminal or not success/skipped. Only push and merge_group successes certify. pull_request_target (base checkout) is ignored. neutral is no longer green. - Default CodeQL runs (event "dynamic") now block when queued or red. - The deploy-writer registry is fetched from the push remote's main on GitHub instead of a local ref, so PRE_PUSH_BASE_* cannot widen the set of ignored runs. Any failure judges deploys as CI. - The commit payload must carry the requested SHA. - Job renders pass their own --remove-env-vars flag into the render assertion, not only forbidden_env. - Docs and the flag summary now say debt repair is held off in prod. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Use idle offers in the existing GPU pool, fence all publication and user accounting, and cap shared paid recovery calls across worker replicas. Record hashed-owner outcomes and VAD speech loss without storing transcripts.
Share live second-provider eligibility, require typed GPU handoffs, retain active recovery custody, erase shadow artifact receipts, and isolate telemetry. Expose off/capped settings and the existing recovery-role target in manifests. Cover v1 uploads and real Firestore offer/spend races without user side effects.
Name the isolated first-writer callback precisely in the policy boundary, and carry the explicit off/capped env fields in unrelated runtime fixtures.
Honor the normal pull's capacity snapshot, fresh reservations and duration ceiling before idle shadow dispatch. Preserve immutable identity for normal jobs created before the shadow field existed, and keep env fixture setup order.
Declare the existing worker principal on integration while leaving its normal worker audience closed. Assert rendered identity/audience parity with both worker profiles so an off-by-default release can activate paid shadow recovery.
…card test fix from #22877)
# Conflicts: # config/feature-flags.yaml
Pre-push pyright rejected three errors on the shadow modules: a private _next_unit import from intake, a bare priority literal, and an untyped recovery callable passed to run_blocking. Keep a local _next_unit, pass Priority.DEEP (same IntEnum value) and annotate the recovery callable. Runtime behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # .github/checks-manifest.yaml
…ing job Nightly main run 39586610411: repo-checks/Formatting reported dart format would change app/integration_test/app_performance_test.dart, app/test/unit/wal_file_manager_error_path_test.dart, sdks/device/dart/lib/stt/stt.dart, and sdks/device/dart/test/stt_test.dart. PR runs format only the PR's own changed files, so these slipped through merges that never touched them. Apply dart format --line-length 120 with the same Flutter 3.44.5 toolchain the Formatting job pins; whole-repo check (1920 files, 0 changed) is clean after this change. Formatting only; the changelog fragment is kind=none.
Nightly main run 39586610411 failed mobile-app-checks/iOS Compile Check at
manifest check desktop-beta-admission-firestore-contention: backend/testing/
desktop_beta_admission/run.sh requires backend/.venv or uv, and the iOS job
sets up neither ("Missing backend/.venv and uv", 0.06s — setup failure, not a
proof failure). The same check was selected and passed (46.15s) in
desktop-swift-ci/Desktop Swift Static & Test Contracts in the same nightly
run, because that workflow installs uv before its identical run_checks.py
macos-scoped selection.
Mirror desktop-swift-ci.yml: install uv with the same pinned setup-uv action
and 0.11.13 version (also backend/Dockerfile UV_VERSION) so run.sh takes its
uv fallback.
… emitters (#23039) ## Summary Companion to the exporter-pin PR. The four churn-heaviest families pre-create their full label × bucket product at import, and every listen/pusher pod and Cloud Run instance replacement re-creates it (121 distinct listen pods and ~1,500 bridge instances per 6h on 2026-10-21, against 2.27M head series for ~200k live). This trims the products **without changing metric names or label sets**. ### Changes | Metric | Change | Per-emitter series | | --- | --- | --- | | `omi_journey_latency_seconds` | 15 → 10 finite buckets (0.5 … 21600s); the 3×4 journey/outcome pre-create stays | 192 → 132 (−31%) | | `omi_conversation_duration_seconds`, `omi_conversation_speech_seconds` | 18 → 11 finite buckets; keeps 10 and 15 (`omi_conversation_shape` contract log) and 120 (Core Features long-conversation share, `le="120.0"`) | 114 → 72 each (−37%) | | `omi_sync_phase_duration_seconds`, `omi_sync_phase_calls_per_job` | 10 → 7 and 10 → 6 finite buckets; keeps the `le=0`/`le=1` pair that isolates zero-call attempts | 130 → 100 per backend-sync instance (−23%), on both the custom-metric write and the GMP sidecar export | | `omi_fallback_total` | import-time zero baseline drops `text`/`no_text` (transcript-outcome tokens, never fallback reasons) | ~984 → ~936 (−5%) | New `tests/unit/test_metrics_cardinality_contract.py` pins the four budgets and asserts the fallback baseline still covers the alert matrix while excluding the transcript tokens. `test_conversation_shape.py` (le=10/15/120), `test_modulate_capacity_failover.py` (zero-baseline contract), `test_sync_phase_metrics.py`, `test_journey_observability.py` and `test_monitoring_telemetry_contract.py` pass unchanged. ### Why the fallback matrix mostly stays `increase()` cannot observe a one-off burst on a lazily created counter: its first sample already holds the burst and the flat tail reads as 0. The retired-provider alert (`component=~"stt_selection|stt_live_session", to_mode!="unavailable"` by `to_mode`, 6h window), the capacity_full-by-to_mode alert and the chain-exhaustion ratio select across the whole from × to × reason product, so each of those series needs a zero baseline on every pod — the exact class `test_exhausted_children_have_a_zero_baseline_before_the_first_burst` guards. Shrinking it further means shrinking the reason vocabulary or moving that alert onto a pre-aggregated per-`to_mode` counter (follow-up; would remove ~540 of the ~984 per emitter). ### Bucket boundaries checked No alert, recording rule or dashboard reads an explicit `le=` on the journey or sync-phase histograms; the only explicit read anywhere is `omi_conversation_duration_seconds_bucket{le="120.0"}` (kept). All other consumers are `histogram_quantile` p10/p50/p90/p95 panels (Core Features, resilience-fallbacks, omi-core-selfheal doc, sync rightsizing runbook on GMP). ### Before / after (prod, 2026-10-21) Today, live → distinct series per 6h: journey 31.3k → 322k; conversation 18.6k → 191k; sync phase 13.6k → 136k. Estimated head after this PR: **−190k** (journey −100k, conversation −91k, fallback −7k). Together with the exporter-pin PR: ~1.7M vs 2.27M today. ## Product invariants affected None. Metric names and label sets are unchanged; only histogram bucket boundaries and the set of pre-created zero-valued `omi_fallback_total` series change. ## Rollout **Touches listen** (`utils/metrics.py` and `utils/observability/fallback.py` ship in the listen image, alongside pusher, llm-gateway, backend-api and backend-sync). Deploy off-peak (before 13:00Z or after 22:00Z), carried by the rollout lead. During the rolling restart, `sum by (le)` quantile panels mix old and new bucket sets for roughly one scrape window per pod and read slightly skewed; nothing is lost once the roll completes. UI-Evidence: none -- metrics emitter change; no user-facing surface. Failure-Class: FC-alert-never-provably-fired <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/23039?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> <!-- End of auto-generated description by cubic. -->
Failure-Class: FC-bounded-discovery-pinned-by-blocked-page
Adds the manual Codemagic `android-rollout-brake` operator workflow for a selected Android production versionCode. Mutations require `CONFIRM=brake`, enforce the expected starting status, preserve the entire track except that release's status, and verify a fresh post-commit read before reporting success. No automatic trigger or iOS action. Android 1.0.568 (1471) was halted before this PR, under David's approval. Mandatory status build `6ad87431242e17e64a444d3e` reported `BRAKE_RESULT action=status versionCode=1471 status_before=inProgress status_after=inProgress userFraction=0.1`. Halt build `6ad87500b1af6d6d96bcd069` reported `BRAKE_RESULT action=halt versionCode=1471 status_before=inProgress status_after=halted userFraction=0.1`, after committing and verifying a fresh edit. A separate final status build is `6ad87586c8a443f27e294718`. Independent final status build `6ad87586c8a443f27e294718` reported `BRAKE_RESULT action=status versionCode=1471 status_before=halted status_after=halted userFraction=0.1`. The only `.github/` change refreshes the two whole-document Codemagic digests, explicitly authorized by lead ruling `0f4368`. Existing Codemagic workflow semantics are unchanged. Both GitHub rollout advancement workflows remain disabled. Resume has not been invoked. Validation: 14 fake Play client/operator-precondition tests passed through `backend/test.sh` with an explicit file list. Covers status-only reads, halt/resume state transitions, fraction preservation, wrong status, missing/duplicate codes, malformed inputs/fractions, update/readback mismatches, country-targeted refusal, edit-cleanup failures, safe review behavior, and disabled/drained writer checks. Review hardening: before opening even a read edit, verify both scheduled writer workflows are manually disabled and their GitHub runs have finished. Operators must additionally drain already-dispatched Codemagic builds and keep Play Console idle, with no unrelated pending review changes (documented in `app/scripts/mobile_rollout_brake.md`). This is an explicit quiescence prerequisite rather than a distributed lock against all Play users; external interference still fails closed and requires a new status read. The commit uses `ERROR_IF_IN_REVIEW`, country-targeted mutations refuse rather than dropping targeting, and cleanup warnings cannot hide verified results. Resume is a permanent tool capability and was not used during P20. Full pre-push gates passed, including the Codemagic contract, existing mobile promotion/train fixtures, typecheck, and the targeted brake tests. Live validation uses Codemagic's existing `google_play` environment group; no host GCP tier or production account data was accessed. Product invariants affected: INV-AUTH-1, INV-DATA-1, INV-BETA-1 (the shared Codemagic file matches these guards; the added workflow only operates on the Android production track and preserves all existing desktop auth, routing, signing, and Beta workflows).
Follow-up to #22999 (Android rollout brake). Adds `BRAKE_ACTION=stage` to the manual Codemagic `android-rollout-brake` workflow, so a fixed build can replace a halted production rollout at an explicit small fraction. Merge after #22999. Why: David approved halting Android 1.0.568 (1471) and fast-tracking the fixed 1.0.569 (1477), which carries the pendant reconnect audio-loss fix from #22995. `mobile-store-promote` cannot be used for this: its Android path defaults to `status=completed`, which is 100% at once. What `stage` does: - Inputs: `BRAKE_VERSION_CODE` (new code), `BRAKE_SUPERSEDES_VERSION_CODE` (halted code), `BRAKE_USER_FRACTION`, a one-line `BRAKE_NOTES_LINE`, and `CONFIRM=brake`. Inputs are validated before any authentication or edit. - Refuses unless production holds the superseded code as `halted` beside completed releases only (no drafts or other staged releases), the new code is not already on production, the new code sits alone on internal or alpha under exactly one marketing version newer than the halted one, the fraction does not exceed the halted fraction, and the halted release has no country targeting. - Writes one `inProgress` release at the requested `userFraction` in place of the halted one. Completed releases stay byte-identical. The release name carries the daily train's gate receipt (`1.0.569 (gate YYYY-MM-DD-HHMM)`), so the ladder can advance it later. - Notes copy the halted release's What's New and append `BRAKE_NOTES_LINE` to en-US and to every locale holding the identical English text. Real translations stay unchanged, and Play's 500-character limit is enforced before writing. - Uses the existing commit path: exact update-response match, then `ERROR_IF_IN_REVIEW` commit, then a full-track readback in a fresh edit. Prints `BRAKE_RESULT action=stage ...`. - Halt/resume/status behaviour is unchanged. The commit/readback block moved into a shared helper. The only `.github/` change refreshes the two whole-document Codemagic digests in `.github/scripts/fixtures/codemagic_workflow_contract/v1.json`, under lead ruling `0f4368`. A scratch check confirmed every other workflow is semantically identical and only three env vars were added to `android-rollout-brake`. Validation: `backend/tests/unit/test_mobile_rollout_brake.py` now has 24 fake Play tests (11 new), all passing, plus `.github/scripts/test_check_release_process_guards.py` (121 total passed). Stage tests cover the exact written track, notes, gate-receipt name, call sequence, refusal for every non-halted status, unexpected production or source state, fraction above the halted one, bad inputs before authentication, update/readback mismatches, and a status read of the staged release. Fixes found during live use (each refused before opening any Play edit): - Codemagic rejects an empty env var value, so `BRAKE_NOTES_LINE` has no yaml default and is passed per build. - Play's Android notes are one line of entries joined by "; " (from `mobile-changelog` android_notes; 1471 held 486 characters). The stage keeps whichever shape Play holds and replaces the last entry when appending would pass 500 characters. The refusal names both lengths. - The anonymous GitHub API read from Codemagic's shared runners failed 3 times. The workflow now also loads the existing read-only `mobile_release_admission` group, and the check sends its `GITHUB_TOKEN` when present. Live use (store-fasttrack lane, David-approved fast-track; lead answer `0142bb` for the notes): - status `6ad88707d7f84e6126bb0274`: `BRAKE_RESULT action=status versionCode=1471 status_before=halted status_after=halted userFraction=0.1` - stage `6ad8a05789e6dfa249fca407`: `BRAKE_RESULT action=stage versionCode=1477 status_before=absent status_after=inProgress userFraction=0.01 supersedes=1471 superseded_status=halted superseded_userFraction=0.1 name='1.0.569 (gate 2026-10-21-1123)'` - status `6ad8a0d948119fac6ce8b698`: `BRAKE_RESULT action=status versionCode=1477 status_before=inProgress status_after=inProgress userFraction=0.01` Both GitHub Play writer workflows remain disabled; re-enabling is the release lead's call. Product invariants affected: INV-AUTH-1, INV-DATA-1, INV-BETA-1 (the shared Codemagic file matches these guards; the change only adds env vars to the Android production brake workflow and preserves all existing desktop auth, routing, signing, and Beta workflows). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/23030?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/23030?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23030&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. -->
Auto-generated: consolidates unreleased changelog fragments into v0.12.520 and regenerates CHANGELOG.json.
Failure-Class: FC-bounded-discovery-pinned-by-blocked-page
Unknown or multilingual batch speech could produce nonempty Latin phonetics from Parakeet and bypass empty-only recovery. Qualify unknown audio with a bounded independent language probe before choosing the recognizer: confident supported speech keeps Parakeet; unsupported or uncertain speech uses Modulate. Preserve custody and fenced multilingual recovery for pre-admitted unsafe units. - Default on: `STT_PRERECORDED_LANGUAGE_GUARD_ENABLED`; only `false` disables new probes/restores ordinary prerecorded selection. The worker's frozen-language proof barrier and multilingual custody remain active across rollback. - The existing Modulate key serves a language-only probe of at most 30 seconds, with an 8-second timeout and no retry. Sync pins the actual provider before segment dispatch/accounting; intake freezes language evidence and confidence for the GPU worker. Named supported inputs and qualified native records keep their existing provider preference. - Add low-cardinality detection/probe/route telemetry and seven synthetic wrong-script soak fixtures. The private ramp gate separately requires completed-unit route coverage and rejects unsafe Parakeet decisions. Missing evidence fails closed. - Previously pinned paid intents and qualified operator minimal redrive retain their existing contracts. No production data was read beyond aggregate counters/settings counts and sanitized serving metadata; no deployment, environment change or production write. Validation: file-isolated `backend/test.sh` suites through `omi-heavy`: 290 focused checks passed, then 381 checks in all affected CI-file suites passed after merging current main. Coverage includes language probe/error/cap boundaries, actual provider ordering, rollback custody, all seven soak languages, two-provider recovery, sync v2, and simulation goldens without regeneration. Private fleet gate: 154 offline tests passed; first full local preflight passed 36 checks. The first CI run exposed missing language adapters/declarations in synthetic workers and fixture policy compatibility; these were fixed. Exact-head CI and Luna delta review are required before merge. Product acceptance still requires the lead's serving-SHA multilingual soak. Tests use a synthetic corpus and mocked provider transports; no new live vendor transcription or deployed quality claim is made. First-30-second language detection can miss later code switching or a confident classifier error. Failure-Class: new Line-Count-Exception: backend/utils/sync/pipeline.py | 3612 -> 3644 | Keep detected provider selection and actual segment/job accounting at the existing fenced dispatch boundary; the reusable detector is extracted to its own module.
Retain both independent flag declarations and regenerate the catalog.
## Summary Fixes the 4 latent main reds found by the first nightly full run [39586610411](https://github.com/BasedHardware/omi/actions/runs/39586610411) (`main_nightly_full.yml` on main = failure). Rows 4/4 in the swarm known-red list. 1. **Hygiene / `screen-activity-batch-resilience-tests` — ImportError (TEST-ONLY).** `database/_client.py` (#22966, live in prod) imports `DeadlineExceeded`, `ResourceExhausted`, `ServiceUnavailable` from `google.api_core.exceptions`. The bare-python3 hygiene stub in `backend/tests/unit/test_screen_activity_batch_resilience.py` only defined `InvalidArgument`/`Aborted`, so the module import failed before any test ran. Prod is unaffected: pinned google-api-core 2.19.1 exports all five names (verified in the backend venv); the ImportError only reproduces in the dependency-free hygiene runner. The stub gains the three missing names, and `backend/database/_client.py` joins the check's manifest triggers — #22966 touched only `_client.py`, which the trigger list omitted, so PR CI never ran this check and the nightly full run caught it. 2. **Formatting / `dart format`: 4 files.** `app/integration_test/app_performance_test.dart`, `app/test/unit/wal_file_manager_error_path_test.dart`, `sdks/device/dart/lib/stt/stt.dart`, `sdks/device/dart/test/stt_test.dart` formatted with `dart format --line-length 120` on the same Flutter 3.44.5 toolchain the Formatting job pins. PR runs format only on PR-changed files, so these slipped through merges that never touched them. 3. **iOS job / `desktop-beta-admission-firestore-contention` — missing backend venv.** `backend/testing/desktop_beta_admission/run.sh` needs `backend/.venv` or `uv`; the iOS Compile Check job set up neither and failed in 0.06s at check setup. The identical macos-scoped selection in desktop-swift-ci installed uv and passed the same check (46.15s) in the same nightly run. This PR adds the same pinned setup-uv step (0.11.13, matching `backend/Dockerfile` UV_VERSION) before the iOS job's manifest checks step. 4. **Mobile Release Eligibility aggregate** — fails only on `IOS_COMPILE_RESULT=failure`; goes green once (3) lands. No code change. ### Exact `.github` changes (David named the nightly workflow change on 10-21) - `.github/checks-manifest.yaml` — add `backend/database/_client.py` to `screen-activity-batch-resilience-tests` triggers. - `.github/workflows/mobile-app-checks.yml` — new `Install uv for manifest checks` step in the `ios-compile-check` job, before `Run macOS-scoped iOS manifest checks` (pinned `astral-sh/setup-uv@ecd24dd710f2fb0dca1693a67af11fc4a5c5ec84`, version 0.11.13). ## Verification (local, this worktree, base cdaad3a) - `python3 backend/tests/unit/test_screen_activity_batch_resilience.py` — reproduced the exact CI ImportError before the fix; 9 tests OK after, with both bare `python3` and `backend/.venv/bin/python`. - `python3 .github/scripts/test_run_checks.py` (check-manifest-contract) — 62/62 OK after both `.github` edits, from the repo root as CI does. - Whole-repo nightly Formatting replica: `dart format --line-length 120 --set-exit-if-changed --output=none` over all 1920 tracked non-generated `.dart` files — 0 changed, exit 0. - `actionlint` on `mobile-app-checks.yml` — clean. - `scripts/pr-preflight --suggest` — no invariant citations, no failure-class declarations required (no `fix:` commits). ## Notes - No deploy needed: test stub + CI workflow + formatting only; the prod import at `database/_client.py:9` is sound against the pinned dependency set. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/23042?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/23042?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23042&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. -->
…rows (#23046) ## Problem and behavior A projection sweep that discovers a successor before its missing predecessor only records a block. Owner-chain discovery previously started after a page row succeeded, so the missing head could wait behind the discovery cursor. Give the predecessor fence a typed block and use it to schedule the existing owner drain, or one bounded owner-chain walk when the drain is off. The walk rebuilds the missing receipt first and preserves all assignment, binding, privacy, replay and multipart fences. A head blocked by a real safety condition still remains blocked and needs that underlying condition resolved. Default on. Rollback: `BATCH_PIPELINE_PROJECTION_PREDECESSOR_REPLAY_ENABLED=false`. Deploy to backend-integration, which owns batch projection. Already committed heads do not require GPU recomputation. ## Validation `BACKEND_PYTEST_WORKERS=4 BACKEND_UNIT_TEST_FILE_LIST=<targeted list> bin/omi-heavy run -- nice -n 19 bash backend/test.sh` 130 tests passed across projection, owner-chain, sweep continuation and owner-drain suites; the final binding-read guard then passed all 34 sweep tests. Added cursor-past-head replay, drain handoff, kill-switch, binding-fence, binding-read failure and row-budget cases. Existing cursor-wrap regression now completes in one pass. All 36 PR preflight checks and full backend Pyright passed (zero errors). Failure-Class: FC-bounded-discovery-pinned-by-blocked-page Failure-Class-Guard: backend/tests/unit/test_batch_pipeline_sweep_owner_chain.py
…d ramp at 0% (#23041) * Dream sweep: recheck reserved capacity before giving up the hour With on-demand off, drain() gates every hourly sweep on one available_model(mode='reserved') call. When the 3.8 evidence is older than DREAM_RESERVATION_FRESH_SECONDS, that call starts the probe that would refresh it but answers no_states immediately, so the sweep records waiting and no owner runs for an hour (prod 2026-10-21 12:00Z: candidates=1 waiting=1 no_states). Recheck up to 4 times, 30s apart, before reporting reserved_capacity. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Dream: hold the paid ramp at 0% after the first 5% sweep failed Manifest follow-up to the live DREAM_AGENT_PAID_PERCENT=0 rollback, so trains stop re-applying 5. The listed owner stays eligible. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Final main merge before the M3 integration->main PR (main moved 131 commits past sync 15's base 31756b9). Resolutions: - routers/sync.py: keep integration's batch_attempted bookkeeping and main's durable-batch-owner policy override (replace(candidate_policy, batch_enabled=True)). - utils/batch_pipeline/intake.py: main's owner-load filter (policy.batch_enabled) returns to legacy only while legacy_sync is on; when draining/dark the upload stays on batch (contract (h)). Main's prerecorded language guard likewise applies only with legacy on; otherwise the C8 provider-STT route serves unsupported speech. input_language is always computed (main's per-unit language resolution uses it). - utils/batch_pipeline/errors.py: keep the reasons.py enums; add WorkerValidationReason.UNSUPPORTED_LANGUAGE (main's new reason). - retention.py: integration's mirror_refresh plus main's shadow-artifact delete. - policy/guard.py, route_policy_manifest.yaml, GMP sync regex and its test, feature-flags.yaml (main's newer EPISODES_* rows win), registry re-rendered, label-debt ratchet (+1 episodes metrics row). - tests: BatchUnitPolicy(batch_enabled=True, ...) for main's batch_enabled filter. M3 prep in the same commit: - .github/ci-budget.yaml: +1 p50 minute on four gcp_backend.yml jobs whose triggers B5 widened (check_ci_budget --base origin/main now passes). - dead-code backend allowlist: remove the 7 swarm contract-stub entries (L01-4); every one now has importers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Integration's retention pass records touched artifact ids for the A2 mirror refresh; main's new shadow cleanup test used an id-less fake. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main's desktop changes shipped with their own fragments, which main has already consolidated into releases. The gate compares against integration, so it needs one here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… shadow field Main's pipeline_sim now traces WorkItem.shadow; the only golden change is "shadow": false on each provider_stt item (7 per file). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…probe proof (lead cfcaba) - #23038's intake tests pass a real BatchUnitPolicy: integration's intake records the route with dataclasses.replace (contract (c)), which a SimpleNamespace cannot take. - New test_legacy_off_keeps_language_probe_and_never_parakeet_for_unsupported: with legacy sync draining or dark, a declared unsupported language takes the C8 provider (Modulate) route and never Parakeet; unknown speech is not sent to legacy, runs the bounded language-ID probe on the CPU host and is frozen 'und' when uncertain. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ok runs (lead 66dba9) test_pre_push_ci_verified.py's clean_env copied os.environ, so a lane push with PRE_PUSH_BASE_BRANCH=integration/legacy-retire (swarm push-lane) made five temp-repo hook runs look for that branch and fail. Pop PRE_PUSH_BASE_BRANCH and OMI_PR_BODY_FILE. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…M3 merge) Integration builds ALLOWED_REASONS from the FallbackReason enum and main's baseline now uses LIVE_STT_FAILURE_REASONS, so the merged import was unused (pyright reportUnusedImport in the backend typecheck gate). 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. |
…s shadow env reads (M3 merge)
- backend/deploy/ops/{prod,staging}.yaml: DREAM_AGENT_PASSES_PER_DAY 6 -> 48 on
backend-sync-backfill, matching main's #23016 manifest change; test_config_train
requires the ops file and the prod manifest to agree.
- batch_stage_env_baseline.json: main's batch shadow reads (compute_client.shadow_from_env,
ShadowRunner.__init__), annotated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c01d09c2ad
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| 'source': source, | ||
| 'client_device_id': device_id, | ||
| 'should_lock': should_lock, | ||
| 'stt_language': language, |
There was a problem hiding this comment.
Stamp validated language evidence on shadow audio
For any non-silent shadow upload whose stored user/conversation language is supported, this context records only stt_language. The new StagedAudio.stt_language() rejects supported values unless stt_language_evidence and confidence ≥ 0.8 are also present, after which PipelineWorker treats the unit as UNSUPPORTED_LANGUAGE and sends it to paid recovery instead of exercising Parakeet. Consequently, common-language shadow results do not measure the GPU path and unnecessarily consume the paid-recovery budget; stamp validated evidence/confidence here or resolve the audio language as normal intake does.
Useful? React with 👍 / 👎.
| async def _offer_shadow_upload(**kwargs) -> None: | ||
| # The shadow is best effort: its import or handoff must never fail a legacy upload. | ||
| try: | ||
| from utils.batch_pipeline.shadow_intake import offer_upload |
There was a problem hiding this comment.
Move the shadow import to module scope
Move this import to module scope as required by backend/AGENTS.md. Because it currently executes inside the broad fail-open try, a missing runtime dependency or import-cycle regression is swallowed on every upload, allowing an enabled shadow rollout to collect zero jobs instead of failing during process startup; only failures from the actual optional handoff should be suppressed.
AGENTS.md reference: backend/AGENTS.md:L163-L169
Useful? React with 👍 / 👎.
| row = { | ||
| 'shadow': True, | ||
| 'state': 'settled', | ||
| 'owner_key': job['owner_key'], | ||
| 'class': job['class'], |
There was a problem hiding this comment.
Preserve the conversation key in settled shadow rows
When a shadow job settles, this replacement row drops item.conversation_id, which is the only conversation identity that the newly extended purge_batch_owner(..., conversation_id=...) lookup checks for shadow jobs. A later conversation deletion therefore finds the row by owner but cannot match and delete it, leaving its per-conversation outcome and speech metadata until the seven-day TTL expires; retain a bounded conversation identifier in the settled row so the deletion path can erase it.
Useful? React with 👍 / 👎.
c01d09c
into
integration/legacy-retire
…le Check (#23084) ## Summary Kills the two mobile CI infra flakes from 2026-10-21 (both filed as CI debt on the rollout bus), using existing workflows only — no new workflow. ### 1. Android: preinstall + cache the pinned NDK (corrupt-download flake) Every Gradle-configuring mobile job — **Android Compile Smoke**, **Android JVM Unit Tests**, **Android Emulator Acceptance** — auto-downloaded NDK 28.2.13676358 inside Gradle configure via AGP, which has **no retry**: one truncated dl.google.com response failed the job before any app code ran (`Error on ZipFile unknown archive`; runs 39506049904, 39469917718, 39626150998 — dead 5 s into a download that takes ~22 s when healthy; four hits in 48 h). - All three jobs pin `NDK_VERSION` in job env — the same variable `app/android/app/build.gradle` already resolves for `ndkVersion`. - Each job restores the extracted NDK under one shared cache key (`${{ runner.os }}-android-ndk-<version>`); only the Emulator job **saves** it (it runs in every event the readers do, and compile-smoke keeps post-job cache saves off the Mobile App Checks wall). - Each job preinstalls via `.github/scripts/install_android_ndk.py`: verifies the install from `source.properties`, purges the partial NDK dir + `$ANDROID_HOME/.temp`, retries once, 4-minute per-attempt timeout that kills sdkmanager's whole process group (the wrapper does not exec its Java worker), and passes `--sdk_root` so sdkmanager writes under the root the script verifies. Two attempts cost at most 8 min, which fits the 25-minute compile-smoke/JVM ceilings next to their ~13/~9 min p50 bodies. - On a cache hit the jobs make no NDK request to dl.google.com at all. ### 2. iOS Compile Check: ceiling 40 → 50 (post-job cache save was cancelled) Run 39634604539 attempt 1 (PR #23068): real steps finished at **39:25** (16:12 manifest checks + 16:27 Xcode build, cold), then the post-job `Post Setup Flutter` cache save (59 s measured on the sibling success run 119312386446) hit the 40-min ceiling. The job reported **cancelled after every real step passed**, and Mobile Release Eligibility aggregated it as a failure. 50 keeps the wedge-guard above that measured cold path. The CI budget check counts p50 (19 min, unchanged), not the ceiling — `check_ci_budget` passes unchanged. ### 3. Contract tests (two new manifest checks) - `mobile-ci-infra-guards` — workflow invariants: the NDK pin equals build.gradle's `ndkVersion` fallback in all three jobs; exactly one NDK cache step per job under the shared key; exactly one cache writer whose event set covers every reader's; the installer invoked through an explicit `python3`; the iOS ceiling stays at 50. - `mobile-ci-ndk-installer` — installer behavior against a fake sdkmanager: present → skip; first-attempt success never retries and pins `--sdk_root`; corrupt first attempt is purged and retried once; double failure exits nonzero; a stale revision is not "installed"; a hung attempt has its whole process group killed (the fake's non-exec'd worker pid is proven dead) and recovers on retry; missing `ANDROID_HOME` is a usage error; `--android-home` wins over a divergent `$ANDROID_HOME`. ## Product invariants affected None — CI configuration, one CI helper script, and contract tests under `.github/` only. No product path changes. ## Failure class Failure-Class: FC-gate-timeout-below-cold-cost The iOS fix is exactly this class's contract: a fixed time budget must exceed the worst-case healthy cold cost, and the static timing-contract test (`mobile-ci-infra-guards` asserts the 50-min ceiling) keeps the value from silently regressing below the cold path again. ## Verification (this worktree, base aa7e1d6) - `run_checks.py --lane local` — 8/8: `mobile-ci-infra-guards` 4/4, `mobile-ci-ndk-installer` 8/8, `deferred-work-markers`, `workflow-checkout-stall-bounds`, `workflow-apt-network-bounds`, `ci-budget` ("CI budget check passed"), `main-push-ci-economy-contract` 7/7, `desktop-swift-ci-contract` 52/52. - Standalone: `test_check_ci_budget` 12/12; manifest validation via `run_checks` (both new entries SELECTED). - `actionlint` on `mobile-app-checks.yml`: clean. ## Notes - No deploy needed (CI config only). - The 14:52Z "in_progress after Complete job" anomaly on Generated Files / CodeQL Rust (~23 min of status lag at 14:37:37Z → ~15:00Z, then PASS) is GitHub-side status propagation (community discussions 15133 and 125013), not repo-fixable; documented in the rollout run records.
## Summary M3: land the legacy-sync retirement integration branch (`integration/legacy-retire`, swarm plan `omi-knowledge-base/projects/backend-target-architecture/swarm-plan.md`, contracts in `contracts.md`) on main. **Merge with `--merge` (never squash)**; the lead runs the train from the main merge SHA. **Prod behaviour after this merge:** prod `legacy_sync` stays `on`. Every new legacy-retirement path is gated: the ramp document, default-off flags or kill switches, and the `DRAINING_PRECONDITIONS` that `ramp_set` enforces before leaving `on`. With the mode `on`, intake, sync and enrichment keep today's routes. ## M3 gates (lead ruling 6702cc; David authorized the merge, 10-21) 1. **Prep landed:** - #23068: main b859b78, the ci-budget bump and the dead-code stub removal; - review fixes #23082 and #23086; - final main merges #23096 (main 34ce402) and #23133 (main 5406315). 2. **Staging tree equality:** `OMI_RELEASE_TREE` on all four `*-staging` services equals `integration/legacy-retire^{tree}` at this head (see the evidence section below). 3. **M2 review (GLM, which replaced Grok; ruling 43bd53):** - CHANGES: 1 P1, fixed in #23082 (provider-STT outbox sweep plus draining gates). - The 2 P2s are recorded below. - The M1 blocker closure table is in `data/run-2026-10-19-legacy-retire/review/M3/m1-blocker-closure.md` (omi-workspace). 4. **Workflows:** all green on this head. 5. **Luna:** - Round 1: CHANGES, 2 majors, fixed in #23082. - Round 2: 4 majors. Two lock fixes are in #23086 (Luna SHIP); two were routed to dark-step gates. - Final-merge resolution: SHIP. ## Dark-step gates and follow-ups (none block M3; prod stays `on`) - **`provider_stt_live`** (`DRAINING_PRECONDITIONS`): before leaving `on`, prod needs: - the provider-stt queue; - the `PROVIDER_STT_TASKS_*` env; - the maintenance job; - pagination or a due-cursor for the provider-STT outbox sweep (Luna round 2 #4). - **`legacy_final_pass_rehomed`** (`DRAINING_PRECONDITIONS`, lead ruling b209a5): conversations still owned by `legacy_final_pass_v1` with no live legacy job must be re-homed to batch first, and new final-pass ownership must stop outside `on` (Luna round 2 #3). The final-pass-rehome lane owns this. - **GLM P2s:** - the router's stranded-row 409 loop without `batch_adopts_stranded` is lane 10 debt; - BYOK uploads route to batch even with legacy sync `on` (David, 10-19). This is a release-note item. ## `.github` changes in this PR and David's naming Source of the naming: swarm-plan.md, lane 7: "B4 and B5 are named .github changes (fourth round, #9)" (2026-10-19); the checkout-stall bound (2026-10-20, main 1b07e5e); #22758 build-only mode; lead ruling 209335 (David named B7 and B8 items, 2026-10-21 ~06:05Z). | File | Change | Named item | | --- | --- | --- | | `.github/workflows/config_train.yml` (new) | Config-train: plan/apply of `backend/deploy/ops`, manual dispatch, prod-train lock; workflow-level `GIT_HTTP_LOW_SPEED_*` | B4 (+ checkout-stall bound for the two env lines) | | `.github/actions/sync-backfill-lifecycle/action.yml` | Prod backfill queue names come from the ops file; the train no longer reconciles the prod queue (#22455, #22480) | B4 | | `.github/workflows/gcp_backend.yml` | `break_glass_lock` input; prod concurrency group `prod-train` | B5 | | `.github/workflows/gcp_backend_listen_helm.yml` | same | B5 | | `.github/workflows/gcp_backend_pusher.yml` | same | B5 | | `.github/workflows/gcp_parakeet.yml` | same | B5 | | `.github/workflows/gcp_llm_gateway.yml` | same (every prod deploy writer shares the lock) | B5 | | `.github/workflows/gcp_diarizer.yml` | B5 lock lines **plus** B7: OCI revision/`omi.release.tree` image labels and a batch-worker `image_digest` promotion path (verified by `check_release_tree.py`) | B5; B7 (David, ruling 209335) | | `.github/scripts/check-deployment-concurrency.py` | Guard that evaluates the new prod-train group expressions | B5 | | `.github/ci-budget.yaml` | config-train entry (B4); 1 run/day on the six deploy workflows with `break_glass_lock` (B5); 1.1/day on three build-only jobs (sync 11, #22758 base) | B4, B5, #22758 | | `.github/checks-manifest.yaml` | Registers `backend/scripts/check_release_tree.py` (the B7 promotion gate) | B7 (David, ruling 209335) | | `.github/scripts/check_duplicate_routes.py` | Counts routers mounted through `app_roles.mount_routers` (B8 OMI_ROLE map) as mounted | B8 (David, ruling 209335) | | `.github/scripts/test_pre_push_ci_verified.py` | Test hygiene: `clean_env` also pops `PRE_PUSH_BASE_BRANCH` and `OMI_PR_BODY_FILE`, so lane pushes with a non-main base do not leak into the hermetic hook runs | lead authority, ruling 66dba9 (edits an existing test script; no workflow added) | | `.github/scripts/dead_code/backend.allowlist.json` | The 7 swarm contract-stub entries are removed (L01-4); every file now has importers | allowlist hygiene (CI script data) | | `.github/workflows/sync_ledger_fence_cutover.yml` | Prod takes the `prod-train` lock, with a `break_glass_lock` input that falls back to the backend stack lock (M3 Luna review) | B5, completing it on a file that must share the backend mutation domain (lead ruling 5f60b3) | | `.github/workflows/config_train.yml` (break-glass fallback) | Break-glass shares `deploy-backend-stack-<env>` with `gcp_backend.yml` (M3 Luna review) | B4/B5 (lead ruling 5f60b3) | ## Staging tree evidence Verified 23:33-23:4xZ 10-21, on tier ro-dev: - **Services:** all four `*-staging` services (`backend-staging`, `backend-sync-staging`, `backend-sync-backfill-staging`, `backend-integration-staging`) serve `8d062ad3cfacf8b7eb26dea737a2969423548e64` at 100%. - **Tree:** `OMI_RELEASE_TREE=5c398832bc4487066abbf2d49bcf8c6f9a700818` == `8d062ad3^{tree}`. - **Image:** `us-central1-docker.pkg.dev/based-hardware-dev/staging/backend@sha256:18b8cf414566743aaee20bd2559695ec7b4536a75ec609fbc139f008bbf7ecf9`. - **Batch worker:** `sha256:0954c71c87f5`, 0 replicas. Staging is plain (no warm instances or overrides). - **Deploy log:** `data/run-2026-10-19-legacy-retire/lane01/m3/deploy-final2.log` (omi-workspace). ## Product invariants affected INV-DATA-1: integration carries lane 7's (#22430) edits to `.github/workflows/gcp_*.yml`. They add the `prod-train` concurrency/lock lines (B5) and, in `gcp_diarizer.yml`, the worker-digest promotion. No Firebase or Firestore project, auth authority or serving endpoint changes. Production-family artifacts stay on `based-hardware`. ## Line-count exceptions Line-Count-Exception: backend/routers/sync.py | 3881 -> 3966 | lane 10 legacy-dark fence wiring at the legacy call sites (#22495) plus the M3 review fixes (off-loop mode read, final-pass ACK); the file shrinks with the C6/C11 deletions Line-Count-Exception: backend/database/firestore_index_registry.py | 2196 -> 2200 | the legacy-dark zero-lost census index (sync_content_ledger created_at, lost_recordings.py soak check 5) ## Failure class Integration carries fix commits, and each declares its own class. For this merge: Failure-Class: none UI-Evidence: none -- backend/CI retirement work plus sync merges; the UI changes are main PRs that carried their own evidence 🤖 Generated with [Claude Code](https://claude.com/claude-code)
M3 prep: final main merge into integration/legacy-retire (main b859b78, 131 commits past sync 15's 31756b9), plus the two M3 cleanups. After this lands, #22427 (integration -> main) is mergeable without conflicts.
Conflicts:
backend/routers/sync.py: integration'sbatch_attemptedbookkeeping (legacy-dark admission reasons) plus main's durable-batch-owner override (replace(candidate_policy, batch_enabled=True)).backend/utils/batch_pipeline/intake.py:policy.batch_enabled) still sends a narrowed owner to legacy whilelegacy_syncis on. While legacy is draining or dark, legacy cannot take the owner back (contract (h)), so the upload stays on batch instead of being refused.input_languageis always computed, because main's per-unit language resolution uses it.backend/utils/batch_pipeline/errors.py: keeps thereasons.pyenums and addsWorkerValidationReason.UNSUPPORTED_LANGUAGE(main's new reason).backend/utils/batch_pipeline/retention.py: lane 12'smirror_refreshof touched ids, plus main's shadow-artifact delete.backend/config/policy/guard.py: integration's outbox edges;routers/sync.pygets bothsync_local_filesandsync_local_files_v2.route_policy_manifest.yaml;config/feature-flags.yaml(main's newerEPISODES_*rows win). The registry is re-rendered and the check passes.BatchUnitPolicy(batch_enabled=True, ...)for main's filter;id(integration records touched ids).M3 cleanups:
.github/ci-budget.yaml: +1 p50 minute ongcp_backend.ymlbuild-image, build-role-images, record_break_glass and repair-traffic. B5 widened their triggers (break_glass_lock, prod-train concurrency).check_ci_budget.py --base origin/mainpasses..github/scripts/test_pre_push_ci_verified.py(lead 66dba9):clean_envalso popsPRE_PUSH_BASE_BRANCHandOMI_PR_BODY_FILE. Without it, lane pushes with an integration base leaked those into the hermetic hook runs, and five tests failed. A known-red row tracks it until it reaches main..github/scripts/dead_code/backend.allowlist.json: the 7 swarm contract-stub entries are removed (L01-4). Each file now has importers, andcheck_dead_code.py --area backendis OK.Verification: a targeted
backend/test.shrun over 30 files is green. It covered:Lead ruling cfcaba, which approves both intake resolutions on the condition below. New
test_legacy_off_keeps_language_probe_and_never_parakeet_for_unsupported(intest_batch_audio_language.py) proves that with legacy draining or dark:undwhen the probe is uncertain.#23038's intake tests now pass a real
BatchUnitPolicy. Main's 48 changed and related test files pass on the merged tree.CI follow-ups on the merged tree:
backend/deploy/ops/{prod,staging}.yaml:DREAM_AGENT_PASSES_PER_DAYgoes 6 -> 48 onbackend-sync-backfill, matching main's Dream: run on the 3.8 reservation and ramp to paid owners #23016 manifest change.test_config_trainrequires the two to agree, and without this a config-train run would undo main's cadence.batch_stage_env_baseline.json: main's batch-shadow env reads are baselined (compute_client.shadow_from_env,ShadowRunner.__init__).utils/observability/fallback.py: a merge-orphanedLIVE_STT_REASONSimport is removed. It tripped pyright's reportUnusedImport.Failure-Class: none
Line-Count-Exception: backend/database/firestore_index_registry.py | 2191 -> 2200 | growth comes from main (sync merge), not from integration code
Line-Count-Exception: backend/routers/developer.py | 2880 -> 2892 | growth comes from main (sync merge), not from integration code
Line-Count-Exception: backend/routers/sync.py | 3899 -> 3954 | growth comes from main (sync merge), not from integration code
Line-Count-Exception: backend/utils/sync/pipeline.py | 3612 -> 3644 | growth comes from main (sync merge), not from integration code
UI-Evidence: none -- sync merge; the UI changes are main PRs that carried their own evidence
Product invariants affected