TRUEOPEN
English

← Docs contents

TRUEOPEN / DOCS

An inference task: execution, verification and settlement

Follow Sessions and signed orders through output delivery, commit–reveal, challenges and final settlement.

Sources reviewed: · English edition · 中文

This page describes protocol flow and the state a client should retain. Whether a deployment supports every step must be checked against capabilities and versions.

1. Fix the execution context

A task needs a model ID, Profile version, input, generation parameters, output budget, price and fee cap, and validity period. A model name is only a label: weights, tokenizer, precision and input template can change the result and cannot be arbitrarily replaced after acceptance.

The SDK manages order context with a Session and order sequence. Retries must retain the same order bindings and input bytes. A network timeout does not prove that the server received nothing.

2. Sign, transmit and establish chain admission

The user signs the order and sends input through Builder ingress. An ingress ACK describes transport or local handling progress; only accepted chain state confirms the task. The SDK explicitly distinguishes these states.

A retry retains its idempotency key; a genuinely new task uses a new key. Applications that restart need persistent order records. In-memory records cannot prevent duplicate submission across restarts.

3. Assign a Worker and produce output and evidence

The protocol selects eligible compute nodes. Candidate eligibility and final assignment are separate stages; execution follows the accepted assignment.

The Worker runs the agreed model and commits output and evidence. Output can arrive in chunks. The client must bind it to the task, the Worker and the commitments, and handle invalidated attempts. Displayable text does not mean service fees are claimable.

4. Verify execution

Logprob verification uses 3 Verifiers selected through the two-stage VRF process. Each independently runs a prefill pass over the original, fixed token sequence and compares metrics across all output positions according to the Profile. At least two matching results are needed for a verdict. V1's six protocol stages are task opening, inference, verification opening, verification, challenge, and settlement/finality.

Commit–reveal requires commitment before disclosure, reducing opportunities to change a result after seeing another participant's answer.

Cryptographic verification (SLP) selects computational chunks after commitments to their boundaries and checks the corresponding proofs. It is a whitepaper design outside the cited V1 scope; the documented testnet verification path is logprob verification. The two approaches verify different properties and have different failure conditions. Clients should retain the method and verdict rather than show an unexplained check mark.

5. Challenges and final settlement

The protocol documents independent challenge rounds: new Verifiers evaluate the same frozen material and produce a round result. Challenges cannot arbitrarily change the original input, model or committed output.

Final settlement derives payments, fees, refunds and responsibility from accepted state. Protocol finality is tied to settlement; unused escrow is not provider income. The cited SDK does not support submitting the on-chain challenge-opening transaction, so protocol capability and client interfaces must be distinguished.

Suggested product states

At minimum, distinguish “submitting / admitted”, “output received”, “output commitment check”, “inference verification result”, and “challenge / settlement status”. These are display recommendations, not mandatory backend enum names. Read exact fields and enums from the chosen wire version.

Sources