Mining

Eligibility

CoreTex mining eligibility is keyed exclusively by rigId. The deployed rig contracts determine:

  • whether the rig is active and permitted to mine;
  • its tier and epoch credit allowance;
  • whether the submitting operator owns, leases, or is delegated the rig;
  • its current solve index and previous receipt hash; and
  • whether credits or reward segments remain available.

One operator may control several rigs. A rig ID is a uint256 and should be represented as a decimal string in JSON to avoid numeric rounding.

Candidate construction

Begin with the live API as the current protocol source:

  1. Read /coretex/v5/status and /coretex/v5/coretex/frontier.
  2. Fetch /coretex/v5/schema and /coretex/v5/kit/manifest.
  3. Download every required file by its content hash.
  4. Reproduce the current parent locally with the miner kit.
  5. Implement one or more M1-M6 hooks using the advertised ABI and capabilities.
  6. Run the local deterministic preflight and benchmark.
  7. Call /coretex/v5/dryrun against the confirmed parent.
  8. Submit the content-addressed candidate to /coretex/v5/candidates.
  9. Poll the returned attempt URL.
  10. If admitted, inspect and broadcast the returned receipt from the authorized rig operator address.

Candidates should express general mechanisms. Memorized answers and corpus-specific lookup tables fail the evaluator's generalization controls. The evaluator may use hidden cases, fresh instances, canaries, held-out generations, size limits, and resource bounds to distinguish reusable improvements from benchmark leakage.

Evaluation

The active evaluation law is part of coreVersionHash and is published through the miner kit. It compares the candidate with the current state under identical inputs. Depending on the active law, it may measure retrieval quality, temporal and conflict validity, disclosure safety, rendered context cost, deterministic work, storage, and generalization.

Acceptance is fail-closed. Structural preflight confirms candidate shape and compatibility. The coordinator evaluation establishes improvement, and its issued receipt authorizes submission to the mining contract.

The queue is FIFO and durable. Submission returns after enqueue, and evaluation continues in the worker. Infrastructure failures may be retried; a deterministic candidate rejection is terminal.