Skip to main content

Module persistence

Module persistence 

Source

Modules§

queued_work
Dialect-independent queued-work claim logic shared by durable backends.

Structs§

AttachmentReclamationReport
Outcome of a host-invoked unreferenced-attachment reclamation sweep.
BlobRef
FileAttachmentStore
GcReport
HydratedSessionCheckpoint
InMemoryAttachmentStore
InMemoryProcessExecutionEnvStore
InMemorySessionStore
InMemorySessionStoreFactory
Session-id-keyed factory: the same in-memory store is returned for a given session across opens (so a worker rebuild sees the session’s state), and a fresh store is created on first use. Inline durability tier.
LeaseOwnerIdentity
PendingTurnInputClaimDiagnostics
PendingTurnInputDraft
PersistedSessionConfig
PersistedSessionRead
PersistedTurnState
ProtocolEvent
Durable protocol payload stored in session history.
QueuedWorkBatch
QueuedWorkBatchDraft
QueuedWorkClaim
QueuedWorkCompletion
QueuedWorkItem
RuntimeCommit
RuntimeCommitResult
RuntimeSessionState
The runtime’s view of a session: the persistable snapshot fields plus scratch fields the runtime tracks but never persists (head-revision CAS guard, pending dirty-write buffers, replace-graph flag). Public serialization goes through RuntimeSessionState::to_snapshot, which drops runtime-only fields by construction.
RuntimeTurnCommitStamp
SessionAttachmentStore
The concrete, session-bound facade over a flat AttachmentStore backend — the only attachment surface the runtime and its consumers ever see.
SessionCheckpoint
SessionExecutionLease
SessionExecutionLeaseCompletion
SessionExecutionLeaseFence
SessionGraph
SessionHead
SessionHeadMeta
SessionMeta
SessionNodeRecord
SessionReadView
SessionStoreCreateRequest
StoredBlobRef
One blob enumerated by AttachmentStore::list. Feeds mark-and-sweep GC: the sweeper pairs each blob’s id against the live root set and uses last_modified_epoch_ms to apply the write grace period. Backends that cannot report a modification time leave it None, and the sweep treats such blobs as always past the grace window.
TurnInputClaim
TurnInputCompletion
VacuumReport
Result of a StoreMaintenance::vacuum() call. removed_node_count counts the tombstoned graph-node rows that were physically deleted from the store. removed_pending_turn_input_tombstone_count counts terminal pending-input evidence rows pruned by host-scheduled retention. Returned so hosts can emit metrics.

Enums§

CheckpointKind
DeliveryPolicy
GraphCommitDelta
LeaseOwnerLiveness
MergeKey
QueuedWorkClaimBoundary
QueuedWorkClass
QueuedWorkPayload
SessionExecutionLeaseClaimOutcome
SessionReadScope
SessionRelation
SlotPolicy
StoreError

Traits§

AttachmentRootSet
A source of the live attachment root set: every attachment ref (intent or committed) across ALL sessions a store factory owns. Intents count as refs, so an in-flight write is never mistaken for garbage.
AttachmentStore
A flat, content-addressed blob store: host-supplied dumb infrastructure.
ProcessExecutionEnvStore
QueuedWorkStore
Durable queued-work capability: ingress, ordered claiming, and claim leases for non-input work (process wakes and session commands).
RuntimePersistence
Exact settled-session persistence protocol required by the runtime.
SessionCommitStore
Settled-session commit/read capability: the runtime’s atomic transaction facade for visible session state.
SessionExecutionLeaseStore
Durable single-writer execution-lane capability, fenced by monotonic fencing tokens.
SessionStoreFactory
StoreMaintenance
Host-scheduled retention and garbage-collection capability over settled state.
TurnInputStore
Pending turn-input lifecycle capability: durable ingress for model-visible user input.

Functions§

load_persisted_session_state
load_persisted_session_state_active_path
reclaim_unreferenced_attachments
Mark-and-sweep GC for attachment blobs — the host-invocable counterpart to StoreMaintenance::gc_unreachable for attachment payloads.

Type Aliases§

SessionHistoryRecord