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.
- Make two
live_pricecalls and onememory_recallcall using the same_session_id. - Call
workflow_closewith that same session. It returns the liveworkflow_id,merkle_version, orderedchildren, andmerkle_root. - Fetch
https://zambo.dev/api/workflow/{workflow_id}. Confirm its version, root, and ordered receiptoutput_hashvalues match the close response. - For each child, fetch
https://zambo.dev/api/v2/receipt/{receipt_id}/verifyand confirm itschecks.commitment_matchesresult. 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.
Workflow 2865eff7-ef50-4571-bb88-f9d3622dd4c6 is a live three-step record. Its ordered receipt IDs and leaf hashes are:
- Step 1 · live_price
a21cda22-8724-43c7-94a3-7363fc460e935fc1288c9c23f837990f1bca0c24893846457d81983f51f4e75aa5284ebd030c - Step 2 · live_price
ffa839dd-2ce0-455c-9275-28aecffc872cc35ee87ff46ba0c6fc7d0c539d98f06e35c30f1abd50fa17574b140e2c2fb7dc - Step 3 · memory_recall
29283ba2-b0f2-4969-9c6e-0e8a3e19cff3af73e5f7daf614d8bf8f27619fc7f81fef398e7ab01b0e3d41563bbdc3bb7f5a
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
- Fetch
/api/workflow/{id}and readmerkle_version,merkle_root, and its ordered receipts. - For
receipt-id-v0, hash each receipt ID as UTF-8. Forseq-output-v1, hash1:output_hash,2:output_hash, and so on as UTF-8, with the prefix removed and hash lowercased. - Hash parent pairs as concatenated raw 32-byte digests; duplicate the final digest at each odd-width level.
- 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.
Open the receipt verifier · Open the live legacy workflow JSON · View pricing · Install the MCP connection