GeezerVison is showing github.com — story: pilot moving mcpx to Rust — what it takes, what it gains, measured · Issue #13669 · developing-today/code
story: pilot moving mcpx to Rust — what it takes, what it gains, measured #13669DescriptionSpec (Drew, 2026-11-23)
Look at piloting a move of mcpx from Go to Rust: what would it take, what would it gain, and are the benefits real? Drew knows there is a lot of work involved; the question is whether the payoff justifies it. This story is a pilot, not a rewrite plan: one hot slice, measured against the Go daemon, with the decision taken from the numbers.
The evaluation doctrine (Drew, 2026-11-23)
- The goal is the most performance and the most capabilities.
- A little more boilerplate, or a couple of extra conditions, are acceptable costs when the trade is a significant performance multiplier.
- Working pattern: keep the standard, compatible choice at the library/SDK boundary (serde is the example — plenty fast for all it does), and in the binary swap the hot path out where a measured multiplier exists.
- The same lens applies everywhere, not just language choice: async runtime, database choice, file formats, indexing, graph/BLAS, ECS for games/simulations/apps.
- A multiplier is proven by benchmark on our own workload, never asserted from folklore.
Prior work and references
- Design mill pass 5: embedding research — ID and mcpx inside fleet #10394 (design mill pass 5) — embedding research: ID and mcpx inside fleet. ID embeds cleanly (Rust in Rust); mcpx being Go is the obstacle this pass circles.
- mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967 — reaching a daemon by identity (iroh), and the Go-binding question it forces. Iroh is Rust-native; this is where the language question first bites.
- mcpx: embedding mcpx -- a public Go API, the C ABI, WASM, and mcpx as its own upstream #1877 — embedding mcpx via a public Go API, the C ABI, WASM: the non-Rust answers to the same embedding pressure.
- mcpx program — full-investigation prompt: design completion & build-out for the MCP gateway #13264 — the mcpx program investigation; the mcpx book is the surface census: 241 settings, 75 commands in 6 groups, 94 HTTP routes.
- Recorded position (2026-10-28): mcpx pure Go is a strong preference, NOT a tenet — cgo is already accepted when a concrete need justifies it. A Rust pilot breaks no rule.
The pilot
- Choose ONE hot slice of the daemon — the aggregation/proxy request path (JSON-RPC pass-through plus per-client policy evaluation) is the standing candidate; the choice and its reasoning are recorded on this issue before work starts.
- Implement that slice in Rust behind the same config and protocol surface, fed by the same settings file the Go daemon reads.
- Record a representative workload (real session traffic shapes: tool fan-out, large payloads, many small calls) once, replay it against both.
- Measure, both sides: throughput, p50/p99 latency, RSS at idle and under load, cold start, binary size.
- Pre-register the decision thresholds on this issue before benchmarking, so the result decides: proceed to a migration design, keep the slice only where it pays, or stop with the numbers recorded.
What a full move would take (scale honesty)
What it could gain (hypotheses for the pilot to prove or kill)
- Tail latency: no GC pauses on the proxy hot path.
- Footprint: materially smaller idle/under-load memory for an always-on daemon on every seat.
- Distribution and embedding: a static musl binary beside fleet-static, and a direct answer to Design mill pass 5: embedding research — ID and mcpx inside fleet #10394 — mcpx embeddable in the fleet binary instead of proxied around.
- Shared crates with id/atlas/fleet: config, policy, audit, and queue code reused instead of re-implemented per language.
- Headroom: the proxy path stops being I/O-bound folklore and gets measured room to grow (faster JSON, zero-copy framing, runtime choice).
What it would not automatically gain
- Protocol correctness or features — the Go implementation and its conformance record are the current asset.
- Ecosystem velocity — Go's MCP and tailscale ecosystems are first-class today; Rust's are not, yet.
Acceptance
- Pilot slice chosen and recorded, with the recorded workload and pre-registered thresholds.
- Benchmark report posted on this issue: both daemons, same workload, all measures above.
- A decision recorded from the numbers: proceed / slice-only / stop.
- No production cutover under this story; a migration, if any, is its own design that starts from this pilot's evidence.
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-07, 2026-11-24)
Fresh state: open, a story with no implementation or PR referencing it. The item is a question to answer: what it takes to pilot mcpx in Rust, what it gains, and how to measure it. It is a research and design piece, not a bug fix.
Verdict: real and open, so it is routed as a research packet rather than closed. A research or prepare pass should size the pilot and define the measurements. No build packet is routed from triage. Tracked under #14158. developing-today-fleet commented on Nov 26, 2026 Triage refresh — code-f task 23189 (2026-11-26)
Fresh check: this issue remains OPEN and is still a measurement-led research/design question, not an implementation bug. Its existing 2026-11-24 triage comment already routed it as a research packet; the current mcpx programme tracker is #13264, with its scope, issue map and design record under pkgs/mcpx/docs/program/ and the dated records in doc/2026-11-23T23-51-36Z_research_mcpx-investigation/ and doc/2026-11-23T18-00-00Z_design_mcpx_program_delivery/. The Rust-specific pilot question remains explicitly open here; the broad programme materials do not establish a benchmark result or justify a rewrite.
Disposition: duplicate triage pass; no new small-fix/build packet is justified from this lane. Keep #13669 open for the research/programme lane to define one hot slice, comparable Go baseline, workload, and pre-registered measurements before any implementation. No code, benchmark claim, or closure is made. developing-today-fleet commented on Nov 27, 2026
Triage refresh — task 23189 (oc-code-03, 2026-11-27)
Fresh readback: #13669 remains OPEN (updated 2026-11-26T22:48:04Z); all 3 comments were read and count-confirmed. The latest note (Nov 26) already records that this remains a measurement-led Rust pilot research/design question, not an implementation bug, and that #13264 is too broad to supply the pilot details. The existing research/design records and mcpx program chapter also do not name a Rust hot slice, Go baseline, representative workload, or pre-registered thresholds. No benchmark evidence or resolution exists.
Disposition: keep #13669 open; no implementation packet is justified. The code pilot queue has no matching research/design packet kind, so I did not misroute this as a code slice or duplicate the existing triage note. Resume when an explicitly linked Rust pilot research task or benchmark design names the hot slice, Go baseline, workload, and pre-registered thresholds.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|