Skip to main content

Module store

Module store 

Source
Expand description

The JSONL event store. Append-only, monthly partitions, no database.

scanner is the single read path; nothing outside this module opens event files directly.

Re-exports§

pub use id::event_id;
pub use id::text_hash;
pub use id::EventIdentity;
pub use paths::expand_tilde;
pub use paths::Partition;
pub use paths::StorePaths;
pub use record::Event;
pub use record::IngestCursor;
pub use record::PromptRecord;
pub use record::ToolCall;
pub use record::RECORD_VERSION;
pub use scanner::Scan;
pub use scanner::ScanQuery;
pub use scanner::ScanStats;
pub use scanner::Scanner;
pub use writer::StoreWriter;

Modules§

id
Content-derived event ids, so re-ingest dedupes.
paths
Data-dir resolution and the monthly partition layout.
record
Normalized record shapes.
scanner
The shared read path.
writer
Append-only writer. Routes each record to its month partition and writes whole lines in a single call, so a concurrent reader never sees half a record except as a torn final line.