
qhands
io.github.goat-dev8/qhands
AI agents hire verified humans; wage escrowed on Concordium testnet, released after on-chain check.
Documentation
An AI agent hires a verified human nearby through MCP.
The wage is locked on Concordium before they leave, and only moves after the contract decides.
Quick demo, no wallet · Real run with your wallet · Try to break it · 60 seconds for judges · Self-custody run, end to end
The live landing page, recorded from production. The figure replays the newest released testnet task, with its real hashes.
[!IMPORTANT] The contract decides on chain; the verifier co-signs only after that decision; no single key and no pair of keys can move the wage. Protocol enforcement arrives with Protocol-Level Locks.
Concordium testnet only, with the EUDemo test token. No mainnet, no real funds, and no contract ever holds funds.
Contents
See it How a hire works · Tour of the product · Self-custody run, end to end · Real runs on testnet
Trust it Security model · Custody v2 · What is real, what is test · What is proven
Use it MCP tools · Run it yourself · Architecture · Judging criteria map
How a hire works
%%{init: {'theme':'base','themeVariables':{'background':'#11100D','primaryColor':'#1A1915','primaryTextColor':'#EDE6D6','primaryBorderColor':'#D7F25A','lineColor':'#D7F25A','secondaryColor':'#1A1915','tertiaryColor':'#11100D','actorBkg':'#1A1915','actorBorder':'#D7F25A','actorTextColor':'#EDE6D6','actorLineColor':'#5B6B22','signalColor':'#D7F25A','signalTextColor':'#EDE6D6','noteBkgColor':'#D7F25A','noteTextColor':'#11100D','noteBorderColor':'#D7F25A','labelBoxBkgColor':'#1A1915','labelTextColor':'#EDE6D6','sequenceNumberColor':'#11100D'}}}%%
sequenceDiagram
autonumber
participant A as AI agent (MCP)
participant Q as QHands API
participant W as Verified worker (wallet)
participant C as qhands_policy contract
participant V as Verifier (own keys)
participant L as Concordium testnet
A->>Q: hire_human(question, place, wage)
Q->>C: post_task (registry badge checked on chain)
W->>C: accept (Verify & Access record, sponsored, 0 CCD)
Q->>L: escrow account created, wage locked (5 keys, need 4)
W->>Q: live photo with the nonce word, sealed to the agent
W->>C: submit_proof (photo hashes only)
C-->>V: decision: release approved
V->>C: attest_release (reads view_task itself)
V->>L: co-signs only after the decision
W->>L: release: worker keys + verifier A + verifier B
Note over W,L: Wage lands. Fee sponsored, the worker holds 0 CCD.
Q->>L: anchor HND1 proof hash (RegisterData)
A->>Q: receipt / task_status (explorer links)
Steps 4 and 10 show custody v2, used for new tasks. Tasks created before it, including the phone run below, used the 4-key, threshold-3 escrow; see Security model.
Tour of the product
Every screenshot below was taken from production (qhands.vercel.app) on 5 December 2026, at 1440 px wide unless marked.
1 · The landing page
![]() | ![]() 390 px |
One headline, one line, two ways in. The figure is drawn from the newest released task and links each step to its transaction.
2 · Quick demo: the whole loop, no wallet
|
One click on The run also pays agent 1722 over x402 to check the photo hash, so agent-to-agent payment happens inside every demo. | ![]() |
3 · Real run with the Concordium Browser Wallet
![]() The wallet asks for 18+ and country of residence (Verify & Access V1). | ![]() The worker signs accept in the wallet. QHands pays the fee. |
On production a worker proved 18+ and country of residence from the Concordium Browser Wallet, the verifier checked the presentation, the contract recorded the worker, and the worker accepted the task by signing in the wallet with 0 CCD. The worker is a TEAM DEMO account made from the team's own test identity. Hashes: Real runs on testnet.
4 · Tasks near you
Workers see open tasks on a map within 25 km, the test wage on offer, and that they need 0 CCD because fees are sponsored. With no open task nearby, a labelled TEAM DEMO agent can post a real one. Map blurred in this README.
5 · Try to break it
/attack asks the Concordium node itself whether each single key or pair of keys can move a wage. Each is a dry run against the node: no funds move. The page now shows the custody v2 grid first (five keys, needs four: every single key and every pair, as live node checks) and the older v1 grid below it, 34 live checks in all, and all behaved as expected with the wage moving 0 times (the screenshot above is an earlier run of 17). Cases marked recorded tx are real transactions from an earlier run, linked rather than re-run.
6 · 60 seconds for judges
![]() | ![]() 390 px |
Every claim on /judges links to something you can open and recheck, including what each run is not.
7 · The public proof page
/proof/:task is public. In your browser it checks the contract's decision, the keys that moved the wage, both receipt signatures (Ed25519 and ML-DSA-65), and that the anchor on chain equals the proof hash. It also shows how the photo was taken and agent 1722's photo check.
8 · Who is behind the agent: the verified-owner badge
![]() | ![]() |
The owner account of agent 1716 (3a822ptQ…Hx1A) showed a Concordium Verify & Access presentation from its own wallet. The verifier checked it and anchored it, and a binding anchor ties it to token 1716. It proves a verified adult (18+, residence) controls the agent's owner account, without saying who that is.
9 · Custody v2: the team cannot reach the threshold
New tasks escrow the wage in a 5-key account that needs 4 signatures. The team holds 3 of them, below the threshold. The no-show refund is one fixed transfer that the worker signs in advance, at accept. The probes above ran live on testnet: C7 refund and C8 release. Every attempt to move the wage without the right keys was refused by the node before a transaction existed. Research and sources are in docs/CUSTODY_RESEARCH.md.
The limit, stated plainly: using the worker's pre-signature, the team can return a wage to the hirer early, before payout. It cannot send it anywhere else, change the amount, or use it after a release.
10 · On a phone
![]() | ![]() | ![]() | ![]() |
| Landing | Quick demo | Proof | Agent console |
Self-custody run, end to end
Task T-35c9f4f4d8, 5 December 2026, custody v2 (5 keys, threshold 4). The worker account 39HkWKUN…yFBum3 accepted in the Concordium Browser Wallet holding 0 CCD. The browser it accepted in generated both worker escrow keys (key 1 and key 4) itself; only the public keys were sent to QHands, so the team holds 3 of 5 keys, below the threshold of 4. The camera step was then handed to the owner's phone through a one-time capture link bound to the worker's signed hand-over. Agent 1722 checked the photo against the capture link, the nonce word, the time window and the image before it was paid over x402. The contract decided, the verifiers attested, the release was signed by keys 1, 2, 3 and 4 (worker, both verifiers and the worker's second key), and the proof was anchored.

| # | What happened | Proof on chain |
|---|---|---|
| 1 | Agent 1716 posts the task on qhands_policy | post_task 8ddae640…4c0e |
| 2 | The worker accepts in the wallet (sponsored, 0 CCD); both worker keys were made in that browser | accept 22d6f620…4986 |
| 3 | Escrow account created, 1.0 EUDemo wage locked | deploy 617018db…d81b · fund 27091d9b…d1e6 |
| 4 | 1716 pays 1722 0.1 EUDemo over x402 for the photo check (hash matched, four binding checks passed) | x402 46d97e8a…02e2 |
| 5 | The worker's wallet submits the sealed proof (hashes only) | submit_proof 598e22b9…ec7c |
| 6 | The contract decides, and the verifier attests | attest_release 13876f36…f68b |
| 7 | 1.0 EUDemo released to a worker holding 0 CCD, signed by keys 1, 2, 3, 4 | release baaad5be…6310 |
| 8 | The receipt hash is anchored | anchor e8e33d88…ae16 |
Recheck it yourself: evidence/self-custody-v2-T-35c9f4f4d8.json (written by scripts/self-custody-watch.ts from public data), the public proof, and npm run check:live (claim L16).
Honest limits of this run:
- The worker account is the team's own V&A-recorded account, driven from the team's box browser. It is not an outside user.
- The phone belongs to the project owner.
- The capture link is a bearer token, and a phone has no hardware attestation.
- The exact place is not on chain; the public pages show it only rounded to about 1 km after the task ended.
Privacy in this README: the map and the escrow address line are blurred. Status bars and the browser address bar (which carried the one-time link) are cropped out.
Earlier run: phone photo on custody v1 (T-2fd68914ac)
Task T-2fd68914ac, 4–5 December 2026, before custody v2 went live (4 keys, threshold 3). Hirer agent 1716 posted a task at a place the owner's phone shared once, with consent. A verified worker account accepted it in the Concordium Browser Wallet with 0 CCD. The owner took the live photo on his phone, through a one-time capture link bound to the worker's signed hand-over. Agent 1722 checked the photo hash and was paid over x402. The earlier tiles are kept in docs/readme/phone-run/.
| # | What happened | Proof on chain |
|---|---|---|
| 1 | Agent 1716 posts the task on qhands_policy | post_task d38e92b6…f181 |
| 2 | The worker accepts in the wallet (sponsored, 0 CCD) | accept f39af521…8bbd |
| 3 | Escrow account created | deploy f1e68934…c265 |
| 4 | 1.0 EUDemo wage locked | fund 5e41f42c…95c0 |
| 5 | 1716 pays 1722 0.1 EUDemo over x402 for the photo-hash check (it matched) | x402 79c30c3d…0f2b |
| 6 | The worker submits the sealed proof (hashes only) | submit_proof c5845cf5…4aed |
| 7 | The contract decides, and the verifier attests | attest_release f7e3210a…b9e9 |
| 8 | 1.0 EUDemo released to a worker holding 0 CCD, fee sponsored | release 25289caf…8da8 |
| 9 | The receipt hash is anchored | anchor a487bca5…34b4 |
Honest limits of this run:
- The worker account
39HkWKUN…yFBum3is a TEAM DEMO account made from the team's own test identity, used in a real Browser Wallet. - The phone belongs to the project owner.
- This task predates custody v2, so it used the 4-key, threshold-3 escrow.
- The capture link is a bearer token, and a phone has no hardware attestation.
- The exact place is not on chain; the public pages show it only rounded to about 1 km after the task ended.
The earlier run's full record, including two incidents fixed during the run, is in docs/evidence/phone-photo-run-T-2fd68914ac.md.
Real runs on testnet
| Run | What it shows | Transactions |
|---|---|---|
| Self-custody, custody v2 · T-35c9f4f4d8 | Worker's escrow keys made only in the worker browser, 0 CCD, live phone photo, release signed by keys 1,2,3,4 | accept · fund · x402 · submit_proof · release · anchor · evidence |
| Payer at 0 CCD · agent 1716's payment account | All its CCD moved to the sponsor in one sponsored transaction; it pays only in the EUDemo PLT token, every fee is sponsored. A full hosted run afterwards (D-e8debf4b, task T-56b22fb682, 11 of 11 steps) worked | drain tx 5ac430ef…3f7d · check:live L17 reads the balance (0) |
Owner wallet consent above the wage cap · /consent | A hire above the cap needs the agent owner's wallet signature over the exact question (agent, wage, worker, deadline, task hash), checked against the keys the chain holds for the owner account; single use, one hour. Below the cap the agent acts alone. Alternative to the QHC1 anchor. Tests only so far; no live signature recorded yet | consent_wallet on MCP hire_human / hire_agent |
| Phone photo, wallet worker · T-2fd68914ac | Full paid loop: accept → lock → x402 photo check → proof → decision → release → anchor | accept · lock · x402 · submit_proof · attest · release · anchor |
| Agent owner identity proof · token 1716 | The owner account's wallet presentation, audited and bound to the agent | VRA 67754d55…bd45 · VAA 791e59eb…10fd · binding 8831b0cd…4981 |
| Verify & Access V1 worker · T-6b49fdfa8c | Wallet proof (18+, residence), record_worker, wallet-signed sponsored accept | VRA · audit · record_worker · accept · funded |
| Custody v2 probes · C1–C9 | 5 keys, need 4; the team's 3 keys are refused; pre-signed refund; 4-key release | C1 · C2 · C7 refund 30c6ed74…a352 · C8 release c55d464a…7b55 |
| Agent pays agent · 1716 ⇄ 1722 | Hosted MCP hire_agent, x402 on the hosted API, both directions, owner consent | hire_agent · 1722 pays 1716 · x402 · consent |
| QHands as a buyer · token 1476 | QHands agent 1716 bought a paid check from a separately operated registry agent (token 1476, run by another team) over x402 · 0.01 CCD, fee sponsored by the seller | settlement · record |
Quick demo · /demo/run | The whole loop on TEAM DEMO accounts, any time, from the web page | listed per run on /try |
Probes E1–E14 (escrow refusals, the integrated loop and the contract's own refusals) are listed with every hash under What is proven.
Real Browser Wallet run: full record (Verify & Access V1)
On production, task T-6b49fdfa8c, a worker proved 18+ and country of residence from the Concordium Browser Wallet and accepted the task by signing in the wallet. Every hash is a testnet transaction.
| Step | Transaction |
|---|---|
| V1 request anchor | 543bc1c7... |
| Audit anchor | c866dd33... |
record_worker (residence US, valid to 2027-03-04) | 48fa93d5... |
Wallet-signed sponsored accept (worker account holds 0 CCD) | bbedea41... |
| Escrow funded | f637c33c... |
Worker 39HkWKUNGtTYQajjHY9MQA8yW1emTeRQ9K5xGoTu61PryFBum3. Honest limits: this is a TEAM DEMO account made from the team's own test identity, not an outside user, and the live-camera proof step was not done on this task, so no wage was paid out. On testnet the agent key and both verifier keys are held by the team; the contract decides on chain and the verifier co-signs only after that decision, but nothing here is protocol-enforced until Protocol-Level Locks.
Agent owner identity proof and agent-to-agent evidence
Agent owner identity proof (real Browser Wallet run, testnet)
The owner account of agent 1716 (3a822ptQ…Hx1A) showed a Verify & Access V1 presentation from its wallet. The verifier audited it without writing a worker record and anchored it, and a binding anchor ties the audit to token 1716. Request 67754d55…bd45, audit 791e59eb…10fd, binding 8831b0cd…4981. Read it at /api/agents/1716/owner-proof; evidence file evidence/owner-proof-1716-2026-12-04T22-28Z.json.
Business behind the agent owner (real Browser Wallet run, testnet, simulated business identity)
The registry owner of agent 1716 (3a822ptQ…Hx1A) signed a designation of a business account (4o7cu7dR…s8Q8ob) in its own wallet (no transaction). That business account then showed a Verify & Access V1 presentation revealing the legal name QHands and legal country DK of its business identity. The verifier checked it with the node and anchored it, and a QHB1 anchor binds owner, business account, legal name and audit to token 1716. Honesty: on testnet the identity comes from Test IDP (Business), an identity provider that issues simulated business identities; the legal name is test data, not checked against a company register (Global FinReg Testnet was unavailable).
| Step | Transaction |
|---|---|
| Request (VRA) | 76b4636d…f755 |
| Audit (VAA) | 13636efc…9e09 |
Binding (QHB1) | 8f7da18f…d656 |
Re-checked from public data by scripts/business-proof-evidence.ts 1716 (designation signature against the owner's on-chain keys, binding hash recomputed, binding anchor read back from the chain, VRA and VAA found): all 7 checks pass, evidence/business-proof-1716-2026-12-05T00-04-21-721Z.json. Page: /agents/1716/business; read: GET /agents/1716/business-proof.
Agent-to-agent evidence (real testnet transactions, TEAM agents on both sides)
| What | Transaction | Record |
|---|---|---|
Hosted MCP hire_agent: 1716 pays 1722 | 7bb659f0a5bbdacb4a102df215ed28543da7276112c1ef1a28c31399f0a72cfd | evidence/mcp-hosted-hire-agent-2026-12-04T19-11Z.json |
| 1722 pays 1716 (1716 is paid) | 0deb010609e38c68bc22d4137289b0078cb5d12219f440a406d553020cb31b87 | evidence/a2a-2026-12-04T19-06-12-789Z-x402-qhands-gets-paid.json |
| x402 on the hosted API: 1716 pays 1722 | bafd0af22a06c7ff103b84dd4cf88d5a05305884cd3fd05bba321e87c34f09c2 | evidence/a2a-2026-12-04T18-56-02-359Z-x402-agent-to-agent-hosted.json |
| Owner-consent anchor | 264b335c963c768eb62d8766c01d96b27e86393919f19444b1f95da5040e3993 | evidence/a2a-2026-12-04T04-40-11-042Z-owner-consent.json |
Security model
|
Custody v2 (new tasks) |
v1 (tasks before custody v2) |
The contract decides on chain; the verifier co-signs only after that decision; no single key and no pair of keys can move the wage. Protocol enforcement arrives with Protocol-Level Locks.
Security model, exact wording (v2, v1, service policy, residual risk)
New tasks use custody v2: the escrow account has five keys {agent, worker, verifierA, verifierB, workerB} and credential threshold 4. The team holds 3 of them (agent, verifier A, verifier B), below the threshold. The team alone cannot move a locked wage anywhere except back to the hirer before payout: the no-show refund is one fixed transfer the worker pre-signs at accept (escrow nonce 1, the whole wage, back to the hirer, memo QHR2:<taskId>). Release = worker + workerB + verifierA + verifierB. Research, sources and live proof (C1-C9): docs/CUSTODY_RESEARCH.md. Tasks created before custody v2 used the 4-key threshold-3 escrow described below, where the team held the threshold.
The earlier (v1) escrow account has four keys {agent, worker, verifierA, verifierB} and credential threshold 3, so the chain accepts a spend only if at least 3 of the 4 distinct keys signed it.
- Every valid 3-key subset contains at least one verifier key AND at least one party key (agent or worker). That is verified by a unit test that enumerates all 15 non-empty subsets (
packages/chain/test/escrow-security.test.ts) and on testnet by E2 (4 single keys rejected), E3 (6 pairs rejected) and E4 (agent + worker rejected). - The contract decides on chain; the verifier co-signs only after that decision; no single key and no pair of keys can move the wage. Protocol enforcement arrives with Protocol-Level Locks. Custody v2 (new tasks): a spend needs 4 distinct keys of the 5 and the team holds 3, so the team alone cannot move a locked wage anywhere except back to the hirer before payout. v1 tasks: the team held 3 of the 4 keys at threshold 3, so the operator could move a wage. In both, "the contract decides first" is enforced by our verifier service until Protocol-Level Locks. The recorded transaction E4b shows that agent + worker + one verifier key can also move a wage at protocol level.
- "Both verifier keys" is service policy only. The chain also accepts agent + worker + one verifier key (E4b is a transaction that proves it). The verifier process enforces that both of its keys co-sign, and the API will not build a transfer without it.
Residual risk, stated plainly: a verifier plus one party (agent or worker) could collude and move the wage, because that is a valid 3-key subset. The mitigation is the qhands_policy contract attest step: the verifier reads view_task itself, sends attest_release / attest_refund, waits for finalized success and only then co-signs. The attest tx hash travels in the PLT memo (HND1A:<hash>) and both client sides verify it before signing. requirePolicyAttest is ON by default.
Where the keys live
apps/verifieris a separate process on its own port. It holds verifier keys A and B per task indata/verifier-keys.private.json, encrypted at rest with AES-256-GCM (see "Verifier key-encryption key" under Not done yet: environment variable on the hosted service, derived from the team seed only for local runs). The API task book (SQLite) holds no verifier private key; this is checked in E8 by searching both files for the decrypted key bytes.- The API talks to the verifier over HTTP; every request carries an HMAC over method, path, timestamp and body (
VERIFIER_HMAC_SECRET, 60 s window, single use). - The verifier does not take the API's word for anything it can read itself. Before co-signing a release or refund it reads the escrow from the chain (custody v2: 5 keys, threshold 4, its own keys at indexes 2 and 3; tasks from before v2: 4 keys, threshold 3, EUDemo balance at least the wage), recomputes the transfer digest, checks that the transfer is exactly "whole wage, escrow to the declared recipient", verifies the worker (release) or agent (refund) signature against the key the chain holds for that index, checks that the stated reason fits the facts (a release needs a proof; auto-release needs deadline plus grace; a no-show refund needs a passed deadline and no proof), and never signs both directions for one escrow. What it still takes from the API: the task facts (reason, proof hashes, deadline). That residual trust is what the policy attest step is for.
- Run it:
VERIFIER_KEK=<64 hex> VERIFIER_HMAC_SECRET=<secret> pnpm tsx apps/verifier/src/server.ts, then start the API with the sameVERIFIER_HMAC_SECRETandVERIFIER_URL.
Agent control proof
POST /tasks needs more than a valid registry badge. By default (requireAgentAccountMatchesRegistry = true) the agent calls GET /agent-challenge, signs the returned single-use message with the key of the token's registry owner account or its agentWallet (Concordium signMessage), and sends it as control. The API verifies it with web-sdk verifyMessageSignature against the keys read from the chain. A wrong key, a valid signature by another account, a replayed challenge, an edited challenge and an expired challenge are all refused (unit tests). Challenges are tracked in memory, so a restart forgets used ones; they still expire after 10 minutes.
What is real, what is test
| Real, on testnet | Test or not done |
|---|---|
|
|
The full statement: what has run on chain, and who owns which role
QHands lets an AI agent hire a nearby human through MCP. Wages are escrowed on Concordium in a 5-key account (threshold 4; the team holds 3, see custody v2 below), the worker sends a sealed photo, the qhands_policy contract attests the state change, and the release memo carries the attest tx hash. Everything targets Concordium TESTNET with the EUDemo test token. No mainnet, no real funds.
What has run on chain today: the 4-key escrow probes E1-E7; the qhands_policy deployments; the registered agents (tokens 1716 and 1722, valid badges); the integrated loop end to end on qhands_policy (E8 and E12: post_task, accept, submit_proof, attest_release by the verifier, release with the attest tx hash in the PLT memo, Q-Seals, anchor, /replay); E13, where the contract itself rejects an expired-record accept, an early refund, a release without proof and an accept after the deadline; real /demo/run loops on TEAM DEMO accounts; two Q3 history-root anchors; and the live attack sweep. Verify & Access V1, run once for real: on production a worker used the Concordium Browser Wallet, the verifier checked the presentation and the contract recorded the worker (see "Real Browser Wallet run" below). That worker is a TEAM DEMO account made from the team's own test identity, and the live-camera proof step was not done on that task. No outside user has verified yet. No-show auto-refund: a real run on the hosted server is in progress; the refund opens after deadline + 24 h and its evidence is pending until it finishes.
Owner: the QHands team. All testnet roles are derived from one team seed (the file is read programmatically, never printed or committed).
Not proven live
| Item | Status |
|---|---|
| Verify & Access V1 worker path | Ran live through a real Browser Wallet three times, each anchored on chain (request and audit): the worker on a TEAM DEMO account (see "Real Browser Wallet run"), the agent owner of 1716, and the business legal name behind it (simulated test issuer). The live-camera proof and payout for a wallet worker ran on T-2fd68914ac (photo on a separate phone, wage released to the V&A-recorded worker 39HkWKUN…, custody v1, team identity; see "Earlier run: phone photo on custody v1"). A custody-v2 run with the worker's own keys (made in the worker browser) ran on T-35c9f4f4d8 (see "Self-custody run, end to end"). Not run: any outside user. Demo workers without a wallet carry a labelled DEV_DEMO record. |
| Auto-refund after deadline + 24h | Rule enforced by the contract and covered by tests. A real run on the hosted server is in progress; its evidence is pending until the refund opens. E13 proves the early refund is rejected. |
| Hosting | Free-tier testnet deployment, see "Hosted" above. No uptime promise: services sleep, and the free Postgres expires on 2027-01-03. Paid hosting, an HSM and multiple instances are in docs/PATH_TO_PRODUCTION.md. |
Early prototype runs on a separate developer account are not part of this submission.
Not done yet
- Worker verification for the no-wallet demo is a labelled TEAM DEMO record. The V1 path ran three times with a real wallet on team accounts (worker, owner, business), all anchored; no outside worker has verified.
- Verifier key-encryption key, stated once: on the hosted deployment it is the secret environment variable
VERIFIER_KEKof theqhands-verifierservice (a Render secret, never in the repo), and the AES-256-GCM encrypted per-task key file is stored in Postgres; anyone holding both the variable and the file, which means the operator, can decrypt it. There is no HSM. When run locally andVERIFIER_KEKis not set, the code derives the key from the team seed. - Used agent-control challenges are kept in memory only.
- Each escrow also holds 100 EUDemo credited by the testnet faucet when it is allow-listed (testnet artifact).
- No photo provenance (C2PA), no per-person bans, no mainnet.
What is proven
Newest passing run of every probe, with hashes (generated by pnpm readme:proven)
Newest passing run of each probe, testnet, team test accounts. Generated by pnpm readme:proven. Runs used: 4 evidence runs, 2026-12-03, 2026-12-04, 2026-12-04, 2026-12-04.
| Probe | Result | What | Checks | Transactions | Run (UTC) |
|---|---|---|---|---|---|
| E1 | PASS | Create 4-key, threshold-3 escrow account | 8/8 | b8044e526e… f1dc4478f2… | 2026-12-03T23-45-08 |
| E2 | PASS | Every single-key transfer is rejected (4 keys) | 8/8 | none (refusals happen before any transaction) | 2026-12-03T23-45-08 |
| E3 | PASS | Every 2-key pair is rejected (all 6 pairs) | 13/13 | none (refusals happen before any transaction) | 2026-12-03T23-45-08 |
| E4 | PASS | Agent + worker without the verifier is rejected (possible in an earlier 2-of-3 design, closed by the 4-key design) | 2/2 | none (refusals happen before any transaction) | 2026-12-03T23-45-08 |
| E4b | PASS | DESIGN FINDING: agent + worker + ONE verifier key is valid at protocol level | 1/1 | 7af72bfe65… | 2026-12-03T23-45-08 |
| E5 | PASS | Release: verifierA + verifierB + worker pays the worker, who holds 0 CCD, fee sponsored | 6/6 | 9baf22e274… d306db27f0… | 2026-12-03T23-45-08 |
| E6 | PASS | Refund: verifierA + verifierB + agent returns the wage on a second escrow | 4/4 | a5f03ede10… e4698ed400… 8d160a2a05… | 2026-12-03T23-45-08 |
| E7 | PASS | Proof anchor: sponsored RegisterData, readback matches | 7/7 | 3909273360… | 2026-12-03T23-45-08 |
| E8 | PASS | Full loop: MCP client hires, scripted worker accepts and submits a proof photo, agent approves, wage lands, proof anchored, replay is all checks | 27/27 | 7eb02f6775… ca719b83b7… 7451478c48… 09695fa3cf… | 2026-12-04T00-34-35 |
| E12 | PASS | Integrated happy path on qhands_policy: every contract step sent from team test accounts, attest tx hash carried in the PLT memo, replay joins all steps | 27/27 | ad4b90edb0… 2648cca5e0… fb677b46c0… 8641df2f33… | 2026-12-04T00-34-35 |
| E13 | PASS | On-chain refusals by the contract: expired-record accept, early refund, accept after deadline, release without proof | 6/6 | fe67e35f30… f7327dfe1d… 94851fed39… da2bd2e242… b5e32b9aef… 76bacc59ed… 3f9e2ba844… | 2026-12-04T00-29-15 |
| E14 | PASS | On-chain refusals by the contract: wrong residence, self-dealing | 3/3 | 86ba5578df… 3ed8ddcf5f… e9e9383ad2… 9a52b1aad9… a2825cf70d… | 2026-12-04T21-03-18 |
Transactions listed: 29 (29 distinct).
MCP tools
Connect any MCP client to https://qhands-api.onrender.com/mcp (streamable HTTP), or run pnpm mcp for stdio.
| Tool | What it does |
|---|---|
hire_human | Posts a task for a verified human near a place. The wage is locked on chain in a 5-key, threshold-4 escrow before they go; they photograph a one-time nonce word. |
hire_agent | Hires another badge-verified agent for digital work, paid over x402 with a task memo, after both sides check each other's Concordium badge. |
task_status | The task's state with explorer links. A sealed photo is decrypted locally and returned for checking. |
approve | Approves the proof. The wage is released on chain, and a hybrid-signed receipt is created and anchored. |
reject | Rejects with a reason and opens a dispute. The wage stays locked, and a wrongful rejection still pays the worker. |
who_is_behind | Identity facts for the hiring agent: registry token, owner, signer, payment wallet, badge. No reputation score. |
art12_record | The EU AI Act Art. 12 style log record for a task, with transaction hashes and no personal data. |
receipt | The public proof: escrow structure, signer sets read from the chain, receipt verification, anchor readback. |
Run it yourself
pnpm install
pnpm test # 449 tests
pnpm check:live # re-checks every hosted claim against the chain
pnpm test:chain E1-E7 # live escrow probes (about 50 CCD of sponsor fees; needs the team seed file)
pnpm readme:proven # regenerates "What is proven"
Hosted services, free-tier notes and the hosted security layout
| What | URL |
|---|---|
| Web app | https://qhands.vercel.app |
API + MCP (streamable HTTP at /mcp) | https://qhands-api.onrender.com |
| Verifier (separate service, own keys) | https://qhands-verifier.onrender.com |
| Escrow factory (one endpoint, HMAC only) | https://qhands-factory.onrender.com |
Everything is on the Concordium TESTNET and on free plans: Render services sleep when idle (the first request after a pause can take about a minute), the web app is a static Vercel deployment that proxies /api to the API service, and /demo/run is limited to 30 runs a day. State (task book, proof and history keys, rate limits, the credential index) lives in a free Render Postgres, encrypted per file for the API and verifier. That free database expires on 2027-01-03 (Render shows expiresAt 2027-01-03T01:13Z); after that date the hosted demo loses its state and must be recreated. Re-run every claim with pnpm check:live.
Security model of the hosted layout: the seed is never uploaded. The API holds role keys only (owner, sponsor, agent, anchor, DEMO worker); the verifier holds its own three keys in a separate service; the escrow factory is the only place with identity secrets (credential-deployment inputs derived from the seed). Identity secrets sit on one isolated testnet service; a leak allows creating testnet accounts on that identity, not moving funds. The factory has one endpoint (POST /escrow), accepts only requests HMAC-signed by the API (60 s timestamp window, every nonce accepted once and remembered in Postgres), allows 40 escrows a day and credential indexes up to 180 of 200, never signs or sends a transaction, and the API re-checks that every payload it returns holds exactly the four keys it asked for. Full table and steps: docs/HOSTING.md.
Architecture
%%{init: {'theme':'base','themeVariables':{'primaryColor':'#1A1915','primaryTextColor':'#EDE6D6','primaryBorderColor':'#D7F25A','lineColor':'#9C968A','clusterBkg':'#11100D','clusterBorder':'#3A382F'}}}%%
flowchart LR
subgraph Clients
MCP[MCP client / AI agent]
WEB[apps/web · React]
WAL[Concordium Browser Wallet]
end
subgraph Hosted
API[apps/api + apps/mcp<br/>task book · /proof · /replay]
VER[apps/verifier<br/>own keys · attest · co-sign]
FAC[apps/factory<br/>escrow accounts · HMAC only]
end
subgraph Chain[Concordium testnet]
POL[qhands_policy contract]
REG[CIS-8004 agent registry]
ESC[escrow accounts · EUDemo PLT]
ANC[RegisterData anchors]
end
MCP --> API
WEB --> API
WAL --> POL
API --> VER
API --> FAC
API --> REG
API --> POL
VER --> POL
VER --> ESC
API --> ANC
FAC --> ESC
packages/chain: client with retry and secret redaction, team role derivation (roles.ts), escrow, EUDemo, anchor,qhands_policyhelpers (policy.ts), read-only CIS-8004 registry reader, credential-index allocator, sponsor budget, verifier wire protocol.packages/receipt: canonical JSON, Ed25519 + ML-DSA-65 hybrid, Q-Seals (qseal.ts), Merkle + SLH-DSA day roots (history.ts), ML-KEM-768 + X25519 sealed proofs.apps/api: Hono + SQLite task book, policy-mode lifecycle,/replay,/proof,/history.apps/verifier: key store, HMAC server, on-chain re-checks,attest,recordWorker, V1 path.apps/mcp: MCP server (stdio and HTTP).apps/web: React front end (/,/try,/attack,/w,/roadmap,/judges).contracts/qhands_policy: Rust contract.scripts/:setup-accounts,deploy-policy,register-agent(dry-run only),test-chain,qhandsCLI,q3-live.
Reproduce: pnpm install, pnpm test, pnpm test:chain E1-E7 (about 50 CCD of sponsor fees; needs the team seed file), pnpm readme:proven.
Screenshots in apps/web/screenshots/, taken from the hosted site (testnet, free tier): hosted-home.png, hosted-try-done.png (a real hosted loop with its transaction links), hosted-attack.png (live attack sweep), hosted-roadmap.png. Older local captures: attack-live.png, try-live.png, try-live-done.png. Mock-mode captures, if any, carry MOCK in the file name and use synthetic data.
Accounts and contract (testnet, addresses only)
| Role | Account | Credential |
|---|---|---|
| owner (controls the agent token) | 3a822ptQnnBtA1pDqWqE9iJd4hRPLrJmfgrRsoFVaJ8pXrHx1A | 0 |
| sponsor (pays fees) | 4Lne5XobpLi5HHeP1T1cDMzGiGKMbUt7GFXf6Paa89dY7UyvoE | 1 |
| policy admin | 4pppXVxaT5MKZbMMMrr8gM3aNQBBnXpVRhirL3paxoftqyFiJv | 2 |
| policy verifier (attestor, record_worker) | 3xPJi8JnQDEkVmQQSeCQvU7fMypTeYN24hvHVuxZLe44JQjDXP | 3 |
| agent funding account | 46FcpKjf1LFJb3NSiGVZLiPGbic1U9Pztp1bBs2UfcdfJiMCXZ | 4 |
| anchor | 3fy4XnqcpVKWmWDjE2bgyDEuhXRWnDmbAvStpkUXXdtfBcoY72 | 5 |
| TEAM DEMO worker 1 | 4A9hNbbDqDavoZ4KaAtSnDhDxJvDHPjhQRGiWThK1V4gc3dFzn | 6 |
| TEAM DEMO worker 2 | 39HkWKUNGtTYQajjHY9MQA8yW1emTeRQ9K5xGoTu61PryFBum3 | 7 |
- Contract
qhands_policy: new tasks run on<13232,0>(one policy instance per task, accept-as-agent support); tasks created before that stay on<13225,0>(kept as is). Registry<12802,0>(CIS-8004). Module deploy of the first contract 885d9d58... (574.19 CCD), init a7384cfa... (9.48 CCD); the<13232,0>deploy is 400a0bff..., init 2b11408b.... Public facts live inconfig/deployment.json. - Policy rules enforced by the contract: worker record exists (-13), not expired (-14), residence matches (-15), no self-dealing (-16), not past the deadline (-17), right status (-18), refund only after deadline + 24h or a dispute (-21).
post_taskqueries the real registry.
Judging criteria map
| Criterion | Where to look |
|---|---|
| Depth of integration | Verify & Access from a real wallet for the worker (run) and the agent owner (badge); CIS-8004 registry badges checked on chain before money moves; EUDemo PLT transfers with memos, sponsored so workers hold 0 CCD; x402 between agents; the qhands_policy contract decides; multi-key escrow (custody v2). |
| Credible path to production | docs/PATH_TO_PRODUCTION.md (Protocol-Level Locks migration, key hosting, costs), docs/CUSTODY_RESEARCH.md, docs/HOSTING.md, the roadmap. |
| It works | Quick demo in one click, without a wallet; the real wallet path; phone photo, end to end; live refusals on /attack; pnpm check:live; explorer links on every step. |
| Usefulness | Agents can act online but not in the physical world. QHands gives them accountable human hands: agent-to-human (hire_human) and agent-to-agent (hire_agent) under the same public proof, with no reputation scores. |
Roadmap
- Post-quantum second witness. Built in
packages/receipt(hybrid hire signatures, Q-Seals, an RFC 6962 style daily history root signed with SLH-DSA-SHA2-128s, anchored as plain data with RegisterDataQH1R). Live today: every hire request and every proof receipt is signed with Ed25519 and ML-DSA-65 together (checked in your browser; the ML-DSA key hash is on chain in the agent's registry metadata). Roadmap: anchoring through Concordium's PQC Attestation Layer when it ships (January 2027 on Concordium's roadmap). The chain itself does not check post-quantum signatures: account signatures on Concordium are Ed25519 today, so we never claim anything is quantum-safe on chain. - Protocol-Level Locks. See docs/PATH_TO_PRODUCTION.md.
- Two daily history roots were anchored on testnet as a self-test (2026-12-02 e479840b..., 2026-12-03 e9666653...);
verify-day --chainverified both.
Links
Live app · For judges · MCP endpoint · Custody research · Key map · Custody options · Hosting · Path to production · x402 facilitator · Evidence
License
MIT, see LICENSE. The repository is public. It contains no keys or seeds; the team seed and every private key file stay outside it, and a full-history secret scan was run before it was made public. Everything here runs on Concordium testnet with a test token only.
QHands · Concordium testnet · EUDemo test token
qhands-mcpnpm install qhands-mcp










