Add production-ready Rust coordinator migration path - #541
Closed
Gajesh2007 wants to merge 56 commits into
Closed
Gajesh2007 wants to merge 56 commits into
Gajesh2007 wants to merge 56 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Gajesh2007
marked this pull request as ready for review
July 13, 2026 05:52
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
Co-authored-by: gajcodex <gajcodex@users.noreply.github.com>
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.
Summary
Adds the production Rust coordinator and a safe migration path while retaining the Go coordinator as a rollback-compatible fallback. This includes frozen cross-language contracts, protocol v2 and Swift provider support, durable owner-fenced billing/recovery, full HTTP surface parity, external migrations, dual-stack deployment, observability, fault/load validation, and signed cutover gates.
Before
flowchart LR subgraph Behavior_Before[Behavior] C1[Consumer request] --> G1[Go coordinator] G1 --> V1[Swift provider protocol v1] V1 --> G1 --> C1 end subgraph Code_Before[Code] H1[Go HTTP handlers] --> R1[Go registry and routing] R1 --> S1[Go store and billing] S1 --> D1[PostgreSQL] endAfter
flowchart LR subgraph Behavior_After[Behavior] C2[Consumer request] --> A2[Rust API adapters] A2 --> F2[FleetActor and RequestTask] F2 --> V2[Swift provider protocol v2] V2 --> J2[Signed durable terminal] J2 --> L2[Atomic ledger settlement] L2 --> C2 end subgraph Code_After[Code] P2[Versioned protocol and pure reducers] --> W2[Supervised Rust warm plane] W2 --> Q2[Durable jobs ledger and recovery] Q2 --> D2[Externally migrated PostgreSQL] O2[Ownership handoff deploy and cutover gates] --> W2 O2 --> G2[Go guarded fallback] endLinked issue
Not linked.
Test plan
go test ./coordinator/... -count=1cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --all-features --lockedcargo build --workspace --all-features --lockedmake contracts-checkmake coordinator-rs-fault-testswift testremains a macOS CI/hardware gateComponents touched
Protocol / interface changes
Notes for reviewers
coordinator-migrateowns all DDL/checksums.Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.