Offline verification
A proof file is checked on your own machine with the network off. One page opened from disk, or one command, checks every signature and digest in the file and names the check that failed.
On this page
| Capability | Runtime | Status |
|---|---|---|
Reopen a sandbox query, method or workflow using its run_id and result_digest | Sandbox | Live |
| Inspect proofs from configured public-test Access | Sandbox | Preview |
| Download the synthetic proof and test root and run the standalone HTML or Node verifier offline | Sandbox | Preview |
Check a sandbox answer
Every query, method and workflow answer from the sandbox names the run that computed it.
POST /api/sql/runSELECT COUNT(DISTINCT auction_id) AS auctions FROM winscurl -sS --fail-with-body https://sandbox.precise.ai/api/sql/run \
-H 'content-type: application/json' \
-d '{"sql":"SELECT COUNT(DISTINCT auction_id) AS auctions FROM wins"}'import json, sys, urllib.error, urllib.request
SQL = """
SELECT COUNT(DISTINCT auction_id) AS auctions FROM wins
"""
request = urllib.request.Request(
"https://sandbox.precise.ai/api/sql/run",
data=json.dumps({"sql": SQL}).encode(),
headers={"content-type": "application/json"},
method="POST",
)
try:
with urllib.request.urlopen(request) as response:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(answer["run_id"], answer["result_digest"])
for row in answer["rows"]:
print(row)const sql = `
SELECT COUNT(DISTINCT auction_id) AS auctions FROM wins
`;
const response = await fetch("https://sandbox.precise.ai/api/sql/run", {
method: "POST",
headers: {"content-type":"application/json"},
body: JSON.stringify({ sql }),
});
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const answer = JSON.parse(text);
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer.run_id, answer.result_digest);
console.table(answer.rows);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "query",
"arguments": {
"sql": "SELECT COUNT(DISTINCT auction_id) AS auctions FROM wins"
}
}
}curl -sS --fail-with-body https://sandbox.precise.ai/api/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "query",
"arguments": {
"sql": "SELECT COUNT(DISTINCT auction_id) AS auctions FROM wins"
}
}
}'-- Paste into the duckdb shell. It reads the same public Parquet files the sandbox reads.
CREATE OR REPLACE VIEW wins AS SELECT * FROM read_parquet('https://sandbox.precise.ai/data/parquet/wins.parquet');
SELECT COUNT(DISTINCT auction_id) AS auctions FROM wins;The answer counts 250,000 auctions, measured on sample data, and carries a run_id and a result_digest. Fetch the stored record with the id from your own answer.
base=https://sandbox.precise.ai
answer=$(curl -fsS "$base/api/sql/run" -H 'content-type: application/json' \
-d '{"sql":"SELECT COUNT(DISTINCT auction_id) AS auctions FROM wins"}')
run_id=$(printf '%s' "$answer" | jq -er '.run_id')
curl -fsS "$base/api/runs/$run_id"The record holds the method and its version, the input digest, the result digest and the rows. The run record is process-local. A restart or a different backend can lose the lookup. Keep the returned digest and original output together for later comparison.
Check a proof file with no network
Save the offline verification kit and unzip it, or save the individual files below into one directory. The sample is the overlap-floor recording from the public-test app. Both owners used synthetic data and a generated test authority.
- Signed room proof
- Public test-authority root certificate
- Standalone HTML verifier
- Standalone Node verifier
- SHA-256 checksums for the four files
Disconnect the network. Open verify.html from disk, choose the downloaded proof, select A root certificate I supply, and choose root.pem. The page names each check, the trust tier and the selected root. The same file works from the command line.
shasum -a 256 -c SHA256SUMS
node verify.mjs proof.json --pki-root root.pem --json > verification.json
jq -e '.ok and .trust_root == "supplied_test_root" and (.checks | length == 9)' verification.jsonThe supplied root verifies the room's signatures under a synthetic authority. With the built-in Google root, node verify.mjs proof.json --json exits 1 and reports ok: false, tier: "unverified", trust_root: null. Both commands inspect all nine checks. For the Rust implementation run precise-room verify --proof proof.json --pki-root root.pem.
PASS Canonical digests of every part
envelope sha256:87a3110b66ef
PASS Both owners approved this exact envelope
2 organization signatures, 2 passkey approvals
PASS The attested worker ran the named image with a locked launch policy
ES256 token chains to a root supplied to this verifier; image sha256:570eee4c9ba4; hardware TEST_AUTHORITY_NO_HARDWARE; zone us-central1-a
PASS The worker image carries both required signatures
signed by both keys the envelope names
PASS Both matching pipelines normalize identically
5 of 5 canary hashes agree on both sides
PASS Both owners' ledgers recorded the release within budget
A: entry 1 spends 0 epsilon, 1 query; B: entry 1 spends 0 epsilon, 1 query
PASS The run's key signed this result
signature and result digest verified
PASS Released counts and membership follow the signed policy
exact counts, floor 100
PASS Merkle inclusion of the run in its commitment tree
11 leaves, root sha256:be1e093fff97
trust merkle_local (supplied_test_root)
note checked against a root you supplied, not Google's; this says nothing about hardware
VERIFIEDNewly generated Partner Clean Room proofs use two native precise.commitment-leaf/v2 leaves (room_envelope and room_execution). Both the Rust and JavaScript verifiers detect the leaf schema automatically, so archived 11-leaf v1 proofs like the downloadable sample above continue to verify.
The nine checks
| Id | Fails when |
|---|---|
canonical | Any part of the file changed after the run signed it |
approvals | A signature, a passkey challenge or a card is not its owner's, or the run happened after the envelope expired |
attestation | The token does not chain to the trusted root, or a launch claim is unsafe |
image_signatures | Either required signature on the worker image is missing or wrong |
canary | The two sides' format-check hashes differ from the standard's |
ledger | A link is broken, the charge is not what the question costs, or a budget is exceeded |
result_signature | The run's key did not sign this result, or the result's digest does not match |
release_rule | A released count, a membership label, a threshold or an expiry breaks the signed policy |
merkle | The run is not in its commitment tree, or the file claims a public anchor |
The report also names its trust root: google_confidential_space for the pinned root, or supplied_test_root when you handed the verifier a root of your own. With --json the same report comes back as ok, tier, trust_root and the nine checks.
A test authority says nothing about hardware
A proof signed by a test authority verifies only when you hand the verifier that authority's root with --pki-root. An attestation failure yields trust_root: null.
Every proof on this portal is signed by a test authority. A proof from confidential hardware follows the first hardware run, which is next to build.
Trust levels and the publication order
A proof gains trust in a fixed order. Each step adds one thing a stranger can check.
| Verification step | What the sample establishes | Runtime | Status |
|---|---|---|---|
| 1. Sign the digest | The supplied run key signed the recorded bytes | Sandbox | Preview |
| 2. Verify RFC 9162 inclusion | The run occupies a position in the local commitment tree (merkle_local) | Sandbox | Preview |
Two planned steps have no deployment to check. Publication of digests to AliceNet would establish an external order and time. An Ethereum storage proof would then allow checking that anchor against Ethereum.
A proof view shows one of four words.
| Word | Meaning | Today |
|---|---|---|
| Signed | The file is as it was signed, by a key the checker knows (signed_local or merkle_local) | Every proof that passes its checks |
| Pending | The file is as it was signed, and it names an anchor that is still to be checked | No file names an anchor yet |
| Checked against Ethereum | The file is as it was signed and its anchor on Ethereum was checked (chain_anchored) | The designed next level, after anchoring is built |
| Not verified | A check failed | Any file that fails a check |
Today every proof reaches Signed at most. Both room verifiers refuse a file that claims a public anchor, because an anchor cannot yet be checked offline.
Proof files in the app
The unified Access public-test server serves proof files over REST and MCP. Its app is a client of that same server. GET /api/v1/proofs lists proofs for the sample book. This response is trimmed to the first proof.
GET /api/v1/proofscurl -sS --fail-with-body "$PRECISE_URL/api/v1/proofs"import json, os, sys, urllib.error, urllib.request
try:
with urllib.request.urlopen(os.environ["PRECISE_URL"] + "/api/v1/proofs") as response:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(json.dumps(answer, indent=2))const response = await fetch(`${process.env.PRECISE_URL}/api/v1/proofs`);
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const answer = JSON.parse(text);
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_proof_files",
"arguments": {}
}
}curl -sS --fail-with-body "$PRECISE_URL/api/mcp" \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_proof_files",
"arguments": {}
}
}'Example answerSample Book · Synthetic Data
{
"proofs": [
{
"proof_id": "partner-data-overlap-floor",
"kind": "partner_data_result",
"title": "Partner Clean Room: overlap count, exact counts",
"issued_at": "2026-11-24T22:51:36.974Z"
}
]
}GET /api/v1/proofs/partner-data-overlap-floorcurl -sS --fail-with-body "$PRECISE_URL/api/v1/proofs/partner-data-overlap-floor"import json, os, sys, urllib.error, urllib.request
try:
with urllib.request.urlopen(os.environ["PRECISE_URL"] + "/api/v1/proofs/partner-data-overlap-floor") as response:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(json.dumps(answer, indent=2))const response = await fetch(`${process.env.PRECISE_URL}/api/v1/proofs/partner-data-overlap-floor`);
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const answer = JSON.parse(text);
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_proof_file",
"arguments": {
"proof_id": "partner-data-overlap-floor"
}
}
}curl -sS --fail-with-body "$PRECISE_URL/api/mcp" \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_proof_file",
"arguments": {
"proof_id": "partner-data-overlap-floor"
}
}
}'Example answerSample Book · Synthetic Data
{"schema":"precise.proof/v1","title":"A partner-data result","subject":{"kind":"partner_data_result","id":"partner-data-overlap-floor","content_digest":"sha256:30382cb2fb43e36fc0839ee440b3ff95d0590107f02512ed18fa36175e75c4c6","issued_at":"2026-11-24T22:51:36.974Z","sample":true}}The full file adds an outer Ed25519 signature, the inner room proof and its public test root. Submit that entire file to the same instance so it can resolve the outer signer. For the downloadable bare room proof send the raw proof and public root as follows from the directory containing the downloads.
jq -n --slurpfile p proof.json --rawfile r root.pem '{proof:$p[0],pki_root_pem:$r}' |
curl -fsS "$PRECISE_URL/api/v1/proof/verify" -H 'content-type: application/json' --data-binary @- |
jq '{ok,level,words,checks:[.checks[].id]}'The bare proof returns nine room.* checks including room.release_rule. An outer partner-data file adds the wrapper checks. On this release the REST and MCP wrappers return level and human-readable root notes. They omit the standalone verifier's machine-readable trust_root. A program enforcing a particular authority should use the downloadable verifier and compare both ok and trust_root. A malformed document produces this response excerpt.
POST /api/v1/proof/verifycurl -sS --fail-with-body "$PRECISE_URL/api/v1/proof/verify" \
-H 'content-type: application/json' \
-d '{"file":{"hello":1}}'import json, os, sys, urllib.error, urllib.request
BODY = {"file": {"hello": 1}}
request = urllib.request.Request(
os.environ["PRECISE_URL"] + "/api/v1/proof/verify",
data=json.dumps(BODY).encode(),
headers={"content-type": "application/json"},
method="POST",
)
try:
with urllib.request.urlopen(request) as response:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(json.dumps(answer, indent=2))const body = {
"file": {
"hello": 1
}
};
const response = await fetch(`${process.env.PRECISE_URL}/api/v1/proof/verify`, {
method: "POST",
headers: {"content-type":"application/json"},
body: JSON.stringify(body),
});
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const answer = JSON.parse(text);
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "verify_proof_file",
"arguments": {
"file": {
"hello": 1
}
}
}
}curl -sS --fail-with-body "$PRECISE_URL/api/mcp" \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "verify_proof_file",
"arguments": {
"file": {
"hello": 1
}
}
}
}'Example answerSample Book · Synthetic Data
{"ok":false,"kind":"unknown","level":"unverified","words":"Not verified","pending":false,"checks":[{"id":"file","title":"This is a proof file","ok":false,"detail":"Expected precise.proof/v1 or precise.room.proof/v1."}]}The MCP tool verify_proof_file and the proof-verifier card call the same Access checker. All six current fixture proofs pass the canonical room checks with their supplied roots. Proof files from the earlier sample fail the current rules; keep them only for historical comparison. Partner Clean Room