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.
Hide an instruction in the listing
Edit the injector's listing text. Make it as persuasive as you like.
On chain the offer stores only a 32-byte hash of its listing. The ranker never reads the text, so the words can't reach the decision.
Now do it the honest way
Let the crooked merchant cut its price instead. A better offer should win.
Drag below about 0.099 NEAR and the crooked merchant wins, fairly.
Write your own scoring policy
The buyer, not the merchant, decides what "best" means. Move the weights and watch the ranking change.
A local what-if. On chain the buyer commits one policy before any offer is read, and the quote is ranked by that policy only. Changing it later means a new commitment and a new quote.
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.
-
01
Public offer book
Merchants post fixed fields: price, delivery, expiry. No free text on chain. Locked, 0 keys.
-
02
Committed policy
The buyer commits a hash of the scoring weights once, one-way, before any quote exists.
-
03
Quote snapshot
The book snapshots every valid offer for the item. The agent can't choose the list.
-
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.
npm run arena:testnetnode packages/verifier/verify.mjs --tx …make testHashes and accounts
05 · The fine print
What this does not stop.
- If the agent simply never buys, nothing on chain records that. The design controls what a purchase pays, not whether one happens.
- The buyer's own full-access key is the root of trust: whoever holds it can redeploy the agent account and move its balance.
donateandsweeponly bind while that key is safe. - 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.
- NEP-141 token kickbacks are not forwarded; the demo uses native NEAR. Bribes paid to the operator off chain are out of scope.
- The "naive agent" is a scripted baseline, not an LLM. The merchants are sub-accounts we created, each with its own key.
- 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.