Skip to main content

Module bb_core

Module bb_core 

Source
Expand description

Framework core schema. Covers the wire envelope (WireEnvelope, OpsetId, WireCorrelation, CorrelationKind), data-plane batching (SlotFillBatch, SlotFill), peer identity (PeerProto), and snapshots (NodeSnapshotProto, ComponentSnapshotProto). Matches package bb.core;.

Structs§

ComponentSnapshotProto
Snapshot of a single Component’s state, opaque to the framework.
EdgeRttReport
PLAN tender-noodling-sky Phase 3e-iv — per-edge RTT report piggybacked on a response envelope. The sending peer reports its observed SRTT/RTTVAR for its outgoing edge to next_hop_site_id in chain chain_id. The caller writes the report into AddressBookEntry.reported_outgoing\[(next_hop, chain_id)\] so a multi-hop chain budget can be composed from a single direct neighbor’s address-book entry.
NodeSnapshotProto
Top-level snapshot of a Node’s state. Produced by Node::snapshot(); consumed by Node::restore(snap). See ENGINE.md §15 and AUTHORING_COMPONENTS.md §14 for the lifecycle.
PeerProto
Peer identity record. Used inside snapshots + by the framework’s AddressBook primitive (ENGINE.md §3 framework primitives).
SlotFill
One slot-fill record carried inside a WireEnvelope. Each fill names its destination via a multiaddr suffix that’s appended to the receiver’s self-identity to form the full address.
WireCorrelation
Correlation header. Empty wire_req_id (= 0) is valid only when kind == NONE.
WireEnvelope
The unit of wire delivery — one delivery to one peer. Per the analyzer’s batching (ANALYSIS.md §9 analyze_wire_edges), a Send op with N typed inputs packs all N as fills so one envelope completes the data-plane DAG.

Enums§

CorrelationKind
Request/response correlation discriminator.