Skip to content

Design mill pass 5: embedding research — ID and mcpx inside fleet #10394

Open

Description

@dezren39

Parent design mill: #10389

Design mill pass 5: embedding research — ID and mcpx inside fleet

Part of the fleet-surface design mill (Drew, 2026-11-14). Parent issue cross-links all passes. This pass is research + a recommendation, not a build.

Questions to answer with evidence

  1. IPC overhead: for the fleet↔ID boundary, quantify sockets vs separate processes. Minimum expectation: sockets are slightly less overhead — measure, don't assert.
  2. ID as a library in fleet (Rust): ID is Rust, fleet is Rust. Options: (a) statically embed an ID version in fleet; (b) load ID as a dynamic library on demand — from the standard location, next to the ID binary on PATH, next to the fleet binary, or next to the user's PWD; (c) exec the ID binary; (d) connect remotely over web or iroh transports. Explore whether the ID binary itself could become a tiny loader that imports the ID dylib on boot and calls its main — and measure any performance impact of that shape vs separate binaries. The Nix package should be able to provide both/either, always with a fully static option.
  3. mcpx embedding: mcpx is Go. Both ID and fleet should reach it remotely (REST or MCP), locally as a socket, or as a binary. Research: (a) a cgo build of mcpx that can be embedded in a Rust project or loaded dynamically — separate issue/discussion; (b) porting mcpx to Rust wholesale — the research already explores this: the port must keep the existing Go test suite passing as the spec, porting tests to Rust as it goes, supporting both suites until the Go version retires.
  4. The smush question: if mcpx were Rust (or cgo-exposed) and ID embeddable, both become capabilities/features of the fleet Rust package — default fleet build excludes them; a full build includes both plus all optional fleet capabilities, making every call direct, no dynamic libraries except roc apps not embedded (called through Wasm). Answer plainly: what does that buy beyond a single possibly-gigantic static file, and what does it cost (build time, binary size, update granularity, failure isolation)?

Acceptance

A research note with measured IPC numbers (or a stated measurement method + first results), a feasibility verdict for cgo-mcpx and for the Rust port (with the test-suite-as-spec migration shape), the dylib-loader verdict for ID, and one recommended default topology for fleet↔ID↔mcpx with the alternatives kept open.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — triage (task 19253, lane any-c, 2026-11-17)

    State: triaged — routed to the design mill under parent #10389; no lane follow-on.

    Issue stays OPEN for the design mill.

  3. added
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    status/triagedTriaged and routed (see agent note)
    on Nov 17, 2026
  4. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note — triage re-verified (openchamber scheduled lane oc-code-03, queue task 20586, 2026-11-18)

    state: triaged
    route: research and recommendation under design mill #10389, pass 5. Not a build. No worker packet from this lane; the mill sequences it.

    Fresh state 2026-11-18: #10394 OPEN, labels kind/design, effort/l, status/triaged, no blocked-by dependencies. Acceptance stays as written on the issue.

  5. removed their assignment
    on Nov 20, 2026
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

    effort/lLarge: multi-day or open-ended; expect staged check-inskind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)status/triagedTriaged and routed (see agent note)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions