pub struct MemoryEnvelope {Show 17 fields
pub id: String,
pub namespace: String,
pub title: String,
pub content: String,
pub tier: String,
pub memory_kind: String,
pub reflection_depth: i32,
pub created_at: String,
pub updated_at: String,
pub metadata: Value,
pub atomisation: Option<AtomisationEnvelope>,
pub citations: Vec<Citation>,
pub source_uri: Option<String>,
pub source_span: Option<SourceSpan>,
pub confidence_source: ConfidenceSource,
pub confidence_signals: Option<ConfidenceSignals>,
pub confidence_decayed_at: Option<String>,
}Expand description
One stored memory inside the bundle. We re-emit a stable subset of
the crate::models::Memory shape so a future struct refactor
doesn’t silently break the on-disk format.
Fields§
§id: String§namespace: String§title: String§content: String§tier: String§memory_kind: String§reflection_depth: i32§created_at: String§updated_at: String§metadata: Value§atomisation: Option<AtomisationEnvelope>v0.7.0 WT-1-E — atomisation-chain enrichment. Present only
when this memory is involved in atomisation (either an
archived source with atomised_into > 0 or an atom with
atom_of set). Provides the full chain locally to the
auditor without forcing them to cross-reference between
envelopes. Skipped (None) on rows untouched by atomisation
and on every bundle built with
--include-atomisation-chain=false.
citations: Vec<Citation>v0.7.0 Form 4 (issue #757) — fact-provenance citations.
Always emitted (defaults to an empty array) so auditors can
rely on the field’s presence regardless of row vintage.
Mirrors crate::models::Memory::citations.
source_uri: Option<String>v0.7.0 Form 4 — first-class URI-form pointer to the cited source body. Omitted when NULL on the underlying row.
source_span: Option<SourceSpan>v0.7.0 Form 4 — byte-range into the parent source body. Omitted when NULL on the underlying row.
confidence_source: ConfidenceSourcev0.7.0 Form 5 (issue #758) — typed discriminator for the
provenance of the confidence value on the underlying row.
Always emitted so auditors can rely on the field’s presence
regardless of row vintage. Legacy rows resolve to
caller_provided (the SQL default on schema v39).
confidence_signals: Option<ConfidenceSignals>v0.7.0 Form 5 — JSON snapshot of the signals that produced an
auto-derived or calibrated confidence value. Omitted when NULL
on the underlying row (i.e., the row’s
confidence_source == CallerProvided).
confidence_decayed_at: Option<String>v0.7.0 Form 5 — RFC3339 stamp of the last decay computation. Omitted when NULL on the underlying row (i.e., the row has never been touched by the decay updater).
Trait Implementations§
Source§impl Clone for MemoryEnvelope
impl Clone for MemoryEnvelope
Source§fn clone(&self) -> MemoryEnvelope
fn clone(&self) -> MemoryEnvelope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemoryEnvelope
impl Debug for MemoryEnvelope
Source§impl<'de> Deserialize<'de> for MemoryEnvelope
impl<'de> Deserialize<'de> for MemoryEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for MemoryEnvelope
impl RefUnwindSafe for MemoryEnvelope
impl Send for MemoryEnvelope
impl Sync for MemoryEnvelope
impl Unpin for MemoryEnvelope
impl UnsafeUnpin for MemoryEnvelope
impl UnwindSafe for MemoryEnvelope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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