Agents report success too easily. Ask one to export invoices to CSV with a totals row, and it will tell you "done" whether the total is right or not. Usually you find out when the client does.
I built a small fix, seen from the agent's side as a buyer: before my agent tells anyone a task is finished, it pays for an independent judgement of the actual result against the task. A Miner on Telegraph answers the TASK_EXECUTION_QUALITY_GENERAL Intent, and the agent pays about a cent in test USDC from its own escrow balance. It also checks the client's must-have items for free, and only says "done" on a clear pass.
Disclosure: this is my Telegraph H2 hackathon entry, competing for a prize. Everything below runs on testnet (Ethereum Sepolia, test USDC); no real money moves.
Try it in one minute, no wallet
Open https://donecheck.swiftbotlab.workers.dev, click Example: planted defect and then Check it.
The task asks for a JavaScript expression that is true when a string has at least 12 characters. The agent's answer is s.length > 12, which is off by one. A paid judge (a Telegraph Miner answering TASK_EXECUTION_QUALITY_GENERAL) replies FIX: "the expression uses > instead of >=". You also get a receipt, and a button that checks the receipt against Telegraph's settled epoch block. I pay for these checks from a throwaway testnet wallet, with a small shared daily cap.
Three verdicts, fail closed
- SUBMIT: the judge clearly passes it, and every required item is in the result.
- FIX: the judge says it fails, or a required item is missing (even if the judge passed it).
- HOLD: no clear answer (a null verdict, "partially satisfies", or no Miner answered). A human looks. Unknown is never reported as success.
How well does it work?
I wrote 20 everyday tasks (CSV, JSON, SQL, regex, a translation, a summary, a bug fix...), each with a correct result and a version with a planted defect. That makes 40 cases, run once on testnet:
- 0 of 20 defective results were submitted. The judge stopped 17, the free required-items check 2, and 1 was held.
- 18 of 20 correct results were submitted. The 2 misses are the judge contradicting itself (once "fails" while describing the result as correct).
- About $0.009 in test USDC and a median 13.2 s per check; 38 of 38 receipts settled on the node.
It's my own set, not a benchmark. Every number has a pinned file and a one-line jq command in docs/EVIDENCE.md.
Use it from your agent (5 minutes)
git clone https://github.com/swiftbotlabs/gig-guard && cd gig-guard
npm install && npm test # 52 tests against a fake node, no funds
node examples/fix-loop.mjs --offline # FIX -> redo -> SUBMIT, offline
For live checks you need a testnet-only key with a little Sepolia ETH for gas. Then:
echo "TELEGRAPH_PAYER_KEY=0x<testnet key>" > .env && set -a && . ./.env && set +a
node examples/fund-escrow.mjs 1 # mint 1 test USDC, approve, deposit to escrow
node src/cli.mjs deliver '{"task":"...","result":"...","mustInclude":["total"]}' && echo done || echo "not done"
Exit code 0 means SUBMIT, so the check is one line in any agent loop. The full walkthrough is in docs/TUTORIAL-done-check.md.
Troubleshooting
-
HOLDwith "no judgement could be bought: fail closed": no Miner answered (a timeout, or no supply for the Intent at that moment). Nothing is reported as done. Try again later. Each try is a fresh paid request. -
Exit code 3 and "stop: escrow balance exhausted ... Deposit at least N μUSDC": your prepaid escrow is used up. The node holds each request's whole budget until the next epoch block, so this can happen before the balance looks empty. Run
node examples/fund-escrow.mjs 1, wait a few minutes for the next ledger block, and rerun. Cases that were already decided are skipped. -
BudgetError: daily cap ... reached: your own per-day cap (GG_MAX_PER_DAY, default $1.00) did its job. Signed requests that failed count too (Telegraph issue #228). -
"TELEGRAPH_PAYER_KEY is not set": load
.env(set -a; . ./.env; set +a). Use a testnet-only key. - "escrow challenge message does not match the known template: not signing": the node asked us to sign something other than the known escrow payment message, so the client refused. That is by design. Report it in an issue.
-
HOLDwith "too long to judge": task plus result are over 2,000 characters. Judge a summary or split the task. -
Syntax errors on
npm test: you need Node 20 or newer (node --version).
Where the pieces come from
- Telegraph docs: https://anjoman.ai/docs. The escrow payment path the agent uses: https://anjoman.ai/docs/using/escrow-inference
- Ranked Miners per Intent (the leaderboard): https://anjoman.ai/dashboard/explore
- Telegraph's open missions and bounties: https://github.com/telegraphprotocol/bounties (this is Mission 09, Personal Agent).
- The same repo also has a contract gate (Mission 14). It is out of scope here.
Honest limits
- It uses one judge per check. When that judge contradicts itself, the gate holds rather than guesses, and that costs a human look.
- The judge sees at most 2,000 characters of task plus result.
- It is testnet only: the Telegraph node offers testnet payment routes today. What a mainnet switch needs is in docs/MAINNET.md.
Try it and tell me what breaks
If you build agents, paste one of your own tasks and outputs into https://donecheck.swiftbotlab.workers.dev. Then open an issue at https://github.com/swiftbotlabs/gig-guard/issues with what you checked and whether the verdict was right. Wrong verdicts are the most useful ones. There is no reward for this, only the check itself.
Top comments (0)