Bittensor · subnet incentive mechanisms
Test your incentive mechanism before miners do.
A subnet pays miners according to rules its owner wrote in code. as2ay runs seven scripted adversaries against those rules and reports which ones get through — before the emission leaves.
pip install assay-bittensor
Python 3.10 – 3.13. No runtime dependencies; bittensor is an optional extra.
7 adversaries12 commands0 runtime dependenciesMIT
What it measures
Seven scripted adversaries, one suite.
Wrap the reward function your validator already runs. as2ay hands it responses and a noisy quality estimate — it never sees which miners are honest, exactly as on a real subnet.Assertions are one-sided: “this attacker must not earn more than X”, never “you must earn exactly Y”. The suite constrains exploitation without dictating a design.lazy_minerSubmits whitespace and collects emission anyway.
weight_copyingSubmits a byte-identical copy of a peer's answer.
collusion_ringFour hotkeys fan out one unit of work.
sybil_farmOne operator, eight hotkeys, one answer.
stale_replaySubmits last round's valid answer forever.
noise_floodRandom bytes at 5 ms latency.
honest_baselineHonest miners, to prove the report is not vacuous.
Evidence
Same suite. Only the policy differs.
Three reference mechanisms at three levels of care. The middle column is the one that matters: honest quality scoring, median of three samples, empty submissions rejected — and still five of seven broken.| Scenario | naive_flat | quality_only | hardened |
|---|---|---|---|
| honest_baseline | 0.000 | 0.000 | 0.000 |
| lazy_miner | 0.500 | 0.000 | 0.000 |
| weight_copying | 1.000 | 0.958 | 0.000 |
| collusion_ring | 6.400 | 3.202 | 0.000 |
| sybil_farm | 1.000 | 0.556 | 0.113 |
| stale_replay | 1.000 | 0.996 | 0.000 |
| noise_flood | 0.500 | 0.121 | 0.000 |
held
broke
naive_flat: 6 of 7 broke · quality_only: 5 of 7 broke · hardened: 0 of 7 brokeThe distance between quality_only and hardened is four checks
FreshnessA payload seen in a previous round earns nothing.
DeduplicationOne unit of work is paid once, to the earliest submitter.
Quality floorWork below a threshold earns nothing, however fast it arrived.
Robust samplingMedian of k noisy evaluations instead of one lucky draw.
assay scan · 24 subnets
Most subnets are not shaped the way their dashboards look.
assay scan --top 24, read on 2026-11-28. Five shapes in one sample: subnets that pay validators and nobody else, subnets with a handful of paid miners, and a few that are simply healthy.Caveat that travels with every number here: incentive is a per-epoch quantity. A zero means “no reward that epoch”, not “permanently unpaid”. The scan ranks where to investigate; it does not accuse anyone.7 / 24subnets pay validators only — every miner UID at zero incentive
6 / 24subnets with thin supply — fewer than five miners earn anything
3median paid miner count across the sample
0.219median gini* among the paid sets
Three readings, all from the same sample
netuid 15 · ORO70 miners are paid, and the top one takes 94.9% of the paid set.one miner takes almost all
netuid 6 · Numinous163 paid, top-1 only 7.6%, but gini* 0.895 — a long tail where most earn crumbs.long tail
netuids 5 · 13 · 22~97% of registered miners earn, gini* under 0.2. This is what a healthy subnet looks like.healthy
Three commands, two surfaces
One command tests a mechanism. Two more describe a subnet.
/data
Structure, over time
Why this subnet pays seven miners and that one pays two hundred and thirty-nine. What the paid set looks like, how concentrated it is, and whether it is widening or narrowing.assay scanWhich subnets look structurally fragile right now.
assay rateA 0–100 structural score with every component shown.
assay historyIs the supply base widening or narrowing?
/check
Point it at your repo
Find the scoring rule in a repository, generate an adapter that calls it, run the seven scenarios. When the rule cannot be reproduced, it says so and writes a scaffold instead of a score.assay check .Scan a whole repository.
assay check rewards.pyOr the one file you already suspect.
Status
What is proven, and what is not.
A tool that audits incentive design only earns trust by being equally strict with its own claims. The last two rows are the honest ones.Start
Audit the mechanism, not the dashboard.
One adapter, one command, a named defect per failure and an exit code your CI can read. The suite runs in seconds because it is a simulation around a verified model — not an attempt to reimplement a chain.assay run — quality_only reference mechanism$ assay run my_subnet.py -f markdownassay · mechanism: my-subnetPASS honest_baseline all-honest shortfall <= 0.05 0.000PASS lazy_miner lazy share <= 0.05 0.000FAIL weight_copying copier / original weight <= 0.25 0.958...5 of 7 scenarios broke your mechanism