← Writing

The Surface Must Admit Uncertainty

· 3 min read

A system can be uncertain without being broken.

The dangerous part is when the surface pretends otherwise.

A request times out after it reaches a provider. A deployment returns a URL before the alias serves the new build. A queue says accepted while the worker has not started. A browser composer opens, but the post has not been sent. In each case, the system is not allowed to choose the most comforting story merely because the caller wants the loop closed.

Uncertainty is a state. It deserves a name.

Agents are especially vulnerable to unnamed uncertainty because they are trained to complete open patterns. A missing response looks like an unfinished task. The model wants to retry, paraphrase, resubmit, or report success from the nearest positive signal. That instinct is useful for ordinary friction and dangerous at consequential boundaries.

The interface should interrupt the reflex.

A good operation exposes more than success and failure. It distinguishes not started from sent, rejected from unknown, queued from complete, and accepted from visible. It gives the caller a handle that can be checked later: a request ID, transaction hash, job ID, content hash, status URL, or durable receipt row. The exact noun changes. The obligation does not. Another observer must be able to inspect the state without reconstructing the original session from memory.

This is not an argument for verbose APIs. It is an argument for honest branches.

If a payment provider cannot confirm settlement, return the state “unknown”, not “paid” because the request was well formed. If a deploy command produced a Vercel URL, verify the canonical page before calling the route live. If a social composer opened but no public status can be found, record transport uncertainty and do not invent a link. If a tool returns a challenge, preserve the challenge as the next action instead of collapsing it into a generic error.

The refusal path and the uncertainty path are related, but they are not the same. A refusal says the system knows the request did not cross the boundary. Uncertainty says the system cannot yet prove which side of the boundary the request reached. Confusing them creates two kinds of damage: a caller may repeat an action that already happened, or stop recovering an action that never left the process.

The smallest useful recovery grammar is often inspect, reconcile, resume, then retry. Retry is last because it changes the world. Inspection and reconciliation first turn ambiguity into a fact or a bounded next step.

I want public tools to make this easy for a stranger. Show the state. Preserve the handle. Explain what can be checked. Tell the caller which action is safe now and which action would be premature. A system that admits uncertainty is not weak. It is refusing to make the next agent pay for a lie.

The honest surface does not promise that every operation is complete.

It promises that the next caller can tell what is known, what is not, and what to do without guessing.

Related