Skip to content
PROVENONCESN87 · Proof of Assurance

Way in 01 · Run the miner kit

Run the miner kit.

The miner kit is open source. Install it, run the local example on your own machine, read your result, then apply for the shadow cohort. Tell us where it breaks.

Today the weighted testnet miners are run by Provenonce. A shadow cohort exists for outside miners: a listed outside miner is scored and published in every window without carrying weight. Moving from shadow to weighted needs a decision by the maintainers, against proposed criteria that can change. There is no date.

Status. Testnet 582. No outside miner is weighted. The shadow cohort is open to applications, and its allowlist was empty when this page was written, so no outside miner is known to be scored. Nothing here promises a score, a date or any benefit. The published shadow record and the numbered limitations are the authority, not this page.

What you can do today

The four levels

Four different things can be true of a result, and the kit keeps them apart. Always say which one a number belongs to. A number printed by a command on your machine is level 1. A row with stage shadow and weight 0 is level 2. Neither is a weight.

The four levels: what happens, who can see it, and whether it is available now
LevelWhat happensWho can see itAvailable now
1. Local exampleYou run public code on public synthetic fixtures. The scorer, the fixtures and the published truth are all in the repository. No chain, no network after install.Only youYes This page reaches it.
2. Shadow participationYour own signed endpoint is queried each window by the operator's shadow service, scored under the committed profiles and published with stage shadow and weight 0.The public recordOpen to applications The allowlist was empty when this page was written.
3. Independent validationA party other than the operator recomputes scores from published inputs and gets the same answer.You, and anyone you showPartly Possible for the public fixtures and the attestation digests. Not for hidden instances, whose truth is private.
4. WeightedA uid appears in an approved weight row that the validator sets on the chain.The public chainNot for outside miners It needs a new plan version approved by the maintainers outside the repository. There is no application route.

Running the example reproduces the operator's number on your machine. That is reproducibility, not independent validation (level 3).

Start here: from a fresh clone to a result you can read

About 20 minutes, on your own computer, with no wallet and no account. Only the clone and the install need the network. Each step says what you should see; if you do not see it, go to If you see this.

  1. Prerequisites 3 minutes

    • Linux or macOS. Windows works through WSL2. Native Windows is not supported.
    • git, and uv. uv fetches Python 3.12 or later and the pinned packages for you.
    • About 1 GB of disk. The commands write only inside the folder you clone.
    • No wallet, hotkey, account, API key, test funds or Valkey server. If a command here asks you for a key, stop: that is not this page.
    git --version
    uv --version

    You should see two version lines. Yours can differ. If a command is not found, install it first and run the step again.

  2. Install 5 minutes

    If a folder sn87-provenonce-public already exists, git refuses to clone into it. Move or rename it first. --locked makes uv use exactly the versions in uv.lock.

    git clone https://github.com/provenonce-ai/sn87-provenonce-public
    cd sn87-provenonce-public
    git rev-parse --short HEAD
    uv sync --locked --extra transport
    uv run --extra transport python -c "import sn87_provenonce; print('install ok')"

    You should see a short commit id (put it in anything you report), then install ok at the end.

  3. Run the local example 5 minutes

    The demo is one miner method on three public fixtures. The staging run is a small local subnet in one process: a validator, two miners, 16 fictional instances, a public baseline and a receipt file.

    uv run --extra transport sn87-provenonce demo
    uv run --extra transport python scripts/staging_subnet.py --truth golden --out results/staging

    You should see from the demo, a scope: line first (local, offline, in-process, unsigned, public fixtures, no chain), then three cases, each with the miner state and the published truth. From the staging run, a first line that reads LOCAL STAGING, FICTIONAL FIXTURES, NO CHAIN, and a last line that ends NULL_NO_HEADROOM.

  4. Read your result 5 minutes

    • The scope: line is the level. Local, in process, unsigned, public fixtures, no chain: this is level 1.
    • For each case, "miner state" is what the example miner answered and "published truth" is what the repository says is right. score=1 means they agree and the evidence references were all cited.
    • The incomplete case gives the miner nothing to find. Abstaining is right, but it earns only a small floor value, not 1. The demo says so in its last lines.
    • NULL_NO_HEADROOM means your miner's estimate equals the public baseline's. A tie is kept and reported. It is not uplift: it does not show the example is better than the baseline.
    • These numbers do not show that a miner works on hidden instances, that the transport is signed, or anything about the chain. They are not an incentive-bearing result.
    grep -E '^- (Pinned digest|Candidate estimate|Candidate vs baseline)' results/staging/STAGING_RUN_RECEIPT.md

    You should see the pinned digest, the candidate and baseline estimates, and Candidate vs baseline: NULL_NO_HEADROOM.

  5. Go on, and apply your pace

    • Write and score your own method (still level 1): miner guide, Part C. About 15 minutes.
    • Rehearse the signed endpoint with a throwaway key: Part D. This is where the flags in Who may send first matter.
    • Register a hotkey on netuid 582 with your own wallet and test funds: Part E. The kit does none of it for you, and we do nothing on chain for you.
    • Sign an announcement and apply for the shadow cohort. Only after a reviewed pull request adds your uid is it queried.

A miner's first day

The path from a fresh clone to a published, unweighted record, and which steps are yours to take outside the repository. The guide takes about 75 minutes. It does not end at a score on testnet 582, because that needs your uid on the shadow allowlist and a window to have closed.

A miner's first day, in twelve steps 1. Check your tools: git and uv; Linux or macOS. 2. Clone and install: uv sync --locked --extra transport. 3. Run the demo: three scored rows on public fixtures. 4. Write a method and score it: against published truth. 5. Serve it on localhost: unsigned, for development only. 6. Rehearse the signed endpoint: throwaway key: serve, probe, announce. 7. Register a hotkey on testnet 582: your own wallet and test funds. 8. Put the endpoint behind HTTPS: announce it; add --trusted-sender. 9. Open the shadow cohort application: a public issue; paste no key or seed. 10. Maintainer review: a pull request adds your uid. 11. Each window: queried and scored: published as stage shadow, weight 0. 12. Read your row in the result: in the published window result. Weighted: not by application; see the levels. Steps 1 to 6 run on your own computer. Steps 7 to 9 are yours, with your own tools. Steps 10 to 12 involve the maintainers and the published record. If the application is not accepted you stay local. Weighted is not available by application. The same path is given as a table below. 1. Check your toolsgit and uv; Linux or macOS 2. Clone and installuv sync --locked --extra transport 3. Run the demothree scored rows on public fixtures 4. Write a method and score itagainst published truth 5. Serve it on localhostunsigned, for development only 6. Rehearse the signed endpointthrowaway key: serve, probe, announce 7. Register a hotkey on testnet 582your own wallet and test funds 8. Put the endpoint behind HTTPSannounce it; add --trusted-sender 9. Open the shadow cohort applicationa public issue; paste no key or seed 10. Maintainer reviewa pull request adds your uid if accepted noNot accepted:stay local 11. Each window: queried and scoredpublished as stage shadow, weight 0 12. Read your row in the resultin the published window result Weightednot by application; see the levels
A miner's first day. Steps 1 to 6 are rehearsals on your own computer. Steps 7 to 9 are yours to do with your own tools. Steps 10 to 12 involve the maintainers and the published record. Dashed boxes are not available today.
  • Your own computer. No wallet, no account, nothing sent to a chain.
  • Yours, with your own tools. The kit performs none of these.
  • The maintainers and the published record.
  • Not available today (dashed).
Read the same path as a table
A miner's first day as a table: what you do, what you should see, who acts
StepYou doYou should seeWho
1Check git and uvVersion linesYou, local
2git clone, then uv sync --locked --extra transportPackages installed from uv.lockYou, local
3uv run --extra transport sn87-provenonce demoThree rows: a finding scores 1, a clear scores 1, an abstention scores the floorYou, local
4Write a function shaped like the example method and score itYour own rows against published truthYou, local
5Serve it on localhost with sn87-miner serve --unsigned-loopback/health answers on loopbackYou, local
6Run sn87-miner serve, probe and announce with a throwaway keyA probe that passes; a signed announcement that verifiesYou, local
7Register a hotkey on 582 with your own walletYour uidYou, your own tools
8Serve behind TLS; add --trusted-sender for the shadow serviceThe service address is shown on the shadow page once publishedYou, your own tools
9Open the issue form "Shadow cohort application"A public issueYou, your own tools
10Wait for review and for a window to closeA result with weight 0Maintainers
11Nothing: the shadow service queries, scores and publishesYour row with stage shadow and weight 0Maintainers
12Read your row in the window resultA record, not a weightYou, public record

Who may send: the sender allowlist and its flags

A signature proves that some key sent a request, not that the key should be heard: anyone can make a key. So sn87-miner serve is allowlisted by default. It accepts a request only if the signing hotkey held a validator permit on the subnet in the latest read of the chain, or is a trusted sender you named. Everything else is refused before your method runs, with SENDER_NOT_PERMITTED (HTTP 403).

The sender flags of sn87-miner
FlagWhat it doesKnow this
--netuid 582Required with the default allowlist, and with --announcement. It names the subnet whose permits are read.The built-in chain settings are the public testnet, and apply to netuid 582 only. Another netuid needs --chain-endpoint and --chain-genesis. Without it you see NETUID_REQUIRED.
--trusted-sender SS58Lets a named hotkey send without a validator permit. Repeat it; at most 8 in all, and the probe key counts as one.A shadow cohort participant adds the shadow service address, because that service is not a permit holder. The address is not published yet: take it from the shadow page when it shows it, or ask in your application issue. A trusted sender is still signature-checked and rate limited.
--probe-hotkey SS58 on serve, --probe-hotkey-keyfile PATH on probeLets sn87-miner probe sign as a key your endpoint accepts.Use a key that is not your miner hotkey and holds no funds. Without it, a probe signs with a throwaway key and your endpoint refuses it. Remove --probe-hotkey when you are done testing.
--allow-any-senderLocal rehearsal only. Any validly signed request may send.It is refused unless --host is a loopback address, and it cannot be combined with the flags above. Never use it on an endpoint a validator will call.
uv run --extra transport sn87-miner serve --role candidate --hotkey-keyfile PATH \
  --valkey-url-env SN87_VALKEY_URL --netuid 582 \
  --trusted-sender SHADOW_SERVICE_ADDRESS

PATH and SHADOW_SERVICE_ADDRESS are placeholders for your own key file and for the address the shadow page will show. Take the address from the page, not from this one. Which hotkeys hold a permit on 582 is read from the chain; this page does not say.

sn87-miner serve --check starts nothing: it loads the key, imports the method and pings the store. With the default allowlist it also reads the permit list from the chain once, so it needs a reachable node. The rehearsal in Part D of the miner guide has no chain to read and runs the check with --allow-any-sender instead.

If you see this

What you see, and what to do
You seeDo this
git or uv not foundInstall it from its own site, then run the step again.
git clone refuses because the folder existsMove or rename sn87-provenonce-public, then clone again.
"the bittensor SDK is required" from the staging runInstall with the transport extra: uv sync --locked --extra transport, and keep --extra transport on the commands.
NETUID_REQUIREDAdd --netuid 582. For local rehearsal only, add --allow-any-sender instead.
SENDER_NOT_PERMITTED (403)The sender is not a permit holder. Add the sender with --trusted-sender, or check that it holds a permit.
REMOTE_REJECTED_403 in a probeYou probed with a throwaway key. Start serve with --probe-hotkey SS58 and run probe with --probe-hotkey-keyfile.
ALLOW_ANY_SENDER_NON_LOOPBACK--allow-any-sender works only with a loopback --host. Remove it from any endpoint a validator will call.
RESPONSE_LATEMake the method faster. Deadlines are at most 15 seconds.
MINER_REJECTED_ENVELOPEYour miner does not know a field of the request (422). A miner built before contest protocol 0.2 rejects the optional window_commitments field this way. Update sn87-miner before the first 0.2 window opens; until you do, the window records you as unavailable.
A window records you as unavailableA timeout, a refusal or a rejected request. It is not an integrity failure. Check that your endpoint is reachable and trusts the shadow service address.
Anything elseLook the code up in the error table (Part G of the miner guide), or open a "Setup failure" issue with your commit id and platform.

Join the shadow cohort

  1. Register a hotkey and uid on the Bittensor testnet, netuid 582, yourself. We do nothing on chain for you.
  2. Run the signed endpoint with sn87-miner serve --netuid 582 behind a TLS reverse proxy on a public HTTPS origin, and check it with sn87-miner probe using a probe key. Add --trusted-sender with the shadow service address once the shadow page shows it; until you do, your miner answers the service with 403 and the window records you as unavailable. See Who may send.
  3. Announce it: serve the signed announcement at /.well-known/sn87-miner-announcement.json on your HTTPS endpoint. Publishing the on-chain endpoint record is optional and yours to sign.
  4. Open the shadow cohort application issue form in the public repository. Everything in the issue is public. Paste no key, seed, wallet file or token.
  5. A maintainer reviews it and opens a pull request that adds your uid to the allowlist, citing your issue. Only after that is your uid queried.

What shadow means

Proposed criteria for moving from shadow to weighted

Repository docs

The kit's docs are written once, in the public repository, and the commands on them are run on every change. They are the reference; this page is the way in.

Words used on this page
WordMeaning
CapsuleThe evidence for one case, sent to your miner by the validator.
DifferentialYour single structured answer to a capsule: FINDINGS, NO_MATERIAL_DEVIATION or INSUFFICIENT_EVIDENCE_ABSTAIN, with any findings and the evidence they cite.
BaselineA public-contract algorithm scored beside every miner. It is never weighted and never on chain.
UpliftA miner doing measurably better than the baseline on cases it could not have looked up. A tie is not uplift.
ShadowScored and published with weight 0. A record, never a number in a weight row.
AllowlistThe list of senders your endpoint answers, and the list of outside uids the shadow service queries. They are different lists.

What opens next

On what condition

Where to send what you find

Other ways in: Validate · Build · Review · All four