Skip to content

SCA-328: do not create Agent VM on every launch warmup - #11759

Merged
Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:agent/m4-mini-cursor-grok-4-6/6b42df53
Aug 17, 2026
Merged

Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:agent/m4-mini-cursor-grok-4-6/6b42df53

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Signed-in macOS launch warmup (ensureProvisioned) now only adopts an existing Agent VM (ready / stopped / provisioning). A missing VM or a failed status check logs and returns instead of falling through to provisionAgentVM / runPipeline. Onboarding still calls startPipeline() for explicit first create. There is no first-open Agent chat/tool path that assumed a VM already exists, so no extra create site was added.

Closes SCA-328

Please merge with a regular merge commit (do not squash).

This is the low-hanging create-rate cut. Do not duplicate #11755 (idle-stop in the reconciler, already merged). Reaper LIVE / public IP / #7326 / provision architecture are out of scope.

Product invariants affected

none

How it was verified

Focused desktop Swift tests after a clean package build:

./scripts/dev-feedback.py --once swift 'AgentVMWarmupAdoptionTests|AgentVMLifecycleFenceTests|AgentVMCompressionRatioTests'
Executed 14 tests, with 0 failures
Iteration 1: PASS

python3 scripts/check_desktop_test_quality.py stayed at the source-inspection baseline (54 files / 147 sites). Did not exercise a live GCE provision; the production create call is now unreachable from the warmup path.

Tests

  • testWarmupAdoptsAReadyVMWithAnIP / testWarmupPollsProvisioningAndStoppedVMs — adopt-only happy path
  • testWarmupDoesNotCreateWhenStatusIsMissing — missing VM on warmup does not create
  • testWarmupDoesNotCreateWhenStatusCheckFails — status error never provisions
  • testWarmupDoesNotCreateForUnrecognizedOrErrorStatus
  • testStartPipelineStillCreatesWhileWarmupOnlyAdopts — create stays off the warmup decision
  • testLaunchWarmupNeverCallsTheCreatePipeline — static contract: ensureExistingOrProvision never calls runPipeline / provisionAgentVM; home warmup still calls ensureProvisioned; onboarding still calls startPipeline

Failure class (fixes)

Failure-Class: none

Review in cubic

Git-on-my-level and others added 2 commits August 18, 2026 03:09
Signed-in home warmup now only adopts an existing ready, stopped, or
provisioning VM. A missing box or a failed status check no longer falls
through to provisionAgentVM.

Co-authored-by: Cursor <[email protected]>
Co-authored-by: multica-agent <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit b339c7a into BasedHardware:main Aug 17, 2026
29 checks passed
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