Skip to content

Check an agent · How-to

Verifying Shipped Agents

Anyone can check from public data, with no account, which code holds an agent’s wallet, whether its payments are the ones its runtime recorded, and whether the public numbers follow from the chain.

Each check is one command that prints every check it made as failed, not checked or passed, and ends with one verdict line. No agent is deployed yet and no attested evidence exists (Status), so today the commands run against a development desk, which can show every check except the hardware’s.

You want to know Run Read
That an agent’s wallet belongs to the code its record names, on Intel TDX hardware npm run cli -- verify agent <agentId> verify agent
That an agent’s payments are the ones its runtime recorded, and happened on chain npm run cli -- verify ledger <agentId> verify ledger
That the public numbers follow from the chain and the agents’ ledgers npm run cli -- verify numbers verify numbers
That a delivered report is the one the enclave attested npm run cli -- report <taskId> Read and verify a report
What the agent, product and numbers pages publish, and in which format curl The public record
What each field of the evidence document means, and which values to pin Runtime evidence, field by field
The same checks without this repository’s code cast, curl, jq, shasum, xxd, openssl, dcap-qvl Check it by hand

The commands sign nothing and need no wallet. They read Robinhood Chain, the Engagement Registry, Intel’s collateral for each quote, and the desk’s public exports.

  • Engagement Registry: the contract on Robinhood Chain (chain 4663) that records who runs each agent (its provider), which clients hired it and when, and where its runtime evidence is.
  • Identity Registry: the ERC-8004 registry every agent is entered in. It holds the agent’s owner and its agent wallet.
  • Runtime evidence: a document with an Intel TDX quote that names an agent, its wallet, and the code that holds the wallet’s key. Its keccak256 hash is recorded on the Engagement Registry.
  • Pins: values you trust from a source other than the evidence itself, such as the compose hashes published with each release. Items that need a pin are not checked until you give one.
  • Public ledger: an agent’s payments, one line per entry, each line hashing the one before it.
  • Checkpoint: a statement, attested inside the agent’s runtime, of how many entries the public ledger had and what its last hash was.

The commands run from a checkout of the repository with Node 24; Before you hire shows how to get one. There npm run cli -- starts the command line, and -s keeps npm’s own lines out of the output.

npm run cli -- verify agent <agentId>
npm run cli -- verify ledger <agentId>
npm run cli -- verify numbers

npm run cli -- verify <agentId> without a command is verify agent. Each command reads these environment variables when the matching option is not given:

Variable Option What it sets
SHIPPED_AGENTS_URL --desk The desk whose exports are read
SHIPPED_AGENTS_RPC --rpc The Robinhood Chain endpoint
SHIPPED_AGENTS_REGISTRY --registry The Engagement Registry
SA_PCCS_URL The PCCS Intel’s collateral is fetched from. Phala’s by default

These are the names the rest of the command line reads too. SA_RPC_URL and SA_ENGAGEMENT_REGISTRY still work when the new names are unset. A registry variable that is not an address is ignored, and the desk then names the registry; --registry refuses a malformed address with exit 2.

Option Meaning
--registry <address> The Engagement Registry. For verify agent and verify ledger, without it the desk’s /v1/config names one. For verify numbers, the registry is the one /numbers.json names, and a registry you give is compared with it. Pass an address you trust from elsewhere, so you are not trusting the desk for it
--rpc <url> A Robinhood Chain endpoint. Public endpoints when none is given. Any honest node gives the same answers
--desk <url> Where /v1/config and the exports are read. https://desk.shippedagents.com by default. verify agent fetches the evidence from the address recorded on chain; when that address is on this desk’s origin it is read from the desk directly, which is how a local development desk’s agents are checked. No desk is deployed yet, so pass the address of the desk you are checking
--pins <file> Values to check the evidence against (Items that need your pins)
--allow-unattested Accept evidence and checkpoints from a development runtime. They are listed as not checked, so the result is never VERIFIED
--max-age <days> The oldest evidence accepted, by the chain’s clock. 30 by default. It applies to every command: verify ledger and verify numbers pass it to the agent checks they run
--chain-rpc <chainId>=<url> An endpoint for another chain agents pay on. Repeat it for more. Without it, SA_RPC_URL_<chainId> from your environment is used, then a chain’s rpc in SA_CHAINS, then the public endpoints built in for Base (8453)
--json Print the result as JSON instead of the report, with the same exit code
-h, --help Print the usage and exit with 0

The report never prints the RPC endpoint you gave, since one can carry a key.

Every command uses the same codes:

Code Meaning
0 Every check passed, and nothing was left unchecked. The last line starts VERIFIED
1 A check failed. The last line starts FAILED and names the checks. A desk export or an evidence address that does not answer, or that the network guard refuses, is a failed check (export, exports, fetch)
2 The command line was wrong: an unknown option, a missing or malformed agent id, or a bad --registry, --max-age, --chain-rpc or pins file. Nothing was checked. A desk whose /v1/config names a registry that is not an address ends here too
3 No check failed, and some items were not checked. The last line starts NOT FULLY CHECKED and names them. Intel’s collateral that could not be fetched leaves intel here
4 The check could not run: the RPC failed (a timeout, a 429, a 503), or no registry was given and the desk’s /v1/config could not be read or names none. The command prints Verification could not run: … and judges nothing. Only a contract revert means an agent does not exist

Every report lists its checks in up to three groups, each check on one line with its name and what it found:

  • FAIL under Failed: the check ran and the data did not hold.
  • -- under Not checked: the check could not be settled. Each line says why and what would settle it. A not checked item never counts as passed.
  • ok under Passed: the check ran and the data held.

verify agent adds Not covered by the evidence: what the evidence does not measure at all, whatever you pin. The last line is the verdict: VERIFIED: every check passed, and nothing was left unchecked., FAILED: <checks>, or NOT FULLY CHECKED: no check failed, and N items were not checked: <items>. Each says above what would check it. Warnings come just before it and never change the exit code.

A development desk runs outside any TEE, and everything it attests says dev. Against one:

  • verify agent runs twelve checks on the chain records and the document, and attested fails unless you pass --allow-unattested.
  • verify ledger checks the export, the hash chain, every checkpoint’s numbers and every settled transaction; the checkpoint’s quote cannot be checked.
  • verify numbers recomputes every figure, and lists the ledgers it rests on as not fully checked.

With --allow-unattested, a correct development desk ends at exit 3 on all three commands. A development desk without a model key takes no work, so its ledgers stay empty; the filled-in ledgers on these pages come from a development desk with a scripted model that did one job and one run, which no single repository script sets up. A new agent gets its first checkpoint within 30 seconds of being provisioned.

The agent ids, addresses and ports on these pages are the development desks’ they ran on. The same ids belong to other agents on the live Identity Registry, so checking one of them against the public chain fails on its provider and runtime records. Use the ids, registry and address your own desk prints, and pass its address with --desk or SHIPPED_AGENTS_URL: verify agent reads the registry from the desk when you name none.

What none of the commands can show, on any desk, is stated with each: verify agent, verify ledger and verify numbers.

A delivered report is checked by the client that reads it: npm run cli -- report <taskId> checks it against its public envelope, the job’s evidence on chain, the attestation and the transcript’s hash chain. Read and verify a report lists each check.