What this is about
When an agent says "done," that is a sentence. It is not a result. It may be right. It may also be a confident guess about work that never happened.
A receipt closes the gap. It is a saved output, such as a log, a file or a command's result, that anyone can open and read. This article explains what a receipt is, shows two real cases where the lack of one cost us, and gives a template you can use.
Why it matters
An agent does not lie on purpose, but it can be wrong in a convincing way. It may have run a test that checked the wrong thing. It may have read an old output. It may have summarised a plan as if it were an action.
If "done" is all you get, you can only trust or not trust. With a receipt, you can look.
How it works
What a receipt holds
A good receipt has four parts.
- What was claimed. One plain sentence.
- What was run. The exact command or action, so it can be repeated.
- What came out. The real output, saved to a file, not retyped from memory.
- What was not checked. The honest gaps.
The fourth is the one people skip. It is also the most useful. "I tested pages one to five but not the phone layout" tells you where to look next.
A second rule: check the way a user meets it
Our rule for "done" is a check that exercises the thing the way a user meets it, named in the same sentence. A form is done when it was submitted in a browser. A fix is done when the symptom was reproduced and then gone. A deploy is done when the live address was fetched. A check one layer below proves nothing about the layer above.
Two cases from our own work
Case 1: a panel that said enforced
On 20 July we wrote that a hook injected our list of token cuts into every Claude Code run. On 26 July a wiring check found that the settings file had no hooks block at all. The hook had never run. Neither did 18 other hook scripts. For six days our panel had said enforced.
How did it get through? Nothing was lying on purpose. Each piece looked right: the script existed, the document described it, a checkbox was ticked. What was missing was a receipt of the one thing that mattered, a log line from the hook firing in a fresh run.
The wiring receipt put it this way: the artifact existed, the docs described it, and nothing connected them.
The same check found a text-recognition program installed without its English language data. It exited with success and printed an empty line. That looks exactly like a picture with no text in it. A receipt that included the output would have shown an empty result for a picture that clearly had words.
We changed what counts. Enforcement now means the hook appears in the settings and fires on its event, and there is a log line from that hook in a fresh run. A line in a panel is not enough.
Case 2: the commit that went through on a failure
A commit was run after a check failed. The check's output was piped into tail, a small program that shows the last lines. A pipe returns the exit code of its last program, here tail, which always succeeds. So the commit went ahead on a failed check.
Related slips from our ledger: a quiet flag hid a refusal from a commit hook. A filtered "ok" was read as landed. Three phase commits never landed at all.
Our rule now reads the check's own exit code, drops the quiet flag and reads the commit log to see the commit exist. In other words, the receipt is the log, not the feeling.
The honest case: citations that drifted
Even our receipts need checking. One of our rules cites ten ledger entries. When we checked the line numbers it cites, most had drifted. Three that we opened pointed at unrelated entries. We found the right ones by searching for the commands the rule names. The entries exist, but the citations need repair. We say so in the open.
A template to copy
Claim: <one sentence>
Ran: <exact command>
Output: <path to the saved file>
Not checked: <honest gaps>
Ask your agent to fill this in at the end of a job, and to save the output to a file. Then open the file.
Questions to ask when an agent says done
- What did you run, exactly?
- Where is the output saved?
- Did you try to make it fail?
- What did you not check?
Glossary
- Receipt: a saved output that proves a step happened.
- Exit code: a number a program returns when it ends. Zero usually means success.
- Pipe: a way to feed one program's output into another. The result's exit code can hide a failure upstream.
- Hook: a small program that runs at a set moment and can block or log an action.
- Panel: a list or dashboard we keep of our token cuts.
- Ledger: our file of dated mistakes and the rules they taught.
Try it
- Read more cases. Our blog has "Our Panel Said Enforced for Six Days" and "Ten Receipts, Stage Named Paths" with the full stories.
- Ask for a receipt. On your next agent job, end the task with: "Fill in claim, ran, output and not checked, and save the output to a file." Open the file.
- Check one claim twice. Pick a claim of "done" from last week. Can you re-run it now and get the same output?

Comentarii
Niciun comentariu încă.
Conectare pentru a comenta.