Fuaranfuaran

The source for generative UI

Reproducible board snapshots

A board renders a tree against the data its host furnishes. Resolution is a pure function of the two, with the clock furnished by the host rather than read, so naming both exactly is enough to render the same data again. A board snapshot is that naming, and its hash is the identifier a bug report or an audit trail can quote.

What the record holds

PartHow it is held
the treereferenced: a sha256: over its canonical wire text
each live sourcereferenced: the op stream, its length and its head hash
the bound parameters the tree readsembedded as canonical values
the pinned Now and the localeembedded

The snapshot's identifier is a sha256: over the record's canonical text. Because a live source is named by its head, a stream that has grown since still reproduces the value it held then, and a stream whose history was rewritten is refused rather than read.

What it refuses

What cannot be reproduced is refused, never approximated:

  • a live source the host keeps no op stream of;
  • a computed closure or a custom renderer, whose code the wire form does not carry;
  • a stored value with no exact wire form;
  • a different tree from the one recorded;
  • a stream whose history does not end at the recorded head.

A host capability's result is not in the record, so a reproduced board answers any such call with a typed error, not a plausible value. The reproducing host still supplies its own renderer, message catalogue and evaluation store.

The evidence

  • The package readme shows capture, hash, encode, decode and reproduce.
  • The source states what is embedded, what is referenced and what is refused.
  • The tests exercise capture and reproduction.

The determinism this rests on is the same one the pipeline guarantees describe: every conformant host computes the same answer for the same pipeline.

Back to Data in the interface.