Repository navigation
Description
Direction
Drew, 2026-11-23 15:07 CST — the longer-term design threads that grow out of the laptop route codification (#13717, the route-form family; #13654 is its F1):
- Choosing hosts and access without Tailscale.
- Direct iroh for non-Muse agents.
- A generic pooling system.
This issue tracks the design. The full design record lands as a dated doc (doc/2026-11-23T21-10-36Z_design_fleet-transport-pooling/); this issue carries the three threads as separable work items with the recommendation for each. Design only — every build item below needs its own slice issue when picked up.
Premise check (read first, 2026-11-23)
- fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717 already codifies the route forms (3 methods × 2 shapes + the
fleet laptopwalker + the laptop-ssh F7 demotion). This design builds on it: thread 1 turns its laptop-specific matrix into per-host data; it does not redo it. - Design + build: fleet connect — explicit transport selection, sessions, and drop semantics #10356 (2026-11-14) already designs explicit transport selection —
fleet connect --method exec|ssh|job|auto, sessions, drop semantics. Composition, not duplication: Design + build: fleet connect — explicit transport selection, sessions, and drop semantics #10356 is method choice on a known host; thread 1 is host choice + reach when no overlay exists. Design + build: fleet connect — explicit transport selection, sessions, and drop semantics #10356 also records the hard constraint: the sandbox has no inbound path at all — every connection is sandbox-initiated or rendezvoused. Any no-Tailscale design must name its rendezvous. - Machine pool: onboard additional machines as fleet job nodes and redesign placement around a pool #2179 already specifies a machine registry as its target ("a machine registry (identity, capabilities, …)") and a machine pool for placement. Thread 1 extends that registry with transport offers and identity bindings; it does not invent a second registry.
- mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967 is closed with a recorded recommendation: state the requirement (reach a daemon by cryptographic identity; NAT traversal with relay fallback; E2E + mutual auth from that identity), then pick the transport on merit — tsnet won for mcpx, a Go binary, because iroh is Rust and cgo/sidecar costs were priced in. Thread 2 does not reopen mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967: the fleet binary is Rust, so the embedding calculus that decided mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967 inverts for fleet-side components. For Go components mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967's answer stands.
- opencode#2256 is closed (fork PR fix(mcpx client): truthful cancellation reason; paginate templates/list; surface prompts/list errors (#1924) #2598 landed the combined-signal wall). The live wall-scoping work is route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693 (scope inference, alias providers, per-model free caps). Thread 3 aligns with route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693; it does not restart the wall debate.
- The fleet orchestration architecture record (
doc/2026-11-13T03-20-24Z_design_pm-stack-fleet-orchestration/architecture.md) contains no host-selection or transport design (checked: no tailscale/iroh/placement material). The gap this design fills is real.
Thread 1 — Host selection and access without Tailscale
Problem. Today "the laptop" is a hardcoded singleton, and two of its three route methods lean on the tailnet (laptop-agent legs hairpin the session proxy / DERP — #10356 measured warm ~0.4 s, cold CONNECT ~1.8 s; SSH rides a CONNECT proxy too). An agent with no tailnet — not enrolled, overlay down, or a non-Muse seat that never had one — has no route at all, even though the commander endpoint (#13404) already proves a non-Tailscale path: public HTTPS door (Cloudflare Worker gate) + tunnel to the host, OAuth/bearer auth, origin locked down.
Shape. A host is a registry record, not a name baked into scripts:
- Static half — the Machine pool: onboard additional machines as fleet job nodes and redesign placement around a pool #2179 machine registry: host identity (one fleet identity per host, issued under the fleet CA program Fleet CA, credentials & secrets — v0.3 design mill (Summit build-out) #9155 / the interim IdP CA), capabilities, and transport offers: for each transport the host serves — commander-style public door URL, laptop-agent endpoint, sshd, iroh NodeId — the offer carries its endpoint data and the credential name (never a value) that authenticates to it.
- Live half — the queue broker's seat records already track which seats are alive; the broker carries the live overlay (last-seen, load, health) on top of the static record. The broker is not the registry of record — it is a queue component, and its reachability is itself a bootstrap question.
- Cold-start rendezvous — DNS under our own zones publishes only the stable public doors (commander-style endpoints), so an agent with nothing but internet + DNS can find a first door. DNS carries offers, never secrets; liveness never comes from DNS.
Selection. Resolving a host yields candidate (host × transport-form) pairs — exactly the #13717 form matrix, as per-host data instead of a laptop table. Choosing among them is a pool decision (thread 3). fleet laptop is the N=1 special case of fleet host <name>.
Access without Tailscale, per transport:
| Transport | Reach without overlay | Auth at the door | Auth at the host |
|---|---|---|---|
| Commander-pattern public door (#13404) | Anywhere with internet | OAuth (agent/human identity) or machine bearer, by name from the secrets broker | The bridged service's own auth; origin lockdown (door is the only ingress) |
| iroh (thread 2) | Anywhere with internet; relay rendezvous, direct when punchable | NodeId allowlist (the key is the identity) | Application-layer authorization on top of the authenticated key (#1967's split: transport here, authorization separate) |
| Direct SSH/HTTP on public address | Only hosts with public reachability — not the general NAT case | sshd / daemon token | Same |
| Headscale (self-hosted tailnet control) | Removes the vendor, not the overlay — an agent with no overlay client still can't use it | Tailnet identity | Same as today's tailnet legs |
Recommendation: registry hybrid (static #2179 registry + broker live overlay + DNS cold-start doors), commander-pattern as the general no-overlay door, iroh as the peer-to-peer door (thread 2), Headscale recorded as "same shape, self-hosted" — not an answer to the no-overlay requirement. One host identity (fleet CA) binds all of a host's transport credentials, so adding a transport never mints a new identity.
Work items (each its own slice when picked up):
- 1a. Registry schema: extend Machine pool: onboard additional machines as fleet job nodes and redesign placement around a pool #2179's record with transport offers + identity bindings (fleet cert, iroh NodeId, door URLs, credential names).
- 1b. Broker live overlay: last-seen/load/health keyed to the registry record.
- 1c.
fleet hostresolution + selection on top of the fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717 forms (the walker generalized from laptop to any host). - 1d. DNS cold-start publication for public doors, with the offers-not-secrets rule written down.
Thread 2 — Direct iroh for non-Muse agents
Who this is for. Fleet seats that are not Muse (opencode lanes, grok, felix, xaltha) ride routes built around Muse's session stack (session proxy, brokers, Muse enrollment). They deserve a transport that is theirs: direct, identity-addressed, no Muse session machinery in the path.
What iroh is (from iroh's own docs, docs.rs iroh / iroh-net):
- Addressing/identity. Every node has an ed25519 keypair; the public key is the NodeId and is the node's stable identity. QUIC's TLS handshake uses the node's secret key — there is no certificate chain; connecting to a NodeId is authenticating that node, and an accepting node learns the peer's authenticated NodeId. Authorization (which NodeIds may do what) is the application's job — an allowlist at accept time, per-ALPN protocol.
- Connection shape. A connection usually starts through the node's home relay, then upgrades to a direct path via hole punching (QUIC-native traversal in the current line); if no direct path exists, the relay path simply carries the connection. Relays forward encrypted traffic addressed by NodeId only — a relay cannot read payloads.
- Discovery is composable (the
Discoverytrait; multiple services run concurrently): DNS discovery backed by pkarr — signed DNS packets (key = NodeId) published via a pkarr relay and served by aniroh-dns-server(n0 runs a public instance; both server pieces are self-hostable); a pkarr resolver over HTTP; DHT discovery over the BitTorrent Mainline; and local-network (mDNS-style) swarm discovery. Tickets bundle NodeId + relay URL + direct addresses for out-of-band bootstrap with no lookup service at all. - Relay dependence, honestly: a relay (or known direct addresses) is required to start most connections; it is a rendezvous + fallback, not a middleman for established direct traffic. Depending on n0's public relays is optional —
iroh-relayis self-hostable with ACME TLS, per-client rate limits, and metrics. - Embedding. iroh is a Rust crate (
Endpointbuilder, ALPN-based protocol router). In a Rust binary it is a library dependency — no FFI, no sidecar, no second process. (For Go, mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967's pricing stands:iroh-ffivia cgo, or a sidecar. A third-party Go port exists — unverified maturity; do not plan on it.)
Replaces vs complements:
- Replaces, for non-Muse seats: the rendezvous + traversal role the session proxy / DERP hairpin plays today, and the Cloudflare tunnel for point-to-point host traffic.
- Complements: the commander public door stays — hosted MCP clients (ChatGPT/Claude connectors) cannot run iroh and need an HTTPS door. tsnet stays where it already works (mcpx's Go daemon per mcpx: reach a daemon by identity, not by address — iroh, and the Go-binding question it forces #1967; the Muse session stack is untouched by this thread).
Recommendation: pilot iroh as one transport offer in the thread-1 registry for one non-Muse seat class — opencode-lane host reach (seat ↔ laptop without the session-proxy hairpin) — with the fleet binary (Rust) hosting the endpoint. Self-host one iroh-relay + pkarr/DNS under our own zones (n0's public relays only as bootstrap fallback), publish host NodeIds in the registry (1a), allowlist by NodeId bound to fleet identities. Measure against #10356's numbers: direct-path rate, p50/p99 setup + call latency vs the ~0.4 s warm hairpin. Pin the iroh version and hide it behind fleet's own transport trait — the crate is young and its API has moved before (iroh-net → iroh renames).
Work items:
- 2a. Pilot: fleet binary endpoint + one seat class; direct-path/latency record against the hairpin baseline.
- 2b. Self-hosted relay + pkarr/DNS under our zones; NodeId ↔ fleet identity binding in the registry.
- 2c. Accept-side allowlist + per-ALPN authorization shape (composes with the fleet CA / Fleet CA, credentials & secrets — v0.3 design mill (Summit build-out) #9155 identity work).
Thread 3 — A generic pooling system
Problem. The estate keeps reinventing the same machine: model pools (route tables, wall doctrine, failover — #13693, opencode#2256), the google-free round-robin (four projects, per-model-per-project caps), the route-form walker (#13717: ordered attempts, advance only on failure-to-serve, name the serving form), fleet placement (#2179 machine pool; #13611: unread load reads as unknown, never zero), and now host×transport selection (thread 1). Each re-implementation re-learns the same lessons — usually by hitting the same wall twice.
The primitive owns (domain-independent):
- Member state machine — serving / demoted / walled / probing, per member, with the wall keyed at the narrowest true scope the evidence supports (member, group, provider, account — the scope is data, with widening/narrowing rules: a sibling's success narrows a wide wall; repeated member failures at a shared scope widen it). This is route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693's doctrine stated once, generically.
- Attempt semantics — the fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717 distinction, generalized: advance to the next member on failure to serve; a served failure (the member answered and the answer was no) is recorded, classified, and only advances per the classifier's verdict.
- Selection strategies as plug-ins — ordered (tier walk), round-robin (google-free), weighted (route tables), free-first (an ordering by cost class), least-loaded where a load read exists — with fleet placement: distinguish unreadable runner load from measured idle capacity #13611's rule built in: an unread load is unknown, and unknown never sorts as zero.
- Recovery — wall expiry at a recorded reset, probe-based re-admission (a bounded successful probe re-seats a member), and measured-increase rejoin (opencode#2256's path). One failed call never benches forever; a wall without a reset still gates (bounded inferred walls, per route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693 slice P / PR feat(route-proxy): wall-skip slice P — reset shapes, failure-run gate, bounded inferred wall, fail-safe pacing #13735).
- Observability — every selection decision records member, state, and reason. The form-visibility rule from fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717, generalized: a pool decision you cannot read back is a bug.
The domain keeps (not the primitive's business):
- What a member is: a model leg, a (host × transport-form) pair, a machine, a compile slot.
- Measurement: quota gatherers, latency probes, Actions-load reads — and the classifiers that turn a failure into a class (quota / transport / auth / served-refusal). The primitive consumes classified outcomes; it does not classify.
- Policy: weights, free-first ordering, reserve rules (OpenAI last), pace guards (fleet(pools): enforce monthly pace guards at seating time — steward hard stops are currently advisory and were burned through (cline-pass + both Go monthlies walled) #2732).
Options:
- (a) A shared Rust crate in the fleet workspace (working name
fleet-pool):Member/Classifier/Strategy/Probetraits + the state machine. First consumers: the route-form walker (smallest, already specified in fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717) and host×transport selection (thread 1). Model routes consume it at the proxy/fork boundary through a recorded-outcome interface only — not a rewrite of route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693's in-flight work. Placement adopts last; its fairness/lease semantics (cf. id spill, id: spill v2 phase 1 — pool roster, reader-then-holder eligibility, automatic lease failover (#5787) #7572) stay domain-side. - (b) Spec-only pattern, each domain re-implements: zero migration cost, and exactly the drift that produced this thread.
- (c) One central pool service: a single decision point — right for the compile coordinator's atomic cross-owner claims (a separate, already-directed build), wrong as the general shape: it makes every route decision a network hop and a shared failure point.
Recommendation: (a), adopted in the order walker → host×transport → model-route boundary → placement, each adoption its own slice with the domain's existing tests as the oracle.
Work items:
- 3a.
fleet-poolcrate: state machine + strategies + decision log, property-tested (wall scope invariants named as oracles). - 3b. Walker adoption (fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717 composition becomes the crate's first consumer).
- 3c. Model-route boundary interface (recorded outcomes in, selection out) — sequenced after route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693 lands its scoping layer.
- 3d. Placement adoption review against Machine pool: onboard additional machines as fleet job nodes and redesign placement around a pool #2179 (may legitimately conclude "not yet").
Cross-links
#13654 (commander subcommand, form F1) · #13717 (route-form family) · #10356 (fleet connect: method selection, sessions) · #2179 (machine pool + registry) · #1967 (iroh and the Go-binding question — closed, recommendation stands for Go) · #13669 (mcpx→Rust pilot; tsnet is Go-only, iroh the Rust-side option) · #13693 (wall scoping) · opencode#2256 (wall doctrine — closed) · #13404 (commander endpoint, the non-Tailscale proof) · #9155 (fleet CA — the identity layer hosts bind to) · #8991 / #9399 (pool routing epics — thread 3 serves these, does not replace them)
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T21:11:17Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activity
developing-today commentedon Nov 23, 2026
CODE-5051
design: fleet transport & pooling — host selection without Tailscale,…
docs: index the fleet transport & pooling design record (#13752)
Merge PR #13757: fleet transport & pooling design record (#13752)
dezren39 commentedon Nov 23, 2026
Design record landed: PR #13757 merged (
7d890259a2dc) — doc/2026-11-23T21-10-36Z_design_fleet-transport-pooling, indexed in doc/README.md.Recommendations, one line each (full options/trade-offs in the record):
fleet-poolcrate (option a) — adoption order walker (fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717) → host×transport → model-route boundary (after route wall scoping: walled models keep getting hit — scope inference, alias providers for mixed plan+free, per-model free caps #13693 lands; interface only, not a rewrite) → placement (review; "not yet" is an acceptable recorded outcome).This issue stays open as the tracker; each work item (1a–1d, 2a–2c, 3a–3d) gets its own slice issue when picked up.
dezren39 commentedon Nov 23, 2026
Design direction from Drew (2026-11-23 ~17:08 CST): the exec command surface should become target-generic
Recorded against this transport design because host selection is its home. Drew's words, in substance:
fleet laptop exec, tiers T0–T7, fleet: codify the laptop route forms — tier 0 + 3 methods × 2 shapes + the laptop-ssh wrapper (route-form family) #13717) works for now and stays as the interim form.exec, orpool/fleet pool exec— explicitly not decided, and "not necessarily what I suggest": the final shape is still to be figured out.-persistentor-laptop, or passing the hostname explicitly. The reason: there will be more hosts than the laptop, and the fleet has to be able to distinguish which target an exec means.dezren39 commentedon Nov 23, 2026
Design direction recorded — out-of-band bootstrap and communication channels
Direction from Drew, recorded 2026-11-23. In addition to broker/DHT discovery in this transport design, we should support out-of-band bootstrap and communication channels modelled on how Delta Chat uses iroh: email-carried rendezvous material, QR-code / ticket pairing, and sneakernet-carried signed bundles.
Design principle: one ticket, many carriers
The design should keep one signed ticket format — the same ticket the queue broker hands out in this design — and allow many carriers: the broker, pkarr/DHT publication, email headers/messages, QR codes, and physical media.
Channel diversity must not become format diversity. A ticket remains trustworthy because of its signatures and its binding to the fleet CA identity in the existing design, not because of the channel that delivered it. Every carrier is therefore untrusted transport; authentication comes from the ticket itself and the CA binding, and a receiver must be able to verify the ticket without trusting the carrier.
Email headers and email messages
Email can carry rendezvous and ticket material in headers and in the message itself, making it a store-and-forward introduction channel. This is the right carrier for introductions across administrative boundaries, for peers that are not online at the same time, and for bootstrapping a later direct or relayed connection from an already-established human/organisational relationship.
Trust note: email must be treated as an untrusted, mutable carrier. Headers in particular can be forwarded, rewritten, or mangled, so the ticket must be self-contained and verifiable offline; no security property may depend on a header surviving unchanged or on the mail path being confidential.
This follows the Delta Chat pattern in the iroh real-projects research: webxdc realtime channels bootstrap iroh-gossip through encrypted email headers, while second-device backup uses an iroh protocol whose introduction begins out of band rather than through a public DHT.
QR codes and tickets
A QR code or short ticket is the right carrier for co-located pairing and enrolment: a human can scan, compare, and intentionally approve the introduction. It is well suited to enrolling a new host, pairing a device, or handing a peer a bounded introduction where physical presence or an existing visual channel supplies the human check.
Trust note: the QR/ticket is still only a carrier. It should encode the same signed ticket format — an iroh node ticket is the existing model for this shape — and the fleet-CA binding and ticket signatures do the authenticating. Human scanning provides intent and co-location evidence, not a substitute for cryptographic verification.
Sneakernet: signed bundles on physical media
Sneakernet bundles can carry signed data together with capability grants on physical media, then sync when the carrier reaches a peer. This is the right carrier for bulk transfer, intermittently connected or air-gapped environments, and cases where grants and the data they authorise should arrive together and be reconciled on contact.
Trust note: physical possession of the medium must not by itself confer trust. Bundles need to be signed, self-describing, and verifiable offline; on contact, the receiving side verifies the ticket/grant chain and the fleet-CA binding before importing data or honouring grants.
This is the sneakerweb pattern from the Worm Blossom / P2P research recorded on #13779. It also interacts naturally with composition A: a sneakernet bundle is a natural carrier for Meadowcap grants alongside Willow/p2panda data, letting authority and payload travel together while remaining independently verifiable.
Scope note
This is a design direction recorded for the build slices, not a change to the pilot's current scope. The pilot remains broker-ticket-first. Email, QR/ticket, and sneakernet carriers are the recorded expansion path once the single ticket format and fleet-CA binding are proven in that first slice.
dezren39 commentedon Nov 24, 2026
AUDIT-7 Lane 5 (DESIGN-REVIEW, #13876) — verdict on the design of record (doc/2026-11-23T21-10-36Z_design_fleet-transport-pooling): sound.
dezren39 commentedon Nov 24, 2026
Cross-link (2026-11-23): the ID app-layer programme, epic #13880, now
consumes this design's carrier set in two places — D1, the ID URI
scheme (#13886), whose resolution hints must be expressible over the
broker / pkarr / email / QR / sneakernet carriers defined here, and
D4, sneakernet bundles for ID (#13889), which is the bundle-format
design for the sneakernet carrier this issue named. SSB's brutal
first-sync lesson is also recorded on #13880 as part of why
ticket-based bootstrap matters to the app layer.
dezren39 commentedon Nov 24, 2026
Design direction recorded — carriers graduate from bootstrap to full message transport (multi-transport reach)
Direction from Drew, recorded 2026-11-23 ~18:55 CST. This extends the bootstrap-channels direction recorded earlier today (comment 7117201658: one signed ticket format, many carriers). There, carriers — email, QR/tickets, physical media — carried introductions. The long-term goal now recorded: carriers graduate from bootstrap-only to full message transport. The P2P / ID / fleet stack should be reachable over many alternate transports and proxied alternate systems, in the same spirit as Veilid's multi-transport design and the Spritely relay work reviewed today (federated, stateless, end-to-end encrypted relays; the Noise XK netlayer).
The inventory Drew named
The level vocabulary
Each adapter sits at one declared level per direction:
The asymmetry requirement (hard design requirement)
Asymmetric paths are first-class. Send and receive transports are chosen independently. Drew's words: "if someone wants to send a message over carrier pigeon and receive the response over fax, I'm down to support it." Routing must therefore never assume the return path equals the forward path; a reply address is part of the message contract, not an accident of the channel.
Programme structure
This direction is filed as its own programme: a parent epic ("Multi-transport reach: any protocol as a carrier") plus a head design issue for the transport adapter contract — what every adapter must declare (addressing, delivery/ordering semantics, identity binding to the fleet CA / ID identity, capability gating per level, metering), the four levels defined precisely, asymmetric routing rules, and a security analysis per level. First instances already exist and are named in the epic: email + HTTP as bootstrap carriers (this issue), the live MCP door (#13657), the bridge as an HTTP note transport (#13895), and sneakernet bundles (#13889).
The pilot in this issue remains broker-ticket-first; nothing here changes its current scope. This comment records the expansion path so the ticket format and CA binding designed here are built to survive being carried by all of the above.