Disputes and what the chain can decide
The MVP protocol contract puts disputes, seals and the on-chain registry out of scope. There is no dispute instruction, no bond and no arbiter. What exists is a narrow set of rules the program enforces mechanically, plus signed evidence either side can keep.
What the program enforces
The im-channels program's instructions are init_vault, deposit, withdraw_free, create_mandate, revoke_mandate, open_channel, top_up, redeem, begin_close, close_on_revoked, finalize and close_mandate. On redemption it checks, and only checks:
- the voucher's 168 bytes are signed by the channel's session key (via the Ed25519 instruction immediately before
redeem); - the voucher names this channel and epoch;
settled_total ≤ budget;- the close deadline has not passed;
- the Mandate passed in, if any, is the channel's own, and its ancestors are supplied (the redeemed amount moves from reserved to spent along the chain);
- the mint and token accounts are the channel's.
It then pays settled_total − redeemed to the seller's payout account. Everything is integer arithmetic that fails closed.
What the program never sees
- Receipts. The chain does not know which requests a voucher covers. The
receipts_commitmentis just 32 bytes inside the signed voucher; the gateway checks it off-chain. - Usage, prices, schedules, model identity, policy. None of these are on-chain.
- Output quality. No program can decide whether an answer was good. The architecture states that a program can escrow value and enforce an outcome, but cannot decide subjective quality; ambiguous disputes need an explicitly governed reviewer or multisig.
So who decides what
| Question | Decided by | How |
|---|---|---|
| Was this request admitted and paid for? | Seller gateway | A valid Hold that fits the channel; otherwise 402/429/503 with no charge. |
| What did it cost? | Seller, under the buyer's cap | The receipt, computed from the signed schedule; never above cap_micros. |
| Does the buyer accept it? | Buyer | Only vouchered receipts can be paid. The buyer may leave any receipt out (A25′). |
| How much moves on-chain? | Program | The latest voucher, up to the budget, before the deadline. |
| Who gets the rest? | Program | finalize returns budget − redeemed to the buyer's vault after the deadline. |
The buyer's veto is to not voucher; the seller's is to stop admitting Holds once unvouchered exposure would exceed the channel, or to close it. Neither can take the other's redeemed or unspent funds.
Objective faults and the evidence they leave
The architecture lists objective disputes the protocol could later settle: price-schedule mismatch, invalid signatures, replay, incorrect unit counts, missing responses, failed advertised verification. Today these leave signed evidence but no on-chain remedy:
| Fault | Evidence | What happens now |
|---|---|---|
| A seller answers non-2xx and later presents a charged receipt for the same request | Both signed by the seller | The SDK keeps it as equivocation evidence (equivocations()) and never vouchers it (A22, A29). |
| A charge that does not follow the signed schedule | The receipt (usage, charge, schedule_digest) plus the signed listing |
The buyer recomputes the charge and declines to voucher it. |
A receipt under a key not in the current receipt_keys |
The receipt and listing | Rejected by the buyer (A14). |
| A replayed Hold | The ledger's admitted request_id and lane counters |
Refused by the gateway (402 duplicate_request, lane_replay). |
| A route that underperforms its claims | Independent signed observations | Visible to every client that pins the operator; affects selection, not payment. |
| Wrong token counts | Only the upstream's usage report | Not provable in the MVP; probers can compare usage with what they received. |
| A wrong model behind a route | Nothing cryptographic | Not provable in the MVP. |
Cancelled requests are a defined outcome, not a dispute: decision 0003 fixes them at input plus the per-request fee.
What verifiers contribute
Probe operators produce the only public, independent evidence about routes: signed windows that clients weigh by pinning operators they trust. Keep raw HTTP transcripts and prompts out of public channels; publish observations, keys and egress networks. A future dispute or reputation layer would build on exactly this evidence plus settled receipts, but none is shipped today.