Skip to main content

Module mesh_runtime

Module mesh_runtime 

Source
Expand description

Mesh runtime orchestrator for WeftOS node-to-node communication (K6).

The MeshRuntime wires together transport connections, serialization via MeshIpcEnvelope, and the local A2ARouter so that a RemoteNode message target actually delivers across the network.

Structs§

ChainSyncOutcome
Result of applying a chain sync batch.
DiscoveryState
Discovery state for mesh peer lookup and health tracking.
MeshAuthentication
Admission material owned by this runtime. Nested seed dials must use this gate after verifying a reciprocal hello; a configured node-id is not proof.
MeshRuntime
The mesh runtime orchestrates transport, connections, and message bridging.
PeerConnection
A handle to a connected peer, holding the sender half of an mpsc channel whose receiver is read by a background write loop.
PeerDetail
What MeshRuntime::peer_details reports for one connected peer.
RouteTally
Count of live routes registered by one serving connection. Lets the connection learn in O(1), instead of scanning the peer map, that its routes were removed (disconnect_peer, revocation) or replaced.
StoppedAtAuthorityEvent
Where chain replication stopped at an authority-bearing event.

Constants§

COG_BINDING_TOPIC
Control topic carrying signed Seed bindings (ADR-106). Handled like FACTS_TOPIC.
COG_GRANT_TOPIC
Control topic carrying signed checkout grants and operator approvals (ADR-106). Handled like FACTS_TOPIC.
COG_SYNC_TOPIC
Control topic carrying licence catch-up sync requests and responses (ADR-106 section 5.5). Handled like FACTS_TOPIC.
FACTS_TOPIC
Control topic carrying signed node facts between peers (card mesh-placement-03). Consumed by the runtime: handed to the installed PeerControlSink, never routed to local subscribers.
INFER_TOPIC
Control topic carrying inference adverts and forwarded requests between peers (card mesh-placement-19). Handled like FACTS_TOPIC; see infer_proxy::hub.
PING_TOPIC
Control topic carrying liveness ping/pong between verified peers (see crate::mesh_liveness). Handled like FACTS_TOPIC.
REVOKE_TOPIC
Control topic carrying signed artifact revocations (card mesh-placement-25). Handled like FACTS_TOPIC.

Traits§

PeerControlSink
Receiver of a runtime control topic (one of CONTROL_TOPICS).