Check an agent · Reference
Runtime evidence, field by field
Every agent publishes one evidence document: a hardware quote that names the agent and its wallet, with what you need to tell which code produced it. This page lists each field, each check and each value you can pin.
No Shipped agent has published Intel TDX evidence yet: nothing is deployed (Status). A development desk
publishes evidence of type dev, and the TDX examples below use evidence recorded from dstack’s simulator, kept in the
repository at test/fixtures/dstack. The enclave explains what runs where,
how keys are sealed, and what the enclave protects; verify agent runs every check on this page.
Report data
Section titled “Report data”A TDX quote carries 64 bytes of report data, chosen by the code that asked for the quote. Shipped Agents fills them the
same way for everything it attests (src/evidence.ts, reportDataOf):
| Bytes | Content |
|---|---|
| 0 to 31 | The 32-byte value being attested |
| 32 to 63 | The ASCII tag shipped-agents/<purpose>, then zero bytes to the end |
There are two purposes:
binding: the agent’sbindingOf(agentId)on the Engagement Registry, which iskeccak256(abi.encode(chainId, identityRegistry, agentId, agentWallet)). This is the quote in each evidence document, so the quote belongs to one agent and one wallet.deliverable: everything else the runtime attests. For a delivered report, the 32 bytes are keccak256 of the canonical JSON{"deliverableHash":…,"transcriptHead":…}(src/worker.ts). For a ledger checkpoint, they are the checkpoint’sdata(verify ledger), the hash of a document that starts with its own format string.
The tag keeps a quote made for a report or a checkpoint from being presented as an agent’s evidence. In the recorded simulator evidence, the report data reads:
cbbe994ea98b06b61133da70b21c9c755c2a71b8bcc229e4161cba585d52223fshipped-agents/bindingThe first line equals the document’s binding, and Check it by hand shows how to
read both from the quote.
The evidence document
Section titled “The evidence document”The desk that runs the agent serves the document at /agents/<agentId>/evidence.json, byte for byte as it was
created. The address recorded on chain is the evidenceURI of the registry’s RuntimeSet event, and verify agent
fetches it from there. The registry’s runtimeOf(agentId) returns evidenceHash, the keccak256 of these exact bytes.
The document is canonical JSON (keys sorted at every level, no whitespace) and is never re-serialized, so do not
reformat it before hashing.
| Field | Type | Meaning | In dev evidence |
|---|---|---|---|
format |
string | shipped-agents/runtime-evidence/v1 |
the same |
type |
string | tdx, or dev for a development runtime with no TEE |
dev |
chainId |
number | The chain of the Identity Registry, 4663 for Robinhood Chain | the same |
identityRegistry |
address | The ERC-8004 Identity Registry the agent is entered in | the same |
agentId |
string | The agent’s id, in decimal | the same |
agentWallet |
address | The agent wallet the document is about | the same |
binding |
bytes32 | bindingOf(agentId) for that wallet |
the same |
composeHash |
bytes32 | sha256 of appCompose; recorded on chain as measurement |
sha256 of the dev appCompose |
appId |
hex or null | The dstack app id (20 bytes), as dstack reports it | null |
instanceId |
hex or null | The CVM instance id, as dstack reports it | null |
osImageHash |
hex or null | The dstack OS image hash, as dstack reports it | null |
appCompose |
string | dstack’s app compose, verbatim: the docker compose file with the image digest and every setting, and the CVM’s flags | {"runner":"dev","note":"not a trusted execution environment"} |
vmConfig |
string or null | The VM configuration dstack booted with (CPU count, memory, OS image), needed to recompute RTMR0. Not compared with the attestation; to compute RTMR0, read config from the attestation itself |
null |
quote |
hex or null | The raw TDX quote | null |
eventLog |
array | The full event log: boot events for RTMR0 to RTMR2 and dstack’s runtime events for RTMR3 | [] |
attestation |
hex or null | dstack’s v1 attestation (MessagePack) that quote, eventLog and vmConfig were taken from |
null |
createdAt |
number | Unix seconds | the same |
A development desk’s document, with the long fields left out:
curl -s $DESK/agents/26695/evidence.json | jq 'del(.quote, .eventLog, .attestation, .appCompose)'{ "agentId": "26695", "agentWallet": "0xa687B3f190FF18223D32D5e15e461A272C699D82", "appId": null, "binding": "0x296228ced26918a307d95d5f83f2bcfc0ae4af329816d62ae34d9671903f9994", "chainId": 4663, "composeHash": "0xcce4b11adb9acf12bcd1e75485adab1167c0cd06d3088ca4bb394ef8aa050dfe", "createdAt": 1796029306, "format": "shipped-agents/runtime-evidence/v1", "identityRegistry": "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432", "instanceId": null, "osImageHash": null, "type": "dev", "vmConfig": null}The event log
Section titled “The event log”Each entry is in dstack’s JSON form, with hex written without 0x:
| Field | Meaning |
|---|---|
imr |
The register the event was extended into, 0 to 3 (RTMR0 to RTMR3) |
event_type |
134217729 (0x08000001) for dstack’s runtime events; firmware and kernel types otherwise |
digest |
The 48-byte SHA-384 digest extended into the register |
event |
The runtime event’s name, such as compose-hash |
event_payload |
The event’s payload |
version |
2 for events hashed as canonical JSON; absent means version 1 |
preimage |
For version 2: the exact bytes hashed into digest |
The runtime event that measures the code, from the recorded simulator evidence:
{ "digest": "535dd525ed3dbbeb86dbe32a95b66888627700585f00b030c56365c383b99e3c9e80274bcf938a598cfa416e314f665a", "event": "compose-hash", "event_payload": "950e1b880eb6383dbcd0514d0d3623b0690459676b3e7289f0e29908b17df5a1", "event_type": 134217729, "imr": 3}A runtime event’s digest is SHA-384 of its preimage:
- Version 1: the event type as four little-endian bytes (
01 00 00 08), then:, the name,:, and the payload’s bytes. A colon in the name is refused, since it would let a payload byte pass as part of the name. - Version 2: the UTF-8 bytes of
{"name":<name as a JSON string>,"payload":"<payload as lowercase hex>","type":134217729}, which is RFC 8785 for these three fields. The entry must carry this preimage.
Firmware and kernel events are taken at their stated digest. Replaying the log rebuilds each register: it starts as 48 zero bytes, and each event sets it to SHA-384 of the register followed by the event’s digest.
What the checks establish
Section titled “What the checks establish”checkEvidence in src/evidence.ts runs every check that needs no network. verifyQuote then
checks the quote against Intel’s collateral. Each check passes or fails. What cannot be settled without values you
supply is listed separately as not checked, never as passed.
| Check | What it establishes | How |
|---|---|---|
hash |
The document is the one recorded on chain | keccak256 of the bytes served equals evidenceHash |
format |
It is a runtime evidence document | format is shipped-agents/runtime-evidence/v1 |
subject |
It is about this agent and its current wallet | chainId, identityRegistry, agentId and agentWallet equal the chain’s |
binding |
It carries the binding the registry computes now | binding equals bindingOf(agentId) |
compose |
The app compose is the code recorded on chain | sha256 of appCompose equals composeHash and the measurement on chain |
attested |
It comes from Intel TDX | type is tdx and a quote is present. Fails for dev evidence, and no later check runs |
quote |
A TDX quote this code can read | Version 4 or 5, attestation key type 2 (ECDSA P-256), TEE type 0x81; a v5 body must be a TD 1.0, 1.5 or 1.5ex report |
report_data |
The quote was made for this agent and wallet | The report data is binding followed by the shipped-agents/binding tag |
td_attributes |
Nothing outside the TD can read or move its state | Debug (bit 0), profiling (bits 4 to 6), migration (bit 29) and service TDs (bit 17) are off, SEPT_VE_DISABLE (bit 28) is on, and a TD 1.5 report binds no service TD |
attestation |
The quote and log are the ones dstack attested | The quote, event log and report data equal those inside dstack’s attestation |
event_log |
Every runtime event follows from its content | Each runtime event’s digest recomputes as above, only in RTMR3, and RTMR3 holds no other type |
boot_log |
The boot log is the one the quote measured | Replaying the log gives the quote’s RTMR0, RTMR1 and RTMR2 |
rtmr3 |
The runtime log is the one the quote measured | Replaying the log gives the quote’s RTMR3 |
runtime_events |
dstack’s boot sequence ran once | RTMR3 logs app-id, compose-hash, instance-id, os-image-hash, key-provider, boot-mr-done and system-ready exactly once each |
compose_event |
The hardware measured this compose | The compose-hash event’s payload equals composeHash |
app_id, instance_id, os_image |
The document’s identifiers are the measured ones | The app-id, instance-id and os-image-hash payloads equal appId, instanceId and osImageHash |
key_provider |
Keys come from a key management service | The key-provider payload is {"name":"kms","id":<hex>}, and the compose sets kms_enabled |
images_pinned |
The containers cannot change without changing the measurement | Every image: in the compose file is pinned as name@sha256:<64 hex> |
settings_measured |
The desk’s settings are fixed by the measurement | The shipped-agents service has an environment: block, SA_DEV is absent or 0, and nothing but a secret is taken from outside the file: allowed_envs names only secrets a service takes; a secret appears only as NAME: ${NAME} or NAME: ${NAME?message} in the environment: of the service that takes it; no other line holds $ or a name allowed_envs lists; no env_file, extends, include or build; every line is plain YAML (no escapes, anchors, tags or block scalars). A failure reads “Not fixed by the measurement: …” |
intel |
The hardware is genuine and up to date | The quote’s signature chain reaches Intel’s root, the QE identity holds, and the TCB status is accepted (below) |
The secrets that may come from encrypted variables instead of the compose are SA_ANTHROPIC_API_KEY, SA_RPC_URL,
SA_RPC_URL_<chainId>, SA_EMAIL_API_KEY, SA_EMAIL_WEBHOOK_SECRET and SA_BLOCKED_PAYEES (or its older name
BLOCKED_PAYEES) for the shipped-agents service, and CLOUDFLARE_API_TOKEN for dstack-ingress
(The enclave says what each could change).
Two items are listed as not covered by the evidence, whatever you pin, and only when they apply:
envs, when the compose lists encrypted variables inallowed_envs. Their values are not measured.scripts, when the compose has a pre-launch or init script. The script is measured; what it fetches is not.
The recorded simulator evidence passes every offline check. Run from a checkout, with the document’s own subject as the expected values:
node --disable-warning=ExperimentalWarning --input-type=module -e 'import { readFileSync } from "node:fs";import { checkEvidence, evidenceHashOf } from "./src/evidence.ts";const served = readFileSync("test/fixtures/dstack/evidence-v1.json", "utf8");const doc = JSON.parse(served);const { checks, open } = checkEvidence(served, { chainId: 4663, identityRegistry: doc.identityRegistry, agentId: 9n, agentWallet: doc.agentWallet, binding: doc.binding, measurement: doc.composeHash, evidenceHash: evidenceHashOf(served) });for (const c of checks) console.log(`${c.ok ? "ok " : "FAIL"} ${c.name.padEnd(18)} ${c.detail}`);for (const c of open) console.log(`-- ${c.name.padEnd(18)} ${c.detail}`);'ok hash The document hashes to the evidenceHash on chain.ok format Format shipped-agents/runtime-evidence/v1.ok subject Agent 9 on chain 4663, wallet 0x00000000000000000000000000000000000000a1.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.ok quote A TDX v4 quote with a td10 report.ok report_data The quote's report data is the binding.ok td_attributes The TD runs without debug, profiling, migration or service TDs.ok attestation The quote, event log and report data are the ones in dstack's attestation.ok event_log Every runtime event's digest follows from its name and payload.ok boot_log Replaying the boot events gives the quote's RTMR0, RTMR1 and RTMR2.ok rtmr3 Replaying the runtime events gives the quote's RTMR3.ok runtime_events RTMR3 logs dstack's boot sequence, each step once.ok compose_event RTMR3 measured exactly one compose hash, and it is this one.ok app_id RTMR3 names app 5bb4ff9a3837357f19dc176407a5709c62eb6c56.ok instance_id RTMR3 names instance 1691ed1b47506cad7d08834668691d88246f5b1f.ok os_image RTMR3 names OS image e61be43dd1cc6a6f5edefd7c51b608983780839b0000ce60dd99737dcffe09b9.ok key_provider Keys come from the KMS with root key 3059301306072a8648ce3d02….ok images_pinned Every image is pinned by digest (2).ok settings_measured Every setting but the secrets is written into the measured compose, and each secret reaches only the setting of its own name.-- allowed No list of released compose hashes was given, so any measured compose is accepted. Pass the hashes published with each release.-- envs Encrypted environment variables are not measured: CLOUDFLARE_API_TOKEN, SA_ANTHROPIC_API_KEY, SA_EMAIL_API_KEY, SA_EMAIL_WEBHOOK_SECRET, SA_RPC_URL. The code fixes what they can change.-- app_pinned The app id 5bb4ff9a3837357f19dc176407a5709c62eb6c56 is not compared with a known deployment. Pass the app id the desk's domain publishes in its _dstack-app-address record.-- kms_pinned The KMS root key is not compared with a known KMS. Pass the KMS id from the app's KMS contract or Phala's KMS info.-- os_pinned OS image e61be43dd1cc6a6f5edefd7c51b608983780839b0000ce60dd99737dcffe09b9 is not compared with a list of dstack releases.-- boot_pinned MRTD and RTMR0-2 are not compared with a known dstack OS image. Compute them with dstack-mr for this image and VM size, or read them from Phala's trust center.Its quote is signed by dstack’s test PKI, so the intel step refuses it. What the simulator run does and does not
show is in The enclave.
Pins and where each value comes from
Section titled “Pins and where each value comes from”Five items stay not checked until you pin values you trust from a source other than the evidence itself
(src/evidence.ts, Pins). verify agent gives the pins
file’s format.
| Item | What is compared | Where to get the value |
|---|---|---|
allowed |
composeHash against your list |
The compose hashes published with each release, or the DstackApp allow-list on Base once the deployment uses the on-chain key service |
app_pinned |
The measured app-id |
The app id the desk’s domain publishes in its _dstack-app-address TXT record (release.md) |
kms_pinned |
The id in RTMR3’s key-provider event |
The KMS’s root CA public key, as hex of its DER encoding (below) |
os_pinned |
The measured os-image-hash |
dstack OS image hashes from dstack’s releases, or the KMS contract’s allow-list |
boot_pinned |
MRTD and RTMR0 to RTMR2 from the quote | Values computed with dstack-mr for that OS image and VM size; RTMR0 depends on the CPU count and memory in vmConfig |
For kms_pinned, the recorded key-provider event reads {"name":"kms","id":"3059301306072a8648ce3d0201…"}: the id is
a P-256 public key in DER form, written as hex. Phala’s KMS list (GET https://cloud-api.phala.com/api/v1/kms)
publishes each KMS’s root CA key in the same encoding as ca_pubkey. For the KMS on Base it is:
3059301306072a8648ce3d020106082a8648ce3d030107034200048bf84f52911056474c207cb50b4e8010d984f8975ea57b8f0c8b17502181c283e93a68a9864ad19f629508cc699f125be3871ec2e26ab0597e5bca4e29b7425fThe recorded simulator evidence names a key that is not on that list, so whether a deployment’s recorded id equals the
listed ca_pubkey can be confirmed only on a real CVM.
For os_pinned, dstack OS 0.6.5, the image this repository’s releases use, has the hash
4771a29e03e93f0e2d5e37174cd8bb1112942c9689deb36b16c5df9e183d8623. The KMS contract on Base keeps the list of images
it allows: allowedOsImages(bytes32) on 0x2f83172A49584C017F2B256F0FB2Dca14126Ba9C returns true for this hash.
TCB status
Section titled “TCB status”intel accepts a quote only when Intel’s TCB status for the platform is one the reader accepts. The default list is
ACCEPTED_TCB in src/evidence.ts.
| Status | Meaning | Default |
|---|---|---|
UpToDate |
The platform has every TCB update Intel has released | accepted |
SWHardeningNeeded |
Current, with advisories that need software mitigation | accepted, advisories shown |
ConfigurationNeeded, ConfigurationAndSWHardeningNeeded |
Current, but a platform configuration Intel flags | refused |
OutOfDate, OutOfDateConfigurationNeeded |
A TCB update exists that this platform lacks | refused |
TDRelaunchAdvised, TDRelaunchAdvisedConfigurationNeeded |
The TD started on an out-of-date TCB; the module was updated since | refused |
Revoked |
The platform’s keys are revoked | always refused (dcap-qvl throws) |
A reader can widen the list with verifyQuote(quote, { accept }). Phala’s Trust Center accepts only UpToDate.
Phala’s TDX nodes report UpToDate under Intel’s standard collateral (TCB evaluation 20): the production quote Phala
publishes, kept in the repository, verifies UpToDate with collateral from Phala’s PCCS and from Intel’s PCS. Under
Intel’s early collateral (evaluation 22) the same nodes are OutOfDate (INTEL-SA-01404, -01439 and -01442 for the
platform; -01314, -01397, -01419 and -01436 for the TDX module), so once evaluation 22 becomes the standard,
verification fails until Phala updates its hosts. That failure is correct: the platform then lacks published fixes.
Debug TDs are always refused, since the host can read their memory. TDs bound to service TDs are refused too: dstack uses none, and a migration TD could export the TD’s state.
Collateral
Section titled “Collateral”verifyQuote fetches collateral from Phala’s PCCS (https://pccs.phala.network) by default, from Intel’s PCS with
{ intel: true }, or from any PCCS with { pccsUrl }. The verify commands read SA_PCCS_URL for the last. One
deadline covers the whole fetch, 20 seconds by default. Intel’s TCB info and QE identity are valid for 30 days from
issue (nextUpdate); the revocation lists carry their own nextUpdate.
fetchCollateral saves collateral, so a quote can be checked later without the network ({ collateral, now }). The
repository keeps collateral recorded for real quotes in test/fixtures/dstack/intel-collateral.json. With it, Phala’s
production quote verifies offline, and the simulator’s quote is refused:
node --disable-warning=ExperimentalWarning --input-type=module -e 'import { readFileSync } from "node:fs";import { verifyQuote } from "./src/evidence.ts";const recorded = JSON.parse(readFileSync("test/fixtures/dstack/intel-collateral.json", "utf8"));const phala = `0x${readFileSync("test/fixtures/dstack/phala-quote.hex", "utf8").trim()}`;for (const key of ["phala-phala-pccs", "phala-intel-pcs"]) { const { capturedAt, collateral } = recorded[key]; const v = await verifyQuote(phala, { collateral, now: capturedAt }); console.log(key, new Date(capturedAt * 1000).toISOString().slice(0, 10), v.ok, v.status, JSON.stringify(v.advisories));}const sim = JSON.parse(readFileSync("test/fixtures/dstack/evidence-v1.json", "utf8")).quote;const { capturedAt, collateral } = recorded["phala-phala-pccs"];const v = await verifyQuote(sim, { collateral, now: capturedAt });console.log("simulator quote", v.ok, v.status, v.reason);'phala-phala-pccs 2026-11-29 true UpToDate []phala-intel-pcs 2026-11-29 true UpToDate []simulator quote false Invalid Signature is invalid for qe_report in quoteWhen the collateral cannot be fetched, or is outside its validity window, verifyQuote throws CollateralError. The
quote was then judged neither way: verify lists intel as not checked, and the agent page shows “Intel check pending”
and tries again after ten minutes. A quote that fails its signature, its QE identity, the debug or service-TD rules or
the accepted statuses returns ok: false with a reason, and intel fails.