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.

Note
The mechanism never sees ground truth. It receives responses and a noisy quality estimate; the harness knows which miners are honest and which are colluding. That split is enforced by the interface, not by convention.

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.py
​
assay · mechanism: my-subnet
────────────────────────────────────────────────────
scenario criterion value
────────────────────────────────────────────────────
PASS honest_baseline all-honest shortfall 0.000
PASS lazy_miner lazy share <= 0.05 0.000
FAIL weight_copying copier / original 0.958
FAIL collusion_ring ring / fair share 3.202
FAIL sybil_farm per-UID sybil 0.556
FAIL stale_replay reward decay 0.996
FAIL 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

Versionv0.6.1, published on PyPI
Tests216 passing, Python 3.10–3.13
Real usersnone yet
Proventhe reward model reproduces on-chain incentive across 17 mainnet subnets, median TVD 0.001
Not proventhat any subnet has been made safer by it
Caution
Everything here is a simulation around a verified core. The thesis — that an owner who runs it will find a real defect before an attacker does — is untested. Saying so is cheaper than having a reader discover it.

Next

Quickstart