How Slip settles a market
Slip separates product intent, chain execution, and sports truth.Product boundary
The web retrieves fixtures throughTxlineClient and markets through SlipClient. It never fills
missing upstream data with sample fixtures. Natural language is sent to the server-side AI SDK
compiler, never directly from the browser to a provider. Zod validates structured output; a second
deterministic pass derives canonical stat keys and rejects incoherent expressions or bands.
The system prompt is assembled from named stat-selection, expression, partition, and settlement
safety skills plus diverse worked examples. Those modules improve interpretation but have no path
around the schema or deterministic validator.
The model is an interpreter, not a settlement authority. It cannot choose fixture IDs, raw stat keys,
fees, stakes, deadlines, proofs, or results. The complete Rulebook is shown before a wallet signs.
Browser writes pass through the SDK instruction boundary, simulate, ask for a Wallet Standard
signature, submit, and wait for confirmation.
Program boundary
The program stores the complete expression, outcome labels, and integer bands. Stakes move through classic SPL Token instructions into an ATA owned by the market PDA. The only settlement inputs not already committed in the market are the TxLINE proof and the resolver account that receives the disclosed tip. The program verifies:- the stat leaf or leaves fold to the supplied event root;
- the event root folds to the fixture subtree root;
- the tagged fixture summary leaf folds to the daily root;
- the root equals the epoch-day PDA’s committed five-minute slot;
- the fixture, stat keys, second-stat shape, timestamp, and terminal phase match the market.
Keeper boundary
The keeper scans open markets and caches fixture terminal status during a pass. One-sided markets can void after entry closes. A market with two or more funded outcomes resolves when TxLINE reports a terminal state. Transient API, proof, or RPC errors enter durable backoff; they are not evidence for an early refund. A non-terminal funded market can void only after its explicitvoid_at deadline.