Testnet. Rescues use test funds. Read the limits

Skip to content

For judges

Judge Klear in the order that matters

The investor sets rules in a keyless NEAR contract. The AI proposes trades, and the judge signs only what fits. If the AI fails, anyone can bring the money home and gets paid once it arrives.

Chain Signatures let the judge control accounts on Hyperliquid and Base. Read MPC verifies what happened on each chain.

Start with the essentials

7 contracts verified on NEAR

Three checks in two minutes

  1. Verify the controllers

    Both chain accounts should use the judge’s MPC-derived addresses.

    Passes: Both controllers match the judge’s addresses.
  2. Open the refused trade

    The manager’s key should be unable to sign an order beyond the leverage cap.

    recordedmandate:leverageNEARF8beik…UwfK
  3. Trace delivery to payout

    Each reward should follow evidence of delivery to the investor.

    recordedThe judge verified the Hyperliquid delivery and paid that leg.NEAR7pYXKc…3KYR

Replay the rescue

Recorded testnet rescue

Elapsed time from the silence limit · Playback advances by milestone

The AI trades

The manager proposes trades. The NEAR judge signs orders inside the mandate and refuses the order that exceeds the leverage cap.

Full walkthrough

  1. 01

    The problem, in real money

    2 min

    What you will see

    32 AI models that traded $10,000 each on Hyperliquid in Alpha Arena, replayed fill by fill through Klear's rules.

    What it proves

    The risk is real, and rules change outcomes: with a floor 30% down, 23 of 32 would have been stopped, and investors would have kept $56,772 more.

    recordedThe rebuild matches Hyperliquid's own equity points within a median 1.3% of the stake.
  2. 02

    Nobody can change the rules

    1 min

    What you will see

    The judges that hold each investor's rules, and the factory that creates them, read from NEAR as the page loads.

    What it proves

    No access keys: not the creator, not us. And each runs exactly the code built from this repository.

    Passes: 7 contracts, checked just now: 0 keys, and deployed code equal to the source build.
  3. 03

    A rescue, end to end

    3 min

    What you will see

    An AI manager (Claude) trading under an investor's mandate, a trade past its limit refused, the manager going silent, and a guardian bringing both legs home.

    What it proves

    The judge decides on attested cross-chain evidence, signs every move, and pays each leg's reward only after the investor's address shows the money.

    recordedPerp leg: 7.887 USDC at the investor, then 0.5 NEAR to the guardian.NEAR7pYXKc…3KYR
  4. 04

    Try to break it

    3 min

    What you will see

    Every bypass we tried against the live, locked judges: a forged snapshot, strangers, the AI's own key, replays, a second rescue.

    What it proves

    Each one is refused on chain, by the judge, by NEAR, or by the MPC network's verification.

    recorded20 of 20 refused.
  5. 05

    Inspect a strategy like a guardian

    1 min

    What you will see

    The checks a guardian or an investor runs before trusting any strategy, on the practice strategy the factory created.

    What it proves

    That only its judge can sign for its Hyperliquid and Base accounts (their controllers are the judge's MPC-derived keys), and that both pay only the investor.

    Passes: 6 of 6 checks pass, read just now.
  6. 06

    Rescue it yourself

    about 45 min, optional

    What you will see

    A real strategy that fails every day on purpose. With a NEAR testnet account (free) you attest the evidence, open the rescue and settle it.

    What it proves

    That anyone can do it, without permission, and that the judge pays a stranger: you.

    Not due right now. The window is open daily, 14:40 to 17:40 UTC.
  7. 07

    Rebuild it

    10 min

    What you will see

    The tests, the replay and the contract builds, from a clone.

    What it proves

    The numbers on this site come from this code: the replay reproduces byte for byte, and the judge builds to its deployed hash.

    git clone https://github.com/Femtech-web/Klear && cd Klear
    make test                      # Rust rules, Foundry, end to end through the judge, both NEAR contracts
    make replay && git diff --exit-code docs/results/replay
    make factory                   # prints the judge's and the factory's sha256
    recordedCI runs the same on every push, with a secret scan.
  8. 08

    What it does not do

    2 min

    What you will see

    The trust model: what "no keys" means and does not mean, what NEAR's MPC network is trusted for, and what could still go wrong.

    What it proves

    Where the guarantees stop. Read this before believing the rest.

    recordedTestnets only, not audited; the limits are listed, not implied.

Claims and checks

ClaimCheck
The AI trades only within the investor's rules.recordedA trade past the leverage limit, refused by the judge.NEARF8beik…UwfK
The manager cannot move funds or start a rescue.Passes: The AI signs with a key for propose_order and heartbeat on its judge, nothing else (read now). Its account's owner key is ours, and the judge accepts only proposals and heartbeats from the manager whatever key signs.recordedThe AI's restricted key calls open_flatten: rejected by NEAR.
A rescue opens only on the judge's own trigger.recordedAn exit with no trigger: refused, flatten-not-triggered.NEAR5x4Jez…PNYK
Evidence is verified by NEAR's MPC network, not by us.recordedA forged snapshot claiming a $1M account was never attested.NEAR4gcMUU…QBac
Only the judge can sign for the strategy's accounts.Passes: Both controllers equal the judge's MPC-derived keys (read now).
The money can only go to the investor.Passes: KeelLeg and KeelVault both pay the investor's address, immutably (read now).
Nobody can change any of it.Passes: 7 contracts: 0 keys, source-built code (read now).
Anyone can create a strategy, locked from birth.Passes: The practice strategy was created through the locked factory and has no key (read now).
The strategy can stay sealed, and every decision is still proven.testnetThe AI decided in a TEE with the strategy encrypted; its signed receipt is on chain, and agents/verify_sealed.py checks it against the model's attestation.Details
Money can sit in a confidential account no one holds the key to.mainnet, real fundsOwner signed only by NEAR's MPC network; a sealed AI swapped inside it, a stranger was refused, and the exit returned 1.9952 USDC and 0.2831 NEAR to the user.Details
A rescue's payout can be private.mainnet2.799671 USDC into a confidential balance; the recipient appears in neither public transaction.Details

Scope and limits

  1. 01

    Where it runs. Testnets with test funds, except two authorized mainnet privacy tests with a few dollars of the user's own. Nothing here is audited.

  2. 02

    What it trades. One market: an ETH perpetual on Hyperliquid, with WETH on Base as the spot leg.

  3. 03

    What you trust. NEAR's MPC network to sign only for the judge and to verify logs honestly, and Hyperliquid to report and execute truthfully. The trust model says exactly where.

  4. 04

    Who runs the AI. The manager is Claude with no tools, or in sealed mode an open model in a TEE on NEAR AI Cloud. A TEE flaw could leak the strategy, never move money: the judge decides every order.

  5. 05

    What the judge does not check yet. NEAR verifies sealed receipts in a separate locked contract; the judge itself does not yet require one before it signs an order.

  6. 06

    What stays with a provider. In a confidential mandate, the ledger's operators can read the balance, and the Agent API's backend enforces the policy.

  7. 07

    Who keeps the drill going. The daily drill and its courier run on GitHub Actions with our testnet keys. The courier only pays gas; it cannot change what the judge signs.

  8. 08

    What the replay is. A counterfactual: Klear's rules applied to real AI traders' fills, with the closing cost modelled, not trades Klear made.

Roadmap

  1. Next

    Sealed orders only with a receipt. A judge that signs a sealed manager's order only if NEAR has verified its TEE receipt (the verifying contract is live and locked).

  2. Next

    More recorded agent runs. Off-the-shelf agents rescuing for pay on every daily drill window, each run recorded with its transcript.

  3. Then

    An audit, then mainnet with caps. An external review of the judge, the factory and the two accounts, then mainnet strategies with deposit limits.

  4. Then

    The confidential mandate under the judge. A rescue that also brings money home from a confidential account, through its locked owner, paid on proven arrival.

  5. Later

    More markets and chains. More Hyperliquid perpetuals, and spot vaults on other chains NEAR's MPC network can both read and sign for.

  6. Later

    A guardian network. Alerts the moment any strategy's rescue opens, so people and agents compete to bring money home first.

The same guide, as a file: JUDGES.md.