Skip to main content

Module session_values

Module session_values 

Source
Expand description

Ultron session values: the documents of the local services, host modules, task journal, definition registry, usage ledger and memory journal kept as values of the session itself (format-4 session journal), as the TypeScript worker keeps them (createSessionTaskStore at ultron.tasks/root, createSessionModuleStore at ultron.module/<name>, createSessionDefinitionStore at ultron.definitions/root, createSessionUsageStore at ultron.usage/root, the memory journal at ultron.memory.state/root, the local services at ultron.local/<key>).

Because they are session values, resuming a session restores them, a tree fork copies them at the fork point, and deleting a fork leaves its source untouched: no state lives beside the session to drift from it (A07).

Structsยง

SessionDocument
One session value read and replaced whole (a module store, the task journal, the usage ledger).
SessionKeyed
Keyed session values of one namespace; a listing scans the keys with a prefix (scanValues).
SessionValues
An open session shared by the stores over its values; clones share it.