Skip to content

Check an agent · Reference

verify agent

verify agent checks from public data that an agent’s wallet belongs to the code its runtime record names, running on Intel TDX hardware, and prints every check as failed, not checked or passed.

From a checkout of the repository with Node 24, where npm run cli -- starts the command line (Verifying has the setup):

npm run cli -- verify agent <agentId>

npm run cli -- verify <agentId> is the same command. No agent is deployed yet (Status), so every example on this page ran against a development desk on a local fork of Robinhood Chain. That desk answered on port 8672 and its fork on 8671. A desk from Run a development desk answers on 8642, with its fork on 8641 and a registry address of its own. These environment variables point verify at the example desk:

export SHIPPED_AGENTS_URL=http://127.0.0.1:8672 SHIPPED_AGENTS_RPC=http://127.0.0.1:8671
export SHIPPED_AGENTS_REGISTRY=0x37a08b8F0F977C6DFaAa03FE1866b9367E405c73
npm run cli -- verify agent 26695 --allow-unattested
Agent 26695 on chain 4663
Registry 0x37a08b8F0F977C6DFaAa03FE1866b9367E405c73
Identity 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
Provider 0x0aFd3402df0Ec93038FcF6BECbb426046163e11C
Owner 0xa687B3f190FF18223D32D5e15e461A272C699D82
Wallet 0xa687B3f190FF18223D32D5e15e461A272C699D82
Agent URI http://127.0.0.1:8672/agents/26695/registration.json
Runtime dev, recorded 2026-11-30T09:01:45Z
Measurement 0xcce4b11adb9acf12bcd1e75485adab1167c0cd06d3088ca4bb394ef8aa050dfe
Evidence http://127.0.0.1:8672/agents/26695/evidence.json
Not checked (2)
-- allowed No list of released compose hashes was given, so any measured compose is accepted. Pass the hashes published with each release.
-- attested Not attested: the evidence comes from a development runtime, accepted because --allow-unattested was given.
Passed (12)
ok agent Agent 26695 exists on the Identity Registry.
ok provider The registry names 0x0aFd3402df0Ec93038FcF6BECbb426046163e11C as the provider.
ok wallet The agent wallet is 0xa687B3f190FF18223D32D5e15e461A272C699D82.
ok runtime The registry holds a current runtime record.
ok age The evidence was recorded 0 days ago; the limit is 30.
ok event Found the RuntimeSet event that published the record.
ok fetch Fetched the evidence from http://127.0.0.1:8672/agents/26695/evidence.json.
ok hash The document hashes to the evidenceHash on chain.
ok format Format shipped-agents/runtime-evidence/v1.
ok subject Agent 26695 on chain 4663, wallet 0xa687B3f190FF18223D32D5e15e461A272C699D82.
ok binding The document carries the binding the registry computes for this agent and wallet now.
ok compose sha256 of the app compose is the measurement on chain.
Engagements (2)
#1 0xa39AD6Cb4c4A326a5ffCE19Da57866a240DEE9B2 from 2026-11-30T09:02:20Z to 2026-12-04T11:02:20Z active
#2 0xa39AD6Cb4c4A326a5ffCE19Da57866a240DEE9B2 from 2026-11-30T09:03:54Z to 2026-12-10T09:03:49Z active
NOT FULLY CHECKED: no check failed, and 2 items were not checked: allowed, attested. Each says above what would check it.

The command exited with 3. The header names what was read: the Engagement Registry, the Identity Registry it is bound to, the provider, the agent’s owner and wallet, its tokenURI, and the runtime record. Then come the checks, grouped as failed, not checked and passed, then every engagement on the registry with its client and period, any warnings, and one verdict line.

  1. The Identity Registry, which the Engagement Registry names (getIdentityRegistry): the agent’s ownerOf, getAgentWallet and tokenURI.
  2. The Engagement Registry: providerOf, runtimeOf, bindingOf, getAgentEngagements and each getEngagement.
  3. The latest block’s timestamp. Ages and periods are measured against the chain’s clock, so your clock does not matter.
  4. The RuntimeSet event behind the current record, found by a binary search for the blocks whose timestamp equals the record’s setAt, then one log query over them. Its evidenceURI is where the document is.
  5. The evidence document, fetched from that URI with a 15-second limit and a 4,000,000-byte cap. An address on another origin goes through the network guard (below); an address on the origin of --desk is read from that desk directly. --desk is also where the registry address is read from /v1/config when you give none.
  6. Intel’s collateral for the quote, from Phala’s PCCS unless SA_PCCS_URL names another.

Pass --registry (or set SHIPPED_AGENTS_REGISTRY) with an address you trust from elsewhere, so the desk does not choose the registry you check against. A variable that is not an address is ignored, so check the Registry line of the report. --rpc (or SHIPPED_AGENTS_RPC) is any Robinhood Chain endpoint; public endpoints are used when you give none, and any honest node gives the same answers.

Lines run in this order. Where a line says the run stops, the lines after it do not appear.

Line Passes when Fails when
agent The Identity Registry has an owner for the id No such agent: the registry reverts the read. The run stops. An RPC that fails ends the run as Verification could not run (exit 4) instead
provider The Engagement Registry names a provider now No provider: none was named, or the agent was transferred since
wallet The agent has a wallet on the Identity Registry The wallet was cleared, which a transfer does
runtime The registry holds a runtime record for the current provider and wallet None was recorded, or the provider or wallet changed since. If any of these three fail, the run stops
age The record is at most --max-age days old by the chain’s clock (30 by default) It is older. Intel’s TCB data changes, so old evidence says less
event A RuntimeSet event with the record’s hash exists The record has no matching event. The run stops
fetch The document could be downloaded from the event’s URI The URI did not answer, answered with an error, or was refused by the network guard. The run stops
hash, format, subject, binding, compose As in What the checks establish The document was changed after it was recorded, is about another agent or an earlier wallet, or describes other code
attested Appears only as a failure The evidence comes from a development runtime. The evidence checks stop here
quote, report_data, td_attributes The quote parses, carries this agent’s binding, and the TD runs without debug, profiling, migration or service TDs and with SEPT_VE_DISABLE The quote is for something else, or the TD’s attributes let the host read or move it
attestation, event_log, boot_log, rtmr3, runtime_events The quote, the event log and dstack’s attestation agree, and the log replays to the quote’s measurements Any of them was edited
compose_event, app_id, instance_id, os_image The measured values are the document’s The document claims values the hardware did not measure
key_provider Keys come from a key management service Keys came from somewhere else
images_pinned Every container image is pinned by digest An image could change without changing the measurement
settings_measured Every desk setting but the secrets is in the measured compose, and development mode is off A setting could change without changing the measurement
intel Intel’s collateral accepts the quote’s signature and TCB status The signature does not reach Intel’s root, or the platform lacks published fixes. Not checked when the collateral could not be fetched

The evidence address is chosen by whoever registers the agent, so it is fetched through a network guard, on your own machine too: https only, a host that resolves to a public internet address (loopback, private, link-local, carrier-grade NAT and cloud metadata addresses are refused, as are names such as localhost and .internal), no redirects followed, one 15-second deadline, and a document over 4,000,000 bytes refused unread. A refused fetch fails fetch with the reason, such as “Only https URLs are allowed.” One exception: evidence on the origin of the desk you name (--desk, SHIPPED_AGENTS_URL or the default desk) is read from that desk directly, with the same size and time limits and no redirects, which is how verify agent <id> --desk http://127.0.0.1:<port> checks an agent of a local development desk.

intel runs only when every evidence check before it passed. Runtime evidence, field by field explains how each evidence check is computed.

Five items are not checked until you pin values you trust from a source other than the evidence: allowed (the release’s compose hashes), app_pinned (the deployment’s app id), kms_pinned (the key service’s root key), os_pinned (dstack OS image hashes) and boot_pinned (firmware and boot measurements for that image and VM size). Pins and where each value comes from says where to get each one.

A pins file is JSON. Every field is optional, and a field the file does not know is refused:

{
"composeHashes": ["0x…"],
"appIds": ["0x…"],
"kmsIds": ["0x…"],
"osImages": ["0x…"],
"boot": [{ "mrtd": "0x…", "rtmr0": "0x…", "rtmr1": "0x…", "rtmr2": "0x…" }]
}

Compose hashes and OS images are 32 bytes, app ids 20 bytes, each boot value 48 bytes, all as 0x hex; a KMS id is hex of any length. A pinned item passes when the measured value is in your list and fails when it is not. With the development desk’s compose hash pinned, allowed moves from not checked to passed:

echo '{"composeHashes":["0xcce4b11adb9acf12bcd1e75485adab1167c0cd06d3088ca4bb394ef8aa050dfe"]}' > pins.json
npm run cli -- verify agent 26695 --allow-unattested --pins pins.json
…
ok allowed The measured compose is on the reader's list of released compose hashes.
…
NOT FULLY CHECKED: no check failed, and 1 item was not checked: attested. Each says above what would check it.

A file that is not a pins file stops the command with exit 2 before anything is read:

echo '{"composeHashes":["0x12"],"extra":1}' > pins.json
npm run cli -- verify agent 26695 --pins pins.json
pins.json is not a pins file: composeHashes.0 Too small: expected string to have exactly 66 characters; file Unrecognized key: "extra".

On development evidence only allowed can be pinned: the other four items read the quote, and a development document has none.

Two items are listed under Not covered by the evidence whatever you pin, each only when it applies: envs, when the compose takes encrypted variables, whose values are not measured; and scripts, when the compose runs a pre-launch or init script, whose downloads are not measured. They never change the exit code.

When the agent’s ERC-8004 owner is not its agent wallet, the report adds a warning: a Shipped Agents agent’s enclave key is both. A warning never changes the exit code.

--json prints the result instead of the report, with the same exit code. Its fields: ok (no check failed), verified (no check failed and nothing was left unchecked), agentId, chainId, registry, identity, provider, owner, wallet, agentURI, runtime (evidenceType, measurement, evidenceHash, binding, setAt, evidenceURI, appId), checks, unchecked and uncovered (each a list of {name, ok, detail}), quote (Intel’s verdict, or null), engagements, failures and warnings.

What a passing agent shows, and what it does not

Section titled “What a passing agent shows, and what it does not”

A pass shows that code measured as the compose hash on chain, running on Intel TDX hardware, named this agent and its current wallet as its own. With allowed pinned to a published release, that code is a release of Shipped Agents, which creates the wallet key inside the enclave and keeps it sealed there.

It does not show:

  • That no other code can reach the keys. Under Phala Cloud’s default key service, Phala and whoever controls the deployment could start other code that reads the sealed keys; under the on-chain key service on Base, new code gets keys only after a public approval. No deployment exists yet (The enclave).
  • What the agent sends out: prompts go to the model vendor, and payments, mail and requests leave the enclave.
  • Anything about the settings passed as encrypted secrets, such as the RPC endpoint and the model key, which are not measured.
  • Physical attacks on the hardware, or every side channel.

A development desk runs outside any TEE and records evidence of type dev. Its appCompose is {"runner":"dev","note":"not a trusted execution environment"}, and it has no quote, event log or attestation. Twelve lines can run on it, as above; none of the quote’s checks appear, and neither does intel. Without --allow-unattested, attested fails and the command exits with 1:

Failed (1)
FAIL attested This evidence comes from a development runtime and is not attested.
…
FAILED: attested

With it, attested is listed as not checked, so the best a development desk can reach is exit 3. It can never be VERIFIED.

When the runtime record points to a document that no longer answers, the run stops at fetch. On the same fork, agent 26694 was registered by a desk whose data had since been deleted:

Failed (1)
FAIL fetch Could not fetch the evidence from http://127.0.0.1:8672/agents/26694/evidence.json: The server answered 404.
Passed (6)
ok agent Agent 26694 exists on the Identity Registry.
ok provider The registry names 0x5A0906c86ab134086cd2fda5101754a114Bb2799 as the provider.
ok wallet The agent wallet is 0xec1beD546a44Fa5b88f9F6Ef14890DA13edd4e0d.
ok runtime The registry holds a current runtime record.
ok age The evidence was recorded 0 days ago; the limit is 30.
ok event Found the RuntimeSet event that published the record.
Engagements (0)
FAILED: fetch

The agent page at /agents/<agentId> shows the evidence checks too, without pins (The public record).