1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! `PeerState` — the framework's consolidated per-peer state.
//!
//! The engine's four peer-related primitives — `PeerGate` (named
//! concurrency limiter), `PeerGovernor` (policy + health source of
//! truth), `BackoffTable` (per-peer exponential backoff), and
//! `BackpressureTracker` (receiver-side overload state for the
//! backpressure protocol per
//! `docs/internal/superpowers/specs/2026-06-23-backpressure-runtime.md`)
//! — cluster under one struct. Component authors reach them through
//! `ctx.peer_state.{gate, governor, backoff, backpressure}` instead
//! of four sibling fields on the framework bundle.
use crate;
/// Consolidated per-peer state.
///
/// Each sub-field retains its existing API; the consolidation is
/// purely organisational so `FrameworkComponents` carries one peer
/// field instead of four. Future work can merge the sub-fields
/// into a single per-peer entry table.