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§
- Session
Event Envelope - One line of a session’s
events.jsonlappend-only log.
Enums§
- Compaction
Tier - Which compaction threshold fired for a
SessionEvent::Compactionevent. - Session
Event - The kind of a persisted conversation-session event.
Functions§
- now_ms
- Current wall-clock time in milliseconds since the Unix epoch, saturating on overflow.