Skip to main content

Module event

Module event 

Source
Expand description

The SessionEvent schema and its on-disk envelope.

Every line appended to a session’s events.jsonl is one JSON-encoded SessionEventEnvelope. seq is the source of truth for ordering (see INV-SP-1/INV-SP-2 in specs/068-session-persistence/spec.md §13); ts_ms is informational only.

Structs§

SessionEventEnvelope
One line of a session’s events.jsonl append-only log.

Enums§

CompactionTier
Which compaction threshold fired for a SessionEvent::Compaction event.
SessionEvent
The kind of a persisted conversation-session event.

Functions§

now_ms
Current wall-clock time in milliseconds since the Unix epoch, saturating on overflow.