diff --git a/doc/2026-11-24T01-04-53Z_design_multi-transport-reach/2026-11-24T01-04-53Z_design_multi-transport-reach.md b/doc/2026-11-24T01-04-53Z_design_multi-transport-reach/2026-11-24T01-04-53Z_design_multi-transport-reach.md new file mode 100644 index 0000000000..c04e5b907a --- /dev/null +++ b/doc/2026-11-24T01-04-53Z_design_multi-transport-reach/2026-11-24T01-04-53Z_design_multi-transport-reach.md @@ -0,0 +1,59 @@ +# Multi-transport reach — any protocol as a carrier + +**Kind:** design record (programme direction) +**Recorded:** 2026-11-23 (direction from Drew, ~18:55 CST) +**Programme epic:** [#13926](https://github.com/developing-today/code/issues/13926) +**Head design:** [#13929 — the transport adapter contract](https://github.com/developing-today/code/issues/13929) +**Direction recorded on:** [#13752 (transport design), comment 7118605020](https://github.com/developing-today/code/issues/13752#issuecomment-7118605020) + +## The direction + +Long-term goal: 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 (federated, stateless, end-to-end encrypted relays; the Noise XK netlayer, reviewed 2026-11-23). + +This extends the bootstrap-channels direction recorded on #13752 earlier the same day (one signed fleet-CA-bound ticket format, many carriers — email, QR/tickets, physical media carrying *introductions*). The step recorded here: **carriers graduate from bootstrap-only to full message transport.** + +## The inventory (as named by Drew) + +Grouped as filed on the epic: + +- **Overlay / relay transports:** Spritely-style federated stateless relays (Noise XK netlayer), Tor, Noise generally +- **Federation protocols:** ActivityPub, ATProto +- **Store-and-forward & buses:** email, MQTT +- **Request/response & document protocols:** pure HTTP/REST; Gopher and Gemini as alternatives to HTTP +- **Agent/tool protocols:** MCP, and any other common protocols / transport libraries +- **Chat systems as transports or proxied systems:** IRC relays, Zulip, Slack, Discord bots +- **Terminal access:** telnet in addition to SSH +- **Physical media:** sneakernet bundles; print/fax/carrier-pigeon-class paths are the extreme members of this group + +## The level vocabulary + +Each adapter declares its level **per direction**: + +- **read** — the stack can receive/observe over this path +- **bidirectional** — messages flow both ways over this path +- **write-capable** — the stack can originate actions/writes over this path +- **sync-equivalent** — the path can carry full state synchronisation + +Precise definitions, and the rest of the contract (adapter declarations, security per level), live in the head design, #13929. + +## The asymmetry requirement + +**Asymmetric paths are first-class — a hard design requirement.** 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."* A reply address is part of the message contract; no component may assume the return path equals the forward path. + +## Programme structure + +1. **Head design (#13929):** the transport adapter contract — what every adapter must declare (addressing; delivery and ordering semantics; identity binding to the fleet CA / ID identity; capability gating per level; metering), the four levels defined precisely, asymmetric routing rules, a security analysis per level, the transport-vs-proxy distinction (a proxied chat system terminates at a platform we do not control; identity is a proxy-held mapping, not a cryptographic property of the path), dependency-ordered build slices S1–S8 with acceptance criteria, and a first-adapter order grounded in what already exists: HTTP via the bridge → email → MCP via the mcpx door → MQTT → sneakernet → IRC (first proxy) → federation → overlays/Tor → Gopher/Gemini/telnet opportunistically. +2. **Adapter designs/builds** filed as children of the epic as the contract lands, each declaring its level(s) up front and proving them live before the level is recorded as held. + +## First instances that already exist + +- Email + HTTP as bootstrap carriers — #13752 +- The MCP door, live — #13657 +- The bridge, an HTTP note transport — #13895 +- Sneakernet bundles (the physical-media member; also D4 of the ID-graph programme) — #13889, epic #13880 + +## Neighbours + +- #13779 — P2P synthesis (the data plane these transports carry) +- #5674 — ID wire format & transport adapters (ID-internal scope; plugs into this contract) +- #13752 — fleet transport design (pilot stays broker-ticket-first; this programme is its recorded expansion path) diff --git a/doc/README.md b/doc/README.md index 777054f48c..37e3a20ce7 100644 --- a/doc/README.md +++ b/doc/README.md @@ -52,6 +52,7 @@ Folders are named `__`. The kinds in use are `feature` - [Code Book programme — Census B merged priority list](2026-11-24T00-55-23Z_research_code-book-census-priorities/2026-11-24T00-55-23Z_research_code-book-census-priorities.md) — research record for #13905 (census 2026-11-23/24): the merged, dependency-ordered priority list for the Code Book programme — 30 items ordered execution substrate (fleet) first, then physical substrate (lab), data substrate, search intelligence (Atlas×ID), the ID platform build-out, gateway/PM/fork surfaces, and the record itself — each item with its type, status and evidence, most-related issues, and ordering rationale, plus a per-book assignment table (fleet 4 · atlas 8 · id 9 · mcpx 1 · pm 4 · lab 4), timing notes that invent no dates, and the census gaps carried forward (service-worker/offline and switches have no owning issue; the #10706/#10708 discovery blocker is unverified). - [CNCF landscape — the slice this estate will actually need](2026-11-23T22-33-41Z_research_cncf-landscape/2026-11-23T22-33-41Z_research_cncf-landscape.md) — research record (2026-11-23): ~150 cloud-native projects across the seven areas this estate will need, each with CNCF status (graduated / incubating / sandbox / not CNCF) and an estate verdict — observability (OpenTelemetry as the contract; Prometheus as the language, VictoriaMetrics as the store; Grafana stays; no open-source Datadog exists), networking (Cilium yes; Gateway API after ingress-nginx's March 2026 retirement; MetalLB is the remembered LAN LoadBalancer; no service mesh yet), platform & GitOps (Flux over Argo CD for us; Cozystack fits with the caveat that it decides storage/tenancy/GitOps for you; Crossplane graduated but not now), data (TiKV no — a storage layer, not a database, and its Jepsen record is honest; CloudNativePG + replicas; NATS yes with a JetStream shape; LINSTOR over Rook), security & identity (Keycloak ≠ OpenBao; cert-manager and Kyverno when Kubernetes lands; SPIRE later, chained under the fleet CA; OPA management-plane only), runtimes (no OCI runtime is "much faster"; KubeVirt graduated and is the VMs-in-Kubernetes answer; Wasm apps designed to the Component Model, not WasmEdge), and registries & builds (GHCR until friction, then Zot; Harbor is a registry and Dragonfly a distribution layer, not alternatives; Nix + Actions already win the build category). Includes the Oct–Nov 2026 status-correction list (Crossplane, KubeVirt, NATS, Dragonfly graduated; CloudNativePG, OpenFGA promoted) and the uncertain-name identifications (Argonize doesn't exist; Trimmer→Tremor; Yuki→youki; Percy→Pixie; Spiffy→SPIFFE). +- [Multi-transport reach — any protocol as a carrier](2026-11-24T01-04-53Z_design_multi-transport-reach/2026-11-24T01-04-53Z_design_multi-transport-reach.md) — programme direction record (Drew, 2026-11-23) for epic #13926 and head design #13929: the P2P/ID/fleet stack reachable over many alternate transports and proxied systems (Spritely-style relays, Tor, Noise, ActivityPub, ATProto, email, MQTT, HTTP/REST, MCP, IRC, Zulip, Slack, Discord bots, Gopher, Gemini, telnet, physical media), each adapter at a declared level (read / bidirectional / write-capable / sync-equivalent), with asymmetric send/receive paths as a first-class design requirement. - [Roc ecosystem research](2026-11-23T22-00-25Z_research_roc-ecosystem/2026-11-23T22-00-25Z_research_roc-ecosystem.md) — research record (2026-11-23): the state of the Roc language ecosystem — the new Zig compiler (feature parity July 2026; 0.1.0-RC1 shipped 2026-11-21, promotion to 0.1.0 still open), platforms (basic-cli, basic-webserver, Joy, roc-ray, roc-gui, Cloudflare Workers, native Android), the new-compiler package canon, real projects and production use (Joy/roc-deflate, roc-chat), a 30-day Zulip digest (linear types decided against FBIP; the LLM-generated-code conversation, no policy adopted; tooling and distribution progress), and the talks/releases/showcases worth watching. - [Actions exec — build and tiered-extension proof material](2026-11-24T00-39-49Z_report_actions-exec-proof-material/2026-11-24T00-39-49Z_report_actions-exec-proof-material.md) — raw proof scripts and run logs for #13774: the ACTIONS-EXEC-2 build (broker verbs, OIDC RS256 gate, fleet actions family; handoff proven end to end twice; the second run failed at the agent-install step and its diagnosis is held behind a flag hold) and the ACTIONS-EXEC-3 tiered lease-extension policy (design amendment and completion record on the issue; fleet-queue 616 and fleet bin 141 tests passing; live tier proof on the generation-8 broker; push delivery blocked by the PM intake 401, #13902). Backfilled from lane /tmp under the work-product landing rule. - [OpenRouter post-reset through-route probe](2026-11-24T00-22-00Z_report_openrouter-route-probe/2026-11-24T00-22-00Z_report_openrouter-route-probe.md) — verification record for #13677 (2026-11-24): two post-reset probe sessions through the openrouter-free-plan route completed, but the server session records show both were served by other providers (claude-payg and _muse), not by OpenRouter :free models, so the owed verification stays open in substance and the next diagnostic is named. Backfilled from the goal workspace under the work-product landing rule.