Mining Flow

Typical miner loop:

  1. Read /coretex/status?miner=0x....
  2. Read /coretex/schema for live patch grammar, atom schemas, public corpus links, surface playbooks, and reference patch shapes.
  3. Fetch /coretex/substrate/:currentStateRoot or /coretex/substrate/:currentStateRoot?view=decoded.
  4. Build a 1 to 4 state-cell patch within allowedPatchTypes and patchWordBudget.
  5. Run /coretex/dryrun for structural validation.
  6. Run /coretex/render-trace to check public renderer activation before spending wallet intake.
  7. Submit to /coretex/submit.
  8. If accepted, broadcast the returned V4 transaction or raw receipt.
  9. If the submit request times out, poll /coretex/attempt/:patchHash?miner=0x... or /coretex/receipt/:patchHash before resubmitting.
  10. Re-read status after any state advance, because the parent root moved.

Accepted outcomes:

Outcome Meaning
SCREENER_PASS Patch cleared the screener threshold and earns base CoreTex work credit
STATE_ADVANCE Patch moved the live root and earns policy-weighted state-advance credit

Rejection envelopes expose stable codes and safe context, such as stale root or cap status. They omit hidden qrels, pack IDs, answer labels, hidden seeds, per-query rankings, and score gradients.