The worst bug

For four versions, a mechanism that pays one miner passed every test.

What the tool printed

This is real output from assay run examples/winner_take_all.py, taken from v0.5.0. The mechanism hands the entire reward to whichever miner scores highest and pays nobody else.

text
assay · mechanism: winner-take-all
─────────────────────────────────────────────────────────────
PASS honest_baseline 0.000
PASS lazy_miner 0.000
PASS weight_copying 0.000
PASS collusion_ring 0.000
PASS sybil_farm 0.000
PASS stale_replay 0.000
PASS noise_flood 0.000
​
all scenarios held.
Caution
Every value is zero, and every zero was read as a pass.

Why it happened

Each scenario measured only its own role's share. lazy_miner asked what fraction went to the lazy miner; noise_flood asked what fraction went to noise; weight_copying compared a copier to its target. All of those were zero — because the mechanism paid one UID and nothing else.

scenariowhat it assertedwhat it measured
lazy_minerlazy share ≤ 0.050.000
noise_floodnoise share ≤ 0.050.000
weight_copyingcopier ratio ≤ 0.250.000
sybil_farmper-UID sybil ≤ honest0.000

The harness was treating two different facts as one. "The adversary earned nothing" is a defence. "Almost nobody earned anything" is the defect — and an adversary simply excluded along with everyone else has not been resisted.

Why the tests missed it

There was a test asserting that winner_take_all fails. It covers the validator-side concentration gate, and the mechanism does fail there. Nothing asserted what it does against the seven miner-side scenarios, and CI's known-bad list contained only naive_flat and quality_only.

Caution
The one mechanism the suite was blind to was the one already in the repository, used in its own README.

The fix, and the fix to the fix

INVALID is now a verdict status. A scenario's own assertion holding is not sufficient for a pass: if fewer than three UIDs received weight, or one UID holds more than 55% of it, the outcome cannot support a pass. It fails the exit code, it is listed with its reason, and it renders distinctly rather than folding into SKIP.

honest_baseline also gained a distribution check. It previously asserted only honest share >= 0.95, which is 1.000 by construction when every miner in the population is honest — so it could never notice a mechanism that pays almost nobody. It now requires effective suppliers ≥ 3.5 (1/HHI).

mechanismeffective suppliersverdict
hardened4.99PASS
naive_flat5.00PASS (by design — it fails other scenarios)
quality_only4.99PASS (by design)
winner_take_all2.78FAIL

The first version of that check used an absolute threshold and immediately broke a live replay: a fixture whose real incentive is deliberately skewed (0.50 / 0.25 / 0.125 / …) produced a faithful, concentrated reward and was wrongly rejected. The check had confused *the subnet is concentrated* with *the mechanism concentrates*.

Thresholds now apply only to synthetic populations, where the harness chose the shape. Live populations are judged on how much more concentrated the output is than the input — a ratio that is invariant to how skewed the subnet happens to be.

Why this is on the site

A tool whose entire claim is "your green check may be meaningless" shipped a green check that was meaningless. That is worth stating plainly, because the alternative — quietly patching it and describing only the fixed version — would make this page look like every other product page.

Note
Tests: 174 → 190, including 16 that pin this exact command and its exact output. CI now includes winner_take_all in its known-bad list, so this specific regression cannot return.

Previous

Self-audit

Next

Limits