Skip to main content

Module stores

Module stores 

Source
Expand description

The daemon-shaped memory storage contract: facts (with privacy, channel provenance and the extraction graph), episodes, exact history and people. A store implements the slices it supports; every method has a conservative default.

Structs§

DecayPolicy
How unrecalled memory fades. Facts not recalled for fact_idle_days lose 1 / fact_decay_divisor of their recall count per pass (at least one); episodes not recalled for episode_idle_days lose one; behavior patterns not seen for pattern_idle_days lose pattern_step confidence (down to 0.1). Background-extracted facts never recalled and untouched for unused_automated_fact_days are archived (0 keeps them).
GraphEdgeUpsert
GraphEntityUpsert
An entity to create or merge in the memory graph.
GraphNeighbor
GraphSearchScope

Enums§

OverlapReviewVerdict
A reviewer’s verdict on two facts the overlap detector paired. Stored with both facts’ content hashes: an edit to either one voids it.

Traits§

EpisodeStore
Episodic memory storage and retrieval.
FactStore
Layer-2 facts storage and retrieval (including privacy + channel provenance).
HistorySearchStore
Exact-history operations exposed to the search tool through a domain port.
MemoryDecay
Fading of unrecalled memory, applied by the store.
MemoryGraphStore
The memory graph: entities and the relations between them, each edge backed by the claim (fact) that asserts it, so retracting the claim invalidates the edge.
MemoryStores
Every store behind the daemon-shaped memory contract, as one handle.
PeopleStore
People persistence (social graph).

Functions§

decay_memory
One maintenance pass: archive expired facts, merge restated facts, retire superseded numeric values, archive unused automated facts, then let unrecalled memory fade, so decay sees one active row per piece of knowledge. Runs every step each call; a caller that must not repeat a daily pass (a restart) checks FactStore::job_last_run_at first.