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.
The baseline runs first. Every attack assertion is satisfiable by a mechanism that pays nobody, so a baseline failure invalidates the whole report.

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.
Scenarionaive_flatquality_onlyhardened
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 broke
The 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.
A finding from running the suite on itself
The first hardened mechanism used a quality floor of 0.15. noise_flood scored 0.053 and failed: with an evaluator noise band of ±0.12, a 0.10-quality garbage miner still cleared a 0.15 floor in roughly 20% of rounds and collected 5.3% of emission. Raising the floor to 0.30 — clear of the noise band — took it to 0.000.

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
Two numbers, deliberately kept apart: gini* is concentration among miners that actually earned — the signal. gini_all is across every registered UID and sits at 0.94–0.99 on every subnet, because hundreds of slots are held by people who never run a miner. Ranking on gini_all produced four identical verdicts from four different subnets.

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?
Open the observation surface →

/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.
Open the repository surface →

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 markdown
assay · mechanism: my-subnet
PASS honest_baseline all-honest shortfall <= 0.05 0.000
PASS lazy_miner lazy share <= 0.05 0.000
FAIL weight_copying copier / original weight <= 0.25 0.958
...
5 of 7 scenarios broke your mechanism
That mechanism is honest quality scoring with median-of-three sampling. It handles lazy miners and is not fooled by noise, and it still loses five of seven, because copying, Sybil farming and replay are identity and freshness problems rather than quality ones.