Repository navigation
batch-pipeline: stop stranding leases when a pull or flight fails partway - #22805
Conversation
…tway Scheduler.pull takes each lease in its own transaction. When lease k raised, leases 1..k-1 were already committed but pull propagated the exception, so the pump never saw them: they sat leased for LEASE_SECONDS (120 s) and came back through recover() with an attempt charged. Ramp-5 run 16 had 86 of 824 cohort rows (10.4%) pay that 120 s before attempt 2. - pull returns the leases it already holds when a later lease fails; it still raises when the first lease fails (nothing is held). - Post-commit telemetry (leased metric, policy observations) can no longer turn an issued lease into a failed pull. - New Scheduler.release: the lease-expiry transition (attempt kept, retry backoff) applied now instead of after 120 s, fenced by owns_lease. - Pump._flight releases every claimed lease when an unexpected exception escapes the flight (foreign/duplicate worker results, an admission refund that raised). FatalGpuError keeps its existing no-charge refund. 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a87122bce3
ℹ️ 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".
| return len(leases) | ||
| except FatalGpuError: | ||
| raise # Its handler already refunded every lease without an attempt charge. | ||
| except Exception: |
There was a problem hiding this comment.
Release leases when the flight task is cancelled
When run_once() is cancelled during a flight, the explicit CancelledError path after GPU completion re-raises, but on Python 3.11 asyncio.CancelledError inherits from BaseException, so this except Exception cleanup does not run. The finally block then stops renewal while leaving every claimed item leased until the 120-second expiry and charging a retry—the same stranding this change is intended to prevent. Handle cancellation explicitly while preserving its propagation after _release(claimed).
Useful? React with 👍 / 👎.
… beside catch-up (#22842) * feat(batch-pipeline): bounded merge head wait for out-of-order catch-up (Fix C) Catch-up uploads arrive newest-first, so the capture-ordered merge held every newer result behind the owner's oldest unready head. Once any ready result has waited BATCH_PIPELINE_MERGE_HEAD_WAIT_SECONDS (default 60; off/<=0 restores strict order) behind an unready head, the merge releases the owner's ready rows in capture order; the head later appends as late_capture. The commit body, log chain, watermark, owner revision fence and projection order are unchanged. complete() and every recovery re-entry stamp ready_at; rows without it never start a bypass. Two owner-scoped job indexes back the queries; a missing index logs head_wait_unavailable and keeps strict order. Bypass commits carry head_wait_bypass and log closed labels only. David ruled 2026-10-20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(batch-pipeline): probe head wait outside the commit transaction; refuse fenced successors The strict commit transaction no longer issues head-wait queries. A blocked owner is probed non-transactionally for its longest waiter; only an expired wait opens a second transaction that re-reads the waiter, selects the earliest-captured ready row and runs the unchanged commit body. The emulator takes a collection-wide lock per transactional query, so the in-transaction probe stalled heartbeats and lost leases in the two-worker gauntlet. An owner-wide privacy fence that refuses the released successor now returns None like strict order instead of raising out of maintenance (Grok review). The missing-index fallback records the shared firestore_read fallback. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(batch-pipeline): head-wait probe read errors keep the strict result A transient read error from the non-transactional head-wait probe now returns None, the strict-order result, instead of escaping commit_next and cutting a serving maintenance tick short (Grok r2 nit). The fallback helper is imported at module level so the missing-index handler cannot raise. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(batch-pipeline): fresh uploads reach a conversation within 2 min beside catch-up David's bar (2026-10-20): fresh uploads (capture lag <= 10 min) reach "conversation exists" at p95 <= 2 min and are never held by the owner's catch-up backlog. Ramp runs 14-16 measured fresh p95 546 s: GPU queue and compute were seconds; the time went to the capture-ordered merge head (mostly leaked-lease retries, fixed by #22805), the owner-serial projection chain behind the backlog, and quarantine recovery pickup. - Fresh-first merge (BATCH_PIPELINE_MERGE_CATCH_UP_DEPTH, default 32, off restores the plain merge): admission stamps fresh_capture from capture end. Catch-up commits wait while the owner already has 32 committed rows awaiting projection; when a catch-up row heads the owner, a non-transactional probe finds the earliest pending fresh row and, if ready, a second re-verifying transaction commits it ahead of the backlog. Commit body, log chain, late marking and log-ordered projection are unchanged. Owners held this way are re-offered by owner on every pump maintenance tick and after each serving projection sweep, so one held backlog filling the 100-row result_ready page cannot hide another. New merge_fresh job index; without it the merge logs fresh_first_unavailable and keeps the plain order. - GPU priority (BATCH_PIPELINE_FRESH_GPU_PRIORITY_ENABLED, default on): fresh lane uploads older than 10 min lease at RECENT, after fresh uploads, instead of sharing the owner's FRESH FIFO. - Recovery dispatch: the candidate scan restarts after a short page (it used to skip every earlier candidate for a whole pass), and serving dispatches on its own 5 s loop on the maintenance leader (BATCH_PIPELINE_RECOVERY_DISPATCH_INTERVAL_SECONDS, off = pass only). pipeline_sim (testing/fresh_latency_scenario.py, a live owner-chain walk model): with a 300-row newest-first catch-up owner, that owner's own fresh uploads go from p95 829 s (today) to under 2 min. Stacked on #22820. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(batch-pipeline): fresh-first review fixes (fair-use lane, erased watermark, stuck fresh head) Grok review of the fresh-first merge: - GPU spend admission picked fresh-lane fair-use checks by priority 0, so fresh-lane catch-up admitted at RECENT skipped the hard restriction and daily audio ceiling and drew on the backfill budget. Admission now reads the upload's recorded sync lane (priority only when no lane is recorded); the sim admission model matches. - Privacy erase dropped log_sequence from the erased result, so an erased projection watermark turned the catch-up hold off. The erased row keeps its log position (an ordering field, like previous_segment_id). - With catch-up held and the earliest fresh row stuck (retry), a later ready fresh row lost the bounded head wait. The fresh probe now reads up to 8 pending fresh rows and, once a ready one has waited the head-wait bound, commits the earliest ready fresh row (head_wait_bypass too). - Record-lane units are classified like uploads; docs and flag notes say so. - The fresh-latency sim walker honours the 30 s owner-chain walk budget. With it, depth 32 left too little margin at production's per-row cost; the default is now 16 (fresh p95 42 s beside a 300-row catch-up owner, same catch-up drain as 32). Fix C's replay pins the hold off to keep isolating the head wait. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(batch-pipeline): fresh-first round-2 review fixes (fence fall-through, durable holds) Grok round 2: - A privacy fence on the probed fresh row returned early, so Fix C's head wait never ran for the owner's other ready rows. It now falls through. - Held owners lived only in memory; after a restart a held backlog could fill the global result_ready page and hide another owner's ready rows. A hold now sets a durable merge_holds/{owner_key} marker (no user ID; owner purge deletes it) that leader maintenance in the pump and serving re-offers and clears once a drain no longer holds. - The fresh probe reads up to 32 pending fresh rows (the query cap), not 8. - A head-wait pick among fresh rows re-verifies inside the transaction that the skipped earlier fresh row is still unready. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(batch-pipeline): fresh-first round-3 review fixes (hold state, marker paging, fenced head) Grok round 3: - The hold marker and in-memory set were cleared whenever the strict attempt found an unready head, although the owner was still over the depth cap. Held now means "at the cap with rows pending, whatever the head's state"; a marker clears only once the owner is below the cap or has nothing pending. - Marker recovery read the same first 50 markers every tick. Leader maintenance now pages with a rotating cursor (ordered by owner key). - A privacy fence on the strict commit of a catch-up head escaped before the fresh probe. The owner's ready fresh row now still commits; the fence is re-raised only when nothing else commits. - A head-wait pick among fresh rows re-verifies every skipped earlier fresh row, not just the first. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(batch-pipeline): isolate held-owner re-offer from fenced heads (round-4 review) Grok round 4: - A fenced result_ready head (BatchPrivacyBlocked re-raised by commit_next) aborted leader maintenance before the durable-marker re-offer, and a failure inside the marker page skipped the rest of that page while the cursor moved past it. The global ready-page drain, each marker owner and each in-memory held owner now run in their own try (pump and serving), logging event=batch_merge action=held_reoffer|ready_drain outcome=retry. - A fence re-raised for a non-catch-up head skipped hold bookkeeping, leaving a fenced owner first in the pump's in-memory set. Bookkeeping now runs before any re-raise. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…puted (#22866) ## Summary The `batch-two-workers` scenario in the Sync Cloud Tasks Stack Gauntlet fails intermittently with "a segment was computed or completed more than once across replicas", and that blocks the Backend Hermetic Merge Gate. This is a test-timing problem, not a production double completion. **When it started.** On main, the scenario passed in all 41 runs before #22373 (10-19 12:24Z). From 10-19 14:40Z it failed with this message in: - 3 of 54 runs before #22805 (Fix B) - 2 of 14 runs between Fix B and #22820 (Fix C) - 1 of 7 runs after Fix C Counting all branches, 15 gauntlet jobs failed this way, and 5 of those failures came before Fix B. So neither Fix B nor Fix C caused it, although Fix C's head-wait probes may add load to the emulator. **Why it fails.** Both counters the assertion checked, `words_started` and `worker_item_result`, are recorded when a segment is computed, not when it is completed. Batch compute is at-least-once by design: 1. A renewal that times out (`HEARTBEAT_TIMEOUT_SECONDS=8`; the emulator takes a collection-wide lock for every transactional query) marks the lease lost. 2. If the re-heartbeat at publication is also ambiguous, the pump drops its result and lets the lease expire. 3. `recover()` re-queues the segment and the other replica leases it again. Publication still happens exactly once. `complete()`, `fail()`, `defer()` and `release()` are all fenced by `owns_lease(job, token, now)` inside the transaction. Result artifacts use create-only random names (`if_generation_match=0`), so a stale holder cannot overwrite the result that was committed. ## Change (test only) `_two_workers` now asserts the real cross-replica invariants: - **Every compute held its own lease.** For each segment, computes and worker results are at most `job.attempt`. A recompute is only allowed after a lease transition. Two replicas computing under one lease still fails. - **Each segment is committed once.** The job state is `committed`, the segment has one result-log entry, and the burst's `log_sequence` values are unique. - **The log chain is intact**, in log order. - **Capture order holds.** If no entry is marked `late_capture`, the burst must be in strict capture order. If some are, every late entry must be a recomputed head (one that outlasted the #22820 bounded head wait), and the remaining entries must still be in capture order. The verified event now records `recomputed_after_lease_loss`, so the rate of recomputes stays visible. ## Verification - `backend/testing/sync_cloud_tasks_stack/run.sh --only batch` (local Firestore emulator, `nice -n 19`): all 10 batch scenarios pass; `batch-two-workers` passed in 64.0s. - `BACKEND_UNIT_TEST_FILE_LIST=<tests/unit/test_sync_cloud_tasks_stack_ci_wiring.py> bash test.sh`: 3 passed. ## Follow-up (not in this PR) `Pump._publish` refuses to publish when the pre-publication heartbeat is ambiguous, even though `complete()` re-checks lease ownership inside its own transaction. When Firestore is slow, that wastes GPU time: a finished result is thrown away and computed again. It is worth measuring with `omi_batch_pipeline_events_total{event="lease_expired"}` before changing it. 🤖 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/22866?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/22866?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F22866&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. -->
…puted batch-two-workers failed ~6-14% of main runs with "a segment was computed or completed more than once across replicas" since 2026-10-19 14:40Z (after BasedHardware#22373, before BasedHardware#22805 and BasedHardware#22820). Both counters it checked (words_started, worker_item_result) are compute-side. Batch compute is at-least-once by design: a lease whose renewal stalls (the emulator takes a collection-wide lock per transactional query; HEARTBEAT_TIMEOUT_SECONDS is 8s) is left to expire, recovered and leased again, while the stale holder's complete() is fenced by owns_lease(token). Publication stays exactly once. The scenario now asserts the real cross-replica invariants: - every compute ran under its own lease (computes <= job attempt); - each segment is committed with exactly one result-log entry; - the burst log chain is intact and in capture order; a late_capture entry is accepted only for a recomputed head that outlasted the BasedHardware#22820 head wait. The verified event records recomputed_after_lease_loss so the rate stays visible. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ait (#22878) ## What The post-recovery owner wake (`/recover-quarantine` → `reconcile(owner_id, recovered)`) now releases the recovered unit at once. It passes a release set to the merge drain: the recovered unit, then up to 32 of its content's other units. When strict order, fresh-first and the head wait commit nothing, the first row in that set that is still the owner's pending, ready job commits. It skips the 60 s head wait and the catch-up depth hold, and the commit transaction re-verifies it. The same wake's owner-chain walk then projects it. - **Unchanged:** the commit body, late marking, log chain, watermark and projection order. Rows outside the release set keep their own head wait. An unready or fenced row is dropped from the set. - **Telemetry:** release commits carry `recovered_release: true` and log `event=batch_merge outcome=recovered_release source= head_state=` (closed labels, no IDs). - **Kill switch:** `BATCH_PIPELINE_RECOVERED_MERGE_RELEASE_ENABLED`, default on; `false` restores the head wait and depth hold for recovered units. The registry row has a `ramp` block. ## Why (5% run 18, T0 2026-10-20 13:51Z, ro-prod aggregates) - **The wake did nothing:** 46 of 54 post-recovery owner wakes (`action=owner_chain outcome=summary`) advanced 0 rows. - **Why:** a recovered unit re-enters the merge with `ready_at` set to its settle time. Behind an unready, earlier-captured head, which in run 18 was always `head_state=leased` (80 of 80 `head_wait_bypass` lines), it waited out W=60 plus a maintenance tick. Settled → commit was 65–86 s for every held unit. Projection then waited for the next 20 s sweep. ## Honest scope This removes the recovered unit's own merge wait. It does **not** by itself bring run 18's gate p95 (322 s) under 300 s. - That tail is content-sibling completion: about 200 s from persist to ledger completion. The siblings sat behind the same leaked-lease heads. - The GPU worker image was still 4981b47, without #22805 (Fix B) or the GPU half of #22820 (`ready_at` on `complete`). So the siblings could never start their own bypass. - Deploying the current worker is the main lever (sim below). ## Sim (`python -m testing.recovered_release_scenario`, run 18 shape) The shape is three catch-up owners with 6–9-unit contents, 10% leaked first-attempt leases, 15% empty-ASR recovery, and the production wake. Values are quarantine→projection p95 in seconds (the gate metric), with recovered settle→commit p95 in brackets, for seeds 1/2/3. | world | release off | release on | |---|---|---| | run 18 (leaks, worker without `ready_at`) | 409 / 439 / 602 [65–73] | 409 / 439 / 602 [0] | | leaks, worker stamps `ready_at` | 191 / 185 / 205 [50–68] | 191 / 185 / 205 [0] | | no leaks (Fix B live) | 22 / 24 / 51 | 22 / 24 / **25** | ## Verification - `BACKEND_UNIT_TEST_FILE_LIST=<list> nice -n 19 bash backend/test.sh` over the following, all passing: - `test_batch_pipeline_recovered_release.py` (10) - `test_recovered_release_sim.py` (3) - `test_batch_pipeline_owner_chain_projection.py` - `test_batch_pipeline_merge_head_wait.py`, `test_batch_pipeline_merge_head_wait_sim.py` - `test_batch_pipeline_merge_fresh_first.py` - `test_batch_pipeline_serving.py` - `test_fresh_latency_sim.py` - `test_pipeline_sim_scenarios.py` - `scripts/check_feature_flag_registry.py`: OK. - Layer: unit tests and the hermetic sim only. The live path has not been exercised. ## Rollout On by default, with a kill switch. Ramp: 5% run 19 → 25% → 50% → 100% by 2026-10-24, expanded by the two-lane lead session. Clean metric: hash-cohort quarantine→projection p95 ≤ 300 s, `recovered_release` lines present, no new chain or privacy errors. Failure-Class: FC-batch-fault-domain-head-of-line-poison 🤖 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/22878?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/22878?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F22878&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. -->
Summary
Scheduler.pulltakes up tobatch_sizeleases, each in its own_pull_onetransaction. If lease k raised (FirestoreAbortedunder two-pod contention, or aValueError), leases 1..k−1 were already committed, butpullre-raised.Pump._flightnever saw them, so nothing computed, renewed or deferred them. They stayedleaseduntilLEASE_SECONDS(120 s) ran out, and thenrecover()re-queued them with an attempt charged.In ramp-5 run 16, 86 of 824 cohort rows (10.4%) ran a second attempt. Attempt-2 quarantines landed a median 143 s after enqueue, against 7 s at attempt 1. Over the same window the worker logged 102
event=batch_pump outcome=retrylines (52ValueError, 50Aborted). Those 120 s heads also held back the owner-ordered merge behind them.Change
Scheduler.pullreturns the leases it already holds when a later_pull_oneraises, and logsevent=batch_pull outcome=partial leased=<n> exception_type=…. Those leases go straight to compute with no requeue and no extra attempt. A failure on the first lease still raises, since nothing is held. The failed lease's transaction rolled back, so its job staysreadyand can be claimed by the next pull.metrics.record('leased')andrecord_policy_observationsran after the lease transaction committed and beforepullreturned, without a guard. They are now best effort, like the head metrics already were.Scheduler.release(segment_id, token, now)applies the lease-expiry transition now instead of after 120 s: same_deferwith the attempt kept and retry backoff (5 s at attempt 1), fenced byowns_lease.Pump._flightreleases every claimed lease when an unexpected exception escapes the flight, then re-raises as before. Today that covers a worker returning duplicate or foreign results (ValueError) and an admission refund (defer) that raised. Because release is fenced, leases that were already published (result_ready), deferred, quarantined or re-leased are untouched.FatalGpuErrorkeeps its existing no-charge refund.Semantics kept
owns_lease. A late worker with a stale token can't complete, heartbeat or release after a release or re-lease (tested on the memory store and the Firestore emulator).releasecharges exactly what expiry would have, and partial-pull leases keep the attempt they were issued with.pulland the pump behave as before.Other lease-drop paths
_pull_oneand_pull_shard, foreign or duplicate worker results, and an admissiondeferthat raised.FatalGpuError(no-chargedeferof every lease), SIGTERM withflights > 1(the waiting lane refunds), and a chain exception (fail()per lease)._flightwhile the claim thread is running, or after compute returns. Production doesn't cancel the pump:supervisesetsstop_eventand drains. Only tests cancel.Expected effect
This removes the 120 s attempt-2 heads, about 10% of ramp rows in run 16. The run-16 diagnosis estimates the catch-up hold p95 at about 330–400 s with fixes A and B, which is still above 300 s. Reaching 300 s depends on fix C (catch-up merge ordering), so this PR doesn't do it alone.
Tests
backend/tests/unit/test_batch_pipeline_scheduler.py:readyand claimed at once.releaseuses expiry semantics and backoff, fences stale tokens, never touches published work, and the re-lease is attempt 2 with a stale-token complete rejected.backend/tests/unit/test_batch_pipeline_pump.py:retry, backoff under 10 s, not 120 s).defererror releases the whole flight before any GPU call.ready.backend/tests/integration/test_batch_pipeline_firestore.py: the same partial-pull and fenced-release checks on the Firestore emulator, with the failure raised inside the real transaction so it rolls back.test_batch_pipeline_*,test_pipeline_sim*and related policy files pass functionally.test_batch_stage_policy.py::test_old_stage_repair_leaves_admission_unsetwent over the 0.30 s CPU guard (0.31–0.32 s) at load average around 25. It doesn't touch these code paths.firebase emulators:exec --only firestore):test_batch_pipeline_firestore.pyandtest_batch_pipeline_two_workers_firestore.py, 20 passed.scheduler.pyandpump.py, all 6 new regression unit tests fail. The first-lease test is a happy-path guard and passes either way.Product invariants affected
none
🤖 Generated with Claude Code