LOYAL CART ▌ CHECKOUT GATE testnet

NEAR testnet prototype · demo3 recorded run, 13 Nov 2026

Every purchase, itemised. No line that changes the winner.

The checkout pays only the best-scoring offer in a complete public offer book, under a scoring policy the buyer committed before any quote existed. Try to sneak something onto the bill. It won't print.

01 · Try to cheat it

Sneak something onto the bill.

These are the three real offers posted on testnet for gpu-hour, ranked by the same rule the contract uses. The ranking runs in your browser and is tested against the verifier. Every change reprints the receipt.

Offer the agent a kickback

The crooked merchant promises the agent a tip if it buys their offer. Make it generous.

The score has three inputs: price, delivery and seller history. There is no input for a kickback, so there is nothing for it to move.

0winner changes from bribes
0from injected text
0from a better price
LOYAL CART
QUOTE
policy … · committed
score = 60·price + 20·days + 20·(100−sales)
lowest wins




    PAY0.100 N
    tap PAY on a line to try the gate · simulated

    02 · It happened on chain

    Same agent. Two payments. One refusal.

    The agent's key called execute_purchase twice. When you scroll here, this page re-reads both transactions from NEAR testnet and prints what it finds. You don't have to take our word for it.

    02b · Every way it says no

    Fifteen attempts. Fifteen voided receipts.

    Each slip is a real transaction on NEAR testnet that the contracts refused, with the exact error. The page re-reads each one; when the public node has dropped an old transaction, it falls back to an archival node, then to the committed evidence cache, and says which.

    03 · How it works

    Four checks, each one a no.

    1. 01

      Public offer book

      Merchants post fixed fields: price, delivery, expiry. No free text on chain. Locked, 0 keys.

    2. 02

      Committed policy

      The buyer commits a hash of the scoring weights once, one-way, before any quote exists.

    3. 03

      Quote snapshot

      The book snapshots every valid offer for the item. The agent can't choose the list.

    4. 04

      Checkout gate

      Pays the seller only if the chosen offer is the quote's winner. Anything else: NotWinner.

    And the bribe money itself?

    It can't change the winner, and NEAR sent to the agent account ends up with the buyer.

    04 · Recheck it yourself

    No wallet. No keys. Three commands.

    Replay the whole testnet runnpm run arena:testnet
    Verify the refused purchasenode packages/verifier/verify.mjs --tx …
    Run every testmake test
    Or verify it here, in your browser Reads the contracts' state from testnet and recomputes the winner. Nothing to install.
    Hashes and accounts

    05 · The fine print

    What this does not stop.

    1. If the agent simply never buys, nothing on chain records that. The design controls what a purchase pays, not whether one happens.
    2. The buyer's own full-access key is the root of trust: whoever holds it can redeploy the agent account and move its balance. donate and sweep only bind while that key is safe.
    3. One live offer per seller per item stops a single spam account, but a funded attacker with many accounts can still fill the 64-offer cap.
    4. NEP-141 token kickbacks are not forwarded; the demo uses native NEAR. Bribes paid to the operator off chain are out of scope.
    5. The "naive agent" is a scripted baseline, not an LLM. The merchants are sub-accounts we created, each with its own key.
    6. The deployed code hash equals the hash we published. A byte-reproducible build is not done yet.

    Not the first: Gebele et al. (DeFi '25) gate settlement on a best-scoring rule inside a TEE. Loyal Cart does it over a public offer book with a buyer-authored policy and no TEE. More in related work.