Repository navigation
CmuxNext Cloud: the start's harness login decision calls Rust; the Swift copy and its tests go (step B) - #32403
Merged
Conversation
…tart-core; the Swift copy and its tests go (step B) Re-pins CCmuxAppFFI to cmux-app-ffi-8b624259cf79 (#32305, which added the cloud_harness_login* ops). CloudHarnessLoginDecision keeps what the start knows and reads the step, the reason, readsMachine, guestTakesLogin, skippedTeamMachine and the record line from the Rust rules in one FFI call; loginProvider, the vm-kind probe and its parse are FFI calls too. An FFI that does not answer skips the login with reason ffi-failed (never silent). CloudStartChatLoginTests drops its six decision tests (the Rust crate's 10 cargo tests cover every case) for one bridge test; the build gate's UserDefaults tests stay, since that read stays in Swift. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-548f18c0a6d1ebb48240
…, which also carries #32305's ops) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-548f18c0a6d1ebb48240
teamleaderleo
temporarily deployed
to
ci-routing-agent
November 2, 2026 14:55 — with
GitHub Actions
Inactive
Contributor
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Shipped in:
|
Collaborator
Author
|
Owned by an agent session · session |
Collaborator
Author
|
Review (codex, router-review): SHIP at a6b1903 Reviewer: codex gpt-6-astra high, fast tier. Follow-ups: 1. Each lands as an issue in this repo that links this receipt; the lane that opened the PR fixes it forward. SHIP at a6b1903 Visual verdict: no images; Leo tries the build
Follow-ups:
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Leo: "But why are there so many tests in Swift? It's Cloud code. Why is it not in Rust?" and "Why are there so many of these tests in the first place?"
What
Step B of the move #32305 started: the NEXT Cloud start's harness login decision is now Rust's, and the Swift copy and its tests go.
CCmuxAppFFItocmux-app-ffi-2b457e203eac(base's newest FFI release; it carries cmux-cloud-start-core: the Cloud start's harness login decision in Rust over the app FFI (step A) #32305'scloud_harness_login*ops and Hover rules in Rust, step A: the hover card machine, tooltip intent, safe triangle, row card placement and group summary, with their C ABI (no Swift change) #31927's hover ABI, which Swift does not call yet).CloudHarnessLoginDecision(CmuxNextCloudCredentials, which now linksCCmuxAppFFI) keeps only what the start knows so far. It reads the step, reason,readsMachine,guestTakesLogin,skippedTeamMachineand the record line fromcmux-cloud-start-corein one FFI call.loginProvider, the vm-kind probe and its parse are FFI calls too. If the FFI does not answer, the start skips the login with reasonffi-failed, and the record says so, so the skip is never silent.CloudStartChat+Logindrops its ownloginProviderand calls the decision's.CloudStartChatLoginTests: its 6 decision tests are deleted; the crate's 10 cargo tests cover every case. One bridge test replaces them. The 3 build-gate tests stay, because theUserDefaultsread stays in Swift.No behavior change: the Rust rules are a 1:1 port, checked case for case in #32305.
Takes back #31305: on purpose. Its decision rules (the team-guest allowance included) now live, unchanged, in Rust (
cmux-cloud-start-core, #32305), and this Swift type calls them. The behavior is the same.Tests
cmux-ci run --class light --script scripts/ci/run-swift-testing-suites.sh ... CMUX_SWIFT_TEST_SUITES=CloudStartChatLoginTestsat a6b1903: 4 tests in 1 suite passed.scripts/cmux-next/check-app-ffi-pin.sh --verify-release: the sources match 2b457e2 and the release checksum matches.cargo test -p cmux-cloud-start-coregave 10 passed; the FFIcloud_harness_logintest gave 4 passed.Observed / Not run
I ran the suite above and the pin check. I did not run the full CmuxNext suite locally; CI runs it.
Changelog
none
🤖 Generated with Claude Code
Agent session: agent session