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 orphan-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
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
SessionExecutionLease
SessionExecutionLeaseCompletion
SessionExecutionLeaseFence
SessionGraph
SessionHead
SessionHeadMeta
SessionMeta
SessionNodeRecord
SessionReadView
SessionStoreCreateRequest
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§

AttachmentStore
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_orphaned_attachments
Reclaim attachment bytes left orphaned by a crash between put and the next durable commit — the host-invocable counterpart to StoreMaintenance::gc_unreachable for attachment payloads.

Type Aliases§

SessionEventRecord