Expand description
Framework-inserted TX/RX gate ops. Each gate is a compiler-
inserted graph op that consults a framework primitive
(PeerGovernor, BackoffTable, InboundDedup) and either
forwards its envelope/trigger downstream or drops + emits a
lifecycle event.
TX-side chain (around wire::Send):
wire::Send → PeerHealthGateTx → BackoffGateTx → outbound
RX-side chain (around wire::Recv):
wire::Recv → DedupGateRx → PeerHealthGateRx →
BackoffGateRx → user consumer
Modules§
- backoff_
rx BackoffGateRxsyscall op - gate inserted by the compiler passbb-compiler/src/insert_backoff_gate_rx.rsin the RX chain. Consultsbb_runtime::framework::BackoffTablefor the inbound envelope’s source peer and forwards the input value on retry- eligible; drops with acooldownreason when the peer is still in backoff.- backoff_
tx BackoffGateTxsyscall op - gate inserted by the compiler passbb-compiler/src/insert_backoff_gate_tx.rsbetweenPeerHealthGateTxandwire::Send. Consultsbb_runtime::framework::BackoffTableand drops the send if the destination peer is still in cooldown.- dedup_
rx DedupGateRxsyscall op - gate inserted by the compiler passbb-compiler/src/insert_dedup_gate_rx.rsat the head of the RX gate chain. Consultsbb_runtime::framework::InboundDedupand drops envelopes whose payload hash has been seen recently.- peer_
health_ rx PeerHealthGateRxsyscall op - gate inserted by the compiler passbb-compiler/src/insert_peer_health_gate_rx.rsbetween every synthesizedwire::Recvand its downstream consumers.- peer_
health_ tx PeerHealthGateTxsyscall op - gate inserted by the compiler passbb-compiler/src/insert_peer_health_gate_tx.rsupstream of everywire::Send. Consultsbb_runtime::framework::PeerGovernorand emits aTriggerValueon Allow; the downstreamwire::Sendfires only on Allow. On Deny the op returns anOpErrorwhosedetailcarries a stable label (blocklisted/not_allowlisted/cooldown).