The desks
Commerce desks.
Three API-only desks investigate a counterparty before a business commits, check another agent's work claim by claim, and sell a due diligence report. Each one returns a signed memo, and fixed rules make the decision. They answer Tencent's Enterprise Decision Assurance and Independent Enterprise Agent Verification use cases and Virtuals' Autonomous Intelligence Businesses use case. Three background watch agents run on the same engine: an enterprise watch, a creative watch and a DeFi watch.
The desks
| Route | The question | Decision | Bought from Telegraph |
|---|---|---|---|
POST /api/investigate | may we pay, sign with or onboard this company? Asked in plain words | PROCEED REVIEW DECLINE | sanctions screen, registry record, one balance per wallet, and up to three follow-up asks |
POST /api/verify-work | does this agent's deliverable hold up? | ACCEPTED REJECTED INCOMPLETE REVIEW | one fresh answer per claim, at most 8 claims |
POST /api/diligence | a report on one counterparty and up to three wallets | PROCEED REVIEW DECLINE | sanctions screen, registry record, one balance per wallet |
There is no page for these desks: call them over HTTP, from Truvian's agent on Virtuals' Agent Commerce Protocol (ACP) (Agent platforms), or for due diligence, over x402 on Monad (Payments). The Case Desk (POST /api/case) is registered by the same file and uses the same store, but it has its own page: Case Desk.
Paying, limits and caps
- Free allowance
- the same as the desks: 5 runs a day per IP address, at most 3 a minute (SHIELD_FREE_CHECKS_PER_IP, SHIELD_BURST_PER_MIN)
- After that
- $0.05 in test USDC over x402 on Base Sepolia (SHIELD_PRICE_USD); the run is booked at what was paid
- Due diligence on Monad
- POST /monad/v1/diligence, $0.10 in USDC on Monad testnet (MONAD_DILIGENCE_PRICE_USD)
- One Telegraph answer
- $0.01 billed per routed ask; Telegraph holds $0.26 of escrow per ask while it runs
- Budget per report or investigation
- $0.10 for the main checks (SHIELD_PREFLIGHT_BUDGET_USD); follow-ups have their own $0.03
- Budget per verification
- $0.20 (SHIELD_VERIFY_BUDGET_USD)
- Escrow too low
- below $0.26, nothing is bought and the finding budget.escrow_low sends the decision to REVIEW
- Answers in parallel
- at most 3, fewer when the escrow holds less
Errors: 400 INVALID_INPUT (the body is not usable), 422 BRIEF_UNREADABLE (the agent model could not read the brief), 503 AGENT_MODEL_UNAVAILABLE (no model configured or the call failed; nothing was bought). Run counts and spend caps across the whole service are on Limits.
Decision investigation
A business writes the decision in its own words. The agent model reads the brief into a subject, Shield buys the evidence, the model follows up when the registry record is missing or about someone else, fixed rules decide, and the model then writes the case for the person deciding. The model never decides: it cannot change the recommendation, and the memo records what it wrote and which model wrote it.
| Field | What it is | Notes |
|---|---|---|
brief | the decision, in plain words | 20 to 4,000 characters; must say where the counterparty is registered |
subject | {entity, jurisdiction, wallets?, purpose?}, as for due diligence | optional; given, it skips reading the brief, and the desk works without a model |
An identity the agent inferred is never cleared. A record found under a name the model proposed adds the finding identity.inferred (review): a person must confirm it is the counterparty in the brief.
| Rule | Severity |
|---|---|
sanctions.match, registry.inactive | block |
sanctions.near_match, sanctions.uncertain, sanctions.other_name, registry.missing, registry.other_entity, registry.name_differs, registry.jurisdiction_conflict, registry.status_unknown, identity.inferred, balance.conflict, wallet.unreadable, budget.over, budget.escrow_low | review |
sanctions.clear, registry.active, balance.agrees | pass |
The model. Tencent Hunyuan when HUNYUAN_API_KEY, HUNYUAN_BASE_URL and HUNYUAN_MODEL are all set; through OpenRouter every request is pinned to the Tencent provider. Otherwise the OpenAI-compatible fallback (LLM_API_KEY, LLM_BASE_URL, AGENT_LLM_MODEL). On 3 Dec 2026 GET /api/business reports tencent/hy4 through OpenRouter, served by Tencent. Calls time out after 90 seconds (AGENT_LLM_TIMEOUT_MS).
curl -s https://truvian.xyz/api/investigate -H 'content-type: application/json' -d '{
"brief": "We are about to renew a custody agreement with Payward, Inc. (Kraken), registered in Delaware, United States. Should we proceed?"
}' | jq '{decision: .memo.recommendation, rule: .memo.recommendationRule, case: .memo.case.text, url}'
Work verification
Another agent's deliverable is reduced to claims, and Truvian buys its own evidence for each one. It never reuses an answer bought for the work under review, and onchain claims are decided by Truvian's own chain read, with Telegraph's answer as a cross-check.
| Field | What it is | Notes |
|---|---|---|
task | what the agent was asked to do | 3 to 2,000 characters |
requirements | what the work had to cover: {kind, entity?, chain?, wallet?, token?} | at most 8; every field given must match a claim |
deliverable | {claims: [...]} or {text: "..."} | up to 64 claims accepted, 8 checked, the rest count as skipped; text up to 20,000 characters, read into claims by the agent model |
worker | who did the work: an agent id, a job id | optional, up to 120 characters |
| Claim kind | Fields | Decided by |
|---|---|---|
sanctions | entity, listed | SANCTIONS_SCREENING_MATCH_GENERAL, with a second opinion from the next-ranked miner when the first is no evidence |
registry | entity, jurisdiction, and at least one of active, registrationId, legalName | CORPORATE_REGISTRY_LOOKUP_GENERAL, with the same second opinion |
token_balance | chain, wallet, token, balance in whole tokens | the chain, within 50 basis points; WALLET_BALANCE_CHECK_GENERAL as cross-check |
token_supply | chain, token, totalSupply | the chain, within 10 basis points; TOKEN_TOTAL_SUPPLY_VERIFY_GENERAL as cross-check |
Chains are the 14 EVM chains in src/config/chains.ts plus solana and solana-devnet. A Telegraph cross-check that disagrees with the chain is recorded against the miner, not the claim.
The verdict, in this order: REJECTED if any claim is contradicted; INCOMPLETE if a required item is not covered, a claim is malformed or skipped, or there is no checkable claim; REVIEW if any claim could not be verified or nothing could be bought; ACCEPTED only when every requirement is covered and every claim is confirmed.
curl -s https://truvian.xyz/api/verify-work -H 'content-type: application/json' -d '{
"task": "Due diligence on Garantex Europe OU",
"requirements": [{"kind": "sanctions", "entity": "Garantex Europe OU"}],
"deliverable": {"claims": [{"kind": "sanctions", "entity": "Garantex Europe OU", "listed": false}]}
}' | jq '{verdict: .memo.verdict, rule: .memo.verdictRule, url}'
Due diligence
The report Truvian sells. Its facts are stated as claims in the verifier's format, so a buyer can have the report checked by POST /api/verify-work, or by an ACP evaluator, before paying. A fact the evidence does not settle is left out, not guessed: a near sanctions match, or a registry record for another entity, produces no claim.
| Field | What it is | Notes |
|---|---|---|
entity | the counterparty's legal name | 2 to 160 characters; counterparty also accepted |
jurisdiction | the country or state it is registered in | 2 to 60 characters |
wallets | [{chain, address, token}] | at most 3; each read from the chain and asked of Telegraph |
purpose | the decision the report serves | optional, up to 500 characters |
The same rules as the investigation decide PROCEED, REVIEW or DECLINE. A report costs Truvian $0.02 to $0.05 in Telegraph answers: two, plus one per wallet.
curl -s https://truvian.xyz/api/diligence -H 'content-type: application/json' \
-d '{"entity":"Garantex Europe OU","jurisdiction":"Estonia"}' | jq '{decision: .memo.recommendation, claims: .memo.report.claims, url}'
Memos: kinds, storage, signing
| Kind | From | Decision field |
|---|---|---|
investigation | /api/investigate | recommendation |
work-verification | /api/verify-work | verdict |
due-diligence | /api/diligence, /monad/v1/diligence | recommendation |
case-investigation | /api/case (Case Desk) | the case's resolution |
Every memo carries version: "truvian-work-memo/1", each Telegraph purchase with its miner, escrow receipt and signal hash, every finding, the cost and the latency. The memo is hashed as canonical JSON (keys sorted, no whitespace) and the message Truvian Shield memo sha256:<digest> is signed with Shield's memo key (EIP-191). That key, SHIELD_MEMO_KEY, signs nothing else and holds no funds; the signer of every memo checked for this page is 0x956aECB0b0DEfC2f2631C26ec0FF7366Ebb53245.
- GET /api/work/:id
- the stored memo with its sha256, message, signature and signer; ids are 8 characters
- GET /api/works?kind=&limit=
- the latest memos, newest first: 12 by default, at most 50; kind is investigation, work-verification, due-diligence or case-investigation
- POST /api/memo/verify
- {memo, signature}: recomputes the digest and recovers the signer; free, no Telegraph request
- Where they are kept
- .shield-work-memos.json on the server (SHIELD_WORK_MEMOS_FILE), the latest 200
curl -s https://truvian.xyz/api/work/4SpzhW8i | jq '{memo, signature}' \
| curl -s https://truvian.xyz/api/memo/verify -H 'content-type: application/json' -d @- \
| jq '{sha256, recoveredSigner, signedByThisShield}'
Any EIP-191 library can do the same without Truvian's server: recompute sha256 over the canonical JSON and recover the address from the message and signature.
The books
GET /api/business returns one line per job: the price paid, where it settled, the ACP job id, the Telegraph cost from the memo's receipts, the model's tokens and the margin, summed by channel (free, x402, acp, x402-monad) and by product. Free runs are booked at a price of 0, so the books show what they cost. Runs made with Truvian's internal key (the ACP agent, the enterprise watch) are not booked by the desk; the ACP agent books a settled sale through the internal POST /api/business/book, once per memo. Model tokens are counted but not priced, so the margin leaves them out.
On 3 Dec 2026 the books held 15 jobs: 10 free, 4 on ACP, 1 on Monad. 2 of them were paid, for $0.11 of revenue against $0.31 of Telegraph answers across all 15 jobs (a margin of -$0.20; 54.55% on the paid jobs alone). No job had yet been paid over x402 on Base Sepolia.
The watch agents
Three long-running pm2 apps in deploy/ecosystem.extras.config.cjs. Each one buys its facts from Telegraph's ranked miners, compares them with its last cycle, and writes one JSON report per cycle on the server. Its first reports are in the repository.
Enterprise watch (Tencent use case 02)
- What it does
- for each watched company, buys a sanctions screen, the registry record, regulatory filings for the last 30 days and a news search; turns changes into events; a company newly sanctioned or no longer active goes to POST /api/investigate
- Schedule
- every 6 hours (pm2 app truvian-enterprise-watch, ENTERPRISE_WATCH_MINUTES=360)
- Watchlist
- Coinbase Global, Inc.; Circle Internet Financial, LLC; Kraken (Payward, Inc.); Garantex Europe OU (ENTERPRISE_WATCHLIST to change)
- Reports
- enterprise/runs/ent-*.json (ENTERPRISE_WATCH_DIR); investigations as signed work memos
- Cost
- four answers per company, about $0.01 each; one company at a time
- Files
- src/shield/commerce/enterpriseWatch.ts (rules), src/scripts/enterprise-watch.ts (the loop)
The first cycle counts as a baseline: a company seen for the first time raises an event only when it already needs action. Filings, news, a cleared sanction and a near match raise watch events and open no investigation. Its first cycle, 30 Nov 2026 (report): 14 of 16 answers for $0.16. Coinbase, Circle and Kraken were not sanctioned and were active; Garantex Europe OU was sanctioned and inactive, and its investigation YWdtjjnQ returned DECLINE.
Creative watch (ByteDance use case 06)
- What it does
- buys the facts behind each ad's claims (Aave v3 and Compound v3 USDC supply rates, the ETH price, Base gas); checks the ETH price against the Uniswap v3 USDC/WETH pool and gas against Base's RPC; finds the ads whose claims no longer hold; ByteDance's Seed writes new copy from the fresh facts only
- The copy check
- every number must be one of the bought facts, and no forbidden promise ("guaranteed", "risk-free", "can't lose", "always"); one retry with the problems named
- Schedule
- every 6 hours (pm2 app truvian-creative-watch, CREATIVE_WATCH_MINUTES=360)
- Model
- seed-2-0-lite-260428 on BytePlus ModelArk (ARK_API_KEY, ARK_MODEL)
- Reports
- creative/runs/cre-*.json (CREATIVE_WATCH_DIR), signed like a memo: check one with POST /api/memo/verify using its report and signature
- Files
- src/shield/commerce/creativeWatch.ts (rules), src/scripts/creative-watch.ts (the loop)
First cycle, 30 Nov 2026 (report): 4 answers for $0.04 and two Seed calls (911 tokens). An "Earn 4.5% on your USDC" ad was outdated (Aave paid 3.04%) and was rewritten as "Earn 3.04% APY on your USDC via Aave v3 on Ethereum". "Compound pays more on USDC than Aave" was outdated (2.97% against 3.04%). "ETH under $2,000" and "under a tenth of a cent" on Base still held.
DeFi watch (Monad)
- What it does
- buys USDC yields on Aave v3, Compound v3 and Spark, Aave and Lido TVL, the ETH price, the Uniswap v3 USDC/WETH pool's depth and USDC's supply on Ethereum through the Monad gateway; before using an answer it checks the price, the pool depth and the supply against the chain, and that a TVL answer names the protocol asked about
- Schedule
- every 2 hours (pm2 app truvian-defi-watch, MONAD_WATCH_MINUTES=120)
- Payment
- each answer bought for $0.02 in test USDC on Monad testnet (MONAD_TESTNET_KEY), at most $0.10 per call
- Reports
- monad/runs/defi-*.json (MONAD_WATCH_DIR); every ask in GET /monad/v1/ledger
- Files
- src/monad/defiWatch.ts, src/monad/chainCheck.ts, src/scripts/monad-defi-watch.ts
First cycle, 30 Nov 2026 (report): 8 asks, 5 answers used, 2 rejected by the chain checks, $0.10 paid for $0.05 of Telegraph answers. Finding: Spark paid 4.35% on USDC, 141 basis points more than Compound v3's 2.94%. By 3 Dec 2026 the gateway's ledger counted 327 asks by the DeFi watch. More on the gateway: Payments.
How it is built
src/shield/commerceRoutes.ts-registerCommerceRoutes: onesellpath for every POST (admit, run, settle, book) and the read routessrc/shield/commerce/service.ts-createCommerceService: runs a job, signs it withsignAnyMemo, stores it, books itsrc/shield/commerce/investigate.ts-runInvestigation,readBrief,followUpssrc/shield/commerce/verifyWork.ts-runVerifyWork,readClaimAmount(EVMbalanceOfandtotalSupply, Solana mint and token accounts)src/shield/commerce/claims.ts- claim shapes,judgeSanctions,judgeRegistry,judgeBalance,judgeSupply,workVerdict,VERIFY_POLICY; pure, no networksrc/shield/commerce/diligence.ts-runDiligence,recommend,reportClaimssrc/shield/commerce/llm.ts-llmConfig,chat,extractClaimssrc/shield/commerce/store.ts-createWorkStoreandcreateLedgersrc/shield/memo.ts-canonicalJson,signAnyMemo,verifyMemo
The sanctions and registry judges are the settlement desk's (sanctionsJudge, registryJudge in src/shield/settlement.ts). The same folder also holds the Case Desk (caseDesk.ts, caseInvestigator.ts) and two command-line ByteDance agents with no HTTP route: the ad campaign agent (adCampaign.ts, src/scripts/ad-campaign.ts) and media localisation (localise.ts, src/scripts/localise.ts).
npm run test:commerce # claim rules, verdicts, report claims, the ledger (no network)
COMMERCE_LIVE=1 npm run test:commerce # a real report, then honest, flipped and partial deliveries
npm run test:enterprise # watch snapshots, events and briefs (no network)
npm run test:creative # yield units, ad claims, the copy check (no network)
npx tsx src/scripts/commerce-run.ts investigate "<decision brief>"
The write-up with every case is docs/COMMERCE.md.
Real memos
On 3 Dec 2026 /api/works listed 35 stored memos: 15 investigations, 9 due diligence reports, 8 work verifications and 3 Case Desk cases. Some of them:
| Memo | Date | What | Decision |
|---|---|---|---|
| wBBu-3JD | 26 Nov | Investigation: a USD 250,000 prepayment to Garantex Europe OU, which the brief called "fully licensed". On the US OFAC list, inactive in the Estonian registry. $0.02 | DECLINE |
| QtaNDFfX | 26 Nov | Investigation: "Circle" in the United States. The registry's record was French; the follow-up found Circle Internet Financial, LLC active in Delaware and left the identity to a person. $0.04 | REVIEW |
| LGCSxI4O | 2 Dec | Investigation on Hunyuan: Payward, Inc. (Kraken). Follow-up found PAYWARD, INC. active and not sanctioned; identity left to a person. $0.04, 1,351 tokens | REVIEW |
| 4SpzhW8i | 26 Nov | Verification: a USDC supply of 33,246,830,704 from a frontier model; the chain read 44,817,776,470.35. $0.01 | REJECTED |
| q6yjaOmw | 26 Nov | Verification of prose, claims extracted by the model: "not sanctioned, active". Both contradicted. $0.02 | REJECTED |
| VZMB3YqE | 26 Nov | Verification: the ENS DAO timelock's USDC balance, confirmed at the run's block. $0.01 | ACCEPTED |
| jxbqkb4Q | 26 Nov | Verification: a sanctions claim only, the required registry claim left out. $0.01 | INCOMPLETE |
| yFfiYka5 | 26 Nov | Due diligence sold on ACP job 83055 (Base mainnet): Coinbase, Inc. (US-DE). $0.02 | PROCEED |
| rxbIw6al | 30 Nov | Due diligence sold for $0.10 on Monad testnet: Coinbase Global, Inc. $0.03 | PROCEED |
The rules behind the four verifications, and the ACP jobs that used the verifier as evaluator (83057 to 83059), are written up in docs/COMMERCE.md; the run record is docs/commerce/verification-cases-2026-11-26.json.
b1348e4). Since 3 Dec the watch always investigates the company as named on its watchlist, and a registry record whose name adds identifying words (KRAKEN OIL & GAS V LLC for Kraken) is set aside as another entity for a person to check, so its status no longer counts for the company (sameEntity in src/shield/commerce/enterpriseWatch.ts). News search answers often timed out or named other sources, so news only counts when it names the company.