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
138
139
140
141
extern crate alloc;
use BTreeMap;
use DotSet;
use UnknownStation;
pub use Retired;
/// A cross-node *retirement* tracker: the meet of every roster member's applied
/// removals, the removal dual of [`Stability`](crate::metis::Stability).
///
/// Where [`Stability`](crate::metis::Stability) tracks how far each member has
/// *received* (a mint-side cut, the watermark below which every event is
/// delivered everywhere), this tracks which removed dots each member has
/// *applied*. A [`Rhapsody::condense`](crate::metis::Rhapsody::condense) may
/// excise an order tombstone only when its dot has been removed and applied at every
/// replica that will ever write again; over-claiming strands a laggard's future
/// anchor forever, the unrecoverable direction. The tracker computes the honest
/// claim, [`retired`](Self::retired): the dots *all* members have acknowledged.
///
/// # Mint evidence is the wrong witness
///
/// Removal deltas mint no dot, so "everyone has applied this deletion" is not
/// derivable from the crate's mint-based [`Cut`](crate::metis::Cut) or the
/// [`Stability`](crate::metis::Stability) watermark: those witness what has been
/// *seen*, not what has been *applied*. Application evidence only the deployment
/// can gather (an ack round, an app-level epoch, a quorum sweep) is the input
/// here, the same standing-claims posture as
/// [`Stability::report`](crate::metis::Stability::report)'s unverifiable cut
/// (PRD 0011 R8). The tracker turns per-member acknowledgements into the one
/// claim [`condense`](crate::metis::Rhapsody::condense) accepts, and nothing else
/// can build a [`Retired`] except the audited [`Retired::trust`] escape.
///
/// # The roster is the meaning
///
/// A meet is only as trustworthy as the family it ranges over, and the failure
/// direction is unrecoverable (forgetting a thread a laggard still anchors to
/// loses reachable text). So the roster is *fixed at construction* and
/// acknowledgements from stations off it are refused ([`UnknownStation`]):
/// admitting an unheralded member, or quietly meeting over "members heard from
/// so far", would widen or narrow the family mid-flight, and membership change
/// is the caller's policy, not this type's. A member that has never
/// acknowledged holds bottom (the empty applied-set) and pins
/// [`retired`](Self::retired) at bottom: nothing is safe to excise until
/// everyone vouches. Handling stragglers, joiners, and leavers means building a
/// new tracker over the new roster.
///
/// # Totality
///
/// [`acknowledge`](Self::acknowledge) folds by [`DotSet::merge`] (a join), so it
/// is idempotent, commutative, and monotone: duplicated, reordered, or stale
/// acknowledgements are absorbed and a member's applied-set never regresses,
/// which is exactly what licenses meeting them. A genuinely regressed member (a
/// peer restarted from scratch) is a membership event the caller handles by
/// rebuilding; the tracker will not un-vouch on its behalf.