Skip to main content

Module persistence

Module persistence 

Source

Modules§

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

Structs§

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.
PersistedSessionConfig
PersistedSessionRead
PersistedTurnState
ProtocolEvent
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
SessionCheckpoint
SessionGraph
SessionHead
SessionHeadMeta
SessionMeta
SessionNodeRecord
SessionReadView
SessionStoreCreateRequest
TokenLedgerEntry
A single row in the token cost ledger. One per unique (source, model) pair — accumulated, not per-call.
VacuumReport
Result of a RuntimePersistence::vacuum() call. removed_node_count counts the tombstoned graph-node rows that were physically deleted from the store. Returned so hosts can emit metrics.

Enums§

DeliveryPolicy
GraphCommitDelta
MergeKey
QueuedWorkClaimBoundary
QueuedWorkPayload
SessionReadScope
SessionRelation
SlotPolicy
StoreError

Traits§

AttachmentStore
ProcessExecutionEnvStore
RuntimePersistence
Exact settled-session persistence protocol required by the runtime.
SessionStoreFactory

Functions§

load_persisted_session_state
load_persisted_session_state_active_path

Type Aliases§

SessionEventRecord