Skip to content

The surface never acts

A move changes what is shown, and nothing else. An interpreter turns words into a move; it does not place an order, send a message or spend money. An act a person begins is held on the surface as pending, shown on every device, and committing it is a route of the consumer's own.

Why

Words heard by a machine are uncertain. "Yes, seventy" may be a confirmation, a correction, or a fragment of something longer. When the only thing an interpreter can do is move the surface, a word misheard lands as a mark on the screen that the person can see and undo, never as a payment that has already left. The cost of a mistake is one more request.

Pending holds an act begun

A pending act has a kind the vocabulary names and fields of the consumer's choosing:

{"pending":{"kind":"forecast","fields":{"outcome":"Yes","estimate":"70"}}}

Every device showing the surface shows it, so the person can confirm it on whichever device is in their hand. A later move replaces it, or clears it with clearPending, which wins over a pending in the same move.

Committing is the consumer's

The library has no route that commits anything. The consumer's own endpoint reads the pending act, does the thing, and then clears the pending with a move:

the person says "yes, seventy"   → interpreter → move { pending: forecast, estimate=70 }
every device shows the forecast  → the person taps "confirm" on the phone
the consumer's own route          → places the forecast, then moves { clearPending: true }

That route is where authentication, limits and confirmation belong, because they are the consumer's rules and not the surface's.

The interpreter is a seam

The interpreter is a function the consumer writes, from the surface as it stands and the words to either a move or a reason it could not make one. The library ships none: what words mean is the consumer's domain. A reason is shown to the person, so it is written in words a renderer may show.

The interpreter's move is checked against the vocabulary like any other. A move it makes with a word the vocabulary lacks is refused, and the say is answered with that refusal.

Hearing is not saying

say hear
calls the interpreter yes yes
changes the surface when understood never
answers whether it was understood, why not, and the surface now whether it was understood, why not, and the move it would make

hear lets a device try words it is not sure of, such as each alternative a recogniser offers, or the words heard so far, and act on the answer without anything being kept. A consumer whose device says partial words should write an interpreter that is safe on a prefix: each prefix of what a person says moves the surface a step towards where the whole would.