Skip to main content

Crate respire_protocol

Crate respire_protocol 

Source
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§

MemoryEntry
Plaintext form of one memory (client memory/display only).
MemoryQuery
Query (local search; text is lexical prefilter + the engine embeds a semantic vector).
PayloadV2
Ciphertext payload v2 (AES-256-GCM of the whole object; decrypting on a client yields this struct).
RecallPair
RelatedMemory
Final association result; no intermediate vector or ranking details.
RelatedResult
StoredMemory
Server/sync form (local-first dumb-store contract).

Enums§

Kind
Memory kind (seven classes + knowledge; software-agnostic semantics).
RelationKind

Constants§

VERSION_TAG