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§
- Session
Record - 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.