# Reputation Scoring ## Beta-EMA Reliability Filter The scoring system models each validator's reliability as a latent probability $\theta_{i,t}$, observes whether they vote on time each round, and maintains an on-chain estimate that updates with each observation. The Beta distribution is natural here: it is defined on $[0,1]$, updating after a success or failure is trivial, and its shape reflects how confident the protocol is in the estimate. A wide distribution means little evidence; a narrow distribution means a well-characterized validator. The EMA discount $\lambda$ reflects the reality that validator connectivity changes over time. Without discounting, a validator's score would be locked by early history. With it, recent performance matters more, and recovery from a bad patch is possible. For each validator $i$ and scoring period $t$, we maintain $(\alpha_{i,t},\beta_{i,t})$ initialized at prior $(\alpha_0,\beta_0)$, e.g. $(1,1)$ (uniform). Let $\lambda\in(0,1)$ be the EMA discount factor and $w_v\in(0,1]$ the stress weight. **Case A** ($L_v=1$, QC formed): $\forall i\in C_v$: $$ \begin{aligned} \alpha_i&\leftarrow\lambda\alpha_i+w_v\cdot X_{i,v},\\ \beta_i &\leftarrow\lambda\beta_i +w_v\cdot(1-X_{i,v}), \end{aligned}\tag{1} $$ where $X_{i,v}:=\indicator[i\in S_v]$. The set $S_v$ is the one recorded in the block body, which every voting replica checks against the justifying certificate's signer partition; see Remark [3.1](system-model.md). **Case B** ($L_v=0$, no full QC, and the view timed out): only leader $j=l(v)$ is penalized: $$ \alpha_j\leftarrow\lambda\alpha_j,\qquad\beta_j\leftarrow\lambda\beta_j+w_v.\tag{2} $$ Non-leaders are left untouched, without even the discount $\lambda$; their vote outcome is *statistically censored* because no QC bitmap exists for failed views. The two cases do not cover every view: a view that closes on a tentative certificate ([Tentative Blocks](tentative-blocks.md)) satisfies neither and produces no update at all. That holds even when the view's timer fires before the certificate is committed: the replica whose timer fired records the view as a timeout, but an honest proposer charges only the leaders of views its justification skipped (Remark [3.1](system-model.md)), and a block that builds on that certificate is justified at the certificate's own view, so Case B reaches the view's leader only through a block justified by an older certificate. #### Remark 4.1 (Per-view discounting under a per-period fold) The discount $\lambda$ above is applied once per *view*, and the implementation honours that even though its scoring fold runs once per period. Within a period the evidence is accumulated by the same recurrence, $S\leftarrow\lambda S+w_v$, and the fold then carries the posterior forward by $\lambda^{k}$, where $k$ is the number of views in which the validator was observed: $$ \alpha_{i,t+1}=\lambda^{k}\alpha_{i,t}+\!\!\sum_{j:\,X_{i,j}=1}\!\!\lambda^{k-j}w_j, \qquad \beta_{i,t+1}=\lambda^{k}\beta_{i,t}+\!\!\sum_{j:\,X_{i,j}=0}\!\!\lambda^{k-j}w_j . $$ This is the closed form of $(1)$–$(2)$ over the period, not an approximation of it, so the batched update described in Appendix [B](appendices.md) and the per-view equations here describe the same filter. The distinction matters: applying $\lambda$ once per period to an undiscounted sum of the period's evidence would leave the steady-state pseudo-mass at $\nu/(1-\lambda)$ rather than $1/(1-\lambda)$, with $\nu$ the observations per period — tightening the posterior by a factor that depends on how often a validator happens to be seated, and correspondingly weakening the conservatism the LCB of $(4)$ is chosen for. A leader failure under Case B is an observed view like any other and is discounted on the same schedule. #### Remark 4.2 (Case B scoring limitation) Penalizing only the leader in failed views is a deliberate simplification, not a claim that non-leader non-participation is strategically irrelevant. In the full HotStuff protocol, a view can fail because the leader is faulty, because non-leaders are offline, or because of network partition. Phase does not implement the full HotStuff NewView *certificate* path and cannot distinguish these cases from consensus-measurable data alone. Penalizing non-leaders without reliable attribution evidence would introduce false negatives. The NVC partially addresses this when available; otherwise, Case B scoring should be understood as a lower bound on information extraction from failed views, not a complete treatment. **Recurring soft reset.** The two cases above are not the whole of the shipped filter. At each period boundary, after the $\lambda^{k}$ carry and *before* the LCB is taken, both Beta parameters are shrunk a fixed fraction toward the prior: $$ \alpha_i\leftarrow(1-\rho_{\mathrm{reset}})\,\alpha_i+\rho_{\mathrm{reset}}\,\alpha_0,\qquad \beta_i \leftarrow(1-\rho_{\mathrm{reset}})\,\beta_i +\rho_{\mathrm{reset}}\,\beta_0.\tag{2a} $$ Unlike stress weighting and the bucket factor below, $(2a)$ is *active* in the shipped configuration, at $\rho_{\mathrm{reset}}=0.02$ per period with $(\alpha_0,\beta_0)=(1,1)$; setting $\rho_{\mathrm{reset}}=0$ recovers the un-shrunk filter exactly. It does work that neither $\lambda$ nor the concave transform $g$ introduced below does: the factor $\lambda$ scales $\alpha_i$ and $\beta_i$ together, leaving the posterior *mean* untouched and widening only its spread, and $g$ compresses score gaps while leaving the evidence behind them intact, whereas $(2a)$ moves the posterior itself back toward the newcomer prior mean $\alpha_0/(\alpha_0+\beta_0)$ every period in which the validator is observed, however long and clean the record. It is therefore the term that limits incumbency in the retained state rather than only in the transformed score. Because the shrink is applied to the persisted $(\alpha_{i,t},\beta_{i,t})$, the LCB of $(4)$, the Thompson draw of $(7)$ and both composite scores all read the shrunk posterior, and the steady-state pseudo-mass sits below the $1/(1-\lambda)$ quoted above — Appendix [B](appendices.md) gives the shrunk fixed point. **NewView Certificate (NVC).** *Not implemented in the current release; specified here as planned work.* When an NVC — an aggregate of timeout votes with a signer bitmap, attached to the next leader's proposal — is available for view $v$, a separate *online-reliability filter* updates identically to $(1)$–$(2)$ using the NVC signer set $N_v$. This separates vote responsiveness from online reliability and partially de-censors non-leader outcomes in failed views. NVC data is not guaranteed to exist for every failed view: it is produced only when the next leader successfully aggregates timeout votes into their proposal. Views that time out without a valid subsequent proposal produce no NVC bitmap, and non-leaders in those views receive no update at all, with no partial de-censoring. ## Stress Weighting During network-wide congestion, individual failure evidence carries less signal: many validators going offline simultaneously reflects a shared condition rather than individual unreliability. Define per-view participation fraction: $$ s_v:=\begin{cases}|S_v|/n&\text{if }L_v=1,\\|N_v|/n&\text{if }L_v=0\text{ and NVC exists (planned),}\\0&\text{otherwise.}\end{cases} $$ The stress weight: $$ w_v:=\min\!\left(1,\;\frac{n\cdot s_v}{q_{\mathrm{full}}}\right).\tag{3} $$ When network participation falls below $q_{\mathrm{full}}/n\approx69\%$, the weight falls below 1, reducing the magnitude of reputation updates for that view. Stress weighting is *specified* but not active: the implementation holds $w_v=1$ for all views. #### Remark 4.3 ($w_v$ is degenerate under the current $s_v$) As defined above, $w_v$ cannot take an intermediate value, so the graceful degradation just described is not reachable. When $L_v=1$ a full QC exists, hence $|S_v|\ge q_{\mathrm{full}}$ and $w_v=\min(1,|S_v|/q_{\mathrm{full}})=1$; when $L_v=0$ the NVC branch is planned rather than available, so $s_v=0$ and $w_v=0$. The weight is therefore identically $1$ on successful views and $0$ on failed ones. The step between them is where a tentative certificate would sit, and the case analysis above does not reach it: $L_v$ indicates a *full* QC, and a tentative certificate carries no reputation update of its own — neither Case A credit for its signers nor a Case B charge against the leader. A view that reached only $q_{\mathrm{tent}}\le|S_v|0.5$ — the upper half of the range suggested above — the composition is convex and amplifies the very leads $g$ is introduced to compress. This is the whole of $g$'s influence, because the exploit weight is the only place $\Score^{\mathrm{exploit}}$ enters consensus: probation graduation and the $M_t$ liveness model both read $\lcb$ directly, and the explore tranche ranks Thompson draws, an ordering that any increasing $g$ leaves unchanged. Two further properties of the shipped weight are worth stating. It is computed on the integer-scaled score and floored at one, so a validator whose score rounds to zero retains a minimal non-zero chance of selection. And $\eta_{\mathrm{sel}}$ is a compile-time constant of the node software, not a field of the scoring configuration at all, so the effective exponent can be moved only through $\gamma$ — itself a chain-spec parameter that no runtime path sets. At the current parameters the mechanisms that limit entrenchment are the two observer seats for probationers ([Committee Selection](committee-selection.md)) and the periodic soft reset $\rho_{\mathrm{reset}}$, not $g$. ## Tracking Claim > **Note:** The following is a *claim* (proof sketch). The derivation is directionally sound in a simplified setting but is not fully rigorous once endogenous censoring (Case B), variable stress weights $w_v$, and boundary behavior near $\theta_{i,t}\in\{0,1\}$ are accounted for. The quantity $N_{\mathrm{eff}}=1/(1-\lambda)$ used below is discounted pseudo-mass, not the variance-equivalent effective sample size for exponentially weighted data; the constants in the concentration argument are therefore not fully pinned down. Once discounting, censoring, and data-dependent stress weights are combined, the Beta lower quantile is best understood as a conservative scoring heuristic, not a calibrated 95% confidence statement about a drifting latent reliability process. Non-stationary Thompson-sampling theory with Beta priors has limited published results; we flag this as an open problem ([Open Problems](open-problems.md)). #### Claim 4.1 (Beta-EMA Tracking, Proof Sketch) Under Assumption [3.4](system-model.md), fix $\eta\in(0,1/2)$ and suppose $\theta_{i,t}\in[\eta,1-\eta]$ for all $t$. In the simplified setting without censoring, with constant $w_v=1$, and with the soft reset of $(2a)$ disabled ($\rho_{\mathrm{reset}}=0$): $$ \E\!\bigl[|\lcb(i,t)-\theta_{i,t}|\bigr] \;\lesssim\; \underbrace{\frac{c(\eta,\alpha_{\mathrm{conf}})}{\sqrt{N_{\mathrm{eff}}}}}_{\text{statistical spread}} \;+\; \underbrace{\frac{\delta}{1-\lambda}}_{\text{tracking bias}},\tag{8} $$ where $N_{\mathrm{eff}}\approx1/(1-\lambda)$ and $c(\eta,\alpha_{\mathrm{conf}})>0$ diverges as $\eta\to0$. The heuristic optimal discount factor: $$ \lambda^*=1-\left(\frac{2\delta}{c(\eta,\alpha_{\mathrm{conf}})}\right)^{2/3}.\tag{9} $$ This bound does not extend to censored or variable-weight regimes. #### Remark 4.5 The two-way tradeoff in $(8)$ is the key practical guide: smaller $\lambda$ reduces tracking bias but widens statistical spread. The optimal $\lambda^*$ balances these at a rate that scales with the drift speed $\delta$. A faster-changing validator environment calls for smaller $\lambda$.