Skip to main content

Module store

Module store 

Source
Expand description

SessionStore: the acp_sessions metadata index.

Promotes the existing acp_sessions table (migration 013, crates/zeph-memory) to a channel-agnostic conversation-session index (spec-068 §2 Decision D1 — no new sessions table is introduced). zeph-session talks to the table directly via zeph_db::DbPool rather than depending on zeph-memory, keeping the crate boundary intact.

The event log (crate::log::SessionEventLog) is the source of truth for conversation content; this store only tracks lightweight, queryable metadata (last_seq, status, fork provenance) used to reconcile the projection on open (INV-SP-3) and to answer sessions list without replaying every log.

Structs§

SessionFilter
Filter parameters for SessionStore::list.
SessionMetadata
A conversation-session’s metadata row, as tracked in acp_sessions.
SessionStore
CRUD access to the acp_sessions metadata index.

Enums§

SessionStatus
Lifecycle status of a conversation-session, mirroring the acp_sessions.status CHECK constraint added in migration 106.