Once the Pareto frontier has been computed, Bitrecs V2 applies winner-takes-all (WTA) scoring to determine which frontier miner receives onchain weight. The algorithm evaluates every possible combination of task environments (every non-empty subset), finds a winner for each subset, accumulates points by subset size, and converts the final point totals into normalized weights via softmax. Only one miner — the one with the highest resulting weight — hasDocumentation Index
Fetch the complete documentation index at: https://docs.bitrecs.ai/llms.txt
Use this file to discover all available pages before exploring further.
set_weights called in their favour.
Algorithm overview
Enumerate subsets
For every non-empty subset
S of the active task environments — from singletons up to the full set — the engine identifies which frontier miner wins on S.Score subsets by size
Each subset contributes points equal to its size (the default
LINEAR scheme). A subset of 3 environments awards 3 points to its winner. Larger subsets therefore matter more.Find each subset winner
For each subset, eligible miners are ranked by their total score across environments in the subset. The top-ranked miner wins if they clearly beat the runner-up’s threshold on a majority of environments. Otherwise the tie is broken by first-commit block (earlier = wins).
Threshold computation
A “clear win” over the runner-up is determined bycompute_miner_thresholds, which computes per-miner, per-environment thresholds based on a Z-score confidence band:
| Constant | Value | Meaning |
|---|---|---|
DEFAULT_Z_SCORE | 1.5 | Confidence multiplier applied to the standard error |
MIN_THRESHOLD_GAP | 0.02 | A later miner must beat the earlier by at least 2 pp |
MAX_THRESHOLD_GAP | 0.08 | Gap is capped at 8 pp regardless of sample size |
More evaluation samples reduce the standard error, which shrinks the threshold gap (down to the 2 pp floor). A well-sampled subnet makes it easier for a genuinely superior miner to claim a win.
Subset winner selection
find_subset_winner_score_first implements the per-subset decision:
First-commit advantage only applies when the score difference between leader and runner-up is within the statistical threshold band. A miner with a clear score advantage always wins regardless of block order.
Converting scores to weights
Once all subset points are accumulated,scores_to_weights applies temperature-scaled softmax:
Inspecting WTA results
The/scoring/wta endpoint exposes the current subset scores, weights, and per-subset winners for the active evaluation set:
weights, subset_scores, miner_thresholds, miner_blocks, and a sample of subset_winners keyed by subset tuple string.