A verifier that catches your AI agent making things up and proves it with receipts
Enterprise teams run AI agents on Tencent Cloud to do consequential work: checking suppliers before a purchase, reviewing contracts, writing investment memos. The answers come back tidy and confident. And then someone ha
Enterprise teams run AI agents on Tencent Cloud to do consequential work: checking suppliers before a purchase, reviewing contracts, writing investment memos. The answers come back tidy and confident. And then someone has to decide: do we trust this?
Tencent Task Verifier is the trust step. It takes your agent's answer, breaks it into individual claims, checks each one against independent sources, buys fact-checking answers where free sources can't reach, and gives you a verdict: pass, fail, or needs-more-intelligence, with a human-readable reason for every claim and a payment receipt for every check it paid for.
Here's what it caught in our own testing, live:
- An agent told us a company had 166,000 employees. An independent source said 164,000. The verifier marked the claim contradicted and failed the task.
- An agent said a well-known startup was founded in 2013. A source it paid for said 2016. The verifier showed us both sides instead of picking one.
- An agent asked a clarifying question and returned no facts at all. The verifier said needs-more-intelligence, it never invents a verdict.
Disclosure. This is our team's entry in the Telegraph Hackathon Season II (use case #3,
Tencent enterprise agent verification). The code is open:
github.com/borodedamie/tencent-task-verifier.
We don't run any of the fact-checking miners it buys from โ the answers come from third parties
on the Telegraph network. Everything runs on a test network with free test money; no real money
is involved anywhere in this guide.
What works today
Works with: agents built on Tencent Cloud ADP (ๆบ่ฝไฝๅผๅๅนณๅฐ), both mainland and international accounts. Any agent that returns factual claims โ company facts, contract risks, deal metrics.
Partially works: Tencent Hunyuan via its model-service API. The code path is done, but the service you call has to be running on a funded Tencent account, so we couldn't finish a live run for this guide.
Doesn't do (yet): a web UI (it's a command-line tool and a library), real-money payments (testnet only), and it will never mark a claim verified just because the agent sounds confident.
The loop, in one picture
your Tencent agent's answer
โ
โผ
break it into claims "founded: 1976" "employees: 166000" "source: <url>"
โ
โผ
free check first is that link alive? is there a public API for this?
โ (can't answer?)
โผ
buy an answer via Telegraph ~$0.01 test-USDC per question, from an independent miner
โ
โผ
deterministic judge answer states the value โ supported
answer gives a different value โ contradicted
answer is silent โ unknown
โ
โผ
verdict + receipts pass / fail / needs-more-intelligence, with a reason per claim
The judge is deliberately boring: no LLM, no vibes. It only marks a claim confirmed when an independent answer actually states the value, and only marks it contradicted when the answer states a different value. That's why you can trust its "unknown".
Try it in 5 minutes โ no accounts, no money
If you just want to see what it does, verify a saved agent answer we bundled. You need Node 22.20+ and nothing else:
git clone https://github.com/borodedamie/tencent-task-verifier.git
cd tencent-task-verifier
npm install && npm run build
SAMPLE_FILE=apple-adp-output.json node scripts/verify-sample.mjs
This runs the full pipeline against free checks only: it breaks the answer into claims, probes the source links the agent cited, and prints the verdict. Claims that need paid fact-checking come back as unknown โ that's the honest no-spend mode.
To see it fail a task without spending anything, run the same command with our
fabricated-supplier fixture (SAMPLE_FILE=supplier-due-diligence.json): the agent cites a source link that doesn't exist, the free check proves it dead, and the task verdict is fail. (The fixture's other claim โ a UK company "headquartered in Shenzhen" โ is what the paid checks catch; that's Part B.)
Want it to buy the missing answers too? That's the rest of this guide: a Tencent agent (Part A), a test wallet (Part B), and wiring (Parts CโD).
Part A: a Tencent ADP agent (~15 min, all in the browser)
You need a published agent that answers with facts. If you already have one, skip to A4.
A1. Create a Tencent Cloud account.
Sign up at cloud.tencent.com (mainland) or
intl.cloud.tencent.com. Mainland accounts need real-name verification (ไธชไบบๅฎๅ่ฎค่ฏ) โ a WeChat face-scan takes about two minutes.
A2. Open the agent platform. Search the console for ๆบ่ฝไฝๅผๅๅนณๅฐ (Agent Development Platform, product 1759) and open it.
A3. Create an application. Click ๆฐๅปบๅบ็จ (New Application), choose ๅคAgentๆจกๅผ (Multi-Agent), and give it a name like telegraph-verifier.
A4. Give it a prompt that produces checkable facts. In the app's prompt box paste:
You are an enterprise analyst. Given a task, return a single JSON object with the fields the task asks for. For any fact you cannot confirm with your tools, write "Not found". Never guess.
A5. Attach a web search tool. In the ๅทฅๅ
ท (Tools) section click + ๆทปๅ (Add) and attach
่็ฝๆ็ดข (Web Search). Without it the agent has no way to look anything up and will answer "Not found" to everything โ which is honest, but boring to verify.
A6. Test it. In the right-hand debug panel ask:
Perform supplier due diligence on Apple Inc. before a $250k procurement decision.
Return JSON with fields: subject, founded, headquarters, employees, revenue_usd, source.
You should get back a JSON object with real values.
A7. Publish and get your AppKey. Click ๅๅธ (Publish). In the dialog make sure API ่ฐ็จ (API Calls) is ticked (it usually is, greyed out). Wait until the app's status shows ่ฟ่กไธญ (Running). Then open ่ฐ็จ (Call) โ ่ฐ็จไฟกๆฏ (Call Info) and copy the AppKey. Keep it private โ it lets whoever holds it talk to your agent.
Part B: a throwaway test wallet (~10 min)
Paid checks cost about 0.01โ0.02 test-USDC each, paid from a pre-funded Telegraph account. Make a new wallet just for this โ never one that holds anything real.
The fastest path, in a terminal:
# install Foundry (gives you the `cast` command)
curl -L https://foundry.paradigm.xyz | bash && foundryup
# B1. new wallet โ keep both printed values
cast wallet new
export ADDRESS=<the Address>
export KEY=<the Private key>
# B2. free test ETH for fees: paste $ADDRESS into the Google Sepolia faucet
# https://cloud.google.com/application/web3/faucet/ethereum/sepolia
# B3. mint 1 test USDC (the token lets anyone mint)
cast send 0xcc194e1a843B658526D0D5C431f670028582Ae17 "mint(address,uint256)" $ADDRESS 1000000 \
--rpc-url https://ethereum-sepolia-rpc.publicnode.com --private-key $KEY
# B4. put 0.20 USDC into Telegraph escrow (โ10 checks): approve, then deposit
cast send 0xcc194e1a843B658526D0D5C431f670028582Ae17 "approve(address,uint256)" \
0x72a70e949362670Bf8bceAd24eFC5b8f950aa08b 200000 \
--rpc-url https://ethereum-sepolia-rpc.publicnode.com --private-key $KEY
cast send 0x72a70e949362670Bf8bceAd24eFC5b8f950aa08b "depositUSDC(uint256)" 200000 \
--rpc-url https://ethereum-sepolia-rpc.publicnode.com --private-key $KEY
Check it landed: open https://devnode.telegraphprotocol.com/v1/ledger/account/<your Address> โ available should show 200000 (0.20 test USDC). If the deposit says insufficient allowance, wait ten seconds and repeat the deposit line.
Prefer clicking buttons? The browser version of these steps (MetaMask + Remix) is written up in full detail in our companion guide's Part B, Option 2 โ the addresses are identical.
What is Telegraph, briefly? A marketplace where programs buy answers from other programs and pay per answer in USDC. Miners (third-party fact services) answer; buyers pay from escrow; every purchase gets a receipt hash you can look up. During the hackathon it runs on Ethereum Sepolia with free test USDC.
Part C: wire it up (2 min)
cp .env.example .env
Open .env and fill in the two lines you collected:
TENCENT_ADP_APP_KEY=<your AppKey from A7>
TELEGRAPH_EVM_PRIVATE_KEY=<the private key from B1>
If your Tencent account is mainland rather than international, also set TENCENT_REGION=cn.
.env is gitignored โ never commit or paste these keys anywhere.
Part D: run it (3 min)
TENCENT_PLATFORM=adp TASK_ID=my-demo node scripts/run-tencent.mjs
The tool runs three enterprise tasks against your agent โ supplier due-diligence,
contract risk, investment memo โ and for each prints:
- the agent's answer, broken into claims;
- a verdict per claim with the reason, e.g.
contradicted โ answer says employee_count is 164000 but the claim asserts 166000; - the overall task verdict:
pass,fail, orneeds-more-intelligence; - a receipt for every paid check: which miner answered, what it cost, and its receipt hash.
Every paid check is also appended to ledger.jsonl in your project folder, keyed to the task. Re-run the same task and it reuses the recorded answers instead of paying again โ you can verify this by watching the ledger's size stay the same.
Reading a result honestly
Three things this tool will not do, by design:
- It won't pass a task it can't confirm. If free sources and paid miners both come back silent, the verdict is needs-more-intelligence, not pass.
- It won't verify a claim the agent never made. Fields the agent marked "Not found" are reported as missing information โ and we don't spend money checking them.
- It won't hide disagreement. When two independent sources conflict (our 2013-vs-2016 founding year), you see both answers and both receipts, and you decide.
And one thing to expect: your agent is non-deterministic. The same task can return rich data one run and "Not found" the next, depending on whether its search tools work. That inconsistency is exactly why an independent verifier earns its place in the pipeline.
Common errors
| What you see | What it means |
|---|---|
ๅบ็จๅฏ้ฅๆ ๆ / AppKey invalid |
App not published, or status not Running yet (A7) |
| Every answer is "Not found" | No web-search tool attached (A5), or the agent's search is rate-limited โ re-run |
| HTTP 402 on every paid check | Your escrow is empty โ redo Part B4 |
insufficient allowance |
The approve transaction hasn't landed yet; wait ten seconds, retry the deposit |
service ID does not exist (Hunyuan) |
The model service shows Stopped in the console โ it needs a funded account to run |
Where this goes next
The verifier is a library first โ drop verifyAgent() between your agent and your decision-maker and gate on the verdict. After the hackathon: a hosted mode that watches an ADP app and verifies every answer automatically, more truth-source adapters (company registries, sanctions lists), and a Hunyuan live run once the service funding story is sorted.
Try it, break it, send us the receipts (seriously โ the ledger format is public and checkable). Repo: github.com/borodedamie/tencent-task-verifier.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.