GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #13669

New issue
Copy link
New issue
Copy link
Backlog
Backlog
story: pilot moving mcpx to Rust — what it takes, what it gains, measured#13669
Copy link

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

Spec (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

  1. 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.
  2. Implement that slice in Rust behind the same config and protocol surface, fed by the same settings file the Go daemon reads.
  3. Record a representative workload (real session traffic shapes: tool fan-out, large payloads, many small calls) once, replay it against both.
  4. Measure, both sides: throughput, p50/p99 latency, RSS at idle and under load, cold start, binary size.
  5. 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)

  • The 241-setting config system reproduced byte-faithfully, including the exemption tail and the per-client policy ceilings (id(phase-14) v2 step 1: role configuration — roles as first-class world config (#6301) #8299's line).
  • 94 HTTP routes and the daemon/tsnet lifecycle. The hard fork: tsnet is Go. Rust has no tsnet — the options are iroh (mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967), a retained Go sidecar for the tailnet leg, or an FFI bridge; each is an architecture decision, not a detail.
  • The conformance suite carried over as the oracle — it is the asset that makes any port verifiable.
  • Release channels and install paths (mcpx: release.yaml, release artifacts and the install channels the docs will promise #1881) re-cut for a static Rust binary.

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.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-5005

  2. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    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.

  3. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

  4. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.