PHΛSE Docs PHASE.XYZ

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.

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) 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), 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 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 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|<q_{\mathrm{full}} is therefore normally not scored at all, even when it also times out. The implementation holds such a certificate for a fixed one-second window, continuing to collect votes toward a full QC; if that window closes first the certificate is committed and the view is scored not at all, and if instead the view timer fires first the pending certificate is broadcast anyway and the view is recorded locally as a timeout — but a block justified by that certificate may charge only the views its justification skipped, which do not include the certificate's own, so that view's leader is charged under Case B only if the next block is justified by an older certificate. The gap is worth stating explicitly, because 37–69\% participation is exactly the regime a reader would expect an intermediate w_v to describe.

This matters for activation. A failed view is exactly where Case B charges the leader, and that charge is weighted by w_v, so activating (3) as written would multiply every leader penalty by zero and silently remove the only sanction the scoring layer applies to a failing leader. The constant w_v=1 the implementation currently holds is what keeps Case B effective. Making the weight behave as this section describes requires an s_v that reflects observed participation in a failed view — either the NVC of Reputation Scoring or another consensus-measurable signal — not merely switching on the formula.

#LCB Scoring and Composite Score

We score conservatively. Rather than the posterior mean \alpha/(\alpha+\beta), we use the \alpha_{\mathrm{conf}}-lower quantile:

\lcb(i,t):=Q_{\alpha_{\mathrm{conf}}}\!\bigl(\BetaDist(\alpha_{i,t},\beta_{i,t})\bigr),\quad\alpha_{\mathrm{conf}}=0.05.\tag{4}

This is a Lower Confidence Bound in the bandit sense: we are 95% confident the true reliability exceeds this value. A newcomer with 3 perfect votes scores far lower than a veteran with 100 votes at 90%, because the LCB demands evidence, not just good outcomes.

To prevent incumbents from building insurmountable leads, we apply a concave transform g(x)=x^\gamma, \gamma\in(0,1). This compresses score advantages at the top of the distribution. In plain terms, higher reliability still helps, but early leaders do not become unreachable just because they accumulated history first. The exponent \gamma and the confidence level \alpha_{\mathrm{conf}} are governance parameters in the design of Governance — as shipped, both are hard-coded defaults of the node's scoring configuration, changed by a client release (Remark 17.1) — calibrated against two objectives: \gamma controls how much of the score gap between a 90%-reliable and a 99%-reliable validator is preserved after transformation, with smaller \gamma flattening the top of the distribution more aggressively; \alpha_{\mathrm{conf}}=0.05 means the LCB is the 5th-percentile quantile of the Beta posterior, which biases selection toward well-evidenced validators over recent high-performers with few observations. Both parameters are subject to testnet calibration; sensible initialization ranges are \gamma\in[0.3,0.7] and \alpha_{\mathrm{conf}}\in[0.05,0.15]. Whether that compression reaches committee selection depends on a second exponent applied downstream; at the shipped parameters it does not (Remark 4.4).

The composite gating factor \Pi(i,t) is the anti-Sybil bucket factor:

\Pi(i,t):=\Pi_{\mathrm{bucket}}(i,t)\in\{0,1\},\tag{5}

which equals 1 if validator i is within its bucket cap and 0 otherwise. Bucket-cap enforcement is implemented — selection drops the surplus identities of an over-cap bucket — but the device-attestation primitive that would assign shared bucket identities is not, so \Pi_{\mathrm{bucket}}\equiv1 today: every validator is its own singleton bucket, and the shipped cap is zero, which disables the check outright. Activation awaits that primitive first, and calibration against live centralisation data only after it (Remark 3.2).

The composite score for the exploit tranche is:

\Score^{\mathrm{exploit}}(i,t):=\Pi_{\mathrm{bucket}}(i,t)\cdot g\!\bigl(\lcb(i,t)\bigr).\tag{6}

For the explore tranche, the deterministic LCB is replaced by a Thompson draw from the same posterior:

\tilde{s}_i:=\Pi_{\mathrm{bucket}}(i,t)\cdot g(\tilde{p}_i),\qquad\tilde{p}_i\sim\BetaDist(\alpha_{i,t},\beta_{i,t}).\tag{7}

This two-equation design is what would give full members with little history a path into the committee through the explore tranche, without grace periods or special-case rules; in the shipped configuration \varepsilon_{\mathrm{explore}}=0, so the explore tranche is implemented but fills no seats, and every graduate seat comes from the exploit draw (Committee Selection). It gives no such path to a brand-new validator in any configuration: newcomers enter through the activation queue and then probation, and probationers are in neither tranche until they graduate. It is also intended to limit low-history Sybil attacks: attestation and bucket caps would limit entry once built (Remark 3.2), while probation and the minimum-observation graduation bar — both active today — limit how quickly new identities can reach high-value roles.

#Remark 4.4 (The selection exponent cancels g at the shipped \gamma)

Neither score above is the quantity committee selection consumes. The implementation freezes, once per epoch, a selection weight obtained by raising the exploit score to a fixed exponent:

w_{\mathrm{sel}}(i,t):=\bigl[\Score^{\mathrm{exploit}}(i,t)\bigr]^{\eta_{\mathrm{sel}}} =\Pi_{\mathrm{bucket}}(i,t)\cdot\lcb(i,t)^{\gamma\eta_{\mathrm{sel}}},\qquad\eta_{\mathrm{sel}}=2,

the second equality because \Pi_{\mathrm{bucket}}\in\{0,1\} is unchanged by the exponent. Selection therefore responds to the product \gamma\eta_{\mathrm{sel}}, not to \gamma. At the shipped \gamma=0.5 that product is exactly 1, so the weight is proportional to the raw LCB and the concave transform has no effect whatsoever on committee composition; compression survives only for \gamma<1/\eta_{\mathrm{sel}}=0.5, and for \gamma>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) 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).

#Claim 4.1 (Beta-EMA Tracking, Proof Sketch)

Under Assumption 3.4, 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.

© 2026 Phase Labs Technologies Inc. All rights reserved. Phase is a product of Phase Labs Technologies Inc.reputation-scoring.md