Skip to content

Design mill: one fleet surface for OpenCode, OpenChamber, ID, and mcpx #10389

Open

Description

@dezren39

Design mill: one fleet surface for OpenCode, OpenChamber, ID, and mcpx

Drew's design, dictated 2026-11-14. Protected design — do not close or drop without Drew.

The idea in plain words

All automation and agent calls to OpenChamber, OpenCode, the ID binary, and the mcpx binary should go through subcommands of the fleet binary. At first this is mostly pass-through to the same underlying binary/endpoint, but fleet automatically resolves WHERE to talk: the right port on localhost, the right socket, the right endpoint path for that service on that host. Credentials are populated automatically and the caller can skip those fields. A raw mode (explicit endpoint path, raw POST body, explicit flag) always exists as an override.

This is a design mill with multiple passes, not one build. Passes are filed as sibling issues and cross-linked here.

Cross-cutting rules Drew set

  • Auto-resolution is the default; a specific flag overrides it. Defaults: the service's standard port on localhost or its socket.
  • Endpoints can be customized per subprogram: a service may have a standard port, a website port, a homepage path, or a unique-ID custom path taken from settings, used raw.
  • Everything exposed as a command should also be exposable as MCP and as REST (flag-gated, not all on at once). Later possibly GraphQL by the same switch.
  • ID is the identity/transport layer of the whole system: many fleet commands will read/write the local or configured ID store, which may itself be remote depending on configuration. Some future commands may not work without ID, and some may require a remote ID connection over iroh. Requiring a network is not new (the queue already requires Turso over HTTP); only the transport changes.
  • Keep maximizing GitHub while scoping the exits (pass 7): alternatives for repos/issues/PRs/CI across the lab, Cloudflare, and Turso, so the fleet is never trapped on one forge.

The passes

  1. Fleet subcommand pass-through + endpoint/credential resolution (raw layer for all four services).
  2. iroh-native ID transport in fleet: fleet initiates iroh connections, identity stamping, postcard handling and format conversion, WebSocket/WebTransport serving.
  3. ID binary REST session + presentation model: every ID subcommand over REST with full argument parity, streaming sessions with resume, web presentation and bundles, terminal-style rendering over web transports.
  4. MCP everywhere + aggregation: fleet's MCP runs through mcpx; namespaces, fan-out (map / any / first), remote-connection graph with promotion; ID's own MCP server and world-app MCP tools; mcpx chaining/clustering helpers.
  5. Embedding research: ID as a library or dynamic library inside fleet; mcpx via cgo embedding or a Rust port (Go test suite as the spec); what smushing ID + mcpx into fleet costs and buys.
  6. Fork upkeep: merge upstream OpenCode and OpenChamber into the forks; feature-gap analysis (mobile app, features OpenChamber removed) with restore-or-drop decisions made by us, not upstream.
  7. Beyond GitHub (exploratory): git data in iroh blobs, forge alternatives (including the self-hosted one whose name Drew can't recall — identify it), per-user/per-repo Turso tenancy, Durable Objects for merge queues/CI, Cloudflare Artifacts cost check.

Notes captured with the design

  • mcpx fully supports REST and can be used as a binary; its MCP server part should be separately reachable, and mcpx should offer a standardized way to export the full MCP server config for a server marked exportable.
  • OpenCode exposes: launch/list/manage sessions, history, answer questions, view errors, generic model endpoints (completion, conversation, decision), and media support (audio, video, two-way audio streams, PDF-like text variants). OpenCode also has ACP support — verify how it relates to the session REST endpoints. OpenChamber launches sessions and has tasks; both have web frontends. Check whether each has an MCP server; if not, we write one that covers everything REST does, plus CLI-only operations.
  • Cycle safety for chained MCP/fleet calls is a named TODO, not a V1 blocker: pass-through headers, an incrementing depth count stored with the originating client, per-server max depth, basic cycle detection via initial request IDs.
  • ID code mode vs app code mode are different things: an app's code mode is a roc script inside the world's exposed environment/capabilities; ID's code mode is an MCP command whose script runs against the ID server's platform (client or admin). mcpx already has exec/code mode — ensure remote clients get it too.

Activity

  1. developing-today commented on Nov 14, 2026

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

    @dezren39
    MemberAuthor

    The passes, as filed:

    1. Pass 1 — pass-through + endpoint/credential resolution: Design mill pass 1: fleet subcommands for the four tools — pass-through, endpoint + credential resolution #10390
    2. Pass 2 — iroh-native ID transport in fleet: Design mill pass 2: iroh-native ID transport in fleet — identity, postcards, format conversion #10391
    3. Pass 3 — ID binary REST session + presentation model: Design mill pass 3: ID binary REST session + presentation model #10392
    4. Pass 4 — MCP everywhere: fleet MCP via mcpx, namespaces, fan-out, remote graph: Design mill pass 4: MCP everywhere — fleet MCP via mcpx, namespaces, fan-out, remote graph #10393
    5. Pass 5 — embedding research (ID library/dylib, mcpx cgo vs Rust port): Design mill pass 5: embedding research — ID and mcpx inside fleet #10394
    6. Pass 6 — fork upkeep: upstream merges + feature-gap analysis: Design mill pass 6: fork upkeep — upstream merges + feature-gap analysis (OpenCode, OpenChamber) #10395
    7. Pass 7 (exploratory) — beyond GitHub: Design mill pass 7 (exploratory): beyond GitHub — forges, git-over-iroh, cloud data planes #10396

    Full dictated design captured verbatim-structured in the parent body; local copy at ~/workspace/fleet-mill-2026-11-14/ on the sandbox.

  3. dezren39 commented on Nov 15, 2026

    @dezren39
    MemberAuthor

    Supplement filed from Drews 2026-11-14 dictation: #10405 — the middle-road basic fleet MCP (no code mode, no exec runtime), dynamic tool-list refresh, ID MCP dynamic attach by ID/URI, fleet boot orchestration of graph publication, naming conventions + delegated admin + drop-box namespaces, discovery/inspection tooling, the fleet install flow with configurable conflict policies, aggregates and the shadow-world filtering trap, and transitive capability purity (the union of reachable capabilities is the true capability set and must be surfaced).

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — triage (lane any-j, task 19248)

    State: triaged — a design-mill starter in the same family as #9206/#9209 (triaged earlier today): a summit-shaped design brief, already fully specified, whose execution home is the design-mill under the pm-orchestration program (#9196). This triage records the route; it does not re-route or duplicate it.

    Fresh evidence (checked 2026-11-17):

    • Issue Design mill: one fleet surface for OpenCode, OpenChamber, ID, and mcpx #10389 is OPEN with no labels; no held / user/owned / do-not-merge / do-not-auto-edit labels.
    • The body is a complete design brief: one fleet surface for OpenCode, OpenChamber, ID, and mcpx, in seven named passes — (1) fleet subcommand pass-through + endpoint/credential resolution; (2) iroh-native ID transport in fleet; (3) ID binary REST session + presentation model with full argument parity; (4) MCP everywhere + aggregation through mcpx (namespaces, fan-out, remote-connection graph); (5) embedding research (ID as library/dylib in fleet; mcpx via cgo or Rust port with the Go suite as spec); (6) fork upkeep (upstream merges into the OpenCode/OpenChamber forks, feature-gap restore-or-drop decisions); (7) beyond-GitHub exploration (iroh-blob git data, forge alternatives, per-user/per-repo Turso tenancy, Durable Objects, Cloudflare Artifacts cost check).
    • Load-bearing constraints are captured in the brief itself: ID-required vs ID-optional commands and remote-ID-over-iroh; network requirement is not new (queue already needs Turso over HTTP — only the transport changes); GitHub maximization while scoping the exits; cycle safety for chained MCP/fleet calls is a named TODO (depth headers/count, per-server max depth, request-ID cycle detection), explicitly not a V1 blocker; ID code mode vs app code mode distinction (roc scripts in world environments vs MCP commands on the ID platform), with mcpx exec/code mode to reach remote clients too.

    Triage verdict:

    • Work kind: design (design-mill starter) — the brief IS the packet; the mill slices it.
    • Priority: priority/high — it sits in the PM Stack & Fleet orchestration — priority, dispatch, and work-item lifecycle (design mill) #9196 pm-orchestration program (urgency 450/High in Drew's priorities brief, 2026-11-07), and passes 1–4 unblock the fleet-surface convergence the other tracks assume.
    • Effort: effort/l — seven passes; a program-scale design, not a single doc.
    • First concrete step for the design-mill lane: pass 1 (subcommand pass-through + endpoint/credential resolution) is the raw layer every later pass builds on — slice it first.
    • Acceptance check for this triage: this note + the brief + the recorded route; task 19248 completes as triaged. The issue stays open as the design parent.

    Queue: task 19248 (lane any-j) — claimed, triaged inline per runbook §1c.

  5. added
    status/triagedTriaged and routed (see agent note)
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Nov 17, 2026
  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

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

    state: triaged
    route: protected design parent (do not close without Drew). Passes 1 to 7 are sequenced by the design mill. Pass 1 (subcommand pass-through and endpoint/credential resolution) is the first slice. No worker packet from this lane.

    Fresh state 2026-11-18: #10389 OPEN, labels priority/high, effort/l, status/triaged, no blocked-by dependencies. The 2026-11-17 verdict still holds.

  7. 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-inspriority/highImportant and time-sensitivestatus/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