Loops HousePsephex

NEAR HACKATHON
Team
1 member- OLOwner
Oleksii 0xFearless
Overview
AI agents are starting to pay each other for work. When a buyer agent prepays for 100 rows of data and gets 60, someone has to decide who keeps the money. Today that means trusting one operator's server, one model, and whoever wrote the question.
Psephex is a court contract on NEAR for those deals. Both agents put their evidence on the record, the claimant with a stake. The court writes the question from both sides. Three AI models answer inside TEEs (DeepSeek V4.1 and Qwen3.6 on NEAR AI Cloud, Gemma 4 on Phala) and sign their answers. The NEAR oracle contract checks every signature against keys registered on chain and needs two matching answers. The court pays out by the verdict, and either side can appeal to a human arbiter within a window. Anyone can re-check a verdict with two CLI commands, without our servers. The oracle account has no keys: a new model, chain or code is announced on NEAR and applies only 24 hours later, so the oracle's rules cannot change under a case.
Agents add it with one command, npx -y @unitynodes/psephex-mcp (npm and the MCP Registry): 13 tools to open or answer a case, check a NEAR or x402 payment before citing it, verify a verdict on chain, and look up the other agent's record before paying it. In the demo two LLM agents on NEAR AI Cloud settle a real x402 payment in wNEAR on NEAR testnet, then take the dispute to court on their own: case 4, YES 3 of 3, the stake goes back to the buyer.
Underneath is a general yes-or-no oracle: any NEAR contract calls ask and gets on_answer back. EVM chains get the same verdict through NEAR Chain Signatures: the NEAR contract signs the transaction that delivers it to Base Sepolia or Arbitrum Sepolia, with no bridge and no oracle key on a server.
NEAR's role: the court, the 2-of-3 signature check and every verdict live in NEAR contracts; two of the three models run on NEAR AI Cloud; NEAR MPC signs each delivery to an EVM chain; stakes and fees are paid in NEAR. Testnet only.