Introduction
Assay runs seven scripted adversaries against a Bittensor subnet's incentive mechanism and reports which ones get through.What it is
A subnet pays miners according to rules its owner wrote in code. Those rules are easy to write and, until now, impossible to test — the only way to find out whether they can be gamed was to deploy and watch the emission leave.
Assay closes that gap. You wrap your reward function in a small adapter, run one command, and get a table of adversaries that broke it, each with a named design defect and a fix.
Why now
Bittensor 11 removed the Axon, Dendrite and Synapse stack and replaced it with signed HTTP requests. The official subnet template was archived and no longer builds against current releases. A search for a v11 template returns zero repositories.
So every subnet owner is rewriting the exact code assay tests — the part that decides who gets paid — with no way to check it short of deploying.
The shape of a run
One command, seven scenarios, a report. Exit code 0 means every scenario held; exit code 1 means at least one broke, which is what makes it usable as a CI gate.
$ assay run my_subnet.pyassay · mechanism: my-subnet────────────────────────────────────────────────────scenario criterion value────────────────────────────────────────────────────PASS honest_baseline all-honest shortfall 0.000PASS lazy_miner lazy share <= 0.05 0.000FAIL weight_copying copier / original 0.958FAIL collusion_ring ring / fair share 3.202FAIL sybil_farm per-UID sybil 0.556FAIL stale_replay reward decay 0.996FAIL noise_flood noise share 0.121────────────────────────────────────────────────────5 of 7 scenarios broke your mechanism
That output is from a competent first-pass mechanism: honest quality scoring, median of three samples, empty submissions rejected. It handles lazy miners and is not fooled by noise — and still loses five of seven, because copying, Sybil farming and replay are identity problems, not quality problems.
What is proven, and what is not
| Version | v0.6.1, published on PyPI |
| Tests | 216 passing, Python 3.10–3.13 |
| Real users | none yet |
| Proven | the reward model reproduces on-chain incentive across 17 mainnet subnets, median TVD 0.001 |
| Not proven | that any subnet has been made safer by it |