Skip to main content

MemoryMetadata

Struct MemoryMetadata 

Source
pub struct MemoryMetadata {
Show 32 fields pub id: MemoryId, pub galaxy: Galaxy, pub content_hash: String, pub tags: Vec<String>, pub importance: f32, pub created_at: DateTime<Utc>, pub accessed_at: DateTime<Utc>, pub access_count: u64, pub coords: HolographicCoords, pub coord5d: Coordinate5D, pub memory_type: MemoryType, pub neuro_score: f32, pub novelty_score: f32, pub emotional_valence: f32, pub emotional_weight: f32, pub is_protected: bool, pub is_private: bool, pub model_exclude: bool, pub source: String, pub source_trust: f32, pub half_life_days: f32, pub recall_count: u64, pub version: u64, pub agent_id: String, pub title: Option<String>, pub topic: Option<String>, pub tier: Tier, pub class: Option<MemoryClass>, pub dup_count: u64, pub validity: ValidityState, pub corroborated_by: Vec<Uuid>, pub revision_count: u32,
}
Expand description

Metadata for a memory entry.

Fields§

§id: MemoryId

Memory UUID

§galaxy: Galaxy

Which galaxy this memory lives in

§content_hash: String

Content hash for deduplication

§tags: Vec<String>

Tags for categorization

§importance: f32

Importance score (0.0 to 1.0)

§created_at: DateTime<Utc>

Creation timestamp

§accessed_at: DateTime<Utc>

Last accessed timestamp

§access_count: u64

Access count

§coords: HolographicCoords

Holographic coordinates

§coord5d: Coordinate5D

5D holographic coordinate for spatial indexing

§memory_type: MemoryType

Memory classification

§neuro_score: f32

Dynamic neural strength (0.0-1.0) — decays over time, boosts on recall

§novelty_score: f32

Novelty score (0.0-1.0) — decays as info becomes familiar

§emotional_valence: f32

Emotional valence (-1.0 = negative, 1.0 = positive)

§emotional_weight: f32

Emotional weight / resonance (0.0-1.0)

§is_protected: bool

Hard protection from forgetting

§is_private: bool

Exclude from MCP tool responses

§model_exclude: bool

Exclude from AI model context windows

§source: String

Provenance: “user”, “tool”, “inferred”, “web”

§source_trust: f32

Trust score for source (0.0-1.0, defends against memory poisoning)

§half_life_days: f32

Per-memory configurable decay half-life in days

§recall_count: u64

Recall count (independent from access_count)

§version: u64

Version for multi-agent cache coherence

§agent_id: String

Last writer identity

§title: Option<String>

Human-readable title (envelope v2, S4). None = untitled; absent in old records deserializes as None, never as a fabricated value.

§topic: Option<String>

Topic label for subject-scoped retrieval (envelope v2, S4)

§tier: Tier

Lifecycle tier (V8 S5) — stamped at creation, dream-cycle-only transitions. Pre-S5 rows default to Tier::Episodic.

§class: Option<MemoryClass>

Typology class (V8 S5, crate::typology) — stamped at creation when confidently recognized. None = unstamped (pre-S5 row, or content the detector does not confidently recognize); never fabricated as a claim about the content.

§dup_count: u64

Duplicate-write counter (V8 S5 dedup gate) — bumped instead of re-inserting identical content; importance decays with it.

§validity: ValidityState

Lifecycle validity (V8 Slice B, D1+D2) — reuses wm_core::episodic::ValidityState; the dream cycle is the only transition path (see validity_sweep). Pre-Slice-B rows default to Active, so the recall surface is byte-identical until the WM_VALIDITY_ENFORCE knob turns on.

§corroborated_by: Vec<Uuid>

Corroborating session ids (bridging consensus counter, 2nd PR after Slice B) — distinct sessions whose agents independently stand behind this memory, recorded via memory.corroborate. Empty = uncorroborated (the pre-counter default for every row). Sessions nest agents and machines (maintainer ruling 2026-09-04: sessions are the working unit for now); each entry is client-asserted like user_id — attribution, never authentication.

§revision_count: u32

Content-revision counter (V8 S11c) — how many times this memory’s content has changed through memory.update. The per-entry chain itself lives in the store’s revisions DBI (memory.revisions).

Trait Implementations§

Source§

impl Clone for MemoryMetadata

Source§

fn clone(&self) -> MemoryMetadata

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MemoryMetadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MemoryMetadata

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for MemoryMetadata

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Sync + Send>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Fruit for T
where T: Send + Downcast,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more