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 service is open and its requests are signed. The shadow cohort is open to applications; the published shadow record shows which miners were 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
- Start here: install the kit, run the local example and read your result. About 20 minutes, with no wallet and no account.
- Write your own method: a function from one validated capsule to one differential, scored against published truth on your machine. The worked example is Part C of the miner guide.
- Rehearse the signed endpoint with a throwaway key: serve it, probe it and sign an announcement. Nothing is sent to a chain.
- Only miners that Provenonce operates are weighted 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.
| Level | What happens | Who can see it | Available now |
|---|---|---|---|
| 1. Local example | You 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 you | Yes This page reaches it. |
| 2. Shadow participation | Your 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 record | Open to applications The allowlist was empty when this page was written. |
| 3. Independent validation | A party other than the operator recomputes scores from published inputs and gets the same answer. | You, and anyone you show | Partly Possible for the public fixtures and the attestation digests. Not for hidden instances, whose truth is private. |
| 4. Weighted | A uid appears in an approved weight row that the validator sets on the chain. | The public chain | Not 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.
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 --versionYou should see two version lines. Yours can differ. If a command is not found, install it first and run the step again.
Install 5 minutes
If a folder
sn87-provenonce-publicalready exists, git refuses to clone into it. Move or rename it first.--lockedmakes uv use exactly the versions inuv.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 okat the end.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/stagingYou 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 endsNULL_NO_HEADROOM.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=1means they agree and the evidence references were all cited. - The
incompletecase 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_HEADROOMmeans 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.mdYou should see the pinned digest, the candidate and baseline estimates, and
Candidate vs baseline: NULL_NO_HEADROOM.- The
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.
- 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
| Step | You do | You should see | Who |
|---|---|---|---|
| 1 | Check git and uv | Version lines | You, local |
| 2 | git clone, then uv sync --locked --extra transport | Packages installed from uv.lock | You, local |
| 3 | uv run --extra transport sn87-provenonce demo | Three rows: a finding scores 1, a clear scores 1, an abstention scores the floor | You, local |
| 4 | Write a function shaped like the example method and score it | Your own rows against published truth | You, local |
| 5 | Serve it on localhost with sn87-miner serve --unsigned-loopback | /health answers on loopback | You, local |
| 6 | Run sn87-miner serve, probe and announce with a throwaway key | A probe that passes; a signed announcement that verifies | You, local |
| 7 | Register a hotkey on 582 with your own wallet | Your uid | You, your own tools |
| 8 | Serve behind TLS; add --trusted-sender for the shadow service | The shadow service signs as 5CSAzkLgTxaGCyUNb7RaVgNWoXKh6BH1sXjF4NW6qa4cE5Zm | You, your own tools |
| 9 | Open the issue form "Shadow cohort application" | A public issue | You, your own tools |
| 10 | Wait for review and for a window to close | A result with weight 0 | Maintainers |
| 11 | Nothing: the shadow service queries, scores and publishes | Your row with stage shadow and weight 0 | Maintainers |
| 12 | Read your row in the window result | A record, not a weight | You, 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).
| Flag | What it does | Know this |
|---|---|---|
--netuid 582 | Required 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 SS58 | Lets 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 shadow service signs its requests as 5CSAzkLgTxaGCyUNb7RaVgNWoXKh6BH1sXjF4NW6qa4cE5Zm. Pass that address to --trusted-sender. A trusted sender is still signature-checked and rate limited. |
--probe-hotkey SS58 on serve, --probe-hotkey-keyfile PATH on probe | Lets 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-sender | Local 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 5CSAzkLgTxaGCyUNb7RaVgNWoXKh6BH1sXjF4NW6qa4cE5ZmPATH is a placeholder for your own key file. The address after --trusted-sender is the public signer address of the shadow service, the same address on the shadow page. 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
| You see | Do this |
|---|---|
git or uv not found | Install it from its own site, then run the step again. |
git clone refuses because the folder exists | Move or rename sn87-provenonce-public, then clone again. |
| "the bittensor SDK is required" from the staging run | Install with the transport extra: uv sync --locked --extra transport, and keep --extra transport on the commands. |
NETUID_REQUIRED | Add --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 probe | You 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_LATE | Make the method faster. Deadlines are at most 15 seconds. |
MINER_REJECTED_ENVELOPE | Your 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 unavailable | A 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 else | Look 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
- Register a hotkey and uid on the Bittensor testnet, netuid 582, yourself. We do nothing on chain for you.
- Run the signed endpoint with
sn87-miner serve --netuid 582behind a TLS reverse proxy on a public HTTPS origin, and check it withsn87-miner probeusing a probe key. Add--trusted-sender 5CSAzkLgTxaGCyUNb7RaVgNWoXKh6BH1sXjF4NW6qa4cE5Zm(the shadow service signer address); until you do, your miner answers the service with 403 and the window records you as unavailable. See Who may send. - Announce it: serve the signed announcement at
/.well-known/sn87-miner-announcement.jsonon your HTTPS endpoint. Publishing the on-chain endpoint record is optional and yours to sign. - 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.
- 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
- Each window your miner receives the same capsules as every other method and is scored with the public scoring code, applied to truth the operator derives.
- Your result is published at /sn87/shadow with stage shadow and weight 0. It is a record, not a number in a weight row, and it never reaches one.
- Every window is scored under two profiles, shown side by side and labelled:
IC-FIRST-LIGHT-MIN-1, the profile in use on the live path, andIC-FIRST-LIGHT-MIN-2, committed but not active on the live path. Neither sets a weight. - Further committed profiles, such as
IC-FIRST-LIGHT-MIN-4, can be scored beside those two. They are published labelledINACTIVE, with stage shadow and weight 0. They are not the profile in use, and no weight path reads them. Live scoring, weights and emission are unchanged by them. - A public-contract baseline and the public candidate method, labelled reference, are scored on the same capsules for comparison. The baseline ties the reference methods today, so a good score is not yet a sign of skill. Compare with the baseline.
- Your responses (state, finding codes, severities, evidence references and confidence, plus a digest of the full reply; free text is not published) are published after the window closes, together with the revealed seed, so anyone can regenerate the capsules and check the commitments. Do not send anything you are not willing to see published.
- For windows committed from contest protocol 0.2, the truth is fixed when the window opens and published after it closes, so you can check that it was not changed. You cannot recompute it from a capsule, because the reference executors are not published. To check a closed window yourself, read reproduce a window.
- The full page is the shadow cohort guide.
Proposed criteria for moving from shadow to weighted
- These are proposals and can change. A change is a new file with a new digest.
- Seven consecutive windows, with none missing.
- At least 24 valid responses in each of those windows.
- No integrity failures in those windows.
- A valid announced endpoint and a verified announcement signature.
- Every one of those windows scored under
IC-FIRST-LIGHT-MIN-1, with your estimate strictly above the public baseline's on the same scored instances. A tie is not uplift. - Meeting every rule does not move a miner by itself. Moving to weighted needs a new plan version approved by the maintainers outside the repository.
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.
- Miners: the one-page overview and the order to do things in.
- Start here: the 20-minute path above, with every command and its expected output.
- Miner guide: write a method, run the signed endpoint, the sender allowlist, and the error table by code.
- Shadow cohort: what shadow means, how to join, and the proposed criteria.
- A miner's first day and the submission lifecycle: the diagrams, with the checks each side makes.
- Reproduce a window: recompute a closed window from its published files.
- Glossary and limitations: the words, and what the current scoring does not show. Read the limits before you rely on a score.
| Word | Meaning |
|---|---|
| Capsule | The evidence for one case, sent to your miner by the validator. |
| Differential | Your single structured answer to a capsule: FINDINGS, NO_MATERIAL_DEVIATION or INSUFFICIENT_EVIDENCE_ABSTAIN, with any findings and the evidence they cite. |
| Baseline | A public-contract algorithm scored beside every miner. It is never weighted and never on chain. |
| Uplift | A miner doing measurably better than the baseline on cases it could not have looked up. A tie is not uplift. |
| Shadow | Scored and published with weight 0. A record, never a number in a weight row. |
| Allowlist | The list of senders your endpoint answers, and the list of outside uids the shadow service queries. They are different lists. |
What opens next
- Shadow stage (open to applications): outside miners that pass review are scored and published without weight at /sn87/shadow.
- Weighted stage: a decision by the maintainers on a new plan version, against the proposed criteria above. It does not happen automatically.
On what condition
- The criteria for leaving shadow are proposed, not final. They are checked by the admission checker in the public repository (scripts/admission_plan.py) on published results.
- No date, reward or number of places is promised. Passing every proposed rule does not guarantee a place in the weighted set.
Where to send what you find
- Setup failures, scoring questions and other technical problems: open an issue in the public repository.
- Other questions: ask in the group linked on the Participate page. We collect questions every Wednesday and post answers on the FAQ every Friday.