Skip to content

SCA-3499: Retire the shared-live GPU pull - #26425

Open
Git-on-my-level wants to merge 2 commits into
mainfrom
agent/m1-studio-devin-swe-2-1/e184c66e49fa
Open

Git-on-my-level wants to merge 2 commits into
mainfrom
agent/m1-studio-devin-swe-2-1/e184c66e49fa

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What changed and why

Supersedes #26336 (same removal re-cut on current main; the earlier cut conflicts at 6d4416c5a6).

Retires the default-off shared-live GPU pull: BATCH_PIPELINE_SHARED_LIVE_ENABLED, its runtime path (/gpu-idle, IdleRequest, PullRequest.pool, shared-live capacity/admission and GPU reservation code, the shared_live pool kind), the flag-registry row, tests and docs. SCA-3499; David's 2026-11-21 ruling (survey item 19: retire — off in overlay and live today, no M3 readout by 11-20). The jobstore GPU table is retained.

Re-applied onto 61bbf844d1403cc7f7c5a4875af98c16b55598a5, preserving intervening main changes in the worker deployment template (shadowLanguageOnly, private-binding BATCH_PIPELINE_UID_ALLOWLIST), /commit-wake, the follow-up sibling-skip flags, the WORKER_ENABLED lifecycle relabel, and the 2026-11-21/22 flag retirements.

Product invariants affected

  • INV-MEM-4 — no change to canonical promotion authority: the dual_store diff only drops reconciliation of the retired shared-GPU reservation rows; owner reconciliation of queues/jobs/results is unchanged.

How it was verified

Bounded omi-heavy runs on M1 (workdir/omi, agent/m1-studio-devin-swe-2-1/e184c66e49fa):

  • python3 scripts/check_feature_flag_registry.py → feature-flag registry: OK (only pre-existing grace-period warnings).
  • backend/test.sh over the 12 affected unit files (842 tests, all passed): test_batch_pipeline_chart, test_batch_pipeline_runtime, test_batch_pipeline_worker, test_batch_pipeline_scheduler, test_batch_pipeline_shadow_runtime, test_batch_pipeline_protected_share, test_batch_pipeline_cohort_config, test_batch_pull_busy_borrow, test_backend_runtime_env_validator, test_jobstore_production_copy, test_mobile_standard_batch, test_flag_budget.
  • feature-flag-registry.md regenerated via scripts/render_feature_flag_registry.py.

Firestore/Postgres emulator integration tests (tests/integration/*) were updated in the diff but not run here — they need live services; CI covers the hermetic selection.

Tests

Removals are covered by the updated unit files above: the chart test renders the worker template without the flag env, registry/budget guards verify the row moved to the retired ledger, and the worker/runtime/scheduler suites exercise the dedicated-pool pull path that remains.

UI evidence

UI-Evidence: none -- backend-only removal, no client-visible surface.

Failure class (fixes)

Failure-Class: none

View guided diff Turn on auto-fix

David's 2026-11-21 ruling (survey item 19) retires the shared-live GPU
pull: it was off in the overlay and live everywhere, and the M3 readout
that would have justified a canary never arrived by 11-20. Removing it
changes no production behaviour.

Removed:
- BATCH_PIPELINE_SHARED_LIVE_ENABLED from the flag registry (moved to the
  retired ledger), runtime_env base/overlay, both backend-listen charts,
  the worker chart, the deployment-setting classification and the
  cross-service coupled-flag list.
- SchedulerPolicy.shared_live, config.batch_pipeline.shared_live_enabled,
  the policy snapshot getter and env key.
- Scheduler(pool=...) and the live pool: the GPU reservation table writes,
  the gpu-idle acknowledgement, the shared-GPU exclusivity checks, the
  shared-live park reasons and the live-pool pull gate.
- PoolCapacity.shared_with_live/live_queue_age_seconds/gpu_utilization/
  memory_headroom_bytes/gpu_id and the shared-live branch of limits().
- The /v2/batch-pipeline/gpu-idle route, its request model and its
  route-policy manifest row; PullRequest.pool.
- ProviderConfig's shared_live pool kind and its 120 s unit/padded caps;
  the worker now rejects any pool kind other than dedicated_batch.
- Serving.queue(pool)/pull(pool), the shadow runner's shared-live gate,
  the dual-store GPU-reservation reconcile and the pipeline-sim trace
  field.
- Tests that exercised the removed path, and the docs that described it.

The gpus table stays registered in the jobstore schema: it is inert with
no writers, and dropping it is a separate migration.

Co-authored-by: Omi Control OpenCode (DeepSeek V4.1 Flash) <[email protected]>
Co-authored-by: multica-agent <[email protected]>

This branch has not been deployed

No deployments
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