Loops HouseHireclaw

NEAR HACKATHON
Links
Team
1 member- GAOwner
Gaïa Samama-Giudicelli
Overview
Hireclaw is an AI agent that runs a small business: it sells human judgment. A client pays an order upfront in USDC (for example, label 12 product reviews). The agent splits it into micro-tasks, hires anyone with a browser, checks quality with hidden checks and 2-of-3 majorities, pays each validated task 0.02 USDC within seconds, delivers the result and keeps a margin, split 60/30/10.
The problem: when the boss is software, who protects the worker? Hireclaw puts the labor rules inside a NEAR smart contract (Rust, near-sdk v5, live on testnet as hireclaw.defraie.testnet): pay floor and ceiling, daily caps per worker and overall, a 15% margin set aside before any work starts, a public reason code for every rejection, and dismissal only when on-chain counters justify it. The client's USDC (NEP-141) arrives with the order in a single ft_transfer_call; the contract holds the money and refuses any payment order that breaks a rule, so the agent never touches the funds. We let the agent try 11 ways to cheat its workers: the contract refused all 11, each with its exact error code.
Workers need no wallet: a key generated in the browser is a NEAR implicit account, the contract pays their token registration, and withdrawals are signed in the browser and relayed. A full cycle ran on NEAR testnet: 14 public transactions, the worker really withdrew her pay, and get_solvency returns balanced: true.
Try it: https://hireclaw-35gv.onrender.com/work (no install), or clone the repo and run python -m boss.demo (deterministic, 47 tests).