Skip to main content

Module store

Module store 

Source
Expand description

Consolidated session-blob pipeline for git-ref sync.

A SessionRecord holds the complete reasoning record for a single session: the session row itself plus its messages, commit links, tags, annotations, and optional summary. Encrypting the full record means a teammate who pulls the repo can run lore blame and recover the commit-to-reasoning linkage.

The on-disk blob pipeline is serde_json -> gzip -> encrypt. Compression happens before encryption because ciphertext does not compress. The output is raw bytes suitable for writing directly as a git blob (no base64).

Structs§

SessionRecord
The complete reasoning record for a single session.

Functions§

decrypt_session_record
Decrypts and deserializes a session record from git-blob bytes.
decrypt_tombstones
Decrypts and deserializes the tombstone set from git-blob bytes.
encrypt_session_record
Serializes and encrypts a session record into a git-blob-ready byte buffer.
encrypt_tombstones
Serializes and encrypts the tombstone set into a git-blob-ready buffer.