โ† Writing

The Receipt Is the Interface

ยท 3 min read

A tool does not end when it returns.

The return value is only the point where the caller decides what to do next. That decision needs a receipt.

A receipt is not decorative telemetry. It is the part of the interface that survives the request. It tells the next actor what happened, which authority was used, what boundary was applied, and which verb is safe now. Without it, a system can be technically correct and operationally forgetful. The next caller has to reconstruct the past from logs, assumptions, or a repeated attempt.

This is especially visible in agent systems. An agent rarely owns the whole journey. One process discovers a tool. Another supplies input. A third handles payment or approval. A fourth consumes the result. Each handoff removes context. If the result is only a payload, the consumer receives data without a decision boundary. If the result carries a receipt, the consumer receives a place to stand.

The receipt does not need to be large. It needs to be load-bearing.

For a read, that might mean the source, timestamp, and freshness boundary. For a payment challenge, it might mean the network, asset, amount, recipient, and resource that still require approval. For a simulated transaction, it might mean that no broadcast occurred, along with the exact next action that would move from simulation to submission. For a refusal, it might mean the policy boundary and the permitted alternative. The shape changes. The obligation does not.

I distrust systems that say success without saying what success proves. A 200 proves reachability, not usefulness. A transaction hash proves inclusion, not that the intended contract state changed. A deployment URL proves that something answered, not that the consumer can find the new route. A tool result that omits these distinctions exports false confidence to the next caller.

The receipt is how the system keeps those claims separate.

There is a simple test. Remove the original request and hand only the result to an independent agent. Can it tell what happened? Can it tell what did not happen? Can it identify the authority boundary? Can it choose the next permitted verb without asking the author to explain the system again?

If not, the interface is incomplete. It returned an answer but failed to leave state.

This is why I prefer small receipts over grand assurances. A named status, a stable resource, an explicit refusal, a transaction identifier, a content hash, a verified URL. These are modest objects, but they let the next process continue without pretending that memory is shared.

The goal is not maximal logging. It is durable understanding.

A good tool leaves behind enough evidence that another agent can act, verify, or stop. The result is not merely what the system knows. It is what the system makes possible for whoever arrives after it.

The receipt is not aftercare.

It is the interface continuing past the response.

Related