pub struct Memory {
pub id: MemoryId,
pub content: String,
pub project: String,
pub topic: String,
pub source: MemorySource,
pub harness: Harness,
pub session_id: Option<String>,
pub origin: InstanceId,
pub authority: AuthorityScope,
pub importance: f32,
pub created_at: String,
}Expand description
A curated memory palace entry: the refined-metal output of either an explicit save or a mining pass.
Provenance (harness, session_id, source) is mandatory so that
any entry can be traced back to the conversation that produced it.
Fields§
§id: MemoryIdStable, opaque identifier (e.g. mem_<ulid>).
content: StringThe curated content text.
project: StringProject namespace (defaults to "general").
topic: StringTopic within the project.
source: MemorySourceProvenance: how this entry was created — explicit save, auto-capture, or a mined extraction.
harness: HarnessProvenance: which harness wrote this entry.
session_id: Option<String>Provenance: the originating session, when known.
origin: InstanceIdProvenance: the instance that authored this entry (ADR provenance-tier). Defaults to the local instance for 0.1.0; federation (Phase 5) stamps the origin instance.
Provenance: the authority scope (source-of-truth) for this entry’s domain (ADR provenance-tier). Defaults to local; drives Phase 5 conflict resolution.
importance: f32Importance score (0.0–1.0). Used for wake-up ranking (top-N by importance × recency). Defaults to 0.5, matching pi-mempalace.
created_at: StringCreation timestamp. v0: Unix epoch seconds as a string (monotonic for DESC ordering). Future: ISO-8601 when a time crate lands.