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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
use ;
/// What a binding-fate floor measured earlier is allowed to install NOW.
///
/// A floor is measured at one moment and installed at another. Between them the
/// frontier moves, so the measured value is a PROPOSAL and this is the verdict
/// on it. Returned by [`admissible_installed_floor`].
/// Lowers a computed floor so it cannot cross the lowest retained marker.
///
/// ⚠ THIS LOWERS. [`floor_transition`]'s `cap_floor` argument RAISES: it is
/// `max(base_result, cap_floor)`, a floor-**raiser** despite the name. Passing
/// the lowest marker through `cap_floor` yields `max(base, marker)`, which
/// still sits above the marker in exactly the poisoning case and would raise
/// floors in cases that work today. The two are opposites; do not substitute
/// one for the other.
///
/// The clamp target is the marker ITSELF, never `marker - 1`. The enforcers
/// refuse on `record.delivery_seq < resulting_floor` — strictly below — so
/// `resulting_floor == marker` is admissible, and it stays consistent
/// downstream because floor installation retains markers `>= resulting_floor`,
/// so a marker sitting exactly at the floor survives its own pin. Clamping to
/// just below the marker is the defensive reflex and it silently destroys legal
/// floor advances.
///
/// An empty marker set is the majority case and is answered explicitly rather
/// than left to a guess about the minimum of an empty set: nothing pins the
/// floor, so the computed floor passes through byte-identical.
pub const
/// Decides what an earlier-measured binding-fate floor may install against the
/// frontier as it stands now.
///
/// The installing enforcer refuses on TWO conditions, and clamping downward
/// against markers only bounds one of them: a floor clamped down can land BELOW
/// the current retained floor and be refused for that instead — the same
/// permanent refusal under a different name. So the admissible interval is
///
/// > `[retained_floor, min(lowest_retained_marker_seq, high_watermark + 1)]`
///
/// with **both ends read now, not at measurement time**: the upper end moves
/// too, because it derives from the current high watermark.
///
/// Monotonicity is safe rather than assumed. Floor installation retains only
/// markers `>= resulting_floor`, so the lowest retained marker is never below
/// the retained floor, and the marker clamp can therefore never on its own
/// drive a floor backwards. When the interval is nonetheless empty — which
/// requires a frontier that has already broken that invariant — the answer is
/// [`AdmissibleFloor::Subsumed`], i.e. install nothing, because installing
/// anything would prune rows the frontier still owes.
pub const
/// Computes the participant physical-floor rule.
///
/// `minimum_member_cursor` is evaluated after membership changes. When it is
/// `None`, the rule substitutes the candidate high watermark `H'` for `m`.
/// Floors use `u128` so checked one-past-`u64::MAX` remains representable.
pub const