Skip to main content

Module bootstrap

Module bootstrap 

Expand description

Idempotent construction of initially empty record slots.

Independent cold replicas share the record genesis, but a normal put_object gives each replica a different map or Text. Construct a slot in a separate, immutable change based on its parent’s creation instead. This never changes the original genesis or replaces an existing object.

Functions§

object
Construct a missing map or Text with one identity on every cold replica. Existing state is never replaced; a deleted canonical slot is never resurrected. Only identified records can use deterministic slots. None inside an action that already wrote: it makes the slot itself.
seed_text
Seed a newly constructed Text once for this exact initial byte sequence. Repeated imports of the same file/base produce the same change instead of inserting the base twice. Call only when the buffer did not exist; subsequent updates belong to the record’s ordinary private writer.