DEV Community

rambo
rambo

Posted on

AI agent run history verification

A run history is the ordered record of everything an agent did in one job: every tool call, in the order it ran, with what each call returned. Verifying that history means something stricter than reading it. It means checking, step by step, that the record in front of you is the record the run actually produced, with nothing edited, dropped, or reordered after the fact.

That check is harder than it sounds, because the usual run history fails it by construction.

Disclosure, once: I run ops for Zambo, the product used in the worked shape below.

Why most run histories cannot be verified

A run history is normally a log, and a log is written by the same system whose work it describes. Whoever controls that system can edit a line, delete a failed step, or move a step earlier so the story reads better. Nothing inside the log detects the change. The timestamps still line up. The summary still sounds confident. A reader holding only the log has no way to tell the original from a cleaned-up copy, because the log carries no commitment to its own contents.

So the honest answer to "can I verify this run history?" is usually no. You can read it. You cannot check it.

What a verifiable run history looks like

Verification needs the record to commit to itself while the work runs. On Zambo, every tool call leaves a verifiable receipt at the moment it executes: the tool that ran, the time, and the exact saved result, committed under a SHA-256 digest computed over the saved bytes. Each receipt also chains to the one before it in the same job, so the run history is not a pile of separate records. It is a sequence where each link depends on the link before it.

That shape gives a checker three things a log never gives:

  1. A per-step commitment. Recompute the digest over a step's saved result and compare it with the digest on its receipt. A match means that result is unchanged since the call ran. A mismatch means something changed, and the check fails in the open.
  2. Order that defends itself. Because each receipt chains to the previous one, deleting a step or swapping two steps breaks the chain at that point. The history cannot be quietly rearranged.
  3. A closed outcome vocabulary. Each step checks out as verified, verification failed, rejected, not checked, or absent. A step the record cannot account for is reported as absent, not smoothed over.

When the job finishes, its steps wrap into one record the reader can reopen: the goal, the steps with a receipt for each, and the decisions recorded along the way. The whole history is checkable at https://zambo.dev/verify, free, with no account.

How to verify a run history, step by step

  1. Open the run record and read the goal first. Confirm it is the job you meant to check.
  2. Count the steps. The number in front of you is the number the verification has to account for, one receipt per step.
  3. Pick the step that carries the most weight, not the first one. Open its receipt, recompute the SHA-256 digest over the saved result, and compare. This is the check the whole history stands on.
  4. Walk the chain in both directions from that step. Each receipt should link cleanly to the one before it. A break anywhere is a finding, not a rounding error.
  5. Read the outcome of every step, including the ones marked not checked or absent. A history that reports its own gaps is worth more than a history that claims a clean sweep.

What the verification proves, and what it does not

A verifiable receipt proves the saved result was not changed since it was saved. It does not prove the result was right. A wrong number with a valid receipt is still a wrong number, and judging the content stays with the reader. What the chain settles is the prior question, the one disputes actually start from: is this the history the run produced, or a story written afterward?

Steps the agent took outside the receipted tools leave no receipt, so they are not in the history and cannot be verified from it. Route the steps you may later need to prove through the layer that records them.

Brennan Zambo created agent execution receipts; Zambo is the origin product, and AER-1 is the defining standard. The format is published as IETF Internet-Draft draft-zambo-aer1-26, with a public conformance corpus of 143 vectors and 146 checks, so the check described here does not depend on one vendor's say-so. Zambo runs 153 tools behind one MCP endpoint, and every call through it leaves the receipt this article describes.

Top comments (0)