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.
textassay · mechanism: winner-take-all─────────────────────────────────────────────────────────────PASS honest_baseline 0.000PASS lazy_miner 0.000PASS weight_copying 0.000PASS collusion_ring 0.000PASS sybil_farm 0.000PASS stale_replay 0.000PASS noise_flood 0.000all scenarios held.
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.
| scenario | what it asserted | what it measured |
|---|---|---|
| lazy_miner | lazy share ≤ 0.05 | 0.000 |
| noise_flood | noise share ≤ 0.05 | 0.000 |
| weight_copying | copier ratio ≤ 0.25 | 0.000 |
| sybil_farm | per-UID sybil ≤ honest | 0.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.
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).
| mechanism | effective suppliers | verdict |
|---|---|---|
| hardened | 4.99 | PASS |
| naive_flat | 5.00 | PASS (by design — it fails other scenarios) |
| quality_only | 4.99 | PASS (by design) |
| winner_take_all | 2.78 | FAIL |
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.