Skip to main content

Module session_store_v2

Module session_store_v2 

Source
Expand description

Session Store V2 segmented append log + sidecar index primitives.

This module provides the storage core requested by Phase-2 performance work:

  • Segment append writer
  • Sidecar offset index rows
  • Reader helpers
  • Integrity validation (checksum + payload hash)

Structs§

Checkpoint
Periodic checkpoint snapshot metadata.
IndexSummary
Manifest
ManifestCounters
ManifestFiles
ManifestIntegrity
ManifestInvariants
MigrationEvent
MigrationVerification
OffsetIndexEntry
SegmentFrame
SessionStoreV2
StoreHead
Current head position of the store (last written entry).

Constants§

CHECKPOINT_SCHEMA
MANIFEST_SCHEMA
MIGRATION_EVENT_SCHEMA
OFFSET_INDEX_SCHEMA
SEGMENT_FRAME_SCHEMA

Functions§

frame_to_session_entry
Convert a V2 SegmentFrame payload back into a SessionEntry.
has_v2_sidecar
Check whether a V2 sidecar store exists for the given JSONL session.
session_entry_to_frame_args
Extract the V2 frame arguments from a SessionEntry.
v2_sidecar_path
Derive the V2 sidecar store root from a JSONL session file path.