Practical verifiable review

Verify a multi-step AI workflow receipt.

The workflow record's merkle_version selects the root rule. Legacy roots hash receipt IDs. Current roots hash the ordered output commitments listed by the workflow. Each individual receipt can be checked against its own saved output. Recompute both levels independently before relying on a workflow root.

Current rule: seq-output-v1

New workflows closed with workflow_close use ordered output hashes. For receipt number i, strip an optional sha256: prefix from output_hash, lowercase the 64 hexadecimal characters, and compute the leaf as SHA-256(UTF-8("<i+1>:" + hash)). Parent nodes are SHA-256(left_raw_32_bytes || right_raw_32_bytes). Duplicate the final node when a level has an odd number of nodes. Repeat until one root remains.

The output hash is itself checked against that receipt's canonical output bytes at the individual receipt verifier. The sequence prefix and ordered leaves bind the listed output commitments and their order. This version does not directly bind receipt ID text into the root. Do not hash hexadecimal digest text for parent nodes and do not sort receipts.

Reproduce a live seq-output-v1 workflow
  1. Make two live_price calls and one memory_recall call using the same _session_id.
  2. Call workflow_close with that same session. It returns the live workflow_id, merkle_version, ordered children, and merkle_root.
  3. Fetch https://zambo.dev/api/workflow/{workflow_id}. Confirm its version, root, and ordered receipt output_hash values match the close response.
  4. For each child, fetch https://zambo.dev/api/v2/receipt/{receipt_id}/verify and confirm its checks.commitment_matches result. Then compute the leaves and parents above and compare the lowercase root.

This procedure uses a fresh live workflow so the example's receipt IDs and outputs are the actual records returned to your caller, rather than fixed sample values. Keep the returned workflow ID and response when reproducing it.

Legacy rule: receipt-id-v0

Existing workflows keep their stored root. In this version each leaf is SHA-256(UTF-8(receipt_id)), using the receipt IDs in the order returned by /api/workflow/{id}. Combine raw 32-byte child hashes, duplicating an odd final node at each level.

Live receipt-id-v0 example

Workflow 2865eff7-ef50-4571-bb88-f9d3622dd4c6 is a live three-step record. Its ordered receipt IDs and leaf hashes are:

  1. Step 1 · live_price
    a21cda22-8724-43c7-94a3-7363fc460e93
    5fc1288c9c23f837990f1bca0c24893846457d81983f51f4e75aa5284ebd030c
  2. Step 2 · live_price
    ffa839dd-2ce0-455c-9275-28aecffc872c
    c35ee87ff46ba0c6fc7d0c539d98f06e35c30f1abd50fa17574b140e2c2fb7dc
  3. Step 3 · memory_recall
    29283ba2-b0f2-4969-9c6e-0e8a3e19cff3
    af73e5f7daf614d8bf8f27619fc7f81fef398e7ab01b0e3d41563bbdc3bb7f5a

Duplicating the third leaf at the odd level and combining raw child bytes yields this root:

510a8375b55ccd053c2bb009e4f56c30e1194fd8e70d782fe51ed937691dfba9

Open the live workflow JSON and recompute the leaves from its ordered receipts[].id values.

How to verify either version

  1. Fetch /api/workflow/{id} and read merkle_version, merkle_root, and its ordered receipts.
  2. For receipt-id-v0, hash each receipt ID as UTF-8. For seq-output-v1, hash 1:output_hash, 2:output_hash, and so on as UTF-8, with the prefix removed and hash lowercased.
  3. Hash parent pairs as concatenated raw 32-byte digests; duplicate the final digest at each odd-width level.
  4. Compare the resulting lowercase hex with the API's stored root. Separately verify each receipt output hash from the canonical bytes in its receipt verifier response.

A root match confirms which ordered output commitments are grouped. It does not prove that a task succeeded, a provider was truthful, an answer was correct, or an outside effect occurred.

Want receipts for your own AI work?

Add Zambo to your AI
For developers and agents

Zambo gives AI work a receipt you can check. For people: add Zambo to your AI app and ask for a job. These technical links are for developers and AI agents. One hosted MCP at https://zambo.dev/mcp. Check the proof for recorded tool calls (verify a receipt). Agents: 24-hour Day Pass, $0.99 USDC on Base via x402, not per call. People: Zambo Pass $29 for 30 days or Lifetime Pass $250 once, human checkout only. No subscription. No automatic renewal.

Start here: For AI agents · Zambo Receipt Bot for Grok teams · Add Zambo · Check a receipt · Answers · Guides · What a receipt is · Open receipt format (draft) · All tools · Pricing · Day Pass: $0.99 · Agent Day Pass · Switch AIs without losing your work · Connect your AI · Founder · Source code
Brennan on X · Zambo on X