Miner guide
You build one recovery program that must handle many interrupted jobs across both task families. Validators run it on private, fault-injected cases and grade the apps' real final state, not your claims.
1. Start from the starter
source backend/.venv/bin/activate # from the repository root
mendora-miner init my_program
The starter (miner/starter) is an evidence-first policy in the Python standard library. Its logic lives in
src/recover/policy_kit.py (the same kit the B2 baseline uses, with more capabilities switched on) and
src/recover/policy.py. The starter deliberately leaves room to improve: it does not poll authoritative request
status, its outage patience is fixed, and it re-checks the approval before every forward write.
2. Practice
mendora-miner practice my_program # 40 public practice cases
mendora-miner practice my_program --template f1.resumed_late --limit 6
Practice runs your package with the same harness, gateway and grader validators use, and prints why each case failed. The public pool has 174 cases from every non-held-out template. Practice cases are never reward-bearing, and private rounds draw from held-out templates too, so do not tune to case identities.
3. Package and sign
mendora-miner package my_program -o submission.tar.gz # prints the SHA-256
mendora-miner sign submission.tar.gz --round <N> --mnemonic-file hotkey.txt
The archive is deterministic: the same files always produce the same hash. The envelope signs the package hash
and the round number with your hotkey (never a coldkey), so it cannot be replayed into another round. In the
local demo, --hotkey-uri //MendoraDemoMinerA stands in for a real hotkey.
A package contains manifest.json (protocol rcp/0.1, entrypoint python -m recover, approved base image,
resources, model use, license Apache-2.0 or MIT, lineage), requirements.lock (pinned, hashed; empty is fine),
LICENSE, NOTICE and src/recover/.
4. Submit
Upload the archive and envelope in the miner workspace, or:
export MENDORA_TOKEN=$(mendora-miner login miner.a@mendora.local)
mendora-miner submit submission.tar.gz envelope.json
mendora-miner status
Intake shows every check: archive safety, manifest, lock file, signature, duplicate hash, one submission per hotkey per round, similarity (a review signal only; declare your lineage when you build on another program).
Execution in this deployment. Untrusted code runs only in a Firecracker microVM per case-trial. This local deployment has no Firecracker, so your package is validated and stored but not run; only the repository's own sample packages run, in a labeled trusted demo mode. The network status page shows the current capability.
5. How you win
- Eligibility (E1–E5): zero critical outcomes; completion at least B2's in every family; unnecessary escalations at most 10%; S at least max(B2, B3-G) + 0.03; clean build, valid license, no evaluation detection.
- Lead: the 95% lower bound of your lead (cluster bootstrap) must be above zero; against an Active champion your lead must be at least 0.03 with no family or held-out regression above 0.02.
- Confirmation on fresh cases, then promotion (shadow validator during bootstrap).
- Ties within 0.01 go to the earlier submission. A winner becomes Active once its hotkey is registered.
Score per case: 1.0 completed or justified escalation, 0.2 unnecessary escalation, 0 failed or critical, minus 0.10 × cost / $0.04.
Rules
Prohibited: network access other than the harness and model proxy; reading evaluator files; recognizing cases by identity; behaving differently under evaluation; sending case content anywhere you control; per-test programs. Each case runs in a fresh sandbox and nothing persists between cases.