# kcode-k1-chat-persistence-store 0.5.0
Caller-rooted, per-session JSONL filesystem projection for K1 chat persistence. Exact dependency Records 0.4.0 owns codec-v2 records and session validation, while JSONL 0.1.0 owns transaction-ID line framing, strict parsing, and exact predecessor location. Store preserves its public record-value reexports for source compatibility.
Store owns only its `sessions` directory. It retains fail-closed strict filesystem loading, atomic line append with file synchronization, reconcile-first exact-predecessor truncation, and discard behavior. Normal load and append reject malformed, blank, or incomplete JSONL; only reconcile-first predecessor location tolerates a corrupt or incomplete trailing suffix before truncating it. Missing session files load as empty.
Open box fields round-trip unchanged, including Tool Message and Tool Result-v2 hidden metadata. There is no codec-v1 reader, migration, reset effect, provider interaction, or compatibility mode.