Expand description
memory::model — domain model (pure data, no IO)
local-first architecture freeze (2026-09-02): · server = dumb ciphertext store, sees only {id, user, ciphertext, nonce, embedding_enc, updated_at, deleted} · plaintext metadata (kind/tags/title/created_at…) all lives in the ciphertext payload (v2 JSON) · embedding is derived: encrypted and synced (rebuild index on other devices), plus a local plaintext copy for search · search / dedup / merge are all local; the server has zero search APIs
Structs§
- Memory
Entry - Plaintext form of one memory (client memory/display only).
- Memory
Query - Query (local search; text is lexical prefilter + the engine embeds a semantic vector).
- Payload
V2 - Ciphertext payload v2 (AES-256-GCM of the whole object; decrypting on a client yields this struct).
- Recall
Pair - Related
Memory - Final association result; no intermediate vector or ranking details.
- Related
Result - Stored
Memory - Server/sync form (local-first dumb-store contract).
Enums§
- Kind
- Memory kind (seven classes + knowledge; software-agnostic semantics).
- Relation
Kind