Cloud splits preserve remote placement under concurrent creates
Rapid Cloud split/new-terminal actions could focus a reserved pane before its catalog projection existed, allowing the next action to become a local terminal. Pending panes now publish their Cloud identity before focus, and every creation carries immutable machine/workspace/tab placement through provider and materialization validation. Unavailable or mismatched targets fail visibly without a local replacement; genuine local sources retain local behavior.
Live dogfood also exposed concurrent daemon layout mutations exhausting the old single revision-conflict retry. Both terminal-create paths now share one queue per machine across snapshot, mutation, and receipt handling. Other machines remain independent. Confirmed structured revision conflicts refresh and revalidate the source with the same idempotency key until the operation deadline; uncertain transport failures do not automatically create again. No sleeps or timing retries were added.
Restored attachments retain a separate immutable saved target, validated before adoption and completion. The shared catalog replacement path preserves those coordinates instead of choosing another live view. Unsupported Cloud launch/layout overrides, including explicit divider positions, fail closed. Existing localized Cloud errors are reused.
Validation and review:
- Original test-only red proof reproduces local fallback across five tab/split/button/socket routes.
- Burst-conflict red proof executes ten tests and fails only the new repeated-conflict regression on the old retry limit. The test-only commit precedes the fix.
- Earlier focused run passed all 109 tests. Current-head expanded run is running, including twelve concurrent creates, queued cancellation, independent machines, deadline exhaustion, and exact restored placement.
- Existing settings/sudo test isolation defects encountered in the full package lane were repaired without changing their behavioral assertions; the subsequent hosted package job passed.
- All seven inline PR threads are resolved. Two additional autoreview findings (divider overrides and restored placement) are included in this fix; final current-head review is running.
- Swift file budgets, project normalization, test wiring, and localization parity checks pass. No warning budgets were modified.
The user requested and received an authenticated local tagged GCP build with Cloud feature and beta gates enabled. The updated 14418c50d3 build is now being rebuilt and launched at the dev-app link. No existing separate dogfood backend was stopped or modified, and the agent did not create or mutate Cloud machines. Live split dogfood is performed by the user.
Exact focused command:
gh workflow run test-depot.yml --repo manaflow-ai/cmux --ref 13096-cloud-split-race -f ref=14418c50d3141204ba1499cd495f6de51e73eceb -f skip_ui_tests=true -f unit_test_suites=CloudTerminalPlacementTests,CloudTerminalLayoutCreationTests,CloudTerminalPaneReservationTests,CloudTerminalCreationRequestTests,CloudTerminalCreationCoordinatorTests,SurfacePaneFactoryFocusTests,SurfaceCatalogTests,SurfaceSocketCommandTests
Exact tagged build command:
CMUX_DEV_BACKEND_MODE=remote CMUX_DEV_BACKEND_URL=https://cmux-dev-backend-1.tail137216.ts.net:3986/ CMUX_DEV_CLOUD_ENABLED=1 ./scripts/reload.sh --tag 13096-cloud-split-race --launch --auth-profile personal --credentials-file ~/.secrets/cmuxterm-dev.env --no-global-cli-links
No merge is authorized. Fixes #13096.