You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime Host remote access currently depends on a Client reaching a configured endpoint. Users who want private reachability across ordinary NAT must therefore expose an endpoint or separately install, join, and operate a general-purpose overlay network.
External overlays remain valuable routes, but they do not provide a Maka-native flow in which several users can connect their Runtime Hosts through Maka alone, expose only Runtime Host traffic, and optionally help one another establish connectivity.
This issue supersedes the connectivity scope of #3801. Resource authorization and Session sharing are tracked independently in #3843.
Desired outcome
Deliver an application-scoped Runtime Host peer mesh in which devices operated by different users can:
join through an explicit Mesh invitation;
establish authenticated direct connections when the network permits;
discover only Runtime Host endpoints made visible to them;
recover from address and path changes;
optionally provide bounded one-hop transit for other permitted peers;
carry the existing Runtime Host protocol over an end-to-end authenticated secure stream.
The mesh is native connectivity for Maka, not a general machine network. It does not expose arbitrary ports, assign virtual IPs, or replace existing TLS, SSH, acknowledged plaintext, or external-overlay routes.
Architecture boundary
The peer mesh answers only how a Client reaches an expected Runtime Host.
It owns:
Mesh invitation and admission;
node authentication;
scoped Runtime Host discovery and ephemeral reachability;
direct connection attempts and NAT traversal;
reconnect and bounded route diagnostics;
optional, explicitly enabled transit.
It does not own:
Runtime Host credentials or resource authorization;
Session visibility, sharing, or collaboration policy;
Owner approval or Guest execution policy;
Runtime state, State Root replication, or cross-Host consensus;
access to unrelated services on a participating machine.
Joining the peer mesh grants no Runtime Host authority. The target Host independently verifies its pinned transport identity and expected Root ID, authenticates the presented Runtime Host credential, and authorizes every operation.
Invitation authority boundary
A Mesh invitation authorizes only connectivity membership and scoped discovery. Its one-time payload, node identity, receipt, durable admission state, and removal authority remain independent from collaboration invitations, Guest principals, Runtime Host credentials, and Session grants.
Milestone 1 creates no Mesh invitation authority; pairwise connectivity uses the existing Owner credential. If Milestone 2 is approved, removing a node from the mesh must not revoke Session grants that remain usable over TLS, SSH, or another transport. Revoking a Session grant must not remove the node from the mesh.
A future QR code or link may package opaque Mesh and collaboration invitation payloads for one scan. The Mesh and Host authorities must validate and commit their own payloads and report their own outcomes. The envelope provides no shared durable membership and no cross-authority atomicity guarantee.
Identity and control state
The design distinguishes:
State Root identity;
the target Host's pinned transport identity;
node identity used for peer connectivity;
admission to a particular peer mesh;
Host-local resource credentials and grants.
No additional provider-neutral Host ID is introduced without a concrete invariant that existing target verification cannot express.
Admission, removal, discovery, and reachability need defined security semantics, but this tracker does not prescribe a global membership database, gossip protocol, distributed consensus, or CRDT. Those mechanisms must be justified by measured prototypes and the smallest design that satisfies the product outcome.
Transit model
The first transit capability is deliberately bounded:
at most one transit hop;
available only to explicitly permitted peers;
disabled unless a node operator opts in;
limited by connection, bandwidth, duration, and health policy;
end-to-end encrypted and authenticated between Client and target Host;
unable to grant or exercise Runtime Host authority;
never an open or public Relay.
A route may be direct, use an explicitly permitted mesh transit, or use an existing external overlay. No route is guaranteed to be available, and the product must report an unreachable topology honestly.
Current status and gate
Milestones 1, 2, and 3 are implementation-complete on main.
The approved connectivity scope is now complete. Peer Mesh remains experimental: transit is optional, explicitly enabled, bounded to one hop and permitted Mesh peers, and carries no public/open Relay, general-purpose routing, multi-hop, availability, or Runtime Host authority promise.
Staged delivery
Milestone 1: Pairwise direct peer — complete
Pair one Client with one expected Host.
Establish an authenticated secure stream using pinned Host identity, expected Root ID, and the existing Runtime Host credential.
Measure NAT traversal, reconnect, diagnostics, and cross-platform behavior.
Ship only as experimental until supported network topologies are evidenced.
Milestone 2: Multi-peer mesh — complete
Allow multiple independently operated nodes to participate.
Add a Maka-native Mesh invitation with scoped discovery, removal, and recovery semantics.
Keep connectivity membership independent from Runtime Host resource authority.
Milestone 3: Cooperative transit — complete
Validate one consenting node carrying an end-to-end encrypted Runtime Host stream between two permitted peers.
Define resource limits, operator controls, diagnostics, and failure behavior.
Treat transit as optional capacity, not a public-service or availability promise.
Each milestone is independently reviewable and must earn the next one. Provider selection follows measured evidence; Maka does not invent a new cryptographic transport protocol.
Acceptance criteria
Pairwise direct connectivity can be delivered and evaluated independently of the later mesh milestones.
Devices operated by different users can explicitly participate in the same private Runtime Host peer mesh.
A Mesh invitation never creates a Guest principal, Runtime Host credential, or Session grant.
Mesh removal and Session-grant revocation remain independent across every transport.
Joining the mesh does not reveal a Runtime Host until that Host independently authenticates and authorizes the Client.
Only authorized Runtime Host endpoints are discoverable; unrelated machine services are not exposed.
A Client can reach the expected Host directly when the tested topology permits it.
With three nodes, a Client can reach a target through one consenting transit node when no direct route is available.
A transit node cannot read Runtime Host application plaintext or use transit authority to operate the target Host.
Removing a peer prevents future mesh connectivity after the relevant control state propagates.
Address changes and transient disconnects recover without silently retargeting a Host profile.
An unreachable topology fails clearly without claiming guaranteed connectivity.
Existing Local, TLS, SSH, acknowledged plaintext, and external-overlay routes do not regress.
Non-goals
A general-purpose VPN or tailnet
Arbitrary IP or port connectivity between participating machines
Session sharing or collaboration permissions
A unified invitation, identity, membership, receipt, or revocation authority spanning connectivity and Runtime resources
Atomic commit across Mesh and collaboration invitation payloads
Federated Runtime execution or replicated State Roots
A distributed SQL/CRDT authority
Arbitrary multi-hop routing in the first implementation
Public discovery of arbitrary Hosts
An Apache-operated production Relay or SLA
Replacing existing external overlays
Selecting a provider before measured cross-platform prototypes
English
Problem
Runtime Host remote access currently depends on a Client reaching a configured endpoint. Users who want private reachability across ordinary NAT must therefore expose an endpoint or separately install, join, and operate a general-purpose overlay network.
External overlays remain valuable routes, but they do not provide a Maka-native flow in which several users can connect their Runtime Hosts through Maka alone, expose only Runtime Host traffic, and optionally help one another establish connectivity.
This issue supersedes the connectivity scope of #3801. Resource authorization and Session sharing are tracked independently in #3843.
Desired outcome
Deliver an application-scoped Runtime Host peer mesh in which devices operated by different users can:
The mesh is native connectivity for Maka, not a general machine network. It does not expose arbitrary ports, assign virtual IPs, or replace existing TLS, SSH, acknowledged plaintext, or external-overlay routes.
Architecture boundary
The peer mesh answers only how a Client reaches an expected Runtime Host.
It owns:
It does not own:
Joining the peer mesh grants no Runtime Host authority. The target Host independently verifies its pinned transport identity and expected Root ID, authenticates the presented Runtime Host credential, and authorizes every operation.
Invitation authority boundary
A Mesh invitation authorizes only connectivity membership and scoped discovery. Its one-time payload, node identity, receipt, durable admission state, and removal authority remain independent from collaboration invitations, Guest principals, Runtime Host credentials, and Session grants.
Milestone 1 creates no Mesh invitation authority; pairwise connectivity uses the existing Owner credential. If Milestone 2 is approved, removing a node from the mesh must not revoke Session grants that remain usable over TLS, SSH, or another transport. Revoking a Session grant must not remove the node from the mesh.
A future QR code or link may package opaque Mesh and collaboration invitation payloads for one scan. The Mesh and Host authorities must validate and commit their own payloads and report their own outcomes. The envelope provides no shared durable membership and no cross-authority atomicity guarantee.
Identity and control state
The design distinguishes:
No additional provider-neutral Host ID is introduced without a concrete invariant that existing target verification cannot express.
Admission, removal, discovery, and reachability need defined security semantics, but this tracker does not prescribe a global membership database, gossip protocol, distributed consensus, or CRDT. Those mechanisms must be justified by measured prototypes and the smallest design that satisfies the product outcome.
Transit model
The first transit capability is deliberately bounded:
A route may be direct, use an explicitly permitted mesh transit, or use an existing external overlay. No route is guaranteed to be available, and the product must report an unreachable topology honestly.
Current status and gate
Milestones 1, 2, and 3 are implementation-complete on
main.The approved connectivity scope is now complete. Peer Mesh remains experimental: transit is optional, explicitly enabled, bounded to one hop and permitted Mesh peers, and carries no public/open Relay, general-purpose routing, multi-hop, availability, or Runtime Host authority promise.
Staged delivery
Milestone 1: Pairwise direct peer — complete
Milestone 2: Multi-peer mesh — complete
Milestone 3: Cooperative transit — complete
Each milestone is independently reviewable and must earn the next one. Provider selection follows measured evidence; Maka does not invent a new cryptographic transport protocol.
Acceptance criteria
Non-goals
简体中文
问题
当前 Runtime Host 远程访问依赖 Client 能够连接一个配置好的 endpoint。希望跨普通 NAT 私密连接的用户必须暴露 endpoint,或者额外安装、加入并维护一个通用 overlay network。
External overlay 仍然是有价值的 route,但它不能提供 Maka 原生流程:多个用户只使用 Maka 就能连接各自的 Runtime Hosts、只暴露 Runtime Host 流量,并可选地帮助彼此建立连接。
本 issue 替代 #3801 中的 connectivity 范围。资源授权与 Session sharing 由 #3843 独立跟踪。
期望结果
交付一个 application-scoped Runtime Host peer mesh,使不同用户运营的设备能够:
该 mesh 是 Maka 原生连接能力,不是通用机器网络。它不暴露任意端口、不分配虚拟 IP,也不替换现有 TLS、SSH、acknowledged plaintext 或 external-overlay routes。
架构边界
Peer mesh 只回答:Client 如何到达预期 Runtime Host。
它负责:
它不负责:
加入 peer mesh 不授予任何 Runtime Host authority。目标 Host 仍独立验证固定的 transport identity 和 expected Root ID,认证所提供的 Runtime Host credential,并授权每个 operation。
Invitation authority 边界
Mesh invitation 只授权 connectivity membership 和 scoped discovery。它的 one-time payload、node identity、receipt、durable admission state 和 removal authority,必须与 collaboration invitation、Guest principal、Runtime Host credential 和 Session grant 永久独立。
Milestone 1 不建立 Mesh invitation authority;pairwise connectivity 使用现有 Owner credential。如果 Milestone 2 获得批准,将 node 移出 mesh 不得撤销仍可通过 TLS、SSH 或其他 transport 使用的 Session grant;撤销 Session grant 也不得将 node 移出 mesh。
未来一个 QR code 或 link 可以封装 opaque Mesh 与 collaboration invitation payload,以提供一次扫码体验。Mesh 与 Host authorities 必须分别验证并提交各自 payload,并分别报告结果;该 envelope 不提供共享 durable membership,也不保证跨 authority 原子性。
身份与控制面状态
设计区分:
在没有现有 target verification 无法表达的明确不变量前,不增加额外的 provider-neutral Host ID。
Admission、removal、discovery 和 reachability 需要明确的安全语义,但本 tracker 不预设全局 membership database、gossip protocol、distributed consensus 或 CRDT。相关机制必须由可度量 prototype 证明,并采用满足产品结果的最小设计。
Transit 模型
第一版 transit 能力有意保持有界:
Route 可以是 direct、经过明确允许的 mesh transit,或使用现有 external overlay。任何 route 都不保证一定可用,产品必须诚实报告不可达拓扑。
当前状态与阶段门
Milestone 1、2、3 均已在
main上完成实现。已批准的 connectivity 范围现已完成。Peer Mesh 继续保持 experimental:transit 可选、必须显式开启、只允许获准 Mesh peers 间单跳使用,并且不承诺 public/open Relay、通用路由、多跳、可用性或 Runtime Host authority。
分阶段交付
Milestone 1:Pairwise direct peer — 已完成
Milestone 2:Multi-peer mesh — 已完成
Milestone 3:Cooperative transit — 已完成
每个 milestone 都可独立审查,并必须证明进入下一阶段的价值。Provider 选择由度量证据决定;Maka 不发明新的加密传输协议。
验收标准
非目标