DEV Community

Cover image for How do you hand off work between AI agents?
rambo
rambo

Posted on

How do you hand off work between AI agents?

An AI agent handover is a transfer of work from one agent to another that carries a verifiable receipt of what was done, so the receiving agent can recompute the record and check the work before building on it.

The handoff most teams actually do

One agent finishes a step and writes a summary. The next agent reads the summary and continues. The summary is the sender describing its own work, and the receiver has no way to check any of it. If the first agent dropped a step, misread a number, or quietly failed and wrote around the failure, the summary reads the same as an honest one. Every agent downstream then builds on a claim.

This is the agent version of "sent" being confused with "done". The message arrived. Nothing about the work was verified.

What a checkable handover carries

A handover that can be checked carries the work itself, not a description of it:

  • the saved result of each step, written when the step ran,
  • a digest of each saved result, so any later change shows up as a mismatch,
  • a public receipt for each step that anyone holding the link can recompute,
  • and, stated on the record, what the record does not prove.

That last item is the one most handover formats skip. A receipt proves the saved result is the result the call produced, unchanged since. It does not prove the result was right. A handover that says both things plainly is worth more than one that claims everything.

The receiving agent's job

The receiver's first step is not to continue. It is to check: recompute each step's record and compare it against the receipt. If they agree, build on the work. If they disagree, stop. A mismatch is not an invitation to repair the record quietly, because a repaired record proves whatever the repairer wanted it to prove. The mismatch is the output. It surfaces, with the record attached, and a human or the next agent decides what happens.

Fail closed, in other words. The automation stops the line; the judgment call after that stays human.

A two-step example

A small job run today, two price lookups in one session:

Any agent picking this job up can open both receipts, recompute both records, and know the numbers it is continuing from are the numbers the calls actually returned. Whether Coinbase's price was the right price is a separate question, and the receipts are honest about not answering it.

Checking one yourself

Receipts in this format can be checked free at https://zambo.dev/verify/ with nothing to install: paste a receipt, get a verdict computed from the record itself. One check is free. A full day of checking runs on the Day Pass at https://zambo.dev/day-pass/ . The standard behind the format is AER-1, an open draft by Brennan Zambo, and the public corpus of test cases is the same one third-party checkers run against their own tools.

The short version: never hand a summary to the next agent when you can hand it the work, the digest, and the receipt. Summaries ask for trust. Records allow a check.

Top comments (0)